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

enhance-prompt增强提示

Agent Skill

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

总安装

722

周安装

31

GitHub Stars

公开资料未说明

下载量

253
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

简介

enhance-prompt 用于辅助提示词、系统指令和工作流模板的整理,适合在 Codex、Claude、Cursor、Gemini CLI 中规范任务边界和输出格式。

  • 适用于优化 Agent 行为约束、操作步骤拆分和提示词复用性提升等场景。
  • 能生成结构化指令模板并支持高风险操作的确认机制设计。
  • 使用时需保留真实业务约束,避免将示例当作硬规则。
  • 涉及自动执行或外部工具调用时应明确权限边界和失败处理方式。

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

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