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.
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
- Very specific: line 41
Before starting work and again before merging, run git fetch and rebase your branch onto origin/main.
- Very specific: line 44
Never force-push main. On your own branches, use git push --force-with-lease, never --force.
- Distinctive: line 72
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.
- Distinctive: line 80
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.
≈ “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.
Files
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.
| Skill | Path in nikovirtala/skills | Use when |
| design-docs | design-docs/SKILL.md | Designing a change: a problem whose solution isn't obvious |
| plan-work | plan-work/SKILL.md | Turning a design into phases and tasks, recorded as issues |
| documentation | documentation/SKILL.md | Writing or reviewing pages under docs/ |
| coding-agent-feature-prompts | coding-agent-feature-prompts/SKILL.md | Choosing 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, andactions/setup-nodenode 24 in CI) and pnpm from thepackageManagerfield (pnpm@12.14.0, via corepack). pnpm install- install dependencies.pnpm check- the full gate:tsctypecheck +biomelint +pnpm bundle+node:test+pnpm --filter aws check+pnpm --filter artifact-personal check.pnpm test- run thenode:testsuite (node --test "test/**/*.test.ts").pnpm lint/pnpm format- biome check / biome check --write.pnpm build- emitdist/.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
.tsfiles directly throughnode: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.tsthroughtest/cli/snippet.test.ts. When editing the README, keep the agent-snippet strings byte-identical or that test fails. docs,chore,refactorand similar commits do not trigger a release; onlyfeat,fix,perfand breaking changes do, per RELEASING.md.
Git history
Linear history is required.
- Before starting work and again before merging, run
git fetchand rebase your branch ontoorigin/main. - CI checks the tip of each push, not each commit, so don't rerun the tests per commit after a rebase. Run
pnpm checkonce on the rebased branch before pushing. - Merge only via fast-forward or GitHub's "Rebase and merge", so
maingets the reviewed commits as they are; no merge commits, no squash merges. - Never force-push
main. On your own branches, usegit push --force-with-lease, never--force. - Undo changes on
mainwithgit 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!andsquash!commits must never reachmain.
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 aBREAKING 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
mainright 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 GraphQLmarkPullRequestReadyForReviewmutation. 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.
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
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.

