flow
AGENTS.md1 starsChanged 5 months agoMITView on GitHub
Project instructions for any AI coding agent (Claude Code, OpenAI Codex, GitHub Copilot CLI, Cursor, Gemini CLI, and other AGENTS.md-compatible tools). This file holds the tool-agnostic rules. Tool-specific notes live in that tool's own file; for Claude Code that is CLAUDE.md, which imports this file. A cross-tool plugin for an advanced, staged agentic-coding workflow: research, then plan, then implement, then validate, resetting context between stages. See README.md. Never make changes directly on the main branch. No exceptions. Why: main must…
We split this AGENTS.md into the rules it gives an agent
14 rules. About 0 are common, 8 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Create a feature branch before generating or modifying ANY file: code, tests, docs, or workflow artifacts under flow/.
- Distinctive: line 14
Every change reaches main through a pull request, never a direct commit.
- Distinctive: line 15
Before starting any step that writes files (research, planning, implementation, validation):
- Distinctive: line 16
Check the current branch: git branch --show-current
- Very specific: line 17
If on main, create a feature branch immediately: git checkout -b feature/<name>
- Distinctive: line 18
Only proceed once on a feature branch.
- Distinctive: line 19
If you find yourself on main with changes, stop, create a feature branch, and move the changes there before continuing.
- Distinctive: line 27
Always branch from main; never commit to main directly.
- Very specific: line 34
Plan: write an implementation plan before coding.
- Very specific: line 46
Use navigable links for file references: filename, not bare backticks.
- Distinctive: line 48
Keep instruction files (this file and CLAUDE.md) lean and hand-written, roughly 150 to 200 lines maximum.
- Distinctive: line 54
Use navigable links for file references in work items, not just code-highlighted text.
- Very specific: line 56
Avoid:
config.py(highlighted but not navigable) - Very specific: line 90
none: no state tracking; skills proceed without an issue tracker.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Project instructions for any AI coding agent (Claude Code, OpenAI Codex, GitHub Copilot CLI, Cursor, Gemini CLI, and other AGENTS.md-compatible tools). This file holds the tool-agnostic rules. Tool-specific notes live in that tool's own file; for Claude Code that is CLAUDE.md, which imports this file.
Project overview
A cross-tool plugin for an advanced, staged agentic-coding workflow: research, then plan, then implement, then validate, resetting context between stages. See README.md.
Critical: feature-branch requirement
Never make changes directly on the main branch. No exceptions.
- Create a feature branch before generating or modifying ANY file: code, tests, docs, or workflow artifacts under
flow/. - Every change reaches
mainthrough a pull request, never a direct commit. - Before starting any step that writes files (research, planning, implementation, validation):
- Check the current branch:
git branch --show-current - If on
main, create a feature branch immediately:git checkout -b feature/<name> - Only proceed once on a feature branch.
- Check the current branch:
- If you find yourself on
mainwith changes, stop, create a feature branch, and move the changes there before continuing.
Why: main must stay stable and deployable, every change needs review, and accidental main commits disrupt the workflow.
Branch naming
- Features:
feature/<issue-number>-<brief-description> - Bug fixes:
bugfix/<issue-number>-<brief-description> - Always branch from
main; never commit tomaindirectly.
Workflow: research, plan, implement, validate
Stage the work and reset context between stages. Each stage leaves a durable artifact under flow/:
- Research: understand before changing. Output a markdown file in flow/research/.
- Plan: write an implementation plan before coding. Output a markdown file in flow/plans/.
- Implement: execute the plan in phases, pausing for verification between phases.
- Validate: a quality gate before committing. Run the existing test suite, confirm the implementation matches the plan, and catch issues before they reach version control.
Pause for human review at the research and plan boundaries; those are the highest-leverage review points.
Project conventions
Fill in as the project gains them (package manager, formatters and linters, testing approach). Keep entries specific and load-bearing.
Documentation conventions
- Use navigable links for file references:
[filename](path/to/file), not bare backticks. - Reference code with line numbers:
path/to/file.ts:42; use#L50-L75for ranges in links. - Keep instruction files (this file and CLAUDE.md) lean and hand-written, roughly 150 to 200 lines maximum. Generic or auto-generated guidance measurably reduces task success, so write only specific, load-bearing rules.
Work-item / issue conventions
These apply to any tracker the project uses (GitHub Issues, Azure DevOps work items, GitLab issues, and so on).
- Use navigable links for file references in work items, not just code-highlighted text.
- Good:
[config.py](src/backend/config.py)(clickable) - Avoid:
`config.py`(highlighted but not navigable)
- Good:
- Link formats: relative
[config.py](src/backend/config.py); with line[config.py:50](src/backend/config.py#L50); with range[config.py:50-75](src/backend/config.py#L50-L75).
Workflow state lifecycle
The workflow assumes an issue tracker (GitHub Issues, Azure DevOps work items, GitLab issues, and so on), but skills talk to it through a thin adapter at .claude/scripts/tracker.sh, so any backend can plug in. See docs/tracker-portability.md for the contract and supported backends.
Each workflow step transitions a work item through these neutral states:
New work item
↓ research step
research-in-progress → research-complete
↓ planning step
planning-in-progress → ready-for-dev
↓ implementation step
in-progress
↓ validation (on failure) OR PR creation (on success)
validation-failed OR pr-submittedState meanings:
research-in-progress: research underwayresearch-complete: research done, ready for planningplanning-in-progress: plan being createdready-for-dev: has an approved plan, ready to implementin-progress: development underwayvalidation-failed: implementation failed validationimplementation-failed: implementation could not be completedpr-submitted: PR created, awaiting review
How each backend stores the state:
- GitHub: labels with these exact names (1:1).
- Azure DevOps: Tags (free-form, same names), optionally with typed State transitions (see .claude/tracker.example.json).
none: no state tracking; skills proceed without an issue tracker.
Build and test commands
# No build/test commands - markdown skills plus a shell tracker adapter.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 28,693 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.
- CLAUDE.mdCLAUDE.md
- commitSkill
- create-handoffSkill
- create-planSkill
- cross-reviewSkill
- describe-prSkill
- handle-pr-feedbackSkill
- implement-planSkill
- initSkill
- iterate-planSkill
- advanced-evaluationSkill
- research-codebaseSkill
- research-requirementsSkill
- resume-handoffSkill
- validate-planSkill
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.

