Custom-Modes-Roo-Code
AGENTS.md184 starsChanged 11 months agoMITView on GitHub
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 33,398 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
23 rules. About 1 is common, 19 are distinctive, and 3 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
3
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
- Distinctive: line 5
Default mode: smallest safe change that solves the verified problem.
- Distinctive: line 6
Do not guess conventions.
- Distinctive: line 7
Do not disable tests, lint, type checks, or security controls to make a change pass.
- Distinctive: line 8
Do not introduce major-version dependency upgrades without a migration plan and a dedicated PR.
- Distinctive: line 35
Keep changes focused on the task and match the existing file layout and naming patterns.
- Distinctive: line 36
Update tests and docs when behavior changes or public interfaces move.
- Common: line 37
Do not commit secrets, credentials, ad-hoc exports, or large generated artifacts unless the repository already tracks them intentionally.
- Distinctive: line 38
Prefer the existing automation and CI workflow over one-off commands when both paths exist.
- Distinctive: line 42
Follow existing architecture, conventions, and tooling.
- Distinctive: line 44
Verify changes with the repo's actual checks, and add or update regression tests for behavior changes when practical.
- Distinctive: line 45
Keep public APIs and backward compatibility stable unless the task explicitly allows a breaking change.
- Distinctive: line 46
Do not overwrite user work, unrelated changes, or existing security controls just to make a check pass.
- Distinctive: line 47
Update docs when commands, config, setup, architecture, or user-visible behavior changes.
- Distinctive: line 48
If the change is ambiguous or high-risk, stop and produce a safe partial fix or a clear plan instead of guessing.
- Distinctive: line 49
Leave clear notes on what changed, why it changed, what checks ran, and any remaining risk.
- Very specific: line 51
Avoid archive-style folders unless the task explicitly targets them: .retired/.
- Very specific: line 54
Treat packaged .vsix or other binary extension artifacts as outputs, not edit targets.
- Distinctive: line 69
Start by reading this AGENTS.md and any closer AGENTS.md files in impacted directories.
- Distinctive: line 73
When fixing behavior, add or update a regression test where practical.
- Distinctive: line 74
Keep diffs small and reviewable.
- Distinctive: line 77
Run all relevant checks for the area you changed: lint, typecheck, unit, integration, e2e, security, and build when the repo defines them.
- Distinctive: line 78
Verify results and ensure there is no obvious regression.
- Very specific: line 102
Update this file whenever the repo's actual commands, structure, or maintenance rules change.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
Senior Maintainer Contract
- Purpose: keep this repository stable, secure, well-tested, and aligned with existing patterns.
- Default mode: smallest safe change that solves the verified problem.
- Do not guess conventions.
- Do not disable tests, lint, type checks, or security controls to make a change pass.
- Do not introduce major-version dependency upgrades without a migration plan and a dedicated PR.
Repository Snapshot
- Repository:
jtgsystems/Custom-Modes-Roo-Code - Default branch:
main - Visibility:
public - Summary: Custom modes for Roo Code VS Code extension - Enhanced AI coding assistance configurations
- Detected stack: mixed or uncategorized source repo
Read First
README.mdCONTRIBUTING.mdCLAUDE.md.github/workflows/
Key Paths
scripts/assets/agents/custom_modes.d/schemas/vs-code/
Directory Guidance
scripts/: keep maintenance scripts idempotent and document environment assumptions.
Repository Rules
- Keep changes focused on the task and match the existing file layout and naming patterns.
- Update tests and docs when behavior changes or public interfaces move.
- Do not commit secrets, credentials, ad-hoc exports, or large generated artifacts unless the repository already tracks them intentionally.
- Prefer the existing automation and CI workflow over one-off commands when both paths exist.
Global Best Practices
- Understand the repo before editing: read the local guidance, README, docs, and relevant tests first.
- Follow existing architecture, conventions, and tooling; do not guess stack-specific patterns when the repo already defines them.
- Make the smallest safe change that solves the real problem, and prefer focused diffs over broad rewrites.
- Verify changes with the repo's actual checks, and add or update regression tests for behavior changes when practical.
- Keep public APIs and backward compatibility stable unless the task explicitly allows a breaking change.
- Do not overwrite user work, unrelated changes, or existing security controls just to make a check pass.
- Update docs when commands, config, setup, architecture, or user-visible behavior changes.
- If the change is ambiguous or high-risk, stop and produce a safe partial fix or a clear plan instead of guessing.
- Leave clear notes on what changed, why it changed, what checks ran, and any remaining risk.
- Legacy agent guidance exists in
CLAUDE.md; keep it aligned withAGENTS.mdif those files remain in use. - Avoid archive-style folders unless the task explicitly targets them:
.retired/.
High-Risk Focus Areas
- Treat packaged
.vsixor other binary extension artifacts as outputs, not edit targets; prefer the unpacked source tree when one exists. - Permission or manifest changes are security-sensitive and should be reviewed as behavior changes, not cosmetic edits.
- Ops/config changes should be idempotent, explicit about host or shell assumptions, and careful about secrets, service restarts, and rollback safety.
Command Map
- Install: No dedicated install command detected from root manifests.
- Lint: No dedicated lint command detected.
- Typecheck: No dedicated typecheck command detected.
- Unit tests: No dedicated unit-test command detected.
- Integration tests: No dedicated integration-test command detected.
- E2E tests: No dedicated end-to-end test command detected.
- Build: No dedicated build command detected.
- Security scan: No dedicated security scan command detected; inspect
.github/workflows/or add one before relying on automated maintenance.
Maintenance Workflow
- Start by reading this
AGENTS.mdand any closerAGENTS.mdfiles in impacted directories. - Map the repo before editing: structure, package manager, lockfiles, scripts, tests, CI, and docs.
- For larger maintenance sweeps, parallelize independent review lanes for correctness, security, dependency/tooling health, and test/CI reliability when the agent runtime supports it.
- Prioritize work as P1 critical/security/production risk, P2 bugs/regressions/performance cliffs, P3 cleanup/readability.
- When fixing behavior, add or update a regression test where practical.
- Keep diffs small and reviewable; split unrelated fixes into separate PRs.
Done Definition
- Run all relevant checks for the area you changed: lint, typecheck, unit, integration, e2e, security, and build when the repo defines them.
- Verify results and ensure there is no obvious regression.
- Summarize changes, checks run, risks, and next steps.
Code Review Standard
- Correctness: does the change solve the problem, handle edge cases, and cover null/empty/error states?
- Regression risk: could it break existing contracts, schemas, or shared-module assumptions?
- Security: check auth, validation, injection, XSS, SSRF, CSRF, traversal, shell execution, secrets, and unsafe defaults.
- Data integrity: check migrations, partial writes, duplicate writes, stale caches, destructive updates, and rollback safety.
- Testing: ensure tests are sufficient, deterministic, and include a regression test for behavior fixes.
- Performance: look for N+1 queries, repeated computation, render loops, blocking I/O, and hot-path regressions.
- Maintainability: keep code understandable, aligned with existing abstractions, and free of dead code.
- Observability: preserve useful errors, logs, traces, and debugging context.
Review Output Format
- severity:
P1,P2, orP3 - category
- finding
- evidence
- recommended fix
- whether a test is missing
Notes
- CI source of truth lives in
.github/workflows/.
Update this file whenever the repo's actual commands, structure, or maintenance rules change.
Generated by scripts/github/agentsmd_rollout.py.
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.

