agentleFS
vidhunnanvidhunnan/agentic-skills/CLAUDE.md

agentic-skills

CLAUDE.md2 starsChanged 3 months agoMITView on GitHub

A personal library of Claude / Cursor-compatible agent skills. Each skill is a self-contained folder of Markdown (a SKILL.md plus optional supporting docs) — there is no build system, no test runner, and no application code. "Working on the code" here means authoring and refining skill definitions and their specs. Public, and forkable. Treat everything here as published: it ships to the plugin marketplace and is documented at https://agentic-skills.vidhunnan.design. Skills here are written to run on two surfaces that do…

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    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
  1. Distinctive:

    When adding or editing a skill, keep this split explicit — the same skill produces different output mechanics depending on where it runs.

    line 27
  2. Very specific:

    Missing CLAUDE.md: don't stub — offer a full /init-style analysis (confirmation-gated) to generate a real one, then insert.

    line 43
  3. Distinctive:

    Claude.ai: no filesystem — print the block for the user to paste.

    line 44
  4. Distinctive:

    When building a new skill that establishes a durable per-project convention, reuse this exact mechanism and marker format.

    line 46
  5. Very specific:

    When work moves between Claude.ai chat and Claude Code (or to a teammate/another session), generate a handoff brief with /handoff-generator.

    line 67
  6. Very specific:

    Never invent a rationale: If the reasoning isn't in a source, ask — and if nobody remembers, write *(reason not stated)*.

    line 93
  7. Distinctive:

    Every design ADR records what we gave up and what would make us revisit — a design choice is a trade, and the traded-away half is what …

    line 119
  8. Very specific:

    Run /skill-scaffold — it does all eight steps below: Do them by hand only if that skill is unavailable.

    line 131
  9. Very specific:

    Write docs/prds/<name>.md for anything non-trivial (problem, goals/non-goals, workflow, output template, per-surface trigger + output …

    line 133
  10. Very specific:

    Create skills/<name>/SKILL.md with frontmatter whose name matches the folder and whose description lists the trigger phrases.

    line 134
  11. Very specific:

    Add skills/<name>/.claude-plugin/plugin.json (minimal: name, description, version, author) so the folder is installable as a plugin.

    line 135
  12. Very specific:

    Add the corresponding entry to the repo-root .claude-plugin/marketplace.json, with source pointing at ./skills/<name>.

    line 136
  13. Very specific:

    Verify: python3 -m json.tool .claude-plugin/marketplace.json, the new plugin.json, and cd website && npm run build && npx playwright test.

    line 140

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “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
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this repo is

A personal library of Claude / Cursor-compatible agent skills. Each skill is a self-contained folder of Markdown (a SKILL.md plus optional supporting docs) — there is no build system, no test runner, and no application code. "Working on the code" here means authoring and refining skill definitions and their specs.

Public, and forkable. Treat everything here as published: it ships to the plugin marketplace and is documented at https://agentic-skills.vidhunnan.design.

Layout & conventions

  • One folder per skill under skills/, kebab-case, where the folder name must match the name field in that skill's SKILL.md frontmatter.
  • Each skill's entry point is skills/<name>/SKILL.md. Its frontmatter (name, description, allowed-tools, disable-model-invocation, plus optionally argument-hint) is the contract that drives how and when the skill triggers — the description doubles as the auto-trigger matcher, so it must enumerate the natural-language phrases and the /<name> slash form that should fire it.
  • Skill folder = plugin. Each skills/<name>/ doubles as an installable plugin by carrying its own .claude-plugin/plugin.json next to SKILL.md. This is the reusable pattern for every future skill: it keeps the "one folder per skill under skills/" convention and the standalone-copy install (cp -r skills/<name> ~/.claude/skills/) working, with no separate plugins/ tree.
  • PRDs for non-trivial skills live in docs/prds/<name>.md. When a SKILL.md is still a stub, the PRD is the source of truth for the output template, trigger rules, and per-surface behavior — read it before implementing. Keep the PRD in sync when the skill's scope changes.
  • The repo-root .claude-plugin/marketplace.json lists every skill as a plugin, each source pointing at its skills/<name> folder. Add an entry here whenever you add a skill.
  • Nothing referencing internal/employer-specific systems or unreleased work belongs in this repo (it's headed for public release).

Multi-surface design (the core architectural constraint)

Skills here are written to run on two surfaces that do not share state: Claude Code and Claude.ai. A skill's behavior must branch by surface, and this is the main thing that requires reading the PRD to get right. The handoff-generator PRD is the reference pattern:

  • Claude Code: triggered by /<name> or natural phrasing; can write files directly into the project (e.g. handoff/{date}-{slug}.md, creating folders as needed) and confirm the path back.
  • Claude.ai: triggered by explicit mention or description-match only; has no persistent project folder, so output is produced as a downloadable Markdown artifact instead.

When adding or editing a skill, keep this split explicit — the same skill produces different output mechanics depending on where it runs.

Skill protocols — the CLAUDE.md registration pattern

Several skills (changelog-tracker, model-strategy, branch-naming, handoff-generator, repo-setup, decisions-logger, design-setup, design-decisions, skill-scaffold, version-manager — ten at last count, verified with grep -l "BEGIN skill:" skills/*/SKILL.md) enforce an ongoing convention in the target project they're used in — "document every commit," "follow the model policy," "name branches this way." Since Claude Code has no per-event hook here (by design — enforcement is CLAUDE.md-based, not hook-based), these skills make the behavior stick by registering a protocol block into the target repo's CLAUDE.md, which Claude re-reads every session.

The shared mechanism, embedded as a Step in each such skill:

  • One delimited block per skill, under a ## Skill protocols heading in the target CLAUDE.md:
    <!-- BEGIN skill:<name> -->
    ### <Protocol title>
    <1–5 line protocol Claude follows>
    <!-- END skill:<name> -->
  • Idempotent: match on the literal BEGIN/END markers (never the title). Absent → ask, then insert under ## Skill protocols. Present → update in place only if changed; never duplicate; never touch other skills' blocks.
  • Missing CLAUDE.md: don't stub — offer a full /init-style analysis (confirmation-gated) to generate a real one, then insert.
  • Claude.ai: no filesystem — print the block for the user to paste.

When building a new skill that establishes a durable per-project convention, reuse this exact mechanism and marker format.

Active protocols in this repo (live blocks the skills registered here):

<!-- BEGIN skill:changelog-tracker -->

Changelog protocol

After every substantive commit (skip merge commits and changelog-only commits), document it: create changelog/commits/NNN-slug.md (NNN = next zero-padded 3-digit number, slug = kebab-case of the subject) and update changelog/CHANGELOG.md (per-commit table newest-first, plus the dated section). Pull all data from git (git log -1, git show --stat). Run /changelog-tracker if unsure of the format.

<!-- END skill:changelog-tracker --><!-- BEGIN skill:branch-naming -->

Branch naming

Branches follow: <type>/<slug> (kebab-case; type ∈ feat/fix/chore/docs/refactor) — e.g. feat/handoff-generator, chore/changelog-baseline. No area segment. Before creating a branch, derive a name from the work context and this convention, then confirm with the user. Use /branch-naming to generate one.

<!-- END skill:branch-naming --><!-- BEGIN skill:model-strategy -->

Model strategy

Model assignments for AI work in this project live in docs/MODEL-STRATEGY.md. Follow its assignment rules and the mandatory review rule when choosing a Claude model. Keep model IDs current (confirm against the live lineup, e.g. via the claude-api skill) rather than hardcoding stale ones. Update via /model-strategy when the lineup or task mix changes.

<!-- END skill:model-strategy --><!-- BEGIN skill:handoff-generator -->

Handoff protocol

When work moves between Claude.ai chat and Claude Code (or to a teammate/another session), generate a handoff brief with /handoff-generator. Briefs live in handoff/handoff-{from}-to-{to}-{date}-{slug}.md. When resuming, check handoff/ for the latest relevant brief first.

<!-- END skill:handoff-generator --><!-- BEGIN skill:repo-setup -->

Context stack

Project docs are tiered by the question they answer. Before writing a doc, route it. Before trusting one, check its tier.

QuestionTierPathStatus
What are we even trying to build?Conceptsdocs/concepts/hypothesis — future tense, disposable
What are we still deciding?PRDsdocs/prds/proposal — a concept worth building
Why did we choose that?Decisionsdocs/decisions/truth — past tense, append-only
Where did we leave off?Handoffshandoff/snapshot — the latest one wins
What actually shipped?Changelogchangelog/TRUTH — generated from git

Done vs. explored: changelog/ is what shipped; everything under docs/ is what we thought. Never cite a concept or a PRD as evidence something exists — check the changelog or the code. Never hand-edit the changelog. Each folder's README.md states its tense and lifecycle. Run /repo-setup check to re-verify the stack.

One exemption: docs/concepts/website/ is not disposable. It is the explorations tier of the design context stack (see the Design context stack block below) and is append-only — the rejected landing-page directions in it are the asset. It is the only subfolder of docs/concepts/ this applies to.

<!-- END skill:repo-setup --><!-- BEGIN skill:decisions-logger -->

Decision log

Architectural and process decisions live in docs/decisions/ as numbered ADRs (NNNN-slug.md), indexed in docs/decisions/README.md. The tier is truth: past tense, append-only. Never edit a logged decision — supersede it with a new ADR that links back, or append a dated entry under its ## Follow-up section. The only edit ever permitted to an existing ADR is its **Status:** line.

Proactively offer to log — don't wait to be asked. When a decision has just been made and is about to become invisible, name it, cite the evidence, and offer to write it: before staging a commit that changes a convention, a dependency, a layout, or a protocol; at the end of a substantial piece of work; when a handoff's ## Decisions Made section is non-empty; or when the user says "let's go with X" / "not Y, because Z". Offer once, be specific, and take no for an answer.

Never invent a rationale. If the reasoning isn't in a source, ask — and if nobody remembers, write *(reason not stated)*. A decision with an honest gap is worth more than one with a plausible fiction. Run /decisions-logger to mine the project for decisions not yet logged.

<!-- END skill:decisions-logger --><!-- BEGIN skill:design-setup -->

Design context stack

Design work is tiered by the question it answers. Before writing a design doc, route it. Before trusting one, check its tier.

QuestionTierPathStatus
What problem are we solving?Briefsdesign/briefs/proposal — the design PRD
What did we learn?Researchdesign/research/evidence — observation ≠ interpretation
What did we try?Explorationsdocs/concepts/website/history — includes what was killed
Why did we choose this?Decisionsdesign/decisions/truth — past tense, append-only
What is it, exactly?Specsdesign/specs/spec — pinned to a source version
What's reusable?Systemdesign/system/truth — the system of record
What actually shipped?Changelogchangelog/TRUTH — generated from git

A Figma file is not the record. It shows what won; it never shows what was tried, what was given up, or why. Never cite a brief as evidence something exists — check the changelog or the built product. A killed direction is never deleted from the explorations tier — that record is the point of it.

Note the explorations path. It is adopted, not canonical: the design drafts already lived in docs/concepts/website/, and this stack is additive-only, so it never moved them. That subfolder is exempt from the concepts tier's disposable lifecycle — see the exemption in the Context stack block above. Run /design-setup check to re-verify the stack.

<!-- END skill:design-setup --><!-- BEGIN skill:design-decisions -->

Design decision log

Design forks live in design/decisions/ as numbered ADRs (NNNN-slug.md), separate from the architectural log in docs/decisions/. The tier is truth: past tense, append-only. The only edit ever permitted to a logged ADR is its **Status:** line; everything else is superseded or appended under ## Follow-up.

Every design ADR records what we gave up and what would make us revisit — a design choice is a trade, and the traded-away half is what decays into "that's just how it is."

Offer to log at the fork, not later. Design reasoning is not recoverable: there is no diff, no commit, no blame line. When a direction is chosen over a named alternative, offer once — specifically — and take no for an answer. Never invent a rationale. If nobody remembers why, write *(reason not stated)*; an honest gap is worth more than a plausible fiction, and here there is nothing to check the fiction against. Run /design-decisions to log one.

<!-- END skill:design-decisions --><!-- BEGIN skill:version-manager -->

Versioning

Each skill is its own plugin and carries its own version in skills/<name>/.claude-plugin/plugin.json — bumped only when that skill changes (a library-wide bump would tell someone reinstalling branch-naming that something changed in a skill they don't have). New skills start at 0.1.0. The released version is a commit on prod-stable: merging is releasing, and a version is a candidate until its branch merges. Every version that ships is logged to changelog/VERSION-LOG.md, which is generated — never hand-edit it. Policy: docs/VERSIONING.md. Bump rules, the surface, and the registration check (marketplace entry + skills.ts + README row) live there. Run /version-manager status for live state.

<!-- END skill:version-manager -->

Adding a new skill

Run /skill-scaffold — it does all eight steps below. Do them by hand only if that skill is unavailable.

  1. Write docs/prds/<name>.md for anything non-trivial (problem, goals/non-goals, workflow, output template, per-surface trigger + output table).
  2. Create skills/<name>/SKILL.md with frontmatter whose name matches the folder and whose description lists the trigger phrases.
  3. Add skills/<name>/.claude-plugin/plugin.json (minimal: name, description, version, author) so the folder is installable as a plugin.
  4. Add the corresponding entry to the repo-root .claude-plugin/marketplace.json, with source pointing at ./skills/<name>.
  5. Add a row to the right group in README.md's Skills section (the tables are grouped by job — "Set up the repo" / "Keep the record" / "Working conventions" / "Design work" / "Build the skills themselves" — not one flat list), and add its /plugin install <name> line to the Install block.
  6. Add the entry to website/components/lib/skills.ts (SKILL_GROUPS) — it is the site's single source of truth, it is typed, and skipping it silently leaves the published site stale. This is the step that used to get missed.
  7. Run cd website && npm run prebuild — regenerates the committed skill zips, their manifest.json, and counts.json. This is not optional for a Chat-capable skill: the zips are committed build output (Vercel's Root Directory is website/, so skills/ isn't on disk at build time), and tests/skill-zips.spec.ts fails when they go stale. Then update the hand-typed counts in README.md and SKILLS_COPY.sub in content.ts — TOTAL_SKILLS is derived and needs nothing.
  8. Verify: python3 -m json.tool .claude-plugin/marketplace.json, the new plugin.json, and cd website && npm run build && npx playwright test.

Distribution

Skills are consumed three ways (see README for exact commands): the Claude Code plugin marketplace (/plugin install <name>), standalone copy into ~/.claude/skills/ or a project .claude/skills/, or zipped and uploaded to Claude.ai under Settings → Customize → Skills.

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.