agentleFS
yaokai123yaokai123/AgentPaw/AGENTS.md

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.

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

    Keep it consistent with the implementation.

    line 41
  2. Distinctive:

    Do not turn it into an aspirational design.

    line 42
  3. Distinctive:

    If the target architecture is unclear or disputed, stop and clarify it before writing production code.

    line 47
  4. Distinctive:

    Prefer readable modular diagrams over one giant diagram.

    line 49
  5. Very specific:

    If SPEC.md adds a concept, field, boundary, component, or phase, update PLAN.md.

    line 105
  6. Very specific:

    If PLAN.md marks a milestone complete, update the relevant SPEC.md current-status section.

    line 106
  7. Very specific:

    If implementation deviates from SPEC.md, either adjust implementation or update the spec with the new decision.

    line 107
  8. Distinctive:

    Do not leave a plan item marked done unless code, docs, and verification evidence support it.

    line 108
  9. Distinctive:

    Before substantial code changes:

    line 112
  10. Very specific:

    Check docs/SPEC.md and docs/PLAN.md.

    line 114
  11. Very specific:

    Check the relevant module SPEC.md and PLAN.md when the change touches a long-lived module.

    line 115
  12. Very specific:

    If there is no clear Target Architecture Mermaid diagram, or if the target diagram does not match the requested work, update or discuss the …

    line 119
  13. Distinctive:

    After substantial code changes:

    line 121
  14. Very specific:

    Update Current Architecture in the relevant SPEC.md if the implemented architecture changed.

    line 123
  15. Very specific:

    Update Target Architecture if the intended direction changed or if the target has been reached and needs to be reset.

    line 124
  16. Very specific:

    Update PLAN.md with completed work, remaining work, next steps, acceptance criteria, risks, and verification evidence.

    line 125
  17. Distinctive:

    Do not call a trace catalog a complete replay benchmark until replay cases, verifiers, and scorecards exist.

    line 134

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

  1. 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.
  2. 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 --> F

PLAN.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.md adds a concept, field, boundary, component, or phase, update PLAN.md.
  • If PLAN.md marks a milestone complete, update the relevant SPEC.md current-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.md and docs/PLAN.md.
  • Check the relevant module SPEC.md and PLAN.md when the change touches a long-lived module.
  • Confirm that the relevant SPEC.md has both Current Architecture and Target Architecture Mermaid diagrams.
  • Confirm that the Target Architecture matches 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 Architecture in the relevant SPEC.md if the implemented architecture changed.
  • Update Target Architecture if the intended direction changed or if the target has been reached and needs to be reset.
  • Update PLAN.md with completed work, remaining work, next steps, acceptance criteria, risks, and verification evidence.

Benchmark Module Convention

For benchmarks/:

  • benchmarks/SPEC.md defines the generic trace -> episode -> case -> replay -> verifier -> scorecard architecture.
  • benchmarks/PLAN.md maintains current progress and next implementation milestones.
  • Each benchmark folder can add its own SPEC.md and EVALUATION.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.
  • InspectorCat discovers issues and routes them.
  • EngineerCat implements fixes.
  • ReviewerCat owns replay, verification, scorecard, and closed/reopened decisions.
  • ResearcherCat owns 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.

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.