Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

prompt-generator提示生成器

Agent Skill

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

总安装

917

周安装

39

GitHub Stars

公开资料未说明

下载量

321
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于辅助生成和优化提示词、系统指令及工作流模板。

  • 帮助 Agent 更清晰地定义角色、目标和输出结构。
  • 支持快速构建可复用的提示词框架和交互流程。prompt-generator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装依赖 GitHub 仓库并通过 npx 命令添加。
  • 使用时应结合实际场景调整,避免照搬示例规则。

SKILL.md

Prompt Generator

Create high-quality, structured prompts using meta-prompting best practices: task decomposition, expert personas, iterative verification, and hallucination minimization.

Workflow

Bước 0: Detect Mode

User cung cấpModeHành động
Mô tả yêu cầu (chưa có prompt)CreateChạy Phase 1 → 2 → 3 → 4
Prompt có sẵn cần cải tiếnRefineChạy checklist Phase 4 trước → xác định điểm yếu → sửa theo kết quả

Phase 1: Gather Requirements

Ask the user (one at a time, maximum 4 questions). Skip when answers are obvious from context.

  1. Type: Detect or ask — what type of prompt?

- System prompt: Persistent AI behavior across a conversation - Task prompt: One-shot, input → specific output - Conversational prompt: Multi-turn, requires memory/context handling - Role prompt: Character/persona, tone-focused

  1. Goal: "What is the primary goal or role of the system you want to create?"
  2. Output: "What specific outputs do you expect? (format, length, style)"
  3. Accuracy: "How should it handle uncertainty? (disclaim, ask for sources, or best-effort)"

Minimize friction — 1-2 questions usually suffice when context is clear.

Phase 2: Decompose (if needed)

Tín hiệuDecompose?
Prompt yêu cầu >= 3 expert domains khác nhauYes
Output cần cả phân tích + sáng tạo + validationYes
Single domain, straightforward input → outputNo — skip to Phase 3

Khi decompose, assign expert personas — mỗi expert nhận instructions riêng, không shared memory:

  • Expert Writer — copywriting, narrative, tone
  • Expert Analyst — data, logic, verification
  • Expert Python — code generation, computation
  • Expert [Domain] — specialized knowledge

"Fresh eyes" — không assign cùng expert cho cả create AND validate.

Phase 3: Generate the Prompt

Consolidate vào 1 prompt cohesive. Dùng prompt-template — chỉ include sections phù hợp, omit phần không relevant.

Lưu ý khi generate:

  • Match prompt structure theo prompt type (system vs task vs conversational vs role)
  • Ưu tiên "must NOT" over "should" — negative framing hiệu quả hơn vì giảm ambiguity

Phase 4: Verify and Deliver

Self-review checklist trước khi deliver:

  • No vague virtue words ("good", "helpful", "detailed") without specific definition
  • No contradictory instructions (e.g., "be concise" + "include all details")
  • No implicit assumptions — all context is explicitly stated
  • Negative constraints are included (what NOT to do)
  • Prompt type matches the use case
  • If complex: suggest splitting into multi-prompt pipeline instead of mega-prompt

Then:

  • Present the final prompt, organized and easy to follow
  • Note expert reviews if used
  • Offer to iterate if user wants adjustments

Anti-patterns to Avoid

When reviewing or generating prompts, flag these issues:

  • Vague virtues: "Write a good summary" → "Write a 3-sentence summary focusing on key findings and action items"
  • Overloaded prompt: Too many tasks in one prompt → suggest splitting
  • Sycophancy traps: "Always agree" or "Never say no" → remove
  • Missing scope: "Write marketing copy" without audience, channel, tone → clarify
  • Prompt stuffing: Repeating the same instruction in multiple sections → deduplicate

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.44%
按下载量换算114

Claude

29.16%
按下载量换算94

Cursor

18.7%
按下载量换算60

Gemini CLI

9.08%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills