Token导航 LogoToken导航

Agent Skill · 开发

enhance-prompt(增强提示)

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

enhance-prompt 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 14,297。

总安装 722周安装 31GitHub Stars 公开资料未说明下载 253核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jkappers/agent-skills --skill enhance-prompt

这个 Skill 是做什么的

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

enhance-prompt 用于辅助提示词、系统指令和工作流模板的整理,适合在 Codex、Claude、Cursor、Gemini CLI 中规范任务边界和输出格式。适用于优化 Agent 行为约束、操作步骤拆分和提示词复用性提升等场景。能生成结构化指令模板并支持高风险操作的确认机制设计。

使用时需保留真实业务约束,避免将示例当作硬规则。涉及自动执行或外部工具调用时应明确权限边界和失败处理方式。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

enhance-prompt 怎么安装?

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

enhance-prompt 支持哪些 AI 工具?

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

enhance-prompt 需要什么权限?

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

enhance-prompt 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

enhance-prompt 用的人多吗?

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

enhance-prompt 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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有提醒
enhance-prompt

增强提示 · 本页

722—需要联网MIT通过

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

SKILL.md 原文

Prompt Enhancement

Analyze, write, and improve LLM prompts and agent instructions. Apply these principles to system prompts, agent instructions, skills, CLAUDE.md files, rules, slash commands, and any LLM prompt.

Workflow

When invoked with input:

  1. Classify the request: Determine if the input is a prompt to review, a description of a prompt to write, or a general prompt engineering question
  2. Analyze: For existing prompts, identify violations of the principles below. For new prompts, gather requirements
  3. Apply principles: Apply Token Economics, Determinism, Imperative Language, Formatting, and Anti-Pattern checks
  4. Produce output: Return the enhanced prompt only

Output Format

Return the enhanced prompt only. No preamble, no violation notes, no commentary, no explanations. The entire response is the improved prompt, ready to copy and paste.

When invoked without input, serve as a reference guide for the principles below.

Token Economics

The context window is a shared resource. Challenge each piece of information: "Does the model already know this?" Only add context the model lacks. Assume high baseline capability.

Remove decorative language. No "please", "remember", "make sure", "it's important".

Use examples over explanations. One concrete before/after pair teaches more than three paragraphs of description.

Prefer tables for structured data. Compress related information into scannable format.

Determinism and Specificity

Degrees of Freedom

Match specificity to task requirements.

High freedom (text instructions): Use when multiple approaches are valid. Medium freedom (pseudocode, parameterized scripts): Use when a preferred pattern exists. Low freedom (exact scripts, no parameters): Use when operations are fragile or consistency is critical.

Zero Ambiguity

Every instruction must have exactly one interpretation.

Use explicit constraints, not suggestions. "Run pytest tests/ --strict-markers" not "Run tests with strict markers when appropriate."

Specify conditions completely. "Validate input at API boundaries" not "Validate input."

Eliminate hedge words: "consider", "try to", "when possible", "generally", "often".

Deterministic Commands

Include all flags and arguments. dotnet test --logger "console;verbosity=detailed" not dotnet test.

Use absolute paths or precisely scoped paths. /src/api/, src/**/*.ts, not "the API code."

Specify tool versions when behavior differs. "Node.js 20+: use native fetch" not "Use fetch."

Imperative Language Patterns

Use imperative form only. "Validate at boundaries" not "You should validate at boundaries."

Write direct commands in imperative mood.

Good: "Validate input at API boundaries" Avoid: "You should consider validating input"

Prefer positive instructions over negations. "Let exceptions propagate" rather than "Do not catch exceptions unnecessarily."

Specificity in Constraints

Be specific in prohibitions and requirements.

Good: "Do not implement retry logic in background jobs" Avoid: "Avoid defensive patterns"

Formatting for LLM Parsing

Use markdown structure that aids LLM understanding.

FormatPurpose
HeadingsEstablish context and scope boundaries
ListsDiscrete, parallel, independent items only
Code blocksExact values, commands, identifiers, patterns
TablesStructured comparisons, reference data, decision matrices
BoldHard constraints where violation causes failure (max 10% of content)
ProseRelationships between ideas, conditional logic, rationale
White spaceBlank lines between paragraphs and sections for parsing clarity

Emphasis and Terminology

Emphasis Modifiers

Use MUST, MUST NOT, REQUIRED only for hard constraints where violation causes failure.

Do not use modifiers for preferences or defaults. If every instruction uses MUST, none stand out.

Terminology Consistency

Choose one term per concept and use it throughout.

Good: Always "API endpoint" Avoid: Alternating "API endpoint", "URL", "route", "path"

Structural Optimization

Place critical constraints first. Most important information at top of file.

Use progressive specificity. Global rules first, then domain-specific, then file-specific.

Separate concerns cleanly. One section per topic. Do not mix testing rules with deployment procedures.

End sections decisively. No trailing "etc." or "and more."

Common Anti-Patterns

Language Anti-Patterns

Suggestion language:

  • Avoid: "Consider using async/await"
  • Good: "Use async/await for I/O operations"

Vague quantifiers:

  • Avoid: "Usually validate input"
  • Good: "Validate input at API boundaries"

Ambiguous conditionals:

  • Avoid: "Add logging when appropriate"
  • Good: "Log errors with stack traces. Omit logging for expected control flow."

Multiple options without default:

  • Avoid: "Use Jest, Vitest, or Mocha for testing"
  • Good: "Use Vitest for tests. Jest acceptable for legacy files."

Structural Anti-Patterns

Burying critical constraints:

  • Avoid: Long preamble, then critical requirement in middle
  • Good: Critical requirement first, context after if needed

Over-emphasis:

  • Avoid: Every other word bold
  • Good: Bold only for hard constraints where violation causes failure

Lists as default:

  • Avoid: Everything formatted as bulleted list
  • Good: Lists for discrete items, prose for relationships

Content Anti-Patterns

Repeating framework documentation:

  • Avoid: "React hooks let you use state and lifecycle in function components..."
  • Good: "Store form state in URL params, not local state"

Generic best practices:

  • Avoid: "Functions should be small and focused"
  • Good: "Limit API handlers to routing only. Move logic to services/"

Time-sensitive information:

  • Avoid: "Before August 2025, use legacy API"
  • Good: "Use v2 API at api.example.com/v2/"

Decorative content: Welcome messages, motivational statements, background history.

Hypothetical scenarios: "If we ever migrate to Postgres..." Address when actual, not hypothetical.

Optimization Techniques

Sentence Compression

Remove filler:

  • Before: "You should make sure to always run the test suite before committing your changes"
  • After: "Run pytest before committing"

Combine related instructions:

  • Before: "Use TypeScript. Add type annotations. Enable strict mode."
  • After: "Use TypeScript strict mode with explicit type annotations"

Command Specification

Full specification:

## Commands
- `pytest tests/ --strict-markers --cov=src --cov-report=html`: Run tests with coverage
- `dotnet build --configuration Release --no-restore`: Production build
- `npm run lint -- --fix`: Auto-fix linting issues

Not:

## Commands
Run pytest to test. Use dotnet build for building. Lint with npm.

平台分布

OpenCode

25.58%
按下载量换算65

Claude Code

25.42%
按下载量换算64

windsurf

18.05%
按下载量换算46

Cursor

13.98%
按下载量换算35

Codex

8.56%
按下载量换算22

Antigravity

3.04%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills