Automated summary
A human-gated skill improvement loop that runs a SKILL.md against test scenarios, diagnoses failures, and proposes one change at a time without editing the file until explicitly approved.
Strengths
- Cleanly separates Executor, Analyst and Mutator roles, each with a mandated report format
- Never applies an edit without an explicit human "approve" in the session
- Forces a single root cause and a single mutation strategy per round, preventing sweeping rewrites
- Detects Yana AI core files and refuses to modify them through this pipeline
Limitations
- Scenarios are mostly run "mentally", so scoring and diagnosis remain subjective
- Capped at 5 rounds, exiting with unresolved failures left for manual review
- Assumes Yana AI-specific conventions and directories (.tasks/, core/hooks/) that are not universal
Use it when an existing SKILL.md keeps failing on specific cases and you want a targeted, traceable fix approved one step at a time.
Avoid it for authoring a skill from scratch, for sensitive core files, or when you want unattended automated edits.
Security analysis
SafeThe skill is a human-gated file-editing workflow with explicit approval before any mutation, a revert rule when scores do not improve, and protections against editing designated core paths. It does not instruct destructive commands, secret exfiltration, network calls, or obfuscated payloads. Residual risk is limited to ordinary file modification under human approval.
- •No allowed-tools are declared, so runtime file-read/write capability depends on the host agent; the workflow may fail or behave inconsistently if editing tools are unavailable.
- •The skill can apply edits to an arbitrary `$ARGUMENTS` path once the human approves; a mistaken approval could modify an unintended file, though core paths are explicitly blocked and the human gate is strong.
Examples
/improve-skill skills/pdf-extract/SKILL.mdRun the improvement pipeline on ./skills/release-notes/SKILL.md — it keeps mishandling empty changelogs,/improve-skill .claude/skills/code-review/SKILL.md and show me the first proposal before changing anythingdescription: Human-gated skill self-improvement loop. Runs a skill against test scenarios, diagnoses failures, proposes ONE change at a time, and waits for human approval before applying anything. Usage: /improve-skill path/to/SKILL.md argument-hint: <path to SKILL.md>
You are running the skill improvement pipeline on: $ARGUMENTS
This is a human-gated loop. You NEVER edit files without explicit approval in this session. The Mutator proposes; the human commits.
Before You Start
- Read
$ARGUMENTS— understand the skill's stated goal and constraints. - If
$ARGUMENTSis missing or the file does not exist, stop and ask the user. - Check if
$ARGUMENTSis a Yana AI core file (path containscore/hooks/,core/scripts/, orgates/). If so, stop and tell the user:"This is a Yana AI core file. Changes require a separate approval cycle — do not run /improve-skill on it directly."
State the skill's goal in one sentence before proceeding.
Step 1 — Executor
Design 3–5 test scenarios that cover:
- The happy path (skill used as intended)
- At least one edge case (ambiguous input, missing context, boundary condition)
- At least one failure mode (what the skill was designed to prevent)
If the skill file contains example inputs, use those as scenarios.
If a .tasks/ directory exists, check for task files that reference this skill.
For each scenario:
- State the input
- Run the skill mentally (or with a real invocation if it's a slash command)
- Judge the output: pass (met stated goal) / fail (did not meet stated goal)
- One sentence on why
Report:
EXECUTOR SCORE: N/M passed
Scenario 1: [input] → PASS — [reason]
Scenario 2: [input] → FAIL — [reason]
...
If all scenarios pass (N/M = M/M), skip to the Exit section.
Step 2 — Analyst
For each failing scenario, identify ONE root cause. Choose from:
| Root cause type | Meaning |
|------------------|------------------------------------------------------------|
| missing_example | Skill has no example showing this case |
| missing_constraint | Skill lacks a rule that would prevent this failure |
| restructure | Instructions are ambiguous or ordered incorrectly |
| missing_edge_case | Skill does not mention this input class at all |
Pick the ONE root cause that covers the most failures. Pick the ONE mutation strategy that addresses it.
Report:
ANALYST:
Root cause: [type] — [one sentence explanation]
Mutation strategy: [add_example | add_constraint | restructure | add_edge_case]
Covers: [list of failing scenario numbers]
Step 3 — Mutator
Describe the exact change in plain text. Show the diff between current text and proposed text:
MUTATOR PROPOSAL:
Location: [section name or line description in the skill file]
CURRENT:
[exact current text]
PROPOSED:
[exact proposed text]
Expected effect: [one sentence — why this fixes the root cause]
STOP HERE. Do NOT apply the change. Do NOT edit the file. Wait for the human to respond with "approve" or "reject".
Step 4 — Human Gate
If approved:
- Apply the exact change described in Step 3 to
$ARGUMENTS. - Confirm: "Applied. Re-running Executor…"
- Return to Step 1 with round counter incremented.
If rejected:
- Do NOT apply the change.
- Return to Step 2 — Analyst picks the next best mutation strategy.
- If no remaining strategies, report: "No further strategies available for current failures. Human intervention required."
Exit Conditions
Stop the loop when any of these is true:
| Condition | Message | |-----------|---------| | Score = 100% | "All scenarios pass. Skill improvement complete." | | Round 5 reached | "Max 5 rounds reached. Final score: N/M. Remaining failures need manual review." | | Human says stop | "Stopping at human request. Final score: N/M." |
At exit, summarise:
- Rounds completed
- Changes applied (list each, one line per round)
- Final score
- Remaining failures (if any) with suggested next steps
Hard Rules
- Mutator NEVER edits files without explicit approval in this session.
- If the score does not improve after applying a change, revert it immediately and report: "Score did not improve — reverting change."
- Changes to
core/hooks/,core/scripts/, orgates/files require a separate approval cycle — do not include them in this pipeline. - Do not run more than one mutation per round — one change, one test, one verdict.
- Do not ask "should I continue?" between rounds unless the human has not responded — keep the loop moving until an exit condition is met.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/human-gated-skill-improvement-loop-mrwake1x/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/human-gated-skill-improvement-loop-mrwake1x' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/human-gated-skill-improvement-loop-mrwake1x/download' --output '.skill-downloads/human-gated-skill-improvement-loop-mrwake1x/SKILL.md.part' && mv '.skill-downloads/human-gated-skill-improvement-loop-mrwake1x/SKILL.md.part' '.skill-downloads/human-gated-skill-improvement-loop-mrwake1x/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/human-gated-skill-improvement-loop-mrwake1x/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.