agentleFS
SentryKnown publishergetsentry/skillet/AGENTS.md

skillet

AGENTS.md12 starsChanged 7 months agoMITView on GitHub

Use npm: npm install, npm run build, npm run typecheck, npm run check, npm run format. npm run check runs typecheck + lint + format + unit tests — use it as the final gate before commits. AI commits MUST include:

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repository5 other files it gives its agents.

The file

Show its rules and text

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

16 rules. About 0 are common, 8 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    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:

    Use npm: npm install, npm run build, npm run typecheck, npm run check, npm run format.

    line 5
  2. Very specific:

    Before dispatch, add the matching CHANGELOG.md section and run npm run check, npm run docs:check, and npm run build.

    line 20
  3. Very specific:

    Do not run npm version, create release branches or tags, or publish npm packages manually.

    line 21
  4. Very specific:

    Use OpenSpec for non-trivial changes.

    line 39
  5. Very specific:

    Keep the CLI, user docs, lifecycle reference, and skills/skillet-authoring synchronized.

    line 42
  6. Very specific:

    Don't bypass hooks (--no-verify), don't --force-push to main, don't amend already-pushed commits without asking.

    line 45
  7. Distinctive:

    Prefer hard cutover over backwards-compat shims unless the change crosses a published surface.

    line 47
  8. Distinctive:

    Keep public surfaces small: fewer exported types/functions, fewer integration points, explicit contracts.

    line 49
  9. Distinctive:

    Keep public interfaces small and intention-revealing.

    line 54
  10. Distinctive:

    Prefer domain language over mechanism language.

    line 56
  11. Distinctive:

    Every exported function must have a brief JSDoc comment explaining its intent (the *why*, not the *what*).

    line 57
  12. Distinctive:

    Before implementing anything that depends on an external system (codex/claude CLI flags, OpenSpec validator), read the relevant …

    line 68
  13. Distinctive:

    When changing a function signature, error contract, or shared pattern, grep for all consumers and verify each one still works.

    line 69
  14. Distinctive:

    If a fix attempt fails, stop.

    line 70
  15. Very specific:

    Use openspec/specs/<capability>/spec.md as the canonical capability description.

    line 83
  16. Very specific:

    Run ls openspec/specs/ for the current list.

    line 87

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

Package Manager

Use npm: npm install, npm run build, npm run typecheck, npm run check, npm run format.

npm run check runs typecheck + lint + format + unit tests — use it as the final gate before commits.

Commit Attribution

AI commits MUST include:

Co-Authored-By: (agent model name) <email>

Releases

  • Release through .github/workflows/release.yml; choose patch, minor, major, or an explicit version. Use force=true only when the user explicitly asks to bypass blockers.
  • Before dispatch, add the matching CHANGELOG.md section and run npm run check, npm run docs:check, and npm run build.
  • Do not run npm version, create release branches or tags, or publish npm packages manually. Craft owns version bumps, the release branch, GitHub release, and npm publication.
  • Approve the generated getsentry/publish request only after its release-branch CI passes, then verify the npm latest tag, GitHub release, and merged main.

File-Scoped Commands

TaskCommand
Typechecknpm run typecheck
Lintnpm run lint (oxlint + ast-grep)
Format checknpm run format (oxfmt --check)
Format fixnpm run format:fix
Unit testsnpm run test (vitest, no LLM/network)
One test filenpx vitest run src/spec/parser.test.ts
Buildnpm run build
Skill evalsdist/cli.js eval <skill-path> (spawns real agent CLIs — slow, needs codex or claude on PATH)

Key Conventions

  • Use OpenSpec for non-trivial changes. New work goes under openspec/changes/<slug>/ with proposal.md, design.md, tasks.md, and specs/<capability>/spec.md deltas. Validate with npx openspec validate <id> --strict before committing.
  • Skillet makes zero LLM calls. The CLI is a file/state manager, validator, and mechanical eval runner. All generation happens in host agents, driven by the skills/skillet-authoring skill and skillet instructions --json. Do not add provider SDKs, API-key handling, or in-process agent loops.
  • Per-skill artifacts: spec.md is the source of truth; SKILL.md and evals/cases/*.yaml are derived by agents and validated by the CLI. Skillet never regenerates or overwrites eval cases.
  • Keep the CLI, user docs, lifecycle reference, and skills/skillet-authoring synchronized. Changes to commands, status/JSON, validation, artifact grammar, or eval semantics must update the surfaces that teach that behavior.
  • Dogfood authoring changes with the freshly built CLI: run npm run build, inspect dist/cli.js status skills/skillet-authoring --json, fetch the touched dist/cli.js instructions <artifact> ... --json, edit the spec first for behavior changes, re-render SKILL.md with the current hash, update eval coverage, then run validate and eval --dry.
  • Unit tests live next to their modules (*.test.ts) and must run offline in milliseconds. Anything spawning a real harness CLI is manual/dogfood territory (examples/), not the test suite.
  • Don't bypass hooks (--no-verify), don't --force-push to main, don't amend already-pushed commits without asking.
  • Lint gate: npm run lint runs oxlint with --deny-warnings plus ast-grep — it must be completely clean before committing.
  • Prefer hard cutover over backwards-compat shims unless the change crosses a published surface.
  • Minimize defensive programming — no fallbacks for systems expected to work. Trust internal contracts; only validate at system boundaries (user input, external APIs, spawned processes).
  • Keep public surfaces small: fewer exported types/functions, fewer integration points, explicit contracts.

Engineering Principles

  • Optimize for obvious code over flexible-but-indirect abstractions.
  • Keep public interfaces small and intention-revealing.
  • Let file/module structure carry context so names do not have to.
  • Prefer domain language over mechanism language.
  • Every exported function must have a brief JSDoc comment explaining its intent (the why, not the what).

Policies

  • policies/README.md (when to add a policy doc and how policy docs should stay scoped)
  • policies/code-comments.md (repo default for code comments, docstrings, and exported-function JSDoc)
  • policies/skill-creation-lifecycle.md (keep LIFECYCLE.md current when the artifact flow changes)
  • policies/policy-template.md (template for adding new policy docs)

Investigation-First Development

  • Before implementing anything that depends on an external system (codex/claude CLI flags, OpenSpec validator), read the relevant documentation or check the installed binary first. State the constraint being relied on before writing code.
  • When changing a function signature, error contract, or shared pattern, grep for all consumers and verify each one still works.
  • If a fix attempt fails, stop. Re-read the error, trace the full system from input to output, and identify the root cause before trying another fix.

Architecture

The end-to-end artifact flow is documented in LIFECYCLE.md. Module ownership:

  • src/spec/ — the spec.md grammar: template, single-pass parser with line-accurate issues, slugs.
  • src/evals/ — case schema (case.ts), workspace lifecycle (workspace.ts), deterministic checks (checks.ts), agentless dry-run analysis (runner.ts), and result/lift math (results.ts).
  • src/engine/ — the embedded Vitest + vitest-evals eval engine: case compilation to generated test files (compile.ts), the in-worker harness/judge/test registration (worker.ts, bundled separately to dist/worker.js), programmatic orchestration + result reassembly (orchestrate.ts).
  • src/harness/ — everything that spawns agent CLIs: config resolution (config.ts), invocation building + process control (run.ts), skill installation per adapter (install.ts), the judge prompt/verdict protocol (judge.ts).
  • src/instructions/ — the writing guidance served by skillet instructions (hard budget: ≤200 lines per artifact).
  • src/commands/ — one file per CLI command; src/cli.ts is a lazy dispatch table.
  • src/status.ts / src/validate.ts — the two cross-artifact aggregators (state from disk; full-skill validation report).
  • Use openspec/specs/<capability>/spec.md as the canonical capability description. Don't duplicate spec content into AGENTS.md.

Known OpenSpec Capabilities

Run ls openspec/specs/ for the current list. In-flight changes live under openspec/changes/; archived changes under openspec/changes/archive/.

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.