agentleFS
vasuag09vasuag09/harness-claude/skills/extract/SKILL.md

extract

Skill2 starsChanged 6 months agoMITView on GitHub

Turn a repeatable workflow observed this session into a PROPOSED reusable skill — draft it, evaluate it against the rubric, and stage it for your approval. Never writes into skills/. Opt-in; not wired into the default pipeline. Use when a Stop candidate appears or a workflow felt worth keeping.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use teach-impeccable, arrange and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mtctSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 12 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • mtctSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.

    Also in 13 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 10 projects that use this

  • Hussain-ElfalahSkill

    ai-act-readiness

    Also in 3 projects that use this

  • Hussain-ElfalahSkill

    andreessen

    Also in 3 projects that use this

  • +2 more from mtct
  • +4 more from Hussain-Elfalah

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Draft the skill: Write a candidate SKILL.md with valid frontmatter (name, description) and numbered steps that capture the workflow.

    line 25
  2. Very specific:

    Write it ONLY to .claude/skills-staging/<slug>/SKILL.md.

    line 28

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/extract — propose a skill, evaluate it, stage it

Goal: capture a repeatable workflow as a candidate skill a human can review and promote. This closes the loop the Stop detector opens — it never auto-creates a skill (the v0.1 staging rule). The output is a proposal, not a live skill.

Opt-in. No default-pipeline skill or hook invokes /extract. Running it is always explicit and changes no baseline behavior. (v0.3 AC-E4; preserves the staging rule.)

When to run

  • A Stop candidate landed in .claude/skills-staging/candidates.md (the detector found a tool/skill subsequence that recurred this session), or
  • you just did something repeatable/non-obvious worth keeping.

Do this

  1. Read the evidence. Open .claude/skills-staging/candidates.md for the detected sequence + recurrence count. Cross-check what actually fired in .claude/traces/<date>.jsonl (skills, subagents, MCPs). Skim the relevant transcript span to recover the purpose — the sequence names the steps, not why.
  2. Draft the skill. Write a candidate SKILL.md with valid frontmatter (name, description) and numbered steps that capture the workflow. Pick a name that does not collide with an existing skills/*/SKILL.md.
    • Write it ONLY to .claude/skills-staging/<slug>/SKILL.md. Never create or edit anything under skills/ (or any live skill dir).
  3. Evaluate it (deterministic gate):
    node scripts/eval/extract-rubric.js .claude/skills-staging/<slug>/SKILL.md
    It scores five criteria and exits 0 (all PASS, none manual — not reachable until the AC-E3 benchmark lands) · 1 (a check FAILED) · 2 (no FAIL, MANUAL criteria remain).
    • R1–R3 are deterministic (frontmatter present · ≥2 steps · name not a duplicate).
    • R4 (genuinely reusable?) is always MANUAL — the script never auto-approves a skill.
    • R5 (empirical value) is result-driven: if /benchmark produced .claude/eval/benchmarks/<name>.json for this draft, R5 reports PASS/FAIL from it; otherwise it degrades to MANUAL. Run /benchmark --component <draft-name> to close it.
  4. On FAIL (exit 1): fix the draft (add frontmatter, add steps, or rename to avoid the collision) and re-run. Do not stage a draft that FAILs.
  5. Adjudicate MANUAL (exit 2 — the expected happy path): judge R4/R5 yourself with evidence — is this a workflow you'd actually reach for again, distinct from existing skills? Record the verdict + reasoning in .claude/skills-staging/<slug>/eval.md alongside the draft.
  6. Stage for approval. Stop there. Tell the user the proposal is staged at .claude/skills-staging/<slug>/ (draft + eval note) and that promoting it into skills/ is their explicit call. Do not promote it yourself.

Security & trust

  • extract-rubric.js runs no shell and never executes the draft's body — an ```eval fence inside a draft is inert text to it, so there is no check output to leak.
  • --list is the safe inspect path: node scripts/eval/extract-rubric.js --list <draft> prints the parsed name/description + which criteria are deterministic vs. MANUAL.
  • The Stop detector and this skill record only tool/skill names (from the trace, which stores no args) — never session content, commands, or secrets.

Notes

  • Self-contained: rubric + detector are pure Node, no companions (mgrep/graph/context7).
  • The AC-E3 benchmark (/benchmark, fork + worktree, pass@k/pass^k) feeds the R5 seam in extract-rubric.js: it reads the benchmark artifact if present, else R5 stays MANUAL and never blocks.

Exit criterion

A proposal (SKILL.md draft + eval.md) is staged under .claude/skills-staging/<slug>/, the rubric shows no FAIL, and every MANUAL criterion is adjudicated with evidence. Promotion into skills/ remains a human decision — never automatic.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.