mk:prompt-enhancer — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited mk:prompt-enhancer (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Refine a draft user prompt using a 5-step framework — mode-select, decompose, detect, (scout if --deep), map, rewrite — grounded in 7 source docs <!-- research-citation --> (Anthropic / OpenAI Codex / FactoryAI prompting + Anthropic context-engineering + skill-authoring rules). The rewrite uses the universal kernel only (the rule is Hard Constraints item 4).
--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 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-treepaths, 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.
zero-match, follow the Fallback Policy in 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.--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.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.