Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

prompt-generator-v2提示生成器 v2

Agent Skill

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

总安装

218

周安装

9

GitHub Stars

公开资料未说明

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

第二代提示词生成工具,专注于提升提示质量与适应性。

  • 适用于复杂任务拆解和多轮对话结构设计。prompt-generator-v2 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 支持动态参数注入和上下文感知的提示构造。
  • 需从指定 GitHub 仓库安装并配置到宿主环境。
  • 建议结合具体用例测试效果,避免过度依赖自动化生成。

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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