agentleFS
corticalstackcorticalstack/flow/AGENTS.md

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
  1. Very specific:

    Create a feature branch before generating or modifying ANY file: code, tests, docs, or workflow artifacts under flow/.

    line 13
  2. Distinctive:

    Every change reaches main through a pull request, never a direct commit.

    line 14
  3. Distinctive:

    Before starting any step that writes files (research, planning, implementation, validation):

    line 15
  4. Distinctive:

    Check the current branch: git branch --show-current

    line 16
  5. Very specific:

    If on main, create a feature branch immediately: git checkout -b feature/<name>

    line 17
  6. Distinctive:

    Only proceed once on a feature branch.

    line 18
  7. Distinctive:

    If you find yourself on main with changes, stop, create a feature branch, and move the changes there before continuing.

    line 19
  8. Distinctive:

    Always branch from main; never commit to main directly.

    line 27
  9. Very specific:

    Plan: write an implementation plan before coding.

    line 34
  10. Very specific:

    Use navigable links for file references: filename, not bare backticks.

    line 46
  11. Distinctive:

    Keep instruction files (this file and CLAUDE.md) lean and hand-written, roughly 150 to 200 lines maximum.

    line 48
  12. Distinctive:

    Use navigable links for file references in work items, not just code-highlighted text.

    line 54
  13. Very specific:

    Avoid: config.py (highlighted but not navigable)

    line 56
  14. Very specific:

    none: no state tracking; skills proceed without an issue tracker.

    line 90

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

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

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 main through a pull request, never a direct commit.
  • Before starting any step that writes files (research, planning, implementation, validation):
    1. Check the current branch: git branch --show-current
    2. If on main, create a feature branch immediately: git checkout -b feature/<name>
    3. Only proceed once on a feature branch.
  • If you find yourself on main with 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 to main directly.

Workflow: research, plan, implement, validate

Stage the work and reset context between stages. Each stage leaves a durable artifact under flow/:

  1. Research: understand before changing. Output a markdown file in flow/research/.
  2. Plan: write an implementation plan before coding. Output a markdown file in flow/plans/.
  3. Implement: execute the plan in phases, pausing for verification between phases.
  4. 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-L75 for 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)
  • 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-submitted

State meanings:

  • research-in-progress: research underway
  • research-complete: research done, ready for planning
  • planning-in-progress: plan being created
  • ready-for-dev: has an approved plan, ready to implement
  • in-progress: development underway
  • validation-failed: implementation failed validation
  • implementation-failed: implementation could not be completed
  • pr-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.

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.