agentleFS
ContexeraContexera/dsh-agent-team/.agents/skills/ax-init/SKILL.md

ax-init

Skill89 starsChanged 12 days agoMITView on GitHub

Bootstrap a repository's agent layer - a short root AGENTS.md, a .scratch/ cross-session work area, and an optional docs/ skeleton. Run when starting a new repo or retrofitting an existing one for agent work.

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 · 1

    1. wowyuarm/dsh-agent-team★ 89100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

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

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the top-level tree, then the smallest authoritative files: README.md, build manifests, test and lint config, existing architecture …

    line 21
  2. Very specific:

    If the repo does not expose a fact, write > TODO: — never invent commands, architecture, or policies.

    line 24
  3. Distinctive:

    Write it in the repository's dominant documentation language (translate the headings.

    line 37
  4. Very specific:

    Add to .gitignore (create the entries.

    line 45
  5. Very specific:

    Create the directories active/ and local/ (empty.

    line 52
  6. Distinctive:

    Do not pre-create empty subsystem pages.

    line 61
  7. Very specific:

    Every command in the generated files comes from the repo or is marked > TODO:.

    line 71
  8. Very specific:

    If docs/ was created, every routing row points at a file that exists.

    line 75
  9. Distinctive:

    All generated files use the repository's dominant documentation language consistently.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

ax-init

ax = agent experience: the layer an agent needs to work in a repository across sessions. This skill builds it:

PieceRoleDefault
Root AGENTS.mdOnly the rules every task must know, plus routing. Loaded into every session, so it stays short (~60 lines)always
.scratch/Cross-session work items: design snapshots, research, tickets, validation evidence — never an authority on current behavioralways
docs/ skeletonMaintained engineering docs: docs/README.md routing index + docs/AGENTS.md maintenance disciplineonly when the repo warrants maintained docs

The pattern is proven in real agent-driven repositories (Loom, dsh-agent-team): a fat root guide drowns every session, so the root file routes instead of explaining; in-progress work lives in .scratch/active/ where it can change hourly without polluting history; durable conclusions graduate into docs/ when the work closes.

Map the repository before writing

  • Read the top-level tree, then the smallest authoritative files: README.md, build manifests, test and lint config, existing architecture docs.
  • Infer the stack from real files (package.json, Cargo.toml, pyproject.toml, go.mod, Makefile, CI config); prefer exact commands the repo already uses over ecosystem defaults.
  • Extract only durable contributor knowledge: purpose and scope, top-level directory responsibilities, build/test/lint/run commands, conventions, boundaries, secret-handling rules.
  • If the repo does not expose a fact, write > TODO: — never invent commands, architecture, or policies.
  • Greenfield repos: a new or empty repository has little to extract. Take facts from the session's plan and the user — stack choice, commands, boundaries — and write them as chosen conventions, > TODO: whatever is not yet decided. The root file is then a statement of intent the code grows into, not a report of what exists; expect a tightening pass once the stack actually lands.

Write the root AGENTS.md

Short by design. Five parts, in this order:

  1. Scope and authority — what this repository is, in one short paragraph, then the authority order: source and tests define current behavior; maintained docs/ explains it; .scratch/ is work history and never overrides either.
  2. Reading discipline — start from the files a task names, expand by need, do not read the whole repo; route through docs/README.md when it exists.
  3. Always-on constraints — at most ~8 rules every task genuinely needs: the build/test entrypoints, the few architecture guardrails that are easy to violate, commit discipline.
  4. Pointers — one line each for docs/AGENTS.md (if present) and .scratch/AGENTS.md.
  5. Nothing else. Long structure maps, per-command detail, and research history belong in docs/ and .scratch/, not in the file every session loads.

Write it in the repository's dominant documentation language (translate the headings; keep technical terms as-is). A greenfield repo has no dominant language yet — ask, or default to the conversation's language.

Create the .scratch work area

Copy assets/scratch-AGENTS.md to .scratch/AGENTS.md and assets/scratch-README.md to .scratch/README.md, adapting the prose the way you would adapt any boilerplate: drop what does not apply, keep the discipline. The templates define the work-item structure (active/<work>/ with a five-item continuation README, DESIGN.md, issues/NN-<slug>.md tickets), ticket discipline (vertical slices, self-contained, frontier workflow), the closing lifecycle, and git tracking. Do not rewrite these rules per repo unless the repo genuinely works differently — their value is being the same everywhere. Templates are English; when the repository's documentation language is not, translate the prose while keeping the structure, headings order, and technical terms.

On a greenfield repo, the design work that follows initialization starts as an active/<work>/ item, not in docs/ — until source lands, active/ is the primary design authority (the template says so).

Add to .gitignore (create the entries; keep the file's existing content):

.scratch/active/
.scratch/local/

Create the directories active/ and local/ (empty; local/ is ignored anyway).

Add the docs skeleton when warranted

Skip it for small repos — a root file plus .scratch/ is enough, and an empty routing index pointing at nothing is worse than no index. Create it when the repo already has (or will soon grow) multiple maintained docs — architecture pages, runbooks, domain models:

  • assets/docs-README.md → docs/README.md: task-based routing table ("you want to do X → read Y") plus a fact-ownership table (which document owns which class of fact). Fill rows from the repo's real documents; two honest rows beat ten stub rows.
  • assets/docs-AGENTS.md → docs/AGENTS.md: maintenance discipline — one fact one home, a change that invalidates a documented fact updates the owning document in the same change, uncertain facts as > TODO:, no empty shells for modules that do not exist.

Do not pre-create empty subsystem pages. The skeleton is governance, not filler. A terminology or domain page is typically the first real page once terms stabilize — add it then, not empty.

Re-runs and retrofitting

Re-running on an already-initialized repository adds the missing pieces — most often the docs/ skeleton once the repo grows into needing one — and never regenerates or overwrites files that already exist.

Never overwrite an existing root AGENTS.md. When one exists, read it, separate always-on rules from long-form explanation, and propose the restructure: rules stay in the root file, explanation moves to docs/ pages (create the skeleton in the same pass if it is missing), work-history notes move to .scratch/. Apply it only with the user's go-ahead, since the existing file may be load-bearing for other tooling.

Validation checklist

  • Every command in the generated files comes from the repo or is marked > TODO:.
  • Root AGENTS.md fits on one screen and contains no content that belongs in docs/ or .scratch/.
  • The .gitignore entries are committed together with the skeleton, before any active/ work could leak into a commit.
  • .scratch/AGENTS.md and .scratch/README.md exist; .gitignore covers active/ and local/.
  • If docs/ was created, every routing row points at a file that exists.
  • All generated files use the repository's dominant documentation language consistently.

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.