junior
AGENTS.md365 starsChanged 8 months agoApache-2.0View on GitHub
Use pnpm: pnpm install, pnpm dev, pnpm test, pnpm typecheck, pnpm skills:check.
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 repository42 other files it gives its agents.
- packages/docs/public/llms.txtllms.txt
- nitroSkill
- pi-agent-integrationSkill
- public-docsSkill
- slack-developmentSkill
- vercel-queuesSkill
- vercel-sandboxSkill
- example-bundle-helpSkill
- example-localSkill
- agent-browserSkill
- demo-videoSkill
- visual-web-qaSkill
- amplitudeSkill
- cloudflareSkill
- datadogSkill
- coding-workspace-fixtureSkill
- github-headless-pr-fixtureSkill
- eval-guardian-actionsSkill
- eval-authSkill
- eval-directorySkill
- eval-mcpSkill
- eval-oauthSkill
- eval-operationSkill
- incident-briefSkill
- resilient-working-directorySkill
- source-handbookSkill
- weather-lookupSkill
- github-codeSkill
- github-issuesSkill
- hexSkill
- linearSkill
- self-updateSkill
- notionSkill
- octolensSkill
- sentrySkill
- jr-rpcSkill
- eval-authSkill
- eval-mcp-openSkill
- ttsSkill
- vercelSkill
- junior-qaSkill
- juniorSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Use the words in TERMINOLOGY.md.
- Very specific: line 8
Write docs, policies, plans, and explanations in ASD-STE100 English.
- Very specific: line 10
Use pnpm: pnpm install, pnpm dev, pnpm test, pnpm typecheck, pnpm skills:check.
- Very specific: line 32
Use /commit for commits, /pr-writer for pull requests, and /skill-writer for skill changes.
- Distinctive: line 34
Search every consumer before changing a shared signature, error contract, or name.
- Distinctive: line 35
When adding or renaming a shared export, search its exact name and the canonical domain terms a maintainer would use.
- Distinctive: line 38
Run applicable checks, move durable explanations beside the owning code, and delete completed plans.
- Very specific: line 42
Follow policies/testing.md and policies/evals.md.
- Distinctive: line 43
Before adding a test, search every test layer for the behavior and extend its primary owning scenario.
- Distinctive: line 44
Do not write automated tests for migrations or migration SQL.
- Distinctive: line 45
Do not add tests for most visual changes.
- Distinctive: line 46
Add automated coverage for UI only when the change owns a product behavior contract: navigation, interaction, accessibility state, request …
- Distinctive: line 47
Do not repeat the same behavioral assertion at multiple layers or add one test per implementation branch.
- Very specific: line 48
Test harness mechanics live in packages/junior/tests/README.md and packages/junior-evals/README.md.
- Very specific: line 56
Keep all provider-specific routes, API fields, permissions, errors, formatting, and policy in the owning plugin package.
- Very specific: line 57
If a plugin needs a runtime capability, add the smallest provider-neutral contract to core or packages/junior-plugin-api.
- Very specific: line 58
Treat provider names, hosts, routes, and control flow in core as an architecture warning even when a static dependency rule cannot detect …
- Very specific: line 59
Read packages/junior/src/chat/README.md before changing shared chat runtime behavior.
- Distinctive: line 61
Keep formatter output. Do not compress or undo formatting to keep a code file below 1,000 lines.
- Distinctive: line 66
Do not add mutable runtime globals or test-only singleton mutation APIs.
≈ “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
Core Principles
- Use the words in
TERMINOLOGY.md. Do not invent synonyms, overloaded terms, or long compound names when an existing term fits. - This is TypeScript/JavaScript, not Java. Prefer functions, plain objects, simple types, and small modules. Avoid class hierarchies, manager/factory names, and interface layers unless they solve a real problem; follow
policies/interface-design.md. - Optimize for the next maintainer. Choose the smallest design that solves the proven problem, keep complexity local, and avoid speculative abstractions, configuration, extension points, and wrappers; follow
policies/correctness-complexity.md. - Write docs, policies, plans, and explanations in ASD-STE100 English. Use common words, active voice, short sentences, and one idea per sentence. Keep required terms from
TERMINOLOGY.mdand explain them when needed. Remove other jargon.
Use pnpm: pnpm install, pnpm dev, pnpm test, pnpm typecheck, pnpm skills:check.
Commands
| Task | Command |
| Unit/integration test file | pnpm --filter @sentry/junior exec vitest run path/to/file.test.ts |
| Eval harness test file | pnpm --filter @sentry/junior-evals test path/to/file.test.ts |
| Behavioral eval file | pnpm --filter @sentry/junior-evals evals:behavioral path/to/eval.eval.ts |
| Behavioral eval case | pnpm --filter @sentry/junior-evals evals:behavioral path/to/eval.eval.ts -t "case name" |
| Integration eval file | pnpm --filter @sentry/junior-evals evals:integration path/to/file.eval.ts |
| Integration eval case | pnpm --filter @sentry/junior-evals evals:integration path/to/file.eval.ts -t "case name" |
| Guardian eval file | pnpm --filter @sentry/junior-evals evals:guardian path/to/file.eval.ts |
| Guardian eval case | pnpm --filter @sentry/junior-evals evals:guardian path/to/file.eval.ts -t "case name" |
| Router eval file | pnpm --filter @sentry/junior-evals evals:router path/to/file.eval.ts |
| Router eval case | pnpm --filter @sentry/junior-evals evals:router path/to/file.eval.ts -t "case name" |
| Generate package schema | pnpm --filter <package> db:generate |
| Dashboard e2e | pnpm test:e2e:dashboard |
| Release package alignment | pnpm release:check |
Workflow
- Use
/commitfor commits,/pr-writerfor pull requests, and/skill-writerfor skill changes. - For non-trivial changes: discover, implement the smallest vertical slice, verify, and summarize.
- Search every consumer before changing a shared signature, error contract, or name; use a hard cutover unless compatibility is explicitly required.
- When adding or renaming a shared export, search its exact name and the canonical domain terms a maintainer would use. The owner and consumers should be easy to distinguish without knowing the file path first.
- Let unexpected failures reach the owning boundary; retry only expected transient failures. Follow
policies/error-handling.md. - Exported functions need brief intent-focused JSDoc; follow
policies/code-comments.md. - Run applicable checks, move durable explanations beside the owning code, and delete completed plans.
Testing And Validation
- Follow
policies/testing.mdandpolicies/evals.md. Product/runtime behavior belongs in integration tests through real Junior wiring (fake only Slack and LLMs via shared harnesses); agent interpretation and reply quality belong in evals; unit tests are reserved for isolated deterministic logic. - Before adding a test, search every test layer for the behavior and extend its primary owning scenario. A source change does not automatically require a new test, and equal- or higher-fidelity existing coverage is sufficient.
- Do not write automated tests for migrations or migration SQL. Use migration metadata and schema generation checks, then test the resulting product behavior through its primary owning scenario.
- Do not add tests for most visual changes. Layout, styling, spacing, theme, copy presentation, and other look-and-feel work should be manually QA'd with visual evidence. Do not add unit, component, snapshot, or browser regression tests just because a UI file changed.
- Add automated coverage for UI only when the change owns a product behavior contract: navigation, interaction, accessibility state, request or response shape, auth gating, or a realistic failure path. Even then, extend the primary owning scenario instead of adding a new junk case.
- Do not repeat the same behavioral assertion at multiple layers or add one test per implementation branch. Add cross-layer coverage only for a distinct contract or failure boundary, and use representative cases unless exhaustive inputs protect a local deterministic invariant.
- Test harness mechanics live in
packages/junior/tests/README.mdandpackages/junior-evals/README.md. - For local evals, run
pnpm dev:envonce, rundocker compose up -d postgres redis, and ensurecloudflaredis onPATH. Do not bind environment variables manually; the eval config loads repo env files and provisions test databases. - Validate non-Slack agent behavior with
pnpm cli -- chat ...; seepackages/docs/src/content/docs/contribute/local-agent-validation.md. - Telemetry is diagnostic, not a product behavior assertion; follow
policies/observability.mdandTELEMETRY.md.
Architecture
- Core owns the runtime and provider-neutral plugin contracts. Plugins own their domain behavior.
- Keep all provider-specific routes, API fields, permissions, errors, formatting, and policy in the owning plugin package. For example, GitHub behavior belongs in
packages/junior-github. - If a plugin needs a runtime capability, add the smallest provider-neutral contract to core or
packages/junior-plugin-api. Do not add the provider's decision to core. - Treat provider names, hosts, routes, and control flow in core as an architecture warning even when a static dependency rule cannot detect the problem. Follow
policies/provider-boundaries.md. - Read
packages/junior/src/chat/README.mdbefore changing shared chat runtime behavior; it owns flow, module boundaries, vocabulary, and invariants. - Group files by feature and import feature files directly; do not add feature-directory barrels.
- Keep formatter output. Do not compress or undo formatting to keep a code file
below 1,000 lines. Split a formatted file that exceeds 1,000 lines at a clear
feature or ownership boundary. Existing exceptions must stay named and
explained in
scripts/file-length-exceptions.mjs; followpolicies/correctness-complexity.md. - Do not add mutable runtime globals or test-only singleton mutation APIs.
Where Rules Live
| Need | Source |
| Repo-wide policy index | policies/README.md |
| Runtime vocabulary | TERMINOLOGY.md |
| Design and failures | policies/interface-design.md, policies/correctness-complexity.md, policies/error-handling.md |
| Frontend components | policies/frontend-components.md, packages/junior-dashboard/src/client/components/README.md |
| Agent steering | policies/agent-steering.md |
| Provider boundaries | policies/provider-boundaries.md |
| Comments and telemetry | policies/code-comments.md, policies/observability.md, TELEMETRY.md |
| Chat architecture | packages/junior/src/chat/README.md |
| Testing and evals | policies/testing.md, policies/evals.md, packages/junior/tests/README.md, packages/junior-evals/README.md |
| Local agent validation | packages/docs/src/content/docs/contribute/local-agent-validation.md |
| Temporary plans | openspec/changes/<slug>/ |
Feature architecture and non-obvious invariants belong in the owning package or module README.md. Code, schemas, exported types, and tests are authoritative. Plans cannot override policy; update the policy for an exception.
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.

