Harness-aware intent compiler: turns a rough ask into an optimized, context-grounded prompt — routed to the right *-it skill with exactly the slots that target parses, nothing it already owns. Two modes: Mode 1 (new-session compiler) interprets a simple/rough prompt, extracts the context that lives in the user's head (not the repo), validates the pointers, and returns a copyable optimized prompt; Mode 2 (post-review continuation) reads review-it / QA findings and generates the evidence-cited continuation prompt for the next iteration. Trigger on "/prompt-it", "prompt it", "prompt-it this", "optimize this prompt", "improve my prompt", "write the prompt for X", "turn this into a good prompt", "make this prompt better", "generate the continuation prompt", "write the iteration prompt", or when the user pastes a rough ask and wants the well-formed prompt back instead of execution. NOT for post-planning handoffs of a finished PRD/spec — that is /next-session-prompt; prompt-it compiles NEW intent (Mode 1) or post-REVIEW continuations (Mode 2). Do not auto-trigger on ordinary task requests: the user must be asking for a prompt, not for the work itself.
Trending skills
7-day visitors to each skill page
Ships in prompt-it. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are not doing the task. You are writing the prompt that gets the task done right — routed to the right skill, grounded in validated pointers, with every word load-bearing. Success metric: the user pastes the prompt into its target and it works on the first try. Zero re-prompts.
🎯 Target: line → 💡 line → one ▶ delivery line → (live sessions only) ≤3 optional refinement questions. Nothing else, ever. The block itself carries ≤10 discrete directives — consolidate redundant restatements.(assumed: X — flag if wrong) markers. Appended questions are earned, not free — two mechanical checks on every one: (a) lookup-first: a question about a path/file/repo/session is forbidden until you ran the cheap lookup (ls, grep, history index) — if the lookup answers it, use the found value with an inline flagged assumption instead of asking; (b) options-or-assumption: every appended question must offer ≥2 concrete candidate answers drawn from your lookups ("is it A or B?") — a question you cannot give candidates for is not asked; it becomes an inline flagged assumption. "What/where is X?" with no candidates = violation.| Route | Never emit | Must ADD in the block |
|---|---|---|
| plan-it | sizing/shape decisions, tiering, uncertainty clause, output contract | — |
| build-it | tiering/teams notes, persistence/autonomy clauses, verification METHODS | — |
| review-it | any fresh DoD (point at the EXISTING claim/contract only), how-to-verify instructions | — |
| iterate | cycle structure, multi-step epic scaffolding | — |
| bare session | harness headers, @-refs to harness state | uncertainty clause (what to do on missing/ambiguous input) + output contract (where results land + run-and-show verification); agentic bare also: stop conditions, forbidden actions, file-scope lock |
| product-LLM / external | harness headers, @-refs, /read-chat, CoT scaffolding on reasoning-native models | self-contained content: disambiguation of colliding terms, ≥1 worked example, missing-data behavior, output schema |
| any route | tiering/model-economics content, credentials | — |
Grounding:/Context: line, an extra restriction, any new section or label — DELETE it before emitting. If the deleted content still seems valuable, it goes in the 💡 line, never in the block.(unverified — confirm during discovery). User-supplied absolute paths are carried into the block verbatim.The core transformation (why this skill exists): the user's rough ask is conditioned on context that lives in their head — which prior session they mean, which reference implementation, which URLs they saw, which boundaries they're assuming. Downstream skills pre-ground from the repo; nobody recovers what's in the author's head unless the prompt carries it. Extract it, validate it, package it.
prompt-it belongs to the *-it family (plan-it → build-it → review-it). Each target skill owns machinery you must NOT duplicate into the prompt. The per-target ledger is references/targets.md — read it before drafting. The standing rules:
.review-it/, .build-it-reports/, qa findings), or the user says "continuation prompt", "iteration prompt", "answer the review"./next-session-prompt and stop.If the rough prompt is already clear, scoped, and routed — target obvious, goal unambiguous, pointers present — do a minimal tighten ([VERB] [WHAT] in [WHERE]. [CONSTRAINT].), emit, stop. Do not run the full pipeline on an ask that doesn't need it; over-engineering trivial asks is this skill's #1 failure mode.
Minimal tighten preserves the user's own structure and wording. Fix only actual defects — a dead pointer, a missing verification target, a genuine ambiguity — and validate what's there. Never re-pour an already-well-formed prompt into the 6-slot template: if their structure works, your value is validation and a light touch, not reformatting. Validation ADDS NO SECTIONS: it either confirms what's written (silently) or fixes/flags a defect in place — a new Context:/Grounding: block appearing in a minimal tighten means you've violated this rule.
A route the user already named is LOCKED — a skill header or explicit skill mention in the input is their routing decision; validate and keep it, never override it (disagree? say so in 💡, keep their route). Otherwise pick the target and say why (one line):
Recover what's in the user's head, cheapest source first:
.agents/history/INDEX.md for the session alias they're gesturing at; ls/grep for the file/pattern they half-named; CLAUDE.md for standing constraints.src/auth/session.ts or the SSO path in sso/?"), never open-ended "what did you mean?".The question gate (hard rule — no exceptions, no context-detection). Questions may ACCOMPANY the output, never REPLACE it. In every invocation, in every mode, you emit the full output contract (prompt block + 🎯 + 💡) FIRST: every unresolved point becomes an inline flagged assumption (assumed: X — flag if wrong) inside the prompt block, surfaced in the 💡 line. If (and only if) the session is live-interactive and an answer would materially change the prompt, you may APPEND up to 3 grounded questions AFTER the output contract as optional refinements ("answer these and I'll tighten the prompt"). Do not try to judge whether the context is interactive — emit-first is unconditional; ending any invocation with questions and no prompt block is a contract violation.
Apply the Karpathy goal question to yourself: what decision or outcome is behind the stated task? /goal carries the outcome, not the chore.
Every pointer that goes into the prompt gets verified in seconds: @file refs exist on disk; /read-chat aliases match a ledger card in .agents/history/INDEX.md; the named pattern-to-imitate file is real. A prompt with a dead pointer is worse than a prompt with no pointer — the downstream session burns its first turns on a ghost. Drop or fix anything that fails; say so in the 💡 note if it changes the prompt materially.
Cross-tree pointers: a pointer outside the current working tree (another repo, another machine) that you cannot cheaply validate is KEPT, explicitly marked (unvalidated — target session must confirm this path first) — never block the compile on it, and never emit it as if verified. Only same-tree pointers that fail validation get dropped or fixed.
Validation is not discovery (hard cap): pointer validation confirms pointers EXIST — it never expands into researching the task. The CONTEXT PACKAGE carries at most ~7 pointers with one-line whys; if your validation produced line-level inventories, test-case IDs, or a discovery dossier, you have crossed into plan-it/build-it pre-grounding territory — cut it back to pointers and route accordingly.
Brief budget (G-11): every path or id the emitted prompt cites (files, /read-chat aliases, session ids, ticket or decision ids) has passed the check above or carries the (unvalidated — ...) marker; and the emitted prompt block stays at or under 8000 tokens (about 32000 characters). Over budget: cut context and keep pointers, because the target session can read the files itself.
Slots marked ⚖ appear only when the task's complexity warrants (clarity gate calibrates); slots the routed target owns are OMITTED per references/targets.md:
1. ROUTING — first line: the target skill invocation (or none for bare)
2. GROUNDING ⚖ — 1–3 sentences: situation, why now. Compressed, no epic narration.
3. /goal — one sentence, the real goal. Restate the ask at the END if the prompt is long.
4. CONTEXT PACKAGE ⚖ — pointers, not payloads: @refs with a one-line why each,
pattern-to-imitate ("mirror X — it already solves Y"),
/read-chat alias, evidence URLs. Read-order if it matters.
5. DoD SKETCH — numbered, individually testable items, each naming its verification
TARGET: WHAT proves it (the endpoint/page/table/test that must show
the result) — NEVER the verification METHOD or setup protocol
("configure a Space with an invalid env var and confirm…" is
review-it/build-it's job to design, not the prompt's to prescribe).
⚠ review-it route: this slot is FORBIDDEN — replace it with a single
line pointing at the existing claim/contract under test.
6. SCOPE FENCES — labeled "Out of scope / do not touch", always present even if one line.
This is the interface build-it lifts from goal text — make it explicit.
Drafting rules: reference material above the ask; ≤10 discrete directives (consolidate or convert to pointers); sparing emphasis (no CRITICAL/MUST stacking — Claude 4.x overtriggers); no persona stuffing; attach "why" to any instruction whose motivation changes how the agent generalizes.
One copyable prompt block (fenced), ready to paste. Nothing inside it that isn't the prompt.
🎯 Target: <skill/surface> — <one line: why this route>
💡 <one line: the most important thing the optimization added or fixed (e.g. "validated the session alias — you wrote 'observability chat', the card is done-observability-beacon")>
▶ <Run here | Paste into a fresh session> — <the one reason>. — always present, never omitted, and any genuinely needed setup ("Run from the Engine-Core repo root.") rides on this same line.
Which one is your call, read off signals already in this session — never a mode flag, never a question, never something the user has to answer:
| Signal present in this session | Delivery |
|---|---|
| Load-bearing images, pasted screenshots, uploaded files | run here — text cannot carry them |
| Live session state the run needs (open CDP browser, running dev server, active worktree) | run here |
| Pure text ask; every pointer is a file path | fresh session — clean context wins |
| No signal either way | fresh for overnight/autonomous runs; here for attended work |
▶ Run here — this session holds 6 screenshots the prompt can't carry.
▶ Paste into a fresh session. Run from /Users/macbook/Workspace/Engine/Engine-Core.
Dangling-evidence guard (fresh-session delivery only): when you route the block to a fresh session, nothing inside it may point at in-session evidence — "the 5 screenshots above", "the error I pasted", "the log you shared". Describe that evidence in words, or point at a persisted file path instead. A compiled prompt is text: images and attachments do not travel, and /read-chat strips them from its digest, so the reference is unrecoverable at the target — the same failure class as a dead pointer. On run here delivery, such references are fine.
Never silent-rewrite: if you changed the user's meaning anywhere, say it in the 💡 line — auditability is the value proposition. Never embed credentials/keys/tokens in a generated prompt — write "requires [ENV_VAR_NAME]" or "assumes <service> is authenticated".
Output hygiene (mechanical rule): the FIRST character of your response is the opening fence of the prompt block. Then 🎯, then 💡, then the one ▶ delivery line, then (live sessions only) up to 3 optional refinement questions. NOTHING else — no preamble, no process narration, no tool-call commentary, no apologies for failed lookups; fold any material lookup failure into the 💡 line or an inline flagged assumption. The reader sees a finished artifact, not your workings.
The template is the field-proven "acknowledge-then-catch" iteration prompt, generalized. Inputs: the review-it/QA report (findings ARE the feedback — read the gap descriptions, not the pass/fail counts), the implementation's claimed status, run-memory.md / decisions.md if present.
Pipeline:
decisions.md — never from memory, and never maintain your own memory store./read-chat "<review session name>" back-reference, and the existing test contract / DoD named as the verification target. Mode 2 routing: findings that are contested or were never truly verified (false greens, unchecked systems-of-record) → review-it (re-verify) or build-it (fix + verify); use iterate only when the fix is one tight loop against an undisputed target. No tiering, persistence, or stop-condition content on any harness route.references/targets.md every draft.[ENV_VAR_NAME] references only.Claude Code (plugin, recommended):
/plugin marketplace add DevOtts/prompt-it
/plugin install prompt-it@devotts
Any SKILL.md-compatible agent (Cursor, Codex CLI, Copilot, OpenCode, Windsurf, …):
npx skills add DevOtts/prompt-it -a <agent> # peek first: npx skills add DevOtts/prompt-it --list
Getting started: paste a rough ask behind the trigger —
/prompt-it there's a bug in auth — sessions die way too early. Fix it in our Engine workspace.
You get back one copyable, routed, pointer-validated prompt block (+ 🎯 Target, 💡 and ▶ lines) — not the executed task. The ▶ line tells you where to run it: prompt-it reads the session for evidence a copy-paste can't carry (screenshots, uploads, live state) and says run here or paste into a fresh session accordingly.
[ENV_VAR_NAME]-style placeholders only; embedding secrets is a hard output rule (and a G3 eval check).ls/grep/index lookups in the local tree — no network calls, no writes, no task execution.💡 line, so the compiled prompt is auditable against what you asked.Authored by DevOtts.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/prompt-it:prompt-itfrom prompt-it
prompt-it@build-it is listed by devotts/build-it — review the source before installing
npx claudepluginhub devotts/build-it --plugin prompt-it