agentleFS
mhmtsrfglumhmtsrfglu/superwiki/AGENTS.md

superwiki

AGENTS.md30 starsChanged 54 days agoMITView on GitHub

docs/ is a wiki you write and keep current, and an Obsidian vault the user reads. Skills. Use these without being asked. For work in this vault they come before any other planning, implementing or debugging skill: - An idea to think through before it is a task, or a task to stress-test before work starts: sw-brainstorm. - Planning a task, or the user asks what to work on next: sw-plan. - Implementing a task: sw-implement. A change that needs…

The file

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

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    When you add or rename a wiki page, update its line in index.md.

    line 19
  2. Very specific:

    Do not start a task while any of its deps is not done.

    line 26
  3. Very specific:

    If explain <ID> names an area guide (docs/wiki/guide-<area>.md), read it before you change code for the task: where things are, patterns, …

    line 27
  4. Distinctive:

    If a skill is not installed, follow the rules above by hand.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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
AGENTS.md

Agent instructions

<!-- sw:start (managed by sw-init; write your own rules outside these markers) -->

Superwiki (docs/)

docs/ is a wiki you write and keep current, and an Obsidian vault the user reads.

  • docs/index.md: the open tasks, then the catalog, one line per wiki page. Read it first, then open only the pages you need.
  • docs/log.md: append-only. Add ## [YYYY-MM-DD] <kind> | <title> at the end; read it with tail, never whole.
  • docs/raw/: sources. Read, never modify.
  • docs/wiki/: flat, one page per topic, frontmatter type: and one-line summary:.
  • docs/tasks/<ID>.md: one task per file. docs/plans/<ID>-plan.md: its plan, if any.
  • Anything else under docs/ belongs to other tools. Leave it alone.
  • File formats: docs/.sw/templates/.

Wiki:

  • Link vault pages as [[file-name]]; file names are unique across the vault. Use normal markdown links for raw/ files and URLs, and plain paths for code.
  • When you add or rename a wiki page, update its line in index.md.
  • Answer questions from the vault with sw-search: index first, every claim with its reference.

Tasks:

  • A task's status lives only in its frontmatter. Before you start: status: in-progress and started:. When its "Done when" list is met and sw-verify has verified it: status: done and finished:. Each change of status gets a task entry in log.md, each summary a summary entry.
  • The task list in index.md is written from the task files. After you add a task or change a task's status, title, milestone or dependencies, run node docs/.sw/sw.mjs index. Never edit that list by hand.
  • Do not start a task while any of its deps is not done.
  • If explain <ID> names an area guide (docs/wiki/guide-<area>.md), read it before you change code for the task: where things are, patterns, how to verify. Afterwards add the facts it was missing, one line each.
  • Work that belongs to no task (a quick fix, a small request) needs no task file. Append one change entry to log.md instead: what changed and why, in a line.
  • node docs/.sw/sw.mjs status|ready|check <ID>|explain <ID>|search <words>|next-id <AREA>|lint answers overview, startable tasks, blockers, a task's place in the chain, where something is mentioned, new ids and structural checks without reading files. Run lint after you add, rename or relink pages.

Skills. Use these without being asked. For work in this vault they come before any other planning, implementing or debugging skill:

  • An idea to think through before it is a task, or a task to stress-test before work starts: sw-brainstorm.
  • Planning a task, or the user asks what to work on next: sw-plan.
  • Implementing a task: sw-implement. A change that needs no plan and touches one or two files may be done directly, under the task rules above.
  • One task from start to done in one command (it decides whether a plan is needed): sw-plan-implement.
  • Closing a task, or the user asks what a task did and how it was verified: sw-verify.
  • Several tasks in a row without the user at each step: sw-autopilot.
  • A question about a task (what it is for, why, what it blocks): sw-explain.
  • A review of a task's change on request, without implementing it: sw-review.
  • A question to the vault in plain words (what do we know about X, what was decided): sw-search.
  • A bug, failure or unexpected behavior the user reports (a reviewer's finding is not one): sw-triage first, before any debugging.
  • A source to file (article, notes, transcript, URL): sw-ingest.
  • If a skill is not installed, follow the rules above by hand.
<!-- sw:end -->

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.