matrixx0070/sudo-ai/ai-prompt-design
Claude Code and agent skill by matrixx0070/sudo-ai
- community
Checking that the SKILL.md file is still in the repository.
Design and iterate a production LLM prompt with clear structure, few-shot examples, a strict output contract, and failure handling.
Install
npx vskill@latest install matrixx0070/sudo-ai/ai-prompt-designSKILL.md
The same SKILL.md was published earlier as matrixx0070/sudo-ai/ai-prompt-design.
When to use
Use this when you are turning a fuzzy task ("summarize tickets", "extract fields", "classify intent") into a prompt that ships behind an API and must behave the same way on the 10,000th call as the first.
Not for: one-off exploratory chats, or picking a model/price (see ai-cost-latency), or evaluating quality at scale (see ai-eval-harness).
Method
- Write the task as one sentence: input → transformation → output. If you cannot, the prompt is not the problem yet.
- Choose an output contract FIRST: JSON schema, enum, or delimited text. Decision point: if a downstream system parses it, use JSON and forbid prose.
- Draft the skeleton in fixed order: role → task → rules → input → output spec. Keep instructions imperative and deduplicated.
- Add 2-5 few-shot examples ONLY if zero-shot fails on your hard cases. Decision point: if examples exceed ~30% of context, switch to fine-tuning candidacy (see
ai-fine-tune-plan). - Handle failure explicitly: define the exact output for "unknown", "input too long", and "policy violation". Never leave these implicit.
- Iterate against 10-20 saved hard cases, not vibes. Change one variable per round; keep a changelog.
- Freeze the prompt with a version string and hand the hard cases to
ai-eval-harness.
Example
Task: classify support message urgency.
Zero-shot mislabels outages as "high". Add one few-shot example pinning "service down for all users" → "critical". Re-run the 15 saved cases: 13/15 → 15/15.
Pitfalls
- Politeness padding. "Please try your best" adds tokens and nothing else. Cut it.
- Contradictory rules. "Be concise" plus "explain thoroughly" makes output nondeterministic. Rank rules; resolve conflicts.
- No unknown path. Models hallucinate a confident answer when the honest output is "cannot tell". Always give an escape value.
- Tuning on the demo case. Improving one example while silently regressing others. Always re-run the full hard-case set.
Output format
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ai-prompt-design/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/matrixx0070/sudo-ai/ai-prompt-design)