mimimaster/piwin/optimize-prompt
Claude Code and agent skill by mimimaster/piwin
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Refactor system prompts, tool descriptors, and agent instructions into high-density, contract-driven, XML-structured production specifications. Trigger via /optimize-prompt.
Install
npx vskill@latest install mimimaster/piwin/optimize-promptSKILL.md
Optimize Prompt
Goal
Transform conversational, bloated, or unstructured prompts into high-density, contract-driven production specifications with zero persona fluff, zero strawman arguments, and strict XML/bullet boundaries.
Done means
- 4-Point Diagnostic Audit executed on the original prompt:
- Persona & Filler Bloat: Strip fluff like "You are a world-class...", "Take a deep breath...", "Please be smart/helpful".
- Strawman Lecturing: Eliminate "why not" preambles, comparisons with non-existent competitors, or defensive justifications; state target architecture affirmatively.
- Attention Dilution: Convert dense prose paragraphs (wall-of-text) into structured, scannable bullet points.
- Missing Data Envelopes: Wrap dynamic inputs, tool results, and output schemas in standard
<tag>boundaries.
- Production-Grade Rewrite Delivered:
- English Runtime Core: Ultra-lean, high Token-density English instructions for model execution.
- Structured Architecture: Clear breakdown across
Scope / Trigger,Data Contracts,Hard Negative Boundaries, andOutput Format. - Colocated Chinese Translation: 1:1 Chinese explanatory translation placed directly underneath for engineering review.
- 1:1 Side-by-Side Comparison:
- Direct before vs after diff clearly identifying pruned implementation leaks and token savings.
- Verification Probe:
- Concrete test/probe case or edge scenario demonstrating that the optimized prompt eliminates failure modes (e.g. anti-hallucination, anti-deadlink, double-rendering).
Stop when
- Prompt is already at peak density (<100 tokens, XML-isolated, bullet-point contracts) — report that no change is necessary.
- Operational intent or domain boundaries are ambiguous — clarify the intended behavior; do not invent domain invariants.
Constraints
- Zero Persona / Emotional Fluff: Models execute operational rules, not roleplay.
- Zero Negative Strawmen: Never write "Unlike other bad frameworks..." or "We do this because X is stupid". Only declare what this system is and does.
- No Implementation Leaks: Never expose host internals (e.g. database schema, UI CSS animations, scheduler algorithms) to model-facing tool descriptors.
- Dual-Language Colocation: English for production runtime; Chinese for review and documentation.
Verify
- Re-check the rewritten prompt against:
- Token count reduction (typically 30%–60% savings).
- Strict XML tag closure and markdown syntax validity.
- Presence of explicit negative boundaries (what NOT to do) alongside positive capabilities.
Security
- Security scanPassed, 90 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 repositoryCheckingapps/cli/skills/optimize-prompt/SKILL.md
Popularity
- Repository stars
- 131
- Repository forks
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/mimimaster/piwin/optimize-prompt)