Token导航 LogoToken导航

Agent Skill · 开发

prompt-generator-v2(提示生成器 v2)

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

prompt-generator-v2 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 20,588。

总安装 218周安装 9GitHub Stars 公开资料未说明下载 71核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prompt-generator-v2(提示生成器 v2)
来源仓库:https://github.com/hoangvantuan/claude-plugin
仓库路径:skills/prompt-generator-v2
安装命令:
npx skills add https://github.com/hoangvantuan/claude-plugin --skill prompt-generator-v2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hoangvantuan/claude-plugin --skill prompt-generator-v2

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

第二代提示词生成工具,专注于提升提示质量与适应性。适用于复杂任务拆解和多轮对话结构设计。prompt-generator-v2 属于开发类 Skill,可作为该场景下的辅助能力补充。支持动态参数注入和上下文感知的提示构造。需从指定 GitHub 仓库安装并配置到宿主环境。

建议结合具体用例测试效果,避免过度依赖自动化生成。

来源仓库内路径:skills/prompt-generator-v2

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/hoangvantuan/claude-plugin --skill prompt-gene…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

prompt-generator-v2 怎么安装?

在终端执行 npx skills add https://github.com/hoangvantuan/claude-plugin --skill prompt-generator-v2。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

prompt-generator-v2 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

prompt-generator-v2 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

prompt-generator-v2 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

prompt-generator-v2 用的人多吗?

公开数据是累计安装 218 次,近一周安装 9 次,下载 71 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

prompt-generator-v2 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
prompt-generator-v2

提示生成器 v2 · 本页

218—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Prompt Generator V2 — KERNEL Framework

Generate prompts that work on the first try. The KERNEL framework ensures every prompt has a clear goal, verifiable success criteria, and explicit constraints.

KERNEL at a Glance

Each letter is a checkpoint. Chi tiết + ví dụ before/after → kernel-framework.

PrincipleCheckAction if failing
Keep simpleDescribe in one sentence?Split into prompt chain
Easy to verifyStranger could verify?Add measurable criteria
ReproducibleWorks in 30 days?Remove temporal refs, add versions
Narrow scopeOne deliverable?Extract goals into separate prompts
Explicit constraints2-3 "do NOT" rules?Add negative constraints
Logical structureContext→Task→Constraints→Format?Restructure

Workflow

Step 0: Determine Mode

User inputModeAction
Vague request ("help me write a prompt for X")CreateGo to Step 1
Existing prompt providedImproveRun KERNEL checklist against the prompt, diagnose which principles fail, fix targeted. Skip to Step 2

Step 1: Understand Intent

Extract or ask (max 3 questions — skip if the request already answers them):

  1. What's the single goal? — If multiple goals detected, suggest splitting into a prompt chain
  2. What does success look like? — Specific, verifiable criteria (numbers, formats, concrete deliverables)
  3. What should it NOT do? — Constraints and exclusions

If the user provides a vague request, propose a draft immediately and iterate — action beats interrogation.

Step 2: Apply KERNEL

Transform intent into a structured prompt. Run each principle as a mental checklist using the table above. For detailed explanations, consult kernel-framework.

Step 3: Generate the Prompt

Use this structure. Include only relevant sections — omit what doesn't apply:

## Context
[Background information the AI needs. Keep minimal — only what's necessary to understand the task. Include domain, audience, and relevant technical context.]

## Task
[One clear, specific goal. Start with an action verb. This is the single sentence that passes the K-test.]

## Constraints
- [What to do — specific, measurable behaviors]
- Do NOT [negative constraint 1]
- Do NOT [negative constraint 2]
- [Additional bounds: length, format, libraries, scope limits]

## Output Format
[Exact structure of the expected output. Include: format (markdown, JSON, code), length bounds, sections/headers if applicable, delimiters.]

## Verification
[How to check success — specific criteria that make the E-principle concrete. Think: "I'll know this worked when..."]

Optional sections (include when they add value):

  • Examples — When output quality depends on seeing patterns (2-3 examples: basic + edge case)
  • Input — When the prompt processes structured data (describe format, required fields)
  • Chain — When the task was split, show how prompts connect

Step 4: Verify with KERNEL Checklist

Before delivering, run this self-review:

  • K: Can I describe this prompt's goal in one sentence?
  • E: At least 2 measurable success criteria?
  • R: No temporal references, no version-ambiguous terms?
  • N: Exactly one deliverable per prompt?
  • E: At least 2 explicit "do NOT" constraints?
  • L: Follows Context → Task → Constraints → Format structure?
  • No vague virtue words ("good", "helpful", "detailed") without concrete definition
  • No contradictions (e.g., "be concise" + "cover everything")
  • All implicit assumptions made explicit

Step 5: Deliver and Iterate

Present the prompt in a clean code block. If the original request was complex and got split:

  • Show each prompt in the chain, numbered
  • Explain how outputs feed into subsequent prompts
  • Suggest which prompts can run in parallel vs sequential

Always offer: "Want me to adjust the constraints, add examples, or split this differently?"

Prompt Chaining

When a task is too complex for one prompt (fails N-principle), decompose into a chain. Each link:

  • Has a single clear goal (passes all KERNEL checks independently)
  • Produces output that feeds cleanly into the next prompt
  • Can be verified independently before moving to the next step

Pattern: Task → subtask analysis → ordered chain with data flow

Example: "Build a REST API" →

  1. Design data models (output: schema)
  2. Generate endpoint specifications (input: schema → output: OpenAPI spec)
  3. Implement endpoints (input: OpenAPI spec → output: code)
  4. Write tests (input: code + spec → output: test suite)

Failure Modes

Các lỗi phổ biến cần nhận diện và tránh khi generate prompt:

Failure modeDấu hiệuSửa
Prompt quá chungKhông constraint, output có thể là bất kỳ thứ gìThêm scope, format, length bounds
Over-engineeringPrompt dài hơn output mong đợi, quá nhiều rulesCắt constraints không ảnh hưởng output quality
Constraint mâu thuẫn"Be concise" + "Cover everything thoroughly"Chọn 1, bỏ kia, hoặc chia scope
Vague virtue stacking"Good", "helpful", "engaging", "detailed" liên tiếpThay bằng criteria cụ thể, đo được
Temporal drift"Current", "latest", "recent" không pin versionPin version/date cụ thể
Missing audiencePrompt không nói cho ai → tone/depth không phù hợpThêm audience + expertise level
Format ambiguityKhông nói rõ output format → AI tự chọnThêm Output Format section tường minh

平台分布

Codex

36.02%
按下载量换算26

Claude

31.91%
按下载量换算23

Cursor

20.13%
按下载量换算14

Gemini CLI

8.9%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills