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.
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- skillet-authoringSkill
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
- Very specific: line 5
Use npm: npm install, npm run build, npm run typecheck, npm run check, npm run format.
- Very specific: line 20
Before dispatch, add the matching CHANGELOG.md section and run npm run check, npm run docs:check, and npm run build.
- Very specific: line 21
Do not run npm version, create release branches or tags, or publish npm packages manually.
- Very specific: line 39
Use OpenSpec for non-trivial changes.
- Very specific: line 42
Keep the CLI, user docs, lifecycle reference, and skills/skillet-authoring synchronized.
- Very specific: line 45
Don't bypass hooks (--no-verify), don't --force-push to main, don't amend already-pushed commits without asking.
- Distinctive: line 47
Prefer hard cutover over backwards-compat shims unless the change crosses a published surface.
- Distinctive: line 49
Keep public surfaces small: fewer exported types/functions, fewer integration points, explicit contracts.
- Distinctive: line 54
Keep public interfaces small and intention-revealing.
- Distinctive: line 56
Prefer domain language over mechanism language.
- Distinctive: line 57
Every exported function must have a brief JSDoc comment explaining its intent (the *why*, not the *what*).
- Distinctive: line 68
Before implementing anything that depends on an external system (codex/claude CLI flags, OpenSpec validator), read the relevant …
- Distinctive: line 69
When changing a function signature, error contract, or shared pattern, grep for all consumers and verify each one still works.
- Distinctive: line 70
If a fix attempt fails, stop.
- Very specific: line 83
Use openspec/specs/<capability>/spec.md as the canonical capability description.
- Very specific: line 87
Run ls openspec/specs/ for the current list.
≈ “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.
Files
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; choosepatch,minor,major, or an explicit version. Useforce=trueonly when the user explicitly asks to bypass blockers. - Before dispatch, add the matching
CHANGELOG.mdsection and runnpm run check,npm run docs:check, andnpm 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/publishrequest only after its release-branch CI passes, then verify the npmlatesttag, GitHub release, and mergedmain.
File-Scoped Commands
| Task | Command |
| Typecheck | npm run typecheck |
| Lint | npm run lint (oxlint + ast-grep) |
| Format check | npm run format (oxfmt --check) |
| Format fix | npm run format:fix |
| Unit tests | npm run test (vitest, no LLM/network) |
| One test file | npx vitest run src/spec/parser.test.ts |
| Build | npm run build |
| Skill evals | dist/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>/withproposal.md,design.md,tasks.md, andspecs/<capability>/spec.mddeltas. Validate withnpx openspec validate <id> --strictbefore 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-authoringskill andskillet instructions --json. Do not add provider SDKs, API-key handling, or in-process agent loops. - Per-skill artifacts:
spec.mdis the source of truth;SKILL.mdandevals/cases/*.yamlare 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-authoringsynchronized. 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, inspectdist/cli.js status skills/skillet-authoring --json, fetch the toucheddist/cli.js instructions <artifact> ... --json, edit the spec first for behavior changes, re-renderSKILL.mdwith the current hash, update eval coverage, then runvalidateandeval --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-pushto main, don't amend already-pushed commits without asking. - Lint gate:
npm run lintruns oxlint with--deny-warningsplus 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(keepLIFECYCLE.mdcurrent 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 todist/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 byskillet instructions(hard budget: ≤200 lines per artifact).src/commands/— one file per CLI command;src/cli.tsis 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.mdas 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/.
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.

