/kargnas-skills:skill-prompterfrom kargnas-skills
Rewrites SKILL.md steps with RFC 2119 wording, explicit tools, VERIFY gates, and dry-run checks. Also owns skill name + frontmatter description wording. Use when hardening skill prompts or reviewing descriptions.
Ships in kargnas-skills. 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.
Read when SKILL.md points to them; scripts run unread.
ONE SENTENCE: Rewrite any AI agent skill's step wording so every step is executed 100% — even by weaker LLMs that skip steps.
When starting, let the user know in one line that this skill is being used.
Two skills cover the skill lifecycle. Use the right one — they are not interchangeable.
| Concern | Owner |
|---|---|
Step wording, RFC 2119 keywords, atomic decomposition, tool naming, VERIFY gates, decision tables, subagent delegation, escape hatches, dry-run compliance, skill name + description wording (trigger surface) | skill-prompter (this skill) |
| Directory layout, file separation, references/scripts/assets organization, modular architecture, merge/split decisions, anti-patterns of structure | skill-manager |
Decision rule:
If the request is purely structural, delegate to skill-manager instead of proceeding here.
The skill name + frontmatter description pair is the trigger surface — routing-prompt wording owned by this skill. When naming a skill or writing/reviewing a description (whether invoked directly or routed from skill-manager), MUST read references/description-rules.md and apply its rules: name-first delta principle, length proportional to bundled sub-features, post-cutoff proper nouns spelled verbatim with category glosses and user-spoken variants, boundary clauses for sibling families.
Structural frontmatter constraints (name charset/length caps, the 1024-char description cap, the metadata.env manifest) remain with skill-manager.
Weaker LLMs skip steps for these reasons (in order of frequency):
| Cause | Fix |
|---|---|
| Step is vague/ambiguous | Make it atomic with ONE concrete action |
| Step has no explicit tool call | Name the exact tool/command |
| Step depends on implicit knowledge | Provide inline context |
| Too many steps in sequence exhaust context | Delegate to subagent |
| No checkpoint forces continuation | Add VERIFY gate after each step |
| Conditional logic is complex | Use decision table, not prose |
| Step output format is unclear | Show exact output template |
MUST execute every phase below in order. Do NOT skip any phase.
Action: Resolve the target skill's installed name, then initialize the improvement tracking system.
{SKILL_NAME} in every tracker call. Do NOT assume a filesystem/category path form like category:skill or category/skill; many installed skills are addressed by their bare tool name (for example report-builder, message-retriever, platform-send).# Initialize tracking for target skill
python3 {SKILL_PROMPTER_DIR}/scripts/tracker.py init --skill "{SKILL_NAME}" --original "{ORIGINAL_SKILL_PATH}"
{SKILL_PROMPTER_DIR}/data/improvements.json| init result | Action |
|---|---|
Prints initialized: {SKILL_NAME} | Continue to Phase 1 |
Exits 1 with already tracked | Run tracker.py show --skill "{SKILL_NAME}". Continue that entry, or rerun init with --reset only after the user agrees to discard its records |
VERIFY: tracker.py prints initialized: {SKILL_NAME}, or the existing entry is being continued.
Action: Read the target skill's SKILL.md and ALL referenced files.
scripts/, references/, assets/)SKILL.md text immediately. Minor session lessons MUST go to the target skill's declared append-only sink when that governance says so.Analyze and record:
python3 {SKILL_PROMPTER_DIR}/scripts/tracker.py analyze --skill "{SKILL_NAME}" \
--total-steps {N} \
--has-tool-calls {true|false} \
--has-checkpoints {true|false} \
--has-rfc2119 {true|false} \
--has-subagent-delegation {true|false} \
--has-decision-tables {true|false} \
--vague-steps "{comma-separated step numbers}" \
--notes "free text observations"
VERIFY: tracker.py prints analysis summary.
Action: For each step in the original skill, classify its compliance risk.
Classification criteria:
| Risk Level | Criteria | Action Required |
|---|---|---|
| HIGH | Step has no explicit tool/command, OR is vague, OR has complex conditionals | MUST rewrite |
| MEDIUM | Step has tool call but no VERIFY gate, OR output format unclear | SHOULD add checkpoint |
| LOW | Step is atomic, has tool call, has checkpoint | No change needed |
python3 {SKILL_PROMPTER_DIR}/scripts/tracker.py weakpoints --skill "{SKILL_NAME}" \
--high "{step_numbers}" \
--medium "{step_numbers}" \
--low "{step_numbers}"
VERIFY: All steps are classified. No step is unclassified.
Action: Read the improvement reference patterns.
MUST read these files (use subagent if context is tight):
{SKILL_PROMPTER_DIR}/references/rewrite-patterns.md — atomic step patterns{SKILL_PROMPTER_DIR}/references/compliance-checklist.md — per-step compliance checklistExtract applicable patterns for each HIGH and MEDIUM risk step.
VERIFY: You can name the specific pattern to apply to each weak step.
Action: Create the improved SKILL.md. Apply ALL of these rules:
Each step MUST have exactly ONE action. If a step has "and" or "then", split it.
BAD: "Read the config file and update the database"
GOOD: Two separate steps:
Step 3: Read config file
Step 4: Update database using values from Step 3
Every step that performs an action MUST name the exact tool or command.
BAD: "Check the website status"
GOOD: "Run: `curl -s -o /dev/null -w '%{http_code}' {URL}` to check HTTP status"
Use RFC 2119 keywords to eliminate ambiguity:
BAD: "You can optionally verify the output"
GOOD: "MUST verify output matches expected format before proceeding"
Every step MUST end with a VERIFY line that states the observable success condition.
**VERIFY**: {command} prints "{expected}" OR file {path} exists with size > 0
Steps that consume >2000 tokens of context SHOULD be delegated to a subagent. Every delegation MUST include a timeout fallback so the workflow never stalls. Verification delegations MUST be black-box: pass only the skill text, scenario, allowed tools, and required signal schema. MUST NOT pass expected answers, before/after examples, weak-point notes, diff summaries, or few-shot hints.
**DELEGATE TO SUBAGENT**:
Task: "{description}"
Input: {what to pass}
Expected output: {what to get back}
Max tokens: {budget}
**IF TIMEOUT**: Subagent does not return within 60s → {inline fallback action}
Replace any if/else/conditional prose with a decision table.
BAD: "If the file exists and is not empty, read it. Otherwise, if it's a new run, create it. If it exists but is corrupted, delete and recreate."
GOOD:
| Condition | Action |
|-----------|--------|
| File exists AND size > 0 | Read file |
| File does not exist | Create new file |
| File exists AND size = 0 | Delete and recreate |
Long reference content MUST NOT be inlined. Instead:
**LOAD REFERENCE**: Read `references/{filename}.md` for {specific section} details.
Each step MUST have a unique ID for cross-referencing.
### Step 3 [S3]: Validate Input Data
...
(References output from [S1])
Every step with external dependencies MUST have a fallback.
**IF BLOCKED**: {tool} fails → {fallback action}. Do NOT stop the workflow.
MUST NOT include example inputs/outputs that function as answer keys for test cases. Format examples show STRUCTURE only, never actual task content. Verification prompts MUST be stricter than documentation examples: they MUST NOT include sample successful outputs, expected artifacts, label hints, or "this should fail/pass because..." explanations.
BAD: Example: Input: "translate hello" → Output: "안녕하세요"
GOOD: Example format: Input: "{user_request}" → Output: "{translated_text}"
The improved skill MUST NOT exceed 20 total steps. Fewer well-designed steps are better than many granular ones.
| Original steps | Target steps |
|---|---|
| 1-5 | Keep same or fewer |
| 6-10 | 8-12 atomic steps |
| 11-15 | 12-18 atomic steps |
| 16+ | 15-20 atomic steps (group related actions into phases within a single step) |
BAD: Split "DNS + SSL check" into 6 separate steps (S3-S8)
GOOD: Keep as 1-2 steps with sub-actions listed inline:
Step 3 [S3]: DNS and SSL Analysis
- Run: `dig +short A {domain}` for A records
- Run: `dig +short MX {domain}` for MX records
- Run: `openssl s_client -connect {domain}:443 ...` for SSL check
VERIFY: All 3 outputs saved to {domain}_dns.json
Why: Weaker LLMs exhaust context/output tokens on long skill files. Skills with >20 steps consistently fail to complete on small models.
Context-budget escape hatch: Phase 4 is mechanical text surgery (add step IDs, swap 평서문→RFC 2119, append VERIFY gates) that does NOT need the parent's full conversation context. If the parent session is context-heavy (long build/iteration session), SHOULD delegate Phase 4 to a subagent: pass it the target SKILL.md path, the exact list of headers to rename, the RFC-2119 swaps, and the literal VERIFY-gate text per step. The subagent self-reports, so the parent MUST re-verify before trusting "done": grep -c '^\*\*VERIFY\*\*:' {ORIGINAL_SKILL_PATH}/SKILL.md MUST equal grep -cE '^#+ Step [0-9]+ \[S[0-9]+\]' {ORIGINAL_SKILL_PATH}/SKILL.md, and python3 {SKILL_MANAGER_DIR}/scripts/quick_validate.py {ORIGINAL_SKILL_PATH} MUST print Skill is valid!. Do NOT take the subagent summary as proof.
Output: Write the improved SKILL.md to the skill's directory.
VERIFY: The improved SKILL.md has:
Action: Update or create any scripts, references, or assets needed by the improved skill.
VERIFY: All files referenced in the improved SKILL.md exist and are valid.
If the improved skill needs a different directory layout (e.g., split SKILL.md into multiple files, extract a sub-skill, merge with another skill), STOP this phase and delegate to skill-manager for the structural change. Resume Phase 5 only after structure is finalized.
python3 {SKILL_PROMPTER_DIR}/scripts/tracker.py record --skill "{SKILL_NAME}" \
--phase "rewrite" \
--changes "{summary of changes made}" \
--files-modified "{comma-separated file paths}"
VERIFY: tracker.py confirms the record was saved.
Action: Re-read the improved SKILL.md as if you are a small, cheap model seeing it for the first time. This phase is a STATIC text review — Phase 8 will dynamically execute the skill.
For EACH step, ask:
Any "NO" answer → go back to Phase 4 and fix that step.
python3 {SKILL_PROMPTER_DIR}/scripts/tracker.py audit --skill "{SKILL_NAME}" \
--passed-steps "{step_ids}" \
--failed-steps "{step_ids}" \
--notes "audit findings"
VERIFY: All steps pass the 5-question audit. failed-steps is empty.
Action: Execute the improved SKILL.md against a representative scenario in a fresh-context simulation. This is the final dynamic check before report — Phase 7 was a static text review; Phase 8 confirms the rewritten steps actually fire when an LLM reads them cold.
Pick exactly ONE representative user request that exercises the skill end-to-end. The scenario MUST exercise at least one HIGH-risk step from Phase 2 (the steps most likely to be skipped before the rewrite).
| Method | When to use |
|---|---|
| Black-box subagent delegation (preferred) | Default. Spawn 2 validators, each loaded with ONLY the improved SKILL.md, the representative scenario, allowed tools, and the signal schema. The prompt MUST NOT include expected answers, examples, diffs, known weak points, or implementation notes. |
| Manual walkthrough | Use only if subagent delegation is unavailable. Pretend the original conversation does not exist; for each step, name the exact tool call you would invoke and the input you would pass. Do NOT use hidden expected answers. |
Choose the subagent tool and the validator model freely, within two constraints:
IF BLOCKED: subagent system unavailable AND manual walkthrough impractical → Document the blocker in the dryrun record and mark the skill as "audit-only complete" rather than "dryrun verified". Do NOT claim the skill is dryrun-verified without an actual dryrun.
For each step in the simulation, record four step-level signals.
| Signal | Meaning |
|---|---|
fired | The simulated LLM invoked the step at all (yes/no) |
tool_call_exact | The simulated LLM used the exact named tool/command (yes/no) |
verify_signal | The VERIFY line produced an observable signal (yes/no) |
escape_used | If a fallback was triggered, the reroute happened correctly (n/a, yes, or no) |
ALL of the following MUST be true:
fired = yes (no silent skip)verify_signal = yes (every VERIFY produced a signal)tool_call_exact = no for the named toolescape_used = no for triggered fallbacksMUST record the four signals as structured flags so the finalize gate can verify them automatically. The signal flags MUST be:
| Flag | Value when PASS |
|---|---|
--signal-fired | pass if every step fired (no silent skip), else fail |
--signal-tool-call-exact | pass if every step used the named tool, else fail |
--signal-verify | pass if every VERIFY gate produced a signal, else fail |
--signal-escape | pass if a fallback rerouted correctly, fail if a triggered fallback failed, na if no fallback was triggered |
python3 {SKILL_PROMPTER_DIR}/scripts/tracker.py record --skill "{SKILL_NAME}" \
--phase "dryrun" \
--scenario "{one-line scenario description}" \
--signal-fired pass \
--signal-tool-call-exact pass \
--signal-verify pass \
--signal-escape na \
--changes "fired={S1,S2,...} | skipped={ids} | verify-failed={ids} | escape-failed={ids}" \
--files-modified ""
VERIFY: All pass conditions in 8.4 hold AND tracker.py confirms the dryrun record was saved with the structured signals block.
IF FAILED: Identify the specific failing steps. Record the dryrun with the matching --signal-* fail flag so the gate can reject finalize. Return to Phase 4 and rewrite ONLY those steps. Re-run Phase 7 → Phase 8 in tight loop until clean. Do NOT proceed to Phase 9 with any failing dryrun signal.
Gate enforcement: tracker.py finalize --status completed REJECTS the call if:
prompt-dryrun) phase record exists, ORfail.The only legitimate override is --force "<reason>", which stores the reason in the entry as force_reason.
Decision Table:
| Situation | Action |
|---|---|
| Original skill was vague and user's request was to "improve" | Show diff summary + dry-run result, ask user to confirm |
| Original skill was detailed but poorly structured | Proceed without asking (structural fix only) |
| User explicitly said "create a new skill" | Ask user clarifying questions about intent |
| Changes alter the skill's purpose or scope | MUST ask user before proceeding |
| Dry-run revealed a regression that required design changes | MUST ask user before proceeding |
If asking is needed, present:
VERIFY: User confirmed OR no confirmation needed per decision table.
python3 {SKILL_PROMPTER_DIR}/scripts/tracker.py finalize --skill "{SKILL_NAME}" \
--status "completed" \
--summary "brief summary of all improvements"
Output to user:
## Skill Improvement Complete
**Skill**: {SKILL_NAME}
**Changes**:
- {change 1}
- {change 2}
- ...
**Compliance Improvements**:
| Metric | Before | After |
|--------|--------|-------|
| Atomic steps | {N}/{total} | {N}/{total} |
| Explicit tool calls | {N}/{total} | {N}/{total} |
| VERIFY gates | {N}/{total} | {N}/{total} |
| RFC 2119 keywords | {present/absent} | {present} |
| Subagent delegation | {N} steps | {N} steps |
| Decision tables | {N} | {N} |
**Dry-Run Result**:
- Scenario: {one-line scenario}
- Steps fired: {N}/{total}
- VERIFY signals: {N}/{total}
- Escape hatches triggered: {N}
- Status: PASS | FAIL
**Files Modified**: {list}
VERIFY: Report printed. tracker.py shows status "completed".
--force unless subagent execution is genuinely unavailable, and MUST pass that reason as the --force valuescripts/tracker.py for ALL state tracking (no manual JSON editing)| Variable | Meaning |
|---|---|
{SKILL_PROMPTER_DIR} | Path to this skill-prompter skill directory |
{SKILL_MANAGER_DIR} | Path to the skill-manager skill directory, which holds scripts/quick_validate.py |
{SKILL_NAME} | Installed name of the skill being improved, resolved in Phase 0 |
{ORIGINAL_SKILL_PATH} | Filesystem path to the original skill directory (the directory, not its SKILL.md file) |
| Error | Recovery |
|---|---|
| Target skill has no SKILL.md | Ask user for the correct path |
| tracker.py fails | Read its stderr. It needs only Python 3.9+ and the standard library, so fix the reported argument or path and rerun |
quick_validate.py fails with No module named 'yaml' | Install PyYAML for the Python that runs it, then rerun |
| Improved skill exceeds 5000 words | Delegate split to skill-manager |
| User rejects changes | Ask what specifically to change, go back to Phase 4 |
| Dry-run fails after 3 rewrite cycles | Stop the loop. Surface the failing steps and ask the user whether the underlying design is correct (may require structural changes — delegate to skill-manager). |
README-ko.md (opens in a new tab)README.md (opens in a new tab)references/compliance-checklist.md (opens in a new tab)references/description-rules.md (opens in a new tab)references/rewrite-patterns.md (opens in a new tab)scripts/tracker.py (opens in a new tab)tests/test-complex-15step-skill-IMPROVED.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub kargnas/skills --plugin kargnas-skills13 skills in this plugin
/ai-readyUse only when the user asks to make the repo AI-ready or AI-optimized (AGENTS.md migration, debugging/testing setup, docs). Do not run on your own./git-loreCaptures, queries, and configures decision context in native Git trailers. Use for non-trivial commit messages, decisions, rejected alternatives, follow-ups, Lore history queries, pull request decision summaries, or Lore rules in agent instructions./humanizer-kill-gptRuns a cross-language cleanup for writing tells shared by large frontier LLMs, not only GPT: English source constructs that survive other language translation and language-surface translationese. Use only when the user asks to remove AI/GPT tells from text (de-GPT, GPT 티, AI 티, 번역체 GPT, 자폐 말투 — colloquial shorthand for rigid or over-complete model prose, not a claim about autism).