prompt-polish
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 36 GitHub stars
Code Pass
- Code scan — Scanned 1 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Agent skill that rewrites rough prompts into polished, model-specific prompts — grounded in the official Anthropic prompting guides
prompt-polish
An agent skill that rewrites rough prompts into polished, model-specific prompts — grounded in the official Anthropic prompting guides, not prompt-engineering folklore.
prompt-polish/[MODEL]/[YOUR ROUGH PROMPT]
Why
Most prompt advice is model-agnostic, which makes it wrong for any specific model. Frontier models have diverged: Claude Fable 5 degrades when you micromanage it — the official guide says prompts written for prior models are often too prescriptive and hurt output quality. Claude Opus 4.8 follows instructions so literally that implicit scope is a bug. The same "improvement" helps one model and breaks the other.
prompt-polish encodes each model's official prompting guide as a separate doctrine file and routes your prompt through the right one. No folklore, no cargo-cult — every transformation traces to a published source.
The second idea it encodes: polishing is mostly subtraction. Modern models rarely fail from missing instructions. They fail from missing intent, instruction noise, and habits carried over from older models. The polished prompt is the smallest set of words that makes the target model's defaults work in your favor.
Install
With the skills CLI — works for Claude Code, Codex, Cursor, Windsurf, and every other agent it supports:
npx skills add mfarzanansari/prompt-polish
Add -g for a global (user-level) install instead of per-project, and update later with npx skills update prompt-polish.
Or clone directly:
# Claude Code
git clone https://github.com/mfarzanansari/prompt-polish ~/.claude/skills/prompt-polish
# Codex CLI
git clone https://github.com/mfarzanansari/prompt-polish ~/.codex/skills/prompt-polish
Optional Praxis companion
Praxis Workflow OS defines and approves workflow or task contracts. Prompt Polish can optionally materialize an approved contract as a concise prompt for a supported named model. Praxis remains fully useful without Prompt Polish, and Prompt Polish remains fully useful without Praxis; each project is installed and versioned independently.
To use both globally:
npx skills add mfarzanansari/praxis-workflow-os --skill '*' -g
npx skills add mfarzanansari/prompt-polish -g
When handing off from Praxis, label the input as an approved Praxis contract and include the target model, task form, constraints, approval gates, and done-condition. Prompt Polish adapts the wording without redesigning the workflow.
Usage
Any of these shapes work:
prompt-polish/FABLE 5/review my api code and fix whatever is broken
prompt-polish/OPUS 4.8/build me a landing page for my coffee brand
prompt polish / fable / summarize this contract for my cofounder
polish this for Opus: extract the line items from these invoices
You get back the polished prompt in a copy-ready code block — plus, only when material, a Fill in: line for placeholders you need to complete and a one-line Note: (for example, a refusal-risk warning or an API effort recommendation that can't live inside a prompt). No lecture about what was changed unless you ask.
How it works
- Parse and route — model aliases resolve to one doctrine file; only that file is loaded.
- Diagnose — the raw prompt is classified by form (one-off message vs. system/harness prompt), class (ask · build · agent · review · design · pipeline), gaps (missing intent, deliverable, done-condition), and noise (instructions the target model makes redundant).
- Size — three tiers: light touch, structured, full agentic harness. The smallest tier that fits wins; a two-line question never becomes an operating manual.
- Rewrite — using the doctrine file's decision table and snippet library of official, Anthropic-tested language.
- Gate — a hard gate guarantees the task is never changed, nothing is invented (unknowns become
[BRACKETED PLACEHOLDERS]), and no chain-of-thought-extraction language survives.
prompt-polish/
├── SKILL.md # model-agnostic contract: parsing, diagnosis, tiers, gates
├── references/
│ ├── fable-5.md # Claude Fable 5 doctrine
│ └── opus-4-8.md # Claude Opus 4.8 doctrine (also serves 4.7 requests)
└── agents/
└── openai.yaml # Codex interface metadata
Supported models
| Model | Doctrine | Source |
|---|---|---|
Claude Fable 5 (claude-fable-5) |
references/fable-5.md |
Prompting Claude Fable 5 |
Claude Opus 4.8 (claude-opus-4-8) |
references/opus-4-8.md |
Prompting Claude Opus 4.8 |
| Claude Opus 4.7 | routes to opus-4-8.md |
closest published doctrine; noted in output |
Unsupported models are declined honestly — the skill never fakes model-specific guidance.
Design principles
- Official doctrine only. Every transformation traces to a published guide. Adding a model starts with finding its guide, never with writing rules from memory.
- Polishing is subtraction. Every instruction in the output must change the target model's behavior, or it gets deleted.
- Smallest tier that fits. Inflation — turning a question into an agent operating manual — is treated as a bug, not thoroughness.
- Never drift the task. Same task, better odds. The hard gate rejects rewrites that add deliverables, audiences, or quality bars the user never asked for.
- Placeholders over inventions. What only the user knows becomes a bracketed placeholder. Nothing is ever fabricated to make a prompt look complete.
Extending to a new model
- Find the model's official prompting guide.
- Distill it into
references/<model-slug>.mdfollowing the existing structure: model profile → free-by-default list → decision table → snippet library → skeletons → final check. - Add an alias row to the routing table in
SKILL.md.
License
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found