From mk
Refines a draft coding-agent prompt using a 5-step framework: decompose, detect ambiguity, scout (optional), map, and rewrite to a model-agnostic universal kernel.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mk:prompt-enhancer [prompt text] [--analyze] [--score] [--deep] [--save-to <path>]When to use
Use when refining a draft coding-agent prompt for clarity, structure, acceptance criteria, and model-agnostic framing. NOT for prompts from scratch (mk:brainstorming), plans/reviews (mk:elicit), implementation plans (mk:plan-creator), or general codebase scouting (mk:scout).
[prompt text] [--analyze] [--score] [--deep] [--save-to <path>]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Refine a draft user prompt using a 5-step framework — mode-select, decompose,
assets/output-template.mdeval/README.mdeval/baseline-results.mdeval/canary-01-vague-only.mdeval/canary-02-one-line-spec.mdeval/canary-03-long-unstructured.mdeval/canary-04-strip-model-coupling.mdeval/canary-05-already-good.mdeval/canary-06-refusal.mdeval/canary-07-deep-happy-path.mdeval/canary-08-deep-no-codebase.mdeval/canary-09-deep-boundary.mdeval/canary-10-default-vs-deep.mdeval/canary-11-architecture-review.mdeval/canary-12-research-prompt.mdeval/rubric.mdreferences/architecture-review-mode.mdreferences/context-safeguards.mdreferences/decomposition-checklist.mdreferences/deep-mode-scout.mdRefine a draft user prompt using a 5-step framework — mode-select, decompose,
detect, (scout if --deep), map, rewrite — grounded in 7 source docs
(Anthropic / OpenAI Codex / FactoryAI prompting + Anthropic context-engineering
--analyze.--score (auto-promotes to --analyze --score).--deep (opt-in only)./mk:prompt-enhancer [--analyze] [--score] [--deep] [--save-to <path>] [text].references/architecture-review-mode.md via --analyze --deep — it rewrites the prompt to ASK for a review; it never performs one (that is mk:review). Recipe is opt-in via those flags; default-mode output is unchanged.mk:brainstorming (technical) / mk:office-hours (product).mk:elicit.mk:plan-creator.mk:evaluate or mk:review.mk:scout directly.Mode-Select → Decompose → Detect → (Scout if --deep) → Map → Rewrite.
Mode selection + the arch-review / research recipes: references/mode-routing.md.
Step detail in references/decomposition-checklist.md, references/playbook.md,
references/context-safeguards.md, references/deep-mode-scout.md. Do not invent steps.
--analyze (include decomposition + detected issues + improvement suggestions).--score (add 1–10 quality score on the original prompt; auto-promotes to --analyze --score because score requires the rubric components).--deep (opt-in scout against allow-listed sources).--save-to <path> (default: active plan dir if any, else ${CLAUDE_PLUGIN_DATA}/...).The skill does not accept a --model flag. Per the synthesis report
(plans/reports/synthesis-260509-2058-prompting-framework.md), model
detection violates the model-agnostic mandate; dispatch by model-tier lives
in harness-rules.md Rule 5, not here.
Mode-aware. See assets/output-template.md for the templates.
| Flags | Output |
|---|---|
| (none) — default | Section 4 only — the Enhanced Prompt code block |
--analyze | Sections 1, 2, 3, 4 (decomposition + issues + suggestions + rewrite) |
--analyze --score | Sections 1, 2, 3 + Score: N/10 block + Section 4 |
--score (alone) | Auto-promoted to --analyze --score |
--deep (any mode) | Appends "Suggested context" sub-block to Section 4 when scout returns ≥1 hit |
Internal decomposition + detection still run in default mode (they feed the
rewrite) but are emitted only with --analyze. The rewrite's OUTPUT FORMAT line
always carries the auto-suggested Freedom level (LOW/MEDIUM/HIGH) and
Verbosity (terse/structured/confirmation) — see below.
references/mode-routing.md — mode-selection table (default / analyze / score / deep) + the arch-review and research recipes (links to architecture-review-mode.md).references/decomposition-checklist.md — 5 components + 10-item weakness checklist.references/playbook.md — improvement fixes, one per checklist item, with doc citation. Includes the deterministic Scoring Rubric used by --score.references/context-safeguards.md — 6 model-agnostic safeguards (right-altitude tone, identifier-based context, long-horizon defenses, tool-result clearing, bloat avoidance, eval discipline). Loaded JIT when input shows long-horizon signals or codebase-context references.references/deep-mode-scout.md — --deep allow-list, forbid-list, hard caps, fallback.Default mode (always):
[FILL-IN: <description>] placeholders.--analyze reveals them.)--analyze, emit ONLY the Section 4 code block. No Section 1/2/3 headings, no preamble prose, no score. The rewrite is the deliverable; everything else is diagnostics.--analyze mode (additional):
references/playbook.md), then the rewrite.--score requires --analyze. If --score is passed alone, auto-promote to --analyze --score (silent — score is meaningless without the rubric components on screen).references/playbook.md "Scoring Rubric". Never a vibes-based estimate. Show the breakdown alongside the integer.--deep mode (additional):
docs/project-context.md, CLAUDE.md, repo file-tree
paths, public docstrings. Default-deny everything else (especially .claude/memory/*,
.env*, tasks/, secrets).[FILL-IN: <desc> (suggested: <path>)]
brackets. The user is the source of truth.references/deep-mode-scout.md (never reads forbidden files).The Skill tool entry in allowed-tools is reserved for invoking mk:scout
under --deep only — not a license to spawn other skills.
Per skill-authoring (railroading anti-pattern), the rewrite suggests one of three modes in the OUTPUT FORMAT section. Auto-detect from task shape; the user can override.
| Detected signal | Suggested level | Rationale |
|---|---|---|
| Migration / destructive op / security fix / "do not deviate" wording | LOW | Fragile or sequenced — agent should follow exact procedure |
| Standard feature work, refactor with known pattern, bug fix | MEDIUM | Default — outcome-driven with back-compat fence |
| Open-ended exploration, design call, "explore" / "consider" verbs | HIGH | Judgment task — terse intent beats step-by-step |
Detection precedence: explicit user signal > destructive verbs > default to MEDIUM.
{plan-dir}/prompt-enhancer/<YYMMDD-HHMM>-<short-slug>.md.${CLAUDE_PLUGIN_DATA}/prompt-enhancer/<YYMMDD-HHMM>-<short-slug>.md.(Seeded — grow from observed failures.)
--deep "Suggested context" sub-block is the ONLY thing allowed to append after the rewrite in default mode.--score without --analyze is auto-promoted to --analyze --score. A bare score with no rubric breakdown is misleading; the user needs to see WHY they got 6/10.references/playbook.md "Scoring Rubric". Never round arbitrarily; never inflate to make the user feel good.<context> tags, no role-as-XML. Universal kernel only.apply_patch, "Reasoning: high"), STRIP these in the rewrite and surface as detection #10 in section 2 (only visible with --analyze).mk:brainstorming.injection-rules.md Rule 9).--deep does NOT read .claude/memory/*, .env*, tasks/, secrets.--deep suggestions live in [FILL-IN] brackets. Never auto-substitute.--deep aborts with SCOUT_BUDGET_EXCEEDED if caps hit; falls back to default.MEOWKIT_AUTOBUILD_MODE=MINIMAL downgrades --deep to default with a one-line note.mk:plan-creator for implementation plans.mk:elicit to stress-test with a reasoning method.--deep invokes mk:scout internally (filtered by allow-list).docs/project-context.md consumed when present; produced by mk:project-context.npx claudepluginhub ngocsangyem/meowkit --plugin mkTransforms raw prompts into professional-grade, codebase-aware instructions. Use when improving vague/incomplete prompts, adding codebase context, or crafting structured AI requests with templates.
Analyzes user prompts for clarity, scope, specificity, success criteria, and length; provides S/A/B/C/D/F scores and concrete suggestions. Rewrites prompts on request for better Claude Code results.
Analyzes and enhances AI prompt quality by detecting ambiguity, dispersion, and weak mandatory language. Includes scoring, categories, and deep analysis. Activated by 'verificar prompt' or 'avaliar qualidade do prompt'.