agentleFS
nikovirtalanikovirtala/artifact/AGENTS.md

artifact

AGENTS.md0 starsChanged 4 days agoMITView on GitHub

Architecture decisions in this repository are managed by adr: if your agent doesn't load skills, read .claude/skills/adr/SKILL.md before changing architecture, and follow it. The decisions made before adr, 0001 to 0077, stay in docs/decisions as they are; cite them by file, and record a new decision, or one that changes an old one, with adr. Issues in this repository are tracked with issues: if your agent doesn't load skills, read .claude/skills/issues/SKILL.md before starting, continuing or finishing work, and follow it.

  • Deletes or force-pushes
  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md 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
  • could be automatic: a setting could enforce it
  1. Very specific:

    Before starting work and again before merging, run git fetch and rebase your branch onto origin/main.

    line 41
  2. Very specific:

    Never force-push main. On your own branches, use git push --force-with-lease, never --force.

    line 44
  3. Distinctive:

    Keep the PR description up to date as the work changes: what the change does, why, what's still left, and how it was tested.

    line 72
  4. Distinctive:

    If more work is needed after review, you can move the PR back to draft while you make the changes, then mark it ready again.

    line 80

≈ “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

AGENTS.md

Architecture decisions in this repository are managed by adr: if your agent doesn't load skills, read .claude/skills/adr/SKILL.md before changing architecture, and follow it. The decisions made before adr, 0001 to 0077, stay in docs/decisions as they are; cite them by file, and record a new decision, or one that changes an old one, with adr.

Issues in this repository are tracked with issues: if your agent doesn't load skills, read .claude/skills/issues/SKILL.md before starting, continuing or finishing work, and follow it.

Generic skills

These skills are read where they live, in nikovirtala/skills, not copied here. Read the skill's SKILL.md before the work it covers, and follow it.

SkillPath in nikovirtala/skillsUse when
design-docsdesign-docs/SKILL.mdDesigning a change: a problem whose solution isn't obvious
plan-workplan-work/SKILL.mdTurning a design into phases and tasks, recorded as issues
documentationdocumentation/SKILL.mdWriting or reviewing pages under docs/
coding-agent-feature-promptscoding-agent-feature-prompts/SKILL.mdChoosing the next feature and writing the prompt for a coding agent

Build, test and lint

These are the single source of commands; there is no Makefile or justfile.

  • Prerequisites: Node 24 (pinned in mise.toml, and actions/setup-node node 24 in CI) and pnpm from the packageManager field (pnpm@12.14.0, via corepack).
  • pnpm install - install dependencies.
  • pnpm check - the full gate: tsc typecheck + biome lint + pnpm bundle + node:test + pnpm --filter aws check + pnpm --filter artifact-personal check.
  • pnpm test - run the node:test suite (node --test "test/**/*.test.ts").
  • pnpm lint / pnpm format - biome check / biome check --write.
  • pnpm build - emit dist/.
  • node src/cli/main.ts --help / node src/cli/main.ts serve - run the TypeScript CLI directly, no build step.

Conventions and boundaries

  • Tests run .ts files directly through node:test; there is no transpile step.
  • src/core/ must not import transports or storage. The boundary is enforced by a test, see docs/decisions/0004-core-import-boundary.md.
  • The README is coupled to src/cli/snippet.ts through test/cli/snippet.test.ts. When editing the README, keep the agent-snippet strings byte-identical or that test fails.
  • docs, chore, refactor and similar commits do not trigger a release; only feat, fix, perf and breaking changes do, per RELEASING.md.

Git history

Linear history is required.

  • Before starting work and again before merging, run git fetch and rebase your branch onto origin/main.
  • CI checks the tip of each push, not each commit, so don't rerun the tests per commit after a rebase. Run pnpm check once on the rebased branch before pushing.
  • Merge only via fast-forward or GitHub's "Rebase and merge", so main gets the reviewed commits as they are; no merge commits, no squash merges.
  • Never force-push main. On your own branches, use git push --force-with-lease, never --force.
  • Undo changes on main with git revert, never by rewriting history.

Commits

  • Each commit is atomic: one logical change, self-contained.
  • To amend an earlier commit on your branch, use git commit --fixup=<sha> rather than piling on "address review" commits.
  • Squash fixups before merging: git rebase -i --autosquash origin/main. fixup! and squash! commits must never reach main.

Commit messages

Follow Conventional Commits 1.0.0:

<type>(<optional scope>): <description>

[optional body]

[optional footer(s)]
  • Types: feat, fix, build, chore, ci, docs, perf, refactor, revert, style, test.
  • Description: imperative mood, lowercase, no trailing period, ≤72 characters.
  • Breaking changes: add ! after the type/scope and a BREAKING CHANGE: footer explaining the impact and migration.
  • The body explains why, not what.

Pull requests

  • Open a draft pull request as soon as your branch has its first commit: push the branch and open the PR against main right away. Don't wait until the work is finished.
  • Push after every new commit (including fixup! commits and rebases, using --force-with-lease), so the PR always matches your local branch.
  • Keep the PR description up to date as the work changes: what the change does, why, what's still left, and how it was tested.
  • Mark the PR ready for review (remove draft status) only when all of these are true:
    • the work is complete, with nothing left to do;
    • the branch is rebased onto the latest origin/main;
    • all fixup!/squash! commits are squashed;
    • CI is green;
    • the PR description is final.
  • To mark a PR ready, use gh pr ready <number> or the GraphQL markPullRequestReadyForReview mutation. The REST API can't remove draft status. If your environment can't run either, say so explicitly when you hand off, and ask the maintainer to click "Ready for review".
  • If more work is needed after review, you can move the PR back to draft while you make the changes, then mark it ready again.

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.