AgentPaw
AGENTS.md1 starsChanged 3 months agoApache-2.0View on GitHub
This repository uses spec / plan driven engineering. Development is gated by architecture clarity: keep the repository and each durable module's design, target architecture, execution plan, and verification status together so humans can quickly understand what exists now, what is being built next, and why. The project-level source of truth lives under docs/: Each substantial long-lived module must maintain: Examples of modules, not an exhaustive list: Small utilities do not need their own spec/plan unless they become a durable subsystem.
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,774 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 repository15 other files it gives its agents.
- agent-browserSkill
- background-task-runnerSkill
- officecli-docxSkill
- officecli-pptxSkill
- officecli-xlsxSkill
- rememberSkill
- role-publishSkill
- self-evolutionSkill
- skill-publishSkill
- swebench-correctorSkill
- swebench-recoverySkill
- swebench-reviewerSkill
- swebench-solverSkill
- vision-analysisSkill
- webcliSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
17 rules. About 0 are common, 8 are distinctive, and 9 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.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Keep it consistent with the implementation.
- Distinctive: line 42
Do not turn it into an aspirational design.
- Distinctive: line 47
If the target architecture is unclear or disputed, stop and clarify it before writing production code.
- Distinctive: line 49
Prefer readable modular diagrams over one giant diagram.
- Very specific: line 105
If SPEC.md adds a concept, field, boundary, component, or phase, update PLAN.md.
- Very specific: line 106
If PLAN.md marks a milestone complete, update the relevant SPEC.md current-status section.
- Very specific: line 107
If implementation deviates from SPEC.md, either adjust implementation or update the spec with the new decision.
- Distinctive: line 108
Do not leave a plan item marked done unless code, docs, and verification evidence support it.
- Distinctive: line 112
Before substantial code changes:
- Very specific: line 114
Check docs/SPEC.md and docs/PLAN.md.
- Very specific: line 115
Check the relevant module SPEC.md and PLAN.md when the change touches a long-lived module.
- Very specific: line 119
If there is no clear Target Architecture Mermaid diagram, or if the target diagram does not match the requested work, update or discuss the …
- Distinctive: line 121
After substantial code changes:
- Very specific: line 123
Update Current Architecture in the relevant SPEC.md if the implemented architecture changed.
- Very specific: line 124
Update Target Architecture if the intended direction changed or if the target has been reached and needs to be reset.
- Very specific: line 125
Update PLAN.md with completed work, remaining work, next steps, acceptance criteria, risks, and verification evidence.
- Distinctive: line 134
Do not call a trace catalog a complete replay benchmark until replay cases, verifiers, and scorecards exist.
≈ “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
XiaoBa-CLI Agent Instructions
This repository uses spec / plan driven engineering. Development is gated by architecture clarity: keep the repository and each durable module's design, target architecture, execution plan, and verification status together so humans can quickly understand what exists now, what is being built next, and why.
Module Docs Rule
The project-level source of truth lives under docs/:
docs/SPEC.md: repository-wide architecture, boundaries, core concepts, data contracts, and module relationships.docs/PLAN.md: repository-wide current status, milestones, completed work, remaining work, next steps, owners, acceptance criteria, risks, and verification evidence.
Each substantial long-lived module must maintain:
SPEC.md: direction, scope, architecture, data contracts, boundaries, and design decisions.PLAN.md: current status, completed work, remaining work, owners, priority, milestones, and acceptance criteria.
Examples of modules, not an exhaustive list:
benchmarks/roles/roles/<role-name>/- future runtime, harness, skill, dashboard, adapter, logging, replay, verifier, or other durable subsystems when they grow large enough.
Small utilities do not need their own spec/plan unless they become a durable subsystem.
SPEC.md Expectations
SPEC.md should answer:
- What problem does this module solve?
- What is in scope and out of scope?
- What are the main concepts and boundaries?
- What is the target architecture?
- What data contracts, schemas, APIs, or file layouts matter?
- How does this module interact with other modules?
Each substantial SPEC.md must include two simple Mermaid architecture diagrams:
Current Architecture- Describe the architecture that the current code actually implements.
- Keep it consistent with the implementation.
- Do not turn it into an aspirational design.
Target Architecture- Describe the architecture the current development effort is moving toward.
- Make it clear enough to guide implementation decisions.
- If the target architecture is unclear or disputed, stop and clarify it before writing production code.
Prefer readable modular diagrams over one giant diagram. Keep diagrams simple, horizontal, and uncolored unless there is a strong reason otherwise.
Preferred diagram style:
flowchart LR
subgraph Inputs["Inputs:来源"]
A["source A"]
B["source B"]
end
subgraph Runtime["Runtime:核心处理"]
C["core component"]
D["side component"]
end
subgraph Outputs["Outputs:产物"]
E["artifact"]
F["report"]
end
A --> C
B --> C
C --> D
C --> E
D --> FPLAN.md Expectations
PLAN.md should answer:
- What is already done?
- What is partially done?
- What is not started?
- What is the recommended next step?
- Who owns each class of work?
- What are the acceptance criteria?
- What changed since the last major planning update?
PLAN.md should include a current-state architecture or progress diagram when helpful. The plan diagram should emphasize status and progress, not ideal design only.
Suggested sections:
- Current Status
- Milestones
- Next Steps
- Owners
- Acceptance Criteria
- Risks / Open Questions
- Status Maintenance Rules
Spec / Plan Coupling
Specs and plans must stay in sync:
- If
SPEC.mdadds a concept, field, boundary, component, or phase, updatePLAN.md. - If
PLAN.mdmarks a milestone complete, update the relevantSPEC.mdcurrent-status section. - If implementation deviates from
SPEC.md, either adjust implementation or update the spec with the new decision. - Do not leave a plan item marked done unless code, docs, and verification evidence support it.
Development Gate
Before substantial code changes:
- Check
docs/SPEC.mdanddocs/PLAN.md. - Check the relevant module
SPEC.mdandPLAN.mdwhen the change touches a long-lived module. - Confirm that the relevant
SPEC.mdhas bothCurrent ArchitectureandTarget ArchitectureMermaid diagrams. - Confirm that the
Target Architecturematches the user's requested direction.
If there is no clear Target Architecture Mermaid diagram, or if the target diagram does not match the requested work, update or discuss the target architecture first. Do not proceed into production implementation until the target Mermaid architecture is clear.
After substantial code changes:
- Update
Current Architecturein the relevantSPEC.mdif the implemented architecture changed. - Update
Target Architectureif the intended direction changed or if the target has been reached and needs to be reset. - Update
PLAN.mdwith completed work, remaining work, next steps, acceptance criteria, risks, and verification evidence.
Benchmark Module Convention
For benchmarks/:
benchmarks/SPEC.mddefines the generic trace -> episode -> case -> replay -> verifier -> scorecard architecture.benchmarks/PLAN.mdmaintains current progress and next implementation milestones.- Each benchmark folder can add its own
SPEC.mdandEVALUATION.md. - Do not call a trace catalog a complete replay benchmark until replay cases, verifiers, and scorecards exist.
Role Module Convention
For roles/ and roles/<role-name>/:
- Role docs should clearly describe responsibility boundaries.
InspectorCatdiscovers issues and routes them.EngineerCatimplements fixes.ReviewerCatowns replay, verification, scorecard, and closed/reopened decisions.ResearcherCatowns long-running research workflow state, not runtime benchmark replay.
Working Rule
Architecture first, then implementation. A substantial change should not begin until the relevant target Mermaid architecture is understood well enough to guide the work.
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.

