CommandMate
AGENTS.md44 starsChanged 14 days agoMITView on GitHub
This document provides repository-level guidance for coding agents (including Codex) working in CommandMate. Before finishing, run relevant checks for changed scope: For small fixes, run targeted tests first, then expand only if needed.
- Deletes or force-pushes
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 31,700 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 repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- website/llms.txtllms.txt
- cmate-verifySkill
- demo-videoSkill
- video-to-gifSkill
- catalog-reconcileSkill
- cmate-verifySkill
- demo-videoSkill
- orchestrate-monitorSkill
- rebuildSkill
- release-postSkill
- releaseSkill
- video-to-gifSkill
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, 14 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Keep changes issue-focused and minimal.
- Distinctive: line 26
Prefer small, reviewable commits over large refactors.
- Distinctive: line 27
Do not introduce unrelated cleanups in the same change.
- Distinctive: line 28
If behavior changes, add or update tests in the same PR.
- Very specific: line 32
Use strict TypeScript types.
- Distinctive: line 34
Keep API validation explicit and defensive.
- Very specific: line 35
Follow existing React/Next.js patterns in the touched module.
- Distinctive: line 36
Keep comments short and meaningful.
- Distinctive: line 40
Do not perform destructive operations (git reset --hard, broad file deletion) unless explicitly requested.
- Distinctive: line 41
Do not overwrite user-authored files unexpectedly.
- Distinctive: line 42
Treat auth/security-related paths with extra care:
- Distinctive: line 50
Before finishing, run relevant checks for changed scope:
- Distinctive: line 67
Keep AGENTS.md concise and execution-oriented.
- Distinctive: line 68
Avoid duplicating large sections from CLAUDE.md.
- Distinctive: line 69
If guidance conflicts are found:
- Distinctive: line 71
Update this file and related docs together in the same PR.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
This document provides repository-level guidance for coding agents (including Codex) working in CommandMate.
Scope
- Applies to the entire repository.
- This file is the primary entry point for agent behavior in this repo.
- For detailed background and implementation history, refer to
README.md,docs/, andCLAUDE.md.
Project Context
- Project: CommandMate
- Stack: Next.js 15, React 19, TypeScript, Tailwind CSS 4, SQLite (
better-sqlite3) - Runtime: Node.js 22+
- Main areas:
src/app: App Router pages and API routessrc/lib: core business logic and utilitiessrc/components: UI componentstests/unit,tests/integration,tests/e2e: test suites
Working Principles
- Keep changes issue-focused and minimal.
- Preserve existing architecture and naming patterns.
- Prefer small, reviewable commits over large refactors.
- Do not introduce unrelated cleanups in the same change.
- If behavior changes, add or update tests in the same PR.
Coding Rules
- Use strict TypeScript types; avoid
anyunless unavoidable. - Reuse existing utilities in
src/libbefore adding new helpers. - Keep API validation explicit and defensive.
- Follow existing React/Next.js patterns in the touched module.
- Keep comments short and meaningful; avoid obvious comments.
Safety And Boundaries
- Do not perform destructive operations (
git reset --hard, broad file deletion) unless explicitly requested. - Do not overwrite user-authored files unexpectedly.
- Treat auth/security-related paths with extra care:
src/lib/auth.tssrc/middleware.tssrc/lib/env-sanitizer.tssrc/lib/ip-restriction.ts
Validation Checklist
Before finishing, run relevant checks for changed scope:
# unit tests
npm run test:unit
# integration tests when API/DB behavior changes
npm run test:integration
# lint when editing TS/React broadly
npm run lintFor small fixes, run targeted tests first, then expand only if needed.
Change Policy For Agent Docs
- Keep
AGENTS.mdconcise and execution-oriented. - Avoid duplicating large sections from
CLAUDE.md; link or reference instead. - If guidance conflicts are found:
- Prioritize explicit repository files and current code behavior.
- Update this file and related docs together in the same PR.
PR Expectations
- Title format:
feat: ...,fix: ...,docs: ..., etc. - Include:
- What changed
- Why it changed
- How it was validated
- Any known risks or follow-up tasks
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.

