prompt-optimizer
10
总安装量
8
周安装量
#29712
全站排名
安装命令
npx skills add https://github.com/aleister1102/skills --skill prompt-optimizer
Agent 安装分布
trae
8
opencode
8
cursor
8
kiro-cli
8
codex
8
github-copilot
8
Skill 文档
Prompt Optimizer (EARS)
Goal
Transform fuzzy asks into clear, testable requirements and a production-ready prompt, using EARS syntax with domain theory support.
Guardrails
- Keep statements behaviorally testable; prefer measurable thresholds over adjectives.
- One action per EARS statement; avoid compound sentences.
- Include edge/error cases alongside happy paths.
- Do not invent domain policies; ground in recognized frameworks only.
- Examples must use realistic data (no placeholder lorem).
Workflow
- Assess the ask.
- Note missing triggers, actors, constraints, metrics.
- Identify domain (productivity, UX, security, etc.).
- Draft EARS statements.
- Use patterns: Ubiquitous, Event-driven, State-driven, Conditional, Unwanted-behavior.
- Expand compound requirements into atomic items.
- Ground with domain theories.
- Pick 2â4 relevant frameworks from references.
- Map each to specific behaviors/constraints (e.g., Hickâs Law â limit choices, BJ Fogg â prompt + ability + motivation).
- Add concrete examples.
- Provide success, failure, and edge scenarios with realistic inputs/outputs.
- Assemble the enhanced prompt.
- Structure with Role, Skills, Workflows, Examples, Formats.
- Call out required inputs and expected outputs clearly.
- Present results.
- Show issues found, EARS list, chosen theories, final prompt, and usage guidance.
Output Template
## Original Requirement
<user text>
**Issues:** <bulleted gaps/ambiguities>
## EARS Transformation
1. ...
## Domain & Theories
- <Theory> â <application>
## Enhanced Prompt
# Role
...
## Skills
- ...
## Workflows
1. ...
## Examples
- Success: ...
- Failure: ...
- Edge: ...
## Formats
- Output shape, file types, style/constraints
**How to use:** <brief guidance>
References (load when needed)
prompt-optimizer/references/ears_syntax.md: full EARS patterns and rewrite tips.prompt-optimizer/references/domain_theories.md: theory catalog by domain.prompt-optimizer/references/examples.md: complete before/after transformations.prompt-optimizer/references/advanced_techniques.md: multi-stakeholder, non-functional, complex logic.