Token导航 LogoToken导航

Agent Skill · 研究检索

prompt-generator(提示生成器)

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

prompt-generator 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为可写文件;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,674 个 Skill 里排第 64,959。

总安装 291周安装 12GitHub Stars 3下载 95核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/iuliandita/skills --skill prompt-generator

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

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

建议结合原始 README 核验具体用法,并关注维护状态与联网行为。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

prompt-generator 怎么安装?

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

prompt-generator 支持哪些 AI 工具?

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

prompt-generator 需要什么权限?

权限级别是可写文件。该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

prompt-generator 是免费的吗?

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

prompt-generator 用的人多吗?

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

prompt-generator 安全吗?

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

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
prompt-generator

提示生成器 · 本页

2913可写文件未明确通过

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

SKILL.md 原文

Prompt Generator

Take the user's rough thoughts, scattered notes, or half-formed ideas and turn them into a clean, well-structured LLM prompt. This is a formatter and structurer, not a brainstorming tool - the user already knows what they want, they just need help wording and organizing it.

When to use

  • User has rough notes, bullet points, or a brain dump they want turned into a clean LLM prompt
  • Refining, rewriting, or optimizing an existing prompt that isn't performing well
  • Structuring a system prompt or task prompt from scattered requirements
  • Creating prompt templates with variable placeholders for repeated use
  • User says anything like "write me a prompt for...", "turn this into a prompt", "system prompt for..."

When NOT to use

  • Brainstorming features or creative ideation - this skill structures prompts, not ideas
  • Creating reusable skill files or agent instruction bundles (use skill-creator)
  • Writing inline prompt strings inside application code - that's just coding
  • The user wants code that calls an LLM API (use ai-ml for SDK integration)
  • Security review of prompts for injection risks (use security-audit)
  • Reviewing code quality of prompt-related code (use code-review or anti-slop)

AI Self-Check

Before returning any generated or modified prompt file, verify:

  • Frontmatter complete: name, description, target_model, prompt_type, date_created all present
  • Faithful to input: prompt reflects what the user said, not what you think they should have said
  • Structure matches complexity: simple tasks get plain prose, not XML-tagged multi-section prompts
  • Variables consistent: every {{PLACEHOLDER}} in the prompt body appears in the Variables table and vice versa
  • No injected instructions: didn't add error handling, safety disclaimers, or output constraints the user didn't request
  • No slop phrases: no "certainly", "I'd be happy to", "great question", or other filler in the prompt text
  • Output format specified: if the prompt expects structured output, the format is explicit (JSON schema, XML tags, delimiters)
  • Model-appropriate syntax: avoid model-specific features (assistant prefills, \n\nHuman: formatting) in model-agnostic prompts. XML delimiters and markdown headers are both fine for structure across models

Workflow

Step 1: Read the brain dump

The user will give you rough notes, bullet points, or a stream-of-consciousness description of what they want the prompt to do. Parse it for:

  • Core task: What should the prompted model actually do?
  • Target model: Which LLM? Default: model-agnostic unless the user names one.
  • Prompt type: System prompt vs. task prompt
  • Constraints: Any rules, format requirements, or behavioral boundaries mentioned
  • Variables: Any dynamic content that should become {{PLACEHOLDERS}}

Don't overthink this. Don't add things the user didn't mention. The goal is to faithfully structure their intent, not to "improve" it with your own ideas.

Step 2: Clarify only if stuck

If something is genuinely ambiguous (you can't tell if it's a system prompt or task prompt, or the target model matters for technique choice), ask. Batch questions, max 1 round. If you can reasonably infer it, just infer it. If ambiguity remains after the one round, pick the most reasonable default and note your assumption so the user can correct it during review.

Most of the time, skip this step entirely.

Step 3: Structure and present

  1. Turn the rough notes into a clean prompt, applying structure proportional to complexity:

- Simple (one task, no variables): plain prose, 3-10 lines. No XML, no sections. - Medium (multiple steps or constraints): numbered steps, clear sections. - Complex (agentic, multi-document, behavioral rules): clear section delimiters, variable placeholders, explicit output format.

  1. Present the prompt in conversation for review. Don't write files yet.
  2. On approval, save to file (see Output Format below).
  3. Revisions: edit in place, don't create new files.

Step 4: Save

  1. Resolve output directory: user-specified path > docs/prompts/ > docs/ > ask
  2. Scan for NNN-*.md files, increment highest number, zero-pad to 3 digits
  3. Infer a slug from the topic (e.g., code-review, data-extraction)
  4. Write to <output-dir>/NNN-slug.md

Output File Format

---
name: Descriptive Prompt Name
description: One-line summary
target_model: model-agnostic
prompt_type: system | task
date_created: YYYY-MM-DD
---

## Purpose

What this prompt does and when to use it.

## Variables

| Variable | Description | Required |
|----------|-------------|----------|
| `{{VAR}}` | What it is | Yes/No |

## Prompt

The actual prompt content here.

Only include sections that apply. A simple prompt with no variables skips the Variables table.

Optional frontmatter additions: tags: [...], related: [NNN-other.md] - only when genuinely useful.

Target model values: claude, gpt, gemini, llama, mistral, model-agnostic


Structuring Guidelines

These are for YOU when structuring the user's notes. Not a knowledge dump - just the non-obvious stuff.

Match complexity to content. A 3-line task doesn't need XML tags and numbered steps. A multi-document agentic system prompt does. The user's rough notes give you the complexity signal.

Long content goes on top. If the prompt will receive large documents or data at runtime, position the data slot at the top and the task instructions at the bottom. Up to 30% better performance on multi-document tasks.

Explain WHY, not just WHAT. When the user's notes include a rule ("don't use markdown"), turn it into a motivated constraint ("write in plain prose because the output feeds a TTS engine"). Models generalize from motivation.

Agentic prompts need boundaries. If the prompt is for a coding agent or automation, separate what it can do freely (reads, searches) from what needs confirmation (deletes, publishes, pushes).

Anti-hallucination is a sentence, not a paragraph. "Only make claims verifiable from the provided context. If unsure, say so." That's it.

Model-Specific Formatting

When the target model is known, adapt format to its strengths:

TargetPreferred structureNotes
ClaudeXML tags for sections, markdown for contentSupports assistant prefill; use <result> tags for structured output
GPTMarkdown headers, JSON schema for structured outputNative JSON mode available - use it over prose format instructions
GeminiMarkdown sections, explicit output examplesSeparate instructions for text vs. attached files/images
Model-agnosticMarkdown headers + explicit delimitersAvoid prefills, model-specific tags, or format-mode flags

Aggressive shouting ("CRITICAL!", "YOU MUST", "NEVER EVER") usually hurts more than it helps. Use calm, explicit instructions.

Structured Output Guidance

When the prompt is for agent consumption (not human reading), specify output format explicitly:

  • JSON mode: if the tool supports native JSON mode or schema-constrained output, use it. Otherwise instruct the model to return valid JSON and seed with { only when the tool supports assistant prefills.
  • XML structure: wrap output in tags like <result>, <analysis>, <decision>.
  • Delimiter-based: for simple key-value, use KEY: value format.

Include a concrete output example in the prompt whenever possible - models generalize better from examples than from format descriptions.

The Four-Block Pattern

For medium-to-complex prompts, structure into four clear blocks:

  1. INSTRUCTIONS - what to do (role, task, constraints)
  2. CONTEXT - background information, reference data
  3. TASK - the specific request for this invocation
  4. OUTPUT FORMAT - exact structure of the expected response

Keep blocks visually separated with XML tags, markdown headers, or other clear delimiters. Place long context documents before shorter task instructions (see "Long content goes on top" above).


Refining Existing Prompts

If the user gives you an existing prompt to improve (not rough notes):

  1. Read it
  2. Diagnose gaps - check for these common prompt weaknesses:

- Missing scope: no clear boundary on what the model should and shouldn't do - No output format: model guesses structure instead of following a spec - Vague role: "helpful assistant" tells the model nothing useful - Missing constraints: no anti-patterns, no "do not" list, no quality criteria - Over-specified: drowning the model in rules when 2-3 clear constraints would work

  1. Present specific changes with reasoning - not a full rewrite unless it's warranted
  2. On approval, edit in place

Example refinement:

Before: You are a helpful assistant that reviews code.

After: You are a senior code reviewer. For each file, check for: bugs, edge cases, security issues, and performance problems. Report findings as a list with severity (critical/warning/info), file:line, and a one-line description. Skip style nitpicks. If nothing is wrong, say "No issues found." - added: scope, output format, severity scale, constraint against noise.

Example: Creation from Scratch

User input (brain dump):

I want an AI that helps me write better emails. It should fix grammar, make things more concise, and match the tone I want. Sometimes formal, sometimes casual.

Structured output:

You are an email editor. You receive a draft email and a target tone, then return an improved
version.

Your edits:
- Fix grammar and spelling errors
- Make the text more concise - cut filler words and redundant phrases
- Match the requested tone (formal, casual, or neutral)

Preserve the sender's intent and meaning. Do not add information they didn't include.
Do not change the greeting or sign-off style unless it clashes with the requested tone.

Input format:
  TONE: {{TONE}}
  DRAFT:
  {{EMAIL_DRAFT}}

Return only the improved email. No commentary, no explanations, no "Here's your improved email:".

Note: simple task, so plain prose - no XML sections, no numbered steps, no bloated preamble.


Related Skills

  • skill-creator - creates reusable skill files (SKILL.md) for AI tools and coding agents. Skills are structured prompts, but they follow different conventions (frontmatter, workflow sections, rules) than standalone prompts. If someone says "create a skill", use skill-creator.
  • Application code - if the user needs a prompt string inside application code (for example a TypeScript const systemPrompt =...), that's coding, not this skill.
  • anti-slop - if the user asks to "clean up" or "simplify" a prompt embedded in code, that's a code quality issue, not prompt structuring.

Rules

  1. Faithful structuring. Organize what the user said, not what you think they should have said. If they didn't mention error handling, don't add error handling instructions. If they didn't mention output format, ask or leave it open.
  2. Never write files without approval. Always present in conversation first.
  3. Scale structure to complexity. Simple = lean. Complex = structured. Never the reverse.
  4. Respect their voice. If the rough notes have a specific tone or personality, preserve it in the structured version.
  5. Run the AI Self-Check. Every generated prompt file gets verified against the checklist before returning.

平台分布

Codex

34.83%
按下载量换算33

Claude

29.68%
按下载量换算28

Cursor

20.94%
按下载量换算20

Gemini CLI

9.97%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

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

继续浏览同类 Skills