new-skill
Skill1.6k starsChanged 2 months agoMITView on GitHub
Scaffold a new skill that follows this repo's conventions — interviews for purpose, trigger phrases, and tool needs, then writes `.claude/skills/<name>/SKILL.md` from the skill template with frontmatter and body that pass the integrity gates on first try. Use when user says "write a skill", "scaffold a skill", "create a new skill", "I keep doing X, make it a skill", "new slash command", or "turn this workflow into a skill". NOT for capturing a one-off session discovery — that is `/learn`.
18 other projects use a version of this.
Trending
Quiet since October.thin dataabout the whole repository
Most recently taken up by
- Ducksss/agent-agnostic-templatetheir own version, first seen Sep 25, 2026
- hyhmrright/brooks-linttheir own version, first seen Sep 20, 2026
- 0xkangl/skillstheir own version, first seen Sep 10, 2026
- yuvalshimoni/skillstheir own version, first seen Sep 6, 2026
- ivklgn/bag-of-skillstheir own version, first seen Sep 4, 2026
- Andersonnn7788/claude-code-101their own version, first seen Aug 30, 2026
Who's talking about pedrohcgs/claude-code-my-workflow
- @tom-doerr.bsky.social“https://github.com/pedrohcgs/claude-code-my-workflow”Bluesky · Apr 9, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.pedrohcgs.claude-code-my-workflow: init at 2.6.0”GitHub · Oct 3, 2026
- neverbiasu/awesome-research-skills“Dead links in README.md”GitHub · Sep 1, 2026
- neverbiasu/awesome-research-skills“Dead links in README.md”GitHub · Aug 31, 2026
- neverbiasu/awesome-research-skills“Dead links in README.md”GitHub · Aug 24, 2026
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub and Bluesky (11 times).
On GitHub · 9
- Oct 3, 2026agent-skills.github.pedrohcgs.claude-code-my-workflow: init at 2.6.0 — sudosubin/agents.nix0 reactions
- Sep 1, 2026Dead links in README.md — neverbiasu/awesome-research-skills0 reactions
- Aug 31, 2026Dead links in README.md — neverbiasu/awesome-research-skills0 reactions
- Aug 24, 2026Dead links in README.md — neverbiasu/awesome-research-skills0 reactions
- Jul 28, 2026Add resource: My Claude Code Setup — hesreallyhim/awesome-claude-code0 reactions
4 more on GitHub
- Jul 28, 2026[Resource]: My Claude Code Setup — hesreallyhim/awesome-claude-code0 reactions · 3 comments
- Jul 4, 2026Evolve memorize/ums toward a memory-promotion-gate model — Morrison-Lab/ai-config0 reactions · 1 comment
- Jul 4, 2026Add a checkpoint/compress-session context-continuity pair, distinct from handoff — Morrison-Lab/ai-config0 reactions · 1 comment
- Jul 4, 2026Add a permission-check skill: diagnose why Claude Code is/isn't prompting for permission — Morrison-Lab/ai-config0 reactions · 1 comment
On Bluesky · 2
- Apr 9, 2026https://github.com/pedrohcgs/claude-code-my-workflow — @tom-doerr.bsky.social1 likes and repost
- Apr 22, 2026What about lecture slides and peer review? 🥴 github.com/pedrohcgs/cl... — @jbenmenachem.com0 likes and reposts · 1 reply
Used with
Projects with it also use handoff.
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.
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- hyhmrright/brooks-lint★ 1.5ksame name
- shane9coy/Agent-Skill-Architecture-Guide★ 18same name
- ivklgn/bag-of-skills★ 12same name
- qunyou-agent/finance-skills★ 4same name
- AndrewTtofi/spine★ 2same name
- LisonEvf/finance-skills★ 2same name
- MusserLab/lab-claude-skills★ 2same name
- press-pass/journalism-skills★ 2same name
- 0xkangl/skills★ 1same name
- Andersonnn7788/claude-code-101★ 1same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adjudicate-reviewSkill
- audit-reproducibilitySkill
- blast-radiusSkill
- capture-environmentSkill
- challengeSkill
- checkpointSkill
- coauthor-briefSkill
- commitSkill
- compile-latexSkill
- compress-sessionSkill
- context-statusSkill
- create-lectureSkill
- credible-claimsSkill
- data-analysisSkill
- data-management-planSkill
- deep-auditSkill
- deploySkill
- devils-advocateSkill
- diagnoseSkill
- differential-auditSkill
- disclosure-checkSkill
- extract-tikzSkill
- grant-proposalSkill
- humanizeSkill
- interview-meSkill
- issuesSkill
- learnSkill
- lit-reviewSkill
- new-diagramSkill
- oracle-reviewSkill
- pedagogy-reviewSkill
- permission-checkSkill
- power-analysisSkill
- preregisterSkill
- promote-memorySkill
- proofreadSkill
- qa-quartoSkill
- replication-packageSkill
- research-ideationSkill
- respond-to-evalSkill
- respond-to-refereesSkill
- review-paperSkill
- review-rSkill
- r-package-checkSkill
- scaffold-exercisesSkill
- seven-pass-reviewSkill
- simulation-studySkill
- slide-excellenceSkill
- stata-replicationSkill
- submission-disclosuresSkill
- syllabusSkill
- teach-from-paperSkill
- translate-to-quartoSkill
- triage-inboxSkill
- vaccinateSkill
- validate-bibSkill
- verify-artifactSkill
- verify-claimsSkill
- visual-auditSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 2 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Use
/learninstead: when you just discovered something non-obvious *this session* and want it preserved — /learn captures a discovery. - Very specific: line 29
Read templates/skill-template.md for the canonical structure and the frontmatter-field reference.
- Very specific: line 49
Write .claude/skills/<name>/SKILL.md from the template, with these gold-standard sections:
- Very specific: line 53
Keep SKILL.md readable in one sitting (well under ~500 lines).
- Distinctive: line 54
Keep the *interface* small (a few args) and the *implementation* deep (the phases carry the weight) — resist exposing a knob for every …
- Very specific: line 64
Run python3 scripts/check-skill-integrity.py --verbose and fix any P0/P1 before declaring done.
- Very specific: line 72
Add a row to the README.md skills table:
| /<name> | <what it does> |(the gated table). - Very specific: line 73
Add a row to the guide's ## All Skills appendix table in guide/workflow-guide.qmd.
- Very specific: line 76
Run ./scripts/check-surface-sync.sh and python3 scripts/check-skill-integrity.py — both must exit 0.
- Very specific: line 77
Check what the skill costs and whether it fires: /skill-doctor shows its context cost and usage.
- Distinctive: line 90
Name collision or non-kebab-case: stop in Phase 0 with the conflict named.
“Common” is measured: kept by at least 6 in 10 of the 14 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.
Files
/new-skill — Author a Convention-Compliant Skill
Scaffold a new skill the way this template's gold-standard skills are written: a deep module behind a simple interface (Ousterhout, A Philosophy of Software Design — "deep modules": a small surface that hides substantial implementation). The user supplies a fuzzy intent; this skill interviews it into a tight spec, then writes .claude/skills/<name>/SKILL.md with frontmatter and body that are mutually consistent — so check-skill-integrity.py and check-surface-sync.sh pass without a second pass.
Adapted from the write-a-skill pattern in mattpocock/skills, reshaped to this repo's frontmatter, section, and gate conventions.
When to use
- You keep re-explaining the same 3+ step workflow to Claude and want it captured as a reusable slash command.
- You need a domain-specific check or output format (citation style, replication gate, a new review lens).
- You want a new skill that is consistent with the 40+ siblings in
.claude/skills/— same sections, same cross-reference style, same gate-passing frontmatter.
Use /learn instead when you just discovered something non-obvious this session and want it preserved — /learn captures a discovery; /new-skill deliberately designs an interface. With --from-learn, this skill upgrades a /learn-shaped stub into a full convention-compliant skill.
Phases
Phase 0 — Resolve the name and check for collisions
- Take the kebab-case name from
$0(or ask). Reject non-kebab-case, names that collide with an existing.claude/skills/<name>/, or names that shadow a built-in (commit,learn, …) —ls .claude/skills/and stop if taken. - Read
templates/skill-template.mdfor the canonical structure and the frontmatter-field reference. - Skim 2-3 sibling skills near the intended domain (e.g.
Glob .claude/skills/*/SKILL.md, thenReadthe closest matches) so the new skill borrows real conventions, not invented ones.
Phase 1 — Interview (collect everything before writing)
A skill cannot stop to ask mid-write, so gather all interactivity up front (the orchestrator-protocol.md RUN_CONFIG discipline). Ask, in one batch:
- Purpose — one sentence: what does it accomplish and why does it exist?
- When it should fire — the 2-4 situations a user is in when they need it (e.g. "preparing a submission", "a number changed between runs"), plus one or two example phrasings. These become the
description's "Use when…" clause. Name intent categories rather than enumerating near-synonyms: every model-invocable description is loaded into every session, anddescription+when_to_useare truncated in the skill listing (at 1,536 characters per the Claude Code skills docs, 2026-09) — put the key use first. - Inputs / arguments — positional args and any flags (each must become a documented
--token). - Tools — does the body Read? Write? Grep/Glob? run
Bash? fan out to a subagent (Agent)? hit the web viaWebSearch/WebFetch? Only declare what it actually uses. - Output — a written file (where?), a chat report, or an in-place edit? Should it be read-only?
- Scope boundary — the one or two things it explicitly does NOT do (and which sibling owns those).
- Side effects — which steps send, post or upload anything (email, GitHub, an external model, cloud sync) or cannot be undone by git? Each such step shows the user what it will do and waits for a yes before it runs; restricted data follows
confidential-data.md. - Fresh eyes — does the skill critique something this session produced? That part runs in a fresh-context subagent, never a conversation fork (
post-flight-verification.md).
Echo a one-paragraph design brief back for confirmation before writing.
Phase 2 — Write the SKILL.md (deep module, simple interface)
Write .claude/skills/<name>/SKILL.md from the template, with these gold-standard sections:
- Frontmatter:
name,description(third person — what it does, then when to use it by intent category),argument-hint,allowed-tools, andeffortonly if the skill genuinely needs a level other than the session's (seemodel-routing.md§ effort — a skill pin overrides the session, downward as well as up). Adddisable-model-invocation: trueif it writes a persistent, load-bearing file (template's "when to disable" rule) — and note that other skills then cannot invoke it; they must Read itsSKILL.mdand follow it. - Body sections: When to use; the goal and deliverable; the constraints, each with its reason; how to verify it is done; an Output / report format; Exit behavior; Cross-references (to real sibling files); What this skill does NOT do; and a ## Flags section if any flags are advertised. Number phases only where order genuinely matters (interview before writing, verify before reporting) — current models plan well, and a step-by-step script for a judgment task makes the output worse, not safer.
- Keep
SKILL.mdreadable in one sitting (well under ~500 lines). Move long rubrics, worked examples, and reference tables into files beside it (e.g.references/) and link them, so they load only when needed. - Keep the interface small (a few args) and the implementation deep (the phases carry the weight) — resist exposing a knob for every internal choice.
Phase 3 — Enforce parity so the gates pass first try
check-skill-integrity.py enforces two parities this phase must satisfy (scripts/check-skill-integrity.py is the checker; ./scripts/backtest.sh runs every gate):
- Flag parity (both directions). Every flag in
argument-hintMUST appear in the body as a bare-backticked token, and every flag documented in the body MUST appear inargument-hint. So--from-learnand--dry-runare listed in the hint and described under## Flags. A stale hint flag fails the gate as surely as a missing one. - allowed-tools parity. The body may only invoke tools listed in
allowed-tools. If a phase fans out to a subagent,Agentmust be in the list; if it never does, do not list it. This skill lists exactlyRead, Write, Glob, Grep, Bash— the tools its phases use; it does no subagent fan-out. - Anchor resolution. Internal
[text](path#anchor)links must resolve — only link to headings that exist.
Run python3 scripts/check-skill-integrity.py --verbose and fix any P0/P1 before declaring done.
Phase 4 — Remind: register the surface (table-row and count gates)
The skill is NOT discoverable to a reader until it is listed, and the inventory counts must match what is on disk. check-surface-sync.sh runs two surface checks. The table-row gate requires the <!-- surface-sync-table: skills --> table in README.md to have exactly one data row per skill on disk. The count assertions require every inventory phrasing that states a skill count (e.g. "N agents, M skills, …") in README.md, CLAUDE.md, guide/workflow-guide.qmd, both rendered guide copies (guide/workflow-guide.html, docs/workflow-guide.html), docs/index.html, templates/skill-template.md and .claude/skills/commit/SKILL.md to equal the number of skill directories. A new skill fails the gate if it has no row or if the counts are not bumped.
REMIND the user to:
- Add a row to the README.md skills table:
| `/<name>` | <what it does> |(the gated table). - Add a row to the guide's
## All Skillsappendix table inguide/workflow-guide.qmd. That table has no surface-sync marker, so no gate catches a missing row. - Bump every skill count. Run
python3 scripts/check-surface-sync.py: eachasserts N skills (actual: M)line names a file:line to update. For the guide, editguide/workflow-guide.qmd, thenquarto render guide/workflow-guide.qmd,cp guide/workflow-guide.html docs/workflow-guide.htmland./scripts/stamp-render.sh, so both HTML copies carry the new count and the staleness gate stays green. - Optionally add the skill to CLAUDE.md's "Skills Quick Reference" bullet list — only if it belongs among the most-used skills; no gate checks that list.
- Run
./scripts/check-surface-sync.shandpython3 scripts/check-skill-integrity.py— both must exit 0. - Check what the skill costs and whether it fires:
/skill-doctorshows its context cost and usage;./scripts/run-skill-eval.shruns its eval cases once they exist.
Print the ready-to-paste README row so the user can drop it in.
Output / report format
- A new file at
.claude/skills/<name>/SKILL.md. - A chat summary: the resolved name, the design brief, the gate results (integrity + a reminder that surface-sync still needs the README skills-table row and the count bumps), and the paste-ready README row.
- With
--dry-run: emit the proposed SKILL.md to chat only and write nothing.
Exit behavior
- Skill written, gates green: exit 0 with the path, the README row, and the explicit "now add that row, bump the counts, and run the two checks" reminder.
- Name collision or non-kebab-case: stop in Phase 0 with the conflict named; write nothing.
check-skill-integrity.pyreports P0/P1: fix in-place and re-run before returning; never hand back a skill that fails its own gate.--dry-run: print the draft, write nothing, exit 0.
Flags
--from-learn— Seed the interview from an existing/learn-style stub (or the current session's discovery) and upgrade it into a full convention-compliant skill rather than starting blank.--dry-run— Produce the SKILL.md content in chat for review without writing it to disk or touching any surface table.
Cross-references
templates/skill-template.md— the canonical structure, frontmatter-field reference, and the "when to setdisable-model-invocation" rule this skill follows..claude/skills/learn/SKILL.md— capture a session discovery (the lighter sibling);--from-learnupgrades its output..claude/skills/coauthor-brief/SKILL.md— a gold-standard skill to imitate (interview → write → flags → exit-behavior shape)..claude/rules/orchestrator-protocol.md— why the interview collects all interactivity before writing.scripts/check-skill-integrity.pyandscripts/check-surface-sync.sh(both run byscripts/backtest.sh) — the gates this skill is built to pass on the first try.
What this skill does NOT do
- Capture a session discovery — that is
/learn. This skill designs an interface;/learnrecords a finding. - Edit the README skills table (or CLAUDE.md's quick-reference list) for you. It prints the README row and reminds you; registering it (and re-running
./scripts/check-surface-sync.sh) is a deliberate human step so the surface gate is never silently satisfied. - Write agents, rules, or hooks. It scaffolds a skill only; an agent goes in
.claude/agents/, a rule in.claude/rules/. - Commit anything. Branch, commit and PR are
/commit's job; a merge is the user's call.
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
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.

