.claude/skills/prompt-optimization/SKILL.md
Provide systematic prompt optimization methodology to improve instruction quality while preserving original characteristics
npx skillsauth add chemistrywow31/A-Team Prompt OptimizationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provide systematic prompt optimization methodology, including optimization principles, common problem diagnosis, rewriting techniques, and quality checklists. Enable AI agent prompts to achieve optimal instruction effectiveness while preserving original role definitions.
This skill belongs exclusively to agents/optimization/prompt-optimizer.md
Optimize the expression method, not the content essence.
Checklist:
Transform abstract descriptions into actionable specific instructions.
Rewriting formula:
Abstract description → Specific action + Verifiable result
Remove words that don't add information value.
Checklist:
Use imperative sentences, directly tell the AI what to do.
Extract static, repetitive, or computable content from prompts into executable scripts. Replace verbose data with compact script-generated output.
Symptom: Using verbs like "handle", "manage", "be responsible for" that have no specific behavioral direction
Before:
Responsible for handling user feedback
After:
Collect user feedback, classify into bug/feature/question categories, transfer bugs to developers, record features in backlog, respond directly to questions
Symptom: Assuming readers know certain unstated information
Before:
Review according to standard process
After:
Review using the following process: 1. Check format completeness 2. Verify reference paths 3. Confirm terminology consistency
Before: "Carefully and thoroughly check every detail to ensure high-quality output" / "Tasks will be assigned to the corresponding executor"
After: "Check each field against template requirements" / "Assign tasks to the corresponding executor"
Symptom: Using conditions that cannot be evaluated like "if needed", "when appropriate"
Before:
Perform additional validation if needed
After:
When input data comes from external sources, execute format validation
Before: "You are a content reviewer. Your role is to review content. You are responsible for ensuring content quality." / "JSON is a data format that uses key-value pairs. You need to output results in JSON format."
After: "You are a content reviewer, responsible for checking and flagging non-compliant content according to quality standards." / "Output format: JSON"
Symptom: Prompt contains data tables, repetitive patterns, or reference lists exceeding 200 tokens that a script can generate deterministically
Before (≈40,000 tokens):
Full API specification listing 127 endpoints with parameters, validation rules, response schemas, and examples... [thousands of lines of structured data]
After (≈1,500 tokens):
python extract_api_spec.py --summaryoutput: 127 endpoints across 5 categories. Per entry: method, path, required params, response type.
See rules/prompt-engineering-patterns.md for full rationale. Quick reference:
| # | Pattern | Before | After |
|---|---------|--------|-------|
| 9 | Instructional-only constraint | "Do not guess when you don't know" | Add ## Uncertainty Protocol section with INSUFFICIENT_DATA escape hatch |
| 10 | Urgency over-triggering | "You MUST ALWAYS use the search tool" | "Use the search tool when the question requires information not in context" |
| 11 | Missing escape hatch | "Produce a technical specification" | Add "When requirements are insufficient, report INSUFFICIENT_DATA" |
| 12 | Exploration trap | "If in doubt, research further" | "Choose an approach and commit. Revisit only when new evidence contradicts" |
For each .md file, check sequentially:
CRITICAL, MUST, ALWAYS, NEVER) for non-safety preferencesWhen time is limited, process in this priority order:
## Responsibilities
This role is mainly responsible for managing the team's daily work. They handle various task assignments and ensure work can proceed smoothly. If problems are encountered, they also coordinate appropriately.
## Responsibilities
1. Receive upstream tasks and decompose into assignable subtasks
2. Assign subtasks based on each agent's responsibility scope
3. Track completion status of each subtask
4. When dependency conflicts exist between subtasks, adjust execution order or reassign
5. Aggregate all subtask outputs, verify completeness, and deliver downstream
| Original Problem | Optimization Method | |-----------------|---------------------| | "mainly responsible for managing" | Remove redundancy, list specific actions | | "handle various task assignments" | Concretize into "receive→decompose→assign" | | "coordinate appropriately" | Replace vague word with specific: "adjust order or reassign" |
data-ai
Evaluate whether a proposed agent graph supports safe handoffs and useful parallel work
testing
Extract precise team requirements through staged, single-direction questioning
content-media
Search external sources for reusable skills before designing a new one
data-ai
Create or improve a skill by using the system skill when available and the legacy local bundle as fallback