agentleFS
AceyAdapterAceyAdapter/knap/skills/agentify/SKILL.md

agentify

Skill1 starsChanged 4 months agoMITView on GitHub

Set up or upgrade a repo so any AI agent can work in it effectively. Use when the user says "agentify this repo", "make this repo agent-friendly", "set up AGENTS.md / CLAUDE.md", "add a decision log", "start a new project with the agent setup", or is scaffolding a greenfield project. Creates the canonical doc set (AGENTS.md + CLAUDE.md symlink, docs/architecture.md, docs/decisions.md, docs/lessons.md, docs/design.md), golden-path scripts (verify/run), and the maintenance contract that keeps them true.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. belt-sh/skills★ 2same name

    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 repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

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

    Derive everything from the repo before writing a word: Never invent commands or architecture — a doc that lies is worse than no doc.

    line 39
  2. Very specific:

    Audit: Read README, package manifests (package.json / *.xcodeproj / pyproject.toml / go.mod …), CI config, existing scripts, and any …

    line 42
  3. Very specific:

    Create the full artifact set.

    line 73
  4. Distinctive:

    Write docs in plain, dense prose — no filler, no marketing voice.

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
SKILL.md

Agentify a repo

Goal: after this skill runs, ANY agent — Claude Code, Codex, a small open model — can open the repo cold, read one file, and know what the project is, how to build/run/verify it, what's settled, and what not to touch. The reference implementation is Nick's next-up repo; this skill reproduces that pattern.

The artifact set

FileJobTemplate
AGENTS.mdCanonical agent entry point, ≤150 lines. The map, not the territory.templates/AGENTS.template.md
CLAUDE.mdSymlink to AGENTS.md (ln -s AGENTS.md CLAUDE.md). Never a copy.—
scripts/verify.shOne command that proves a change works: build + tests, loud ✅/❌ exit.templates/verify.template.sh
scripts/run.sh (or sim.sh/dev.sh)One command that launches the app for eyes-on checks (screenshot for UI projects).project-specific
docs/architecture.mdFile map with one-line annotations + data flow. The territory.templates/architecture.template.md
docs/decisions.mdAppend-only, dated D-numbered log of the WHY, with a supersession map at top.templates/decisions.template.md
docs/lessons.mdAgent mistakes → corrections. Consulted before repeating a task class, appended when the human corrects the agent.templates/lessons.template.md
docs/design.mdUI projects only: tokens, principles, motion. "Read before styling anything."templates/design.template.md

Templates live next to this file in templates/. They are skeletons with inline guidance comments — fill them from reality, then delete the comments.

Mode 1 — existing repo (upgrade)

Derive everything from the repo before writing a word. Never invent commands or architecture — a doc that lies is worse than no doc.

  1. Audit. Read README, package manifests (package.json / *.xcodeproj / pyproject.toml / go.mod …), CI config, existing scripts, and any existing CLAUDE.md/AGENTS.md content (fold it in, don't discard it). Map the top two directory levels. Run the build and test commands yourself to confirm they work and time them.
  2. Golden-path scripts. Wrap the verified build+test incantation in scripts/verify.sh. Add a run/preview script if the project has a runnable surface. Loud output: end with ✅ verify passed or ❌ + a nonzero exit.
  3. Write docs/architecture.md from the actual file tree — every non-obvious file gets a one-line annotation.
  4. Seed docs/decisions.md. Interview the user for 3–8 already-settled decisions (framework choice, hard constraints, things they're tired of re-explaining) and backfill them as D1..Dn with today's date. Ask explicitly: "What do agents keep getting wrong or re-litigating here?" Those answers are D-entries or lessons.
  5. Seed docs/lessons.md with any known agent failure modes from step 4.
  6. Write AGENTS.md last, from the template — it summarizes what now exists. Symlink CLAUDE.md. If other agent files exist (.cursorrules, codex.md…), make them symlinks or one-line pointers to AGENTS.md too.
  7. Verify: scripts/verify.sh passes; readlink CLAUDE.md → AGENTS.md; wc -l AGENTS.md ≤ 150; every command in the commands table was actually run this session.

Mode 2 — greenfield

  1. Interview first, briefly: what's being built, target platform/stack, hard constraints (min OS, privacy rules, device support…), does it have UI.
  2. Scaffold the project (stack-appropriate) so scripts/verify.sh has something real to build/test from day one — even if it's a hello-world with one test. Never commit a verify script that hasn't passed.
  3. Create the full artifact set. docs/decisions.md starts with D1 = stack choice and one entry per constraint from the interview. State line says "scaffolding — nothing shipped."
  4. For UI projects, seed docs/design.md before the first screen is built — pull candidate direction from the plugin's resources/design-inspiration.md and resources/tools.md (at ${CLAUDE_PLUGIN_ROOT}/resources/ when running as a plugin) and confirm a direction with the user.

The AGENTS.md rules (both modes)

  • ≤150 lines. Detail belongs in docs/; AGENTS.md is the map.
  • Required sections, in order: intro paragraph (what this is + where deep dives live) · dated State line · Commands table with real measured runtimes · gotchas · What can be verified where · Hard constraints · Architecture in one breath · Maintenance contract · Scope discipline.
  • The maintenance contract is what keeps the system alive — always include it verbatim-ish from the template: verify before done, dated decision entries in the same change, docs updated in the change that invalidates them, state line kept current, lessons appended when corrected.

Style

Write docs in plain, dense prose — no filler, no marketing voice. Every command documented must have been executed. Assume the reader is a capable but context-free agent: golden paths, not options. When in doubt whether something is AGENTS.md-worthy or docs/-worthy: AGENTS.md gets what an agent needs every session; docs/ gets what it needs sometimes.

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.