# Prompt Rewriter

> Use at project close or after a major correction to rewrite the final prompt that would have solved the task cleanly from the start.

- Skill: `wyattjy/prompt-rewriter-2` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add wyattjy/prompt-rewriter-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wyattjy/prompt-rewriter-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: WyattJY (https://skillmd.com/u/wyattjy)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/wyattjy/prompt-rewriter-2

---

# Prompt Rewriter
## Workflow
1. Read raw requirement, baseline interpretation, actual path, user feedback, final deliverable, and representative bugs.
2. Identify where the first prompt under-specified constraints, taste, evidence, file paths, or success criteria.
3. Write a concise final prompt with scope, artifacts, constraints, checks, and stop conditions.
4. Save to the case FINAL_PROMPT section and SQLite final_prompts.
## Hard rules
- Do not rewrite history; preserve raw wording separately.
- Include verification commands or acceptance criteria when relevant.

