agentleFS
jtgsystemsjtgsystems/Custom-Modes-Roo-Code/AGENTS.md

Custom-Modes-Roo-Code

AGENTS.md185 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 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 repositoryOne other file it gives its agents.

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
  1. Distinctive:

    Default mode: smallest safe change that solves the verified problem.

    line 5
  2. Distinctive:

    Do not guess conventions.

    line 6
  3. Distinctive:

    Do not disable tests, lint, type checks, or security controls to make a change pass.

    line 7
  4. Distinctive:

    Do not introduce major-version dependency upgrades without a migration plan and a dedicated PR.

    line 8
  5. Distinctive:

    Keep changes focused on the task and match the existing file layout and naming patterns.

    line 35
  6. Distinctive:

    Update tests and docs when behavior changes or public interfaces move.

    line 36
  7. Common:

    Do not commit secrets, credentials, ad-hoc exports, or large generated artifacts unless the repository already tracks them intentionally.

    line 37
  8. Distinctive:

    Prefer the existing automation and CI workflow over one-off commands when both paths exist.

    line 38
  9. Distinctive:

    Follow existing architecture, conventions, and tooling.

    line 42
  10. Distinctive:

    Verify changes with the repo's actual checks, and add or update regression tests for behavior changes when practical.

    line 44
  11. Distinctive:

    Keep public APIs and backward compatibility stable unless the task explicitly allows a breaking change.

    line 45
  12. Distinctive:

    Do not overwrite user work, unrelated changes, or existing security controls just to make a check pass.

    line 46
  13. Distinctive:

    Update docs when commands, config, setup, architecture, or user-visible behavior changes.

    line 47
  14. Distinctive:

    If the change is ambiguous or high-risk, stop and produce a safe partial fix or a clear plan instead of guessing.

    line 48
  15. Distinctive:

    Leave clear notes on what changed, why it changed, what checks ran, and any remaining risk.

    line 49
  16. Very specific:

    Avoid archive-style folders unless the task explicitly targets them: .retired/.

    line 51
  17. Very specific:

    Treat packaged .vsix or other binary extension artifacts as outputs, not edit targets.

    line 54
  18. Distinctive:

    Start by reading this AGENTS.md and any closer AGENTS.md files in impacted directories.

    line 69
  19. Distinctive:

    When fixing behavior, add or update a regression test where practical.

    line 73
  20. Distinctive:

    Keep diffs small and reviewable.

    line 74
  21. Distinctive:

    Run all relevant checks for the area you changed: lint, typecheck, unit, integration, e2e, security, and build when the repo defines them.

    line 77
  22. Distinctive:

    Verify results and ensure there is no obvious regression.

    line 78
  23. Very specific:

    Update this file whenever the repo's actual commands, structure, or maintenance rules change.

    line 102

≈ “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

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.md
  • CONTRIBUTING.md
  • CLAUDE.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 with AGENTS.md if those files remain in use.
  • Avoid archive-style folders unless the task explicitly targets them: .retired/.

High-Risk Focus Areas

  • Treat packaged .vsix or 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.md and any closer AGENTS.md files 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, or P3
  • 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.

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.