agentleFS
justincordovajustincordova/agents/AGENTS.md

agents

AGENTS.md1 starsChanged 4 months agoMITView on GitHub

Justin Cordova New features (design decisions needed): brainstorm → design doc → (plan only if complex) → execute → (iterate) → sync-docs when ready Small iterations (bugfixes, tweaks, mechanical changes): (skip brainstorm) → execute Greenfield (no SPEC.md yet): brainstorm → spec (interview mode, writes initial SPEC.md) → plan → execute Rules: - Brainstorm is optional. Use it when the work involves genuine design decisions, multiple viable approaches, or unclear scope. Skip it for mechanical changes where the design is obvious.…

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, 13 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

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

    Brainstorm is optional: Use it when the work involves genuine design decisions, multiple viable approaches, or unclear scope.

    line 19
  2. Distinctive:

    sync-docs is on-demand, not automatic: Run it when you want to reconcile docs after iterating — typically after 3-5 small changes have …

    line 24
  3. Distinctive:

    Plans are disposable: Create, execute, done. For changes, write a new plan.

    line 25
  4. Very specific:

    When reading SPEC.md, always check docs/designs/ for in-flight features that SPEC.md may not reflect yet.

    line 27
  5. Distinctive:

    Keep the subject line under 72 characters

    line 49
  6. Very specific:

    When a project has phase/milestone structure, record the specific milestone→tag mapping in a project-local docs/VERSIONING.md, not here.

    line 68
  7. Distinctive:

    Before any commit, the project must build and pass.

    line 73
  8. Very specific:

    Run tests (e.g. go test ./..., npm test, dotnet test, etc.)

    line 75
  9. Distinctive:

    Run type checking / linting if applicable

    line 76
  10. Distinctive:

    If anything fails, fix it.

    line 78
  11. Distinctive:

    Prefer small, focused diffs.

    line 84
  12. Distinctive:

    If a file has no precedent for something, follow the nearest pattern in the repo.

    line 86
  13. Distinctive:

    No commented-out code. Remove it or don't write it.

    line 87
  14. Distinctive:

    Never touch files outside the scope of the current task.

    line 96
  15. Distinctive:

    If context is getting large, say so — don't silently degrade.

    line 97
  16. Distinctive:

    Treat every task as if a senior engineer will review it tomorrow.

    line 98

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

Developer

Justin Cordova

Planning Workflow

New features (design decisions needed): brainstorm → design doc → (plan only if complex) → execute → (iterate) → sync-docs when ready

Small iterations (bugfixes, tweaks, mechanical changes): (skip brainstorm) → execute

Greenfield (no SPEC.md yet): brainstorm → spec (interview mode, writes initial SPEC.md) → plan → execute

Rules:

  • Brainstorm is optional. Use it when the work involves genuine design decisions, multiple viable approaches, or unclear scope. Skip it for mechanical changes where the design is obvious.
  • Plans are always opt-in. After brainstorm produces a design doc, the developer decides whether to write a plan. Simple implementations go straight to execute using the design doc as context. Small iterations go straight to execute with no plan at all. Only write a plan when the developer explicitly invokes /plan — typically for complex designs, possibly using a stronger model.
  • Design docs are the session-boundary artifact for new features. Brainstorm writes docs/designs/<feature>.md. A new session can pick up from here — either going to plan or straight to execute.
  • SPEC.md is only updated when the user decides to reconcile. Either via sync-docs (which merges implemented design docs into SPEC.md and deletes them) or via direct spec skill invocation. Never updated automatically from brainstorm, plan, or execute.
  • SPEC.md has one owner — the spec skill. Brainstorm never writes to SPEC.md (except via greenfield handoff). Plan never writes to SPEC.md. Execute never writes to SPEC.md. sync-docs can edit SPEC.md directly when reconciling drift.
  • sync-docs is on-demand, not automatic. Run it when you want to reconcile docs after iterating — typically after 3-5 small changes have accumulated, or after a feature ships and stabilizes.
  • Plans are disposable. Create, execute, done. For changes, write a new plan.
  • Plans live in docs/plans/<feature-name>-plan.md. Design docs live in docs/designs/<feature-name>.md and persist until sync-docs merges them into SPEC.md.
  • When reading SPEC.md, always check docs/designs/ for in-flight features that SPEC.md may not reflect yet.

Git Conventions

Commits are feature-scoped.

Format: type(scope): description

Common types:

  • feat — new feature
  • fix — bug fix
  • refactor — code restructure with no behavior change
  • chore — maintenance, deps, config
  • docs — documentation only
  • test — test additions or changes
  • style — formatting only

Rules:

  • Never append "Generated with Claude Code", "Co-authored by Claude", or any AI attribution footer to commit messages
  • One commit per logical feature or change — not per file, not per session, not per minor task
  • Description is lowercase, no trailing period
  • Keep the subject line under 72 characters

Versioning

Track three independent things; do not conflate them.

  • Commits (fine grain). Conventional Commits (type(scope): description, above) are the detailed version history. One per logical change.
  • Milestone tags (coarse grain). Tag meaningful milestones with annotated git tags using 0.x pre-release SemVer: each shipped phase/milestone is a minor bump (v0.1.0, v0.2.0, …), fixes within a milestone are patch bumps, and v1.0.0 is the project's stated definition-of-done. Use git tag -a vX.Y.Z -m "..." so the tag records what landed. Prefer this over maintaining a separate CHANGELOG for solo projects. Tag only when the milestone's gate/exit criteria are actually green.
  • Data/save-format version (if the project persists state). A monotonic integer inside the serialized format, independent of git tags and SemVer. Bump it only on a breaking schema change, and ship a forward migration. It changes for different reasons than releases, so never tie it to a git tag.

When a project has phase/milestone structure, record the specific milestone→tag mapping in a project-local docs/VERSIONING.md, not here.

Pre-Commit Gate

Before any commit, the project must build and pass. Run in order:

  1. Build the project (e.g. go build ./..., npm run build, dotnet build, etc.)
  2. Run tests (e.g. go test ./..., npm test, dotnet test, etc.)
  3. Run type checking / linting if applicable

If anything fails, fix it. Do not commit broken code.


Code Style

  • Prefer small, focused diffs. Never refactor unrelated code in the same change.
  • Match the existing style of the file you are editing — do not impose conventions.
  • If a file has no precedent for something, follow the nearest pattern in the repo.
  • No commented-out code. Remove it or don't write it.
  • Explicit is better than clever. Readability first.

General Rules

  • During brainstorming, ask clarifying questions if the task is ambiguous.
  • During brainstorming, share best practice recommendations relevant to the question being asked.
  • Never touch files outside the scope of the current task.
  • If context is getting large, say so — don't silently degrade.
  • Treat every task as if a senior engineer will review it tomorrow.

Rules

@rules/code-quality.md

@RTK.md

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.