super-stack
AGENTS.md0 starsChanged 7 months agoMITView on GitHub
Cross-host agent workflow for Claude Code and Codex. This repository provides a shared core: Use one workflow core across multiple agent hosts without coupling the project to a single plugin system. Skills in this repository are maintained in the source tree under skills/. Treat host-installed skill directories such as ~/.agents/skills or ~/.codex/skills as runtime copies unless a repository explicitly says otherwise. When improving a reusable skill, update the source repository first and only then sync or reinstall the runtime copies.
We split this AGENTS.md into the rules it gives an agent
102 rules. About 0 are common, 59 are distinctive, and 43 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈59
Distinctive · estimate
This author's own choices. Worth a look.
43
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use one workflow core across multiple agent hosts without coupling the project to a single plugin system.
- Very specific: line 21
Treat host-installed skill directories such as ~/.agents/skills or ~/.codex/skills as runtime copies unless a repository explicitly says …
- Distinctive: line 22
When improving a reusable skill, update the source repository first and only then sync or reinstall the runtime copies.
- Distinctive: line 26
Keep shared behavior in host-neutral files.
- Distinctive: line 27
Keep host-specific wiring thin.
- Distinctive: line 28
Prefer reusable skills over giant system prompts.
- Very specific: line 33
When the task targets super-stack itself, such as changing AGENTS.md, protocols/, skills/, templates/, or install-state behavior, locate …
- Very specific: line 35
Prefer ~/.super-stack/state/source-repo-path.txt over directory guessing.
- Very specific: line 36
If that file exists and points to a valid Git repository, treat it as the source repository.
- Very specific: line 37
Do not assume runtime copies such as ~/.agents/skills, ~/.codex/skills, or ~/.super-stack/runtime are the source of truth.
- Distinctive: line 45
Treat this chain as the primary operating model across hosts.
- Distinctive: line 81
When a request arrives, decide the current stage before taking action.
- Very specific: line 83
If the request is ambiguous or the desired outcome is underspecified, start at discuss.
- Very specific: line 84
If the request is a bug, failing test, flaky behavior, incorrect output, or unexplained runtime issue and the cause is not yet confirmed, …
- Very specific: line 85
If the request is a behavior change or bugfix with a practical automated test path, prefer tdd-execution before broad build.
- Very specific: line 86
If the user is comparing approaches or asking "what is the best way", start at brainstorm.
- Very specific: line 88
If the repository is unfamiliar or the task depends on understanding existing structure, start at map-codebase.
- Distinctive: line 89
When doing so, use a layered entry strategy: establish project baseline first, then nearby design, then the user-targeted module or flow.
- Very specific: line 90
If the user provides a concrete URL and the answer depends on the page's actual rendered content, start at browse.
- Distinctive: line 91
Do not stay on text fetches, mirrors, or search snippets as the primary path while browser evidence is available.
- Very specific: line 92
If scope is already clear but task breakdown is missing, start at plan.
- Very specific: line 93
If there is a current task with enough context to implement safely, go to build.
- Very specific: line 94
If the user asks for audit, PR review, merge readiness, bug/risk scan, regression review, or "帮我看看哪里有问题", go to review.
- Very specific: line 95
If implementation already exists and the remaining question is whether the requested outcome was actually achieved, go to verify.
- Very specific: line 96
If the task is user-facing validation, end-to-end confidence, staging checks, smoke validation, or release-candidate validation, go to qa.
- Very specific: line 97
If the work is complete and needs handoff, merge prep, or release summary, go to ship.
- Distinctive: line 99
Do not skip backward silently.
- Distinctive: line 103
Use these checks before entering a stage:
- Distinctive: line 106
no stable requirements exist yet, or the user outcome is still fuzzy
- Distinctive: line 127
Use supporting skills when the problem shape requires them:
- Distinctive: line 145
before designing, identify whether the target is a marketing surface, product workbench, redesign slice, or clickable prototype
- Distinctive: line 146
when redesigning an existing product, inspect real pages and user flows before choosing a layout direction
- Distinctive: line 180
when a concrete URL is present and browser tooling is available, original-page browser evidence is the default path rather than an optional …
- Distinctive: line 182
If a stage precondition is not met, route backward explicitly instead of improvising.
- Very specific: line 198
If the project does not yet have this scaffold, initialize it via repo-bootstrap or templates/generated-project/.
- Very specific: line 200
Only ignore host-generated or machine-local harness/.runtime/ artifacts such as hook logs.
- Very specific: line 207
read: docs/overview/project-overview.md, docs/reference/requirements.md, harness/state.md if present
- Very specific: line 208
write: clarify docs/overview/project-overview.md, docs/reference/requirements.md, harness/state.md
- Distinctive: line 210
read: requirements, constraints, existing code context
- Very specific: line 211
write: decision notes into harness/state.md and relevant docs/ notes when helpful
- Distinctive: line 213
read: local docs, manifests, source layout
- Very specific: line 214
write: docs/reference/codebase/* and harness/state.md
- Very specific: line 216
read: docs/overview/project-overview.md, docs/reference/requirements.md, harness/state.md
- Very specific: line 219
read: docs/overview/roadmap.md, harness/state.md, relevant code and tests
- Very specific: line 220
write: code changes and progress notes in harness/state.md
- Very specific: line 222
read: diff, tests, docs/overview/roadmap.md or request context
- Distinctive: line 223
write: no planning file required unless review changes release confidence or reveals blockers
- Distinctive: line 225
read: request outcome, requirements, tests, current state
- Very specific: line 226
write: update harness/state.md if verification changes readiness or reveals gaps
- Distinctive: line 228
read: requirements, current state, test/preview instructions
- Very specific: line 229
write: update harness/state.md if QA changes confidence or identifies blockers
- Very specific: line 231
read: harness/state.md, docs/overview/roadmap.md, diff, verification evidence
- Very specific: line 232
write: final readiness or release notes into harness/state.md when useful
- Very specific: line 234
When workflow defaults such as state continuity, commit conventions, language defaults, or shared operating guards matter, use …
- Distinctive: line 240
If the project already has explicit commit rules, follow the project rule instead of this default.
- Very specific: line 242
When a repository follows super-stack defaults and the user is iterating phase by phase, prefer a small rollback-safe commit at each …
- Distinctive: line 252
Treat a stage as complete only when its exit signal exists:
- Distinctive: line 273
Do not claim a later stage is complete while its exit criteria are still missing.
- Distinctive: line 277
Read local code and docs before making architectural assumptions.
- Distinctive: line 278
Prefer evidence over memory when behavior can be verified quickly.
- Distinctive: line 279
Keep edits targeted and reversible.
- Distinctive: line 280
Treat transient VPN or proxy related SSL and download failures as retry-first problems unless the error is clearly deterministic.
- Distinctive: line 281
Do not claim completion without fresh verification evidence.
- Very specific: line 282
Use protocols/workflow-governance.md when shared operating guards matter, especially for scope backtracking, environment interpretation, …
- Very specific: line 286
When the task is explicitly bug diagnosis, or when a failure exists but the root cause is not yet confirmed, route to debug before broad …
- Very specific: line 289
When a behavior change or bugfix has a practical automated test path, route to tdd-execution before ad hoc implementation unless you can …
- Very specific: line 290
When release confidence is the real question, use release-check before optimistic handoff.
- Very specific: line 291
When a request mixes design/proposal language with "顺手完善" or similar implementation wording, explicitly state whether this turn is …
- Distinctive: line 292
If a later-stage request lacks prerequisites, state the missing prerequisite and route to the right earlier stage.
- Distinctive: line 293
Keep workflow transitions explicit in user-facing updates.
- Distinctive: line 294
When a task spans multiple stages in one turn, announce the transition briefly instead of blending them invisibly.
- Distinctive: line 295
Prefer preserving stage outputs in files when they are likely to matter beyond the current turn.
- Distinctive: line 296
When a meaningful stage boundary is complete and locally verified, prefer asking for or preparing a commit-ready checkpoint so recovery …
- Distinctive: line 301
Use parallel agents when tasks are independent and write scopes do not overlap.
- Distinctive: line 303
Do not assume multi-agent work starts automatically just because a host has agent support enabled.
- Distinctive: line 304
Treat multi-agent as an explicit escalation path that requires all of the following:
- Very specific: line 325
use explorer when codebase structure or runtime behavior is unclear
- Very specific: line 326
use planner when implementation scope is too large or sequencing is fuzzy
- Very specific: line 327
use reviewer when changes are risky, broad, or about to be merged
- Distinctive: line 329
Do not delegate the primary user-facing workflow itself unless the host supports reliable multi-agent orchestration for that task.
- Distinctive: line 330
If multi-agent support exists in configuration but does not activate in practice, check host policy, current session permissions, and …
- Distinctive: line 334
Use these explicit backtracks:
- Distinctive: line 337
when the task is larger than expected or file scope is unclear
- Distinctive: line 338
when product entry shape, current-phase scope, architecture direction, database strategy, or reference-reuse boundary changed after coding …
- Distinctive: line 340
when a bug, failing test, flaky behavior, or incorrect output is being discussed but the root cause is still unconfirmed
- Distinctive: line 342
when the requested work is a behavior change or bugfix and a practical automated test path exists
- Distinctive: line 344
when the request itself is ambiguous or acceptance criteria are missing
- Distinctive: line 346
when findings require implementation changes
- Distinctive: line 348
when the user request is really an audit, risk scan, or merge-readiness check rather than implementation
- Distinctive: line 350
when code already exists and the unresolved question is completion evidence
- Distinctive: line 352
when the main work is validating a user flow, smoke path, staging candidate, or real runtime behavior
- Distinctive: line 354
when the task depends on a specific webpage's real rendered content, DOM, authenticated browser-visible state, or runtime browser evidence
- Distinctive: line 355
when static fetches, mirrors, search snippets, or raw HTML no longer provide trustworthy proof
- Distinctive: line 357
when evidence shows the requested outcome is not met
- Distinctive: line 359
when user-facing defects are confirmed
- Distinctive: line 361
when release confidence is not yet supported by evidence
- Distinctive: line 363
Always name the backtrack when it happens.
- Very specific: line 387
If the host does not automatically execute SKILL.md files, treat the names above as workflow stages and read the relevant skill file …
- Distinctive: line 391
When running on a host where skills may not auto-expand:
- Very specific: line 395
read the corresponding skills/.../SKILL.md only when more procedural detail is needed
- Distinctive: line 398
If the stage is clear and the work is straightforward, the router alone may be enough.
- Distinctive: line 399
If the stage needs a richer checklist or output shape, expand the corresponding skill file manually.
≈ “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
Super Stack
Cross-host agent workflow for Claude Code and Codex.
This repository provides a shared core:
AGENTS.mdfor cross-host operating guidanceskills/for reusable workflowstemplates/generated-project/for repo-local docs plus harness scaffoldprotocols/for stable engineering rules- host adapters under
claude/andcodex/
Intent
Use one workflow core across multiple agent hosts without coupling the project to a single plugin system.
Skill Source Of Truth
Skills in this repository are maintained in the source tree under skills/.
Treat host-installed skill directories such as ~/.agents/skills or ~/.codex/skills as runtime copies unless a repository explicitly says otherwise.
When improving a reusable skill, update the source repository first and only then sync or reinstall the runtime copies.
The design principle is:
- Keep shared behavior in host-neutral files.
- Keep host-specific wiring thin.
- Prefer reusable skills over giant system prompts.
- Persist project state in files, not only in conversation context.
Super-Stack Self-Maintenance
When the task targets super-stack itself, such as changing AGENTS.md, protocols/, skills/, templates/, or install-state behavior, locate the source-of-truth repository before proposing or making changes.
Prefer ~/.super-stack/state/source-repo-path.txt over directory guessing.
If that file exists and points to a valid Git repository, treat it as the source repository.
Do not assume runtime copies such as ~/.agents/skills, ~/.codex/skills, or ~/.super-stack/runtime are the source of truth.
Core Workflow
The default delivery chain is:
discuss -> plan -> build -> review -> verify -> ship
Treat this chain as the primary operating model across hosts.
On hosts with strong native skill execution, the matching skill may be applied directly.
On hosts where skill execution is weaker or inconsistent, follow the workflow from this file first and use skills/ as detailed reference material.
Supporting skills can be used within or between stages when appropriate:
debugfor bug diagnosis before fixingtdd-executionfor RED -> GREEN -> REFACTOR executionrepo-bootstrapfor inspecting a repository and conditionally initializing the standarddocs/ + harness/scaffold before task-level work beginsskill-maintenancefor creating, refactoring, or tightening repository skills and their referencesrelease-checkfor final release-readiness checksfrontend-refactorfor larger UI and interaction cleanupfrontend-designfor new UI direction, visual language, and anti-generic frontend executionbugfix-verificationfor proving a fix really closes the reported bugapi-change-checkfor contract drift and compatibility reviewdatabase-designfor schema, constraint, and index designapi-designfor contract and caller ergonomicsarchitecture-designfor larger structural decisionscodex-record-retrospectivefor reviewing Codex local records tied to a project path and feeding reusable lessons back into super-stackmigration-designfor phased schema and data rollout planningquery-optimizationfor evidence-based query and index tuningbackend-refactorfor structural backend cleanup without behavior driftintegration-designfor service and vendor boundary designservice-boundary-reviewfor responsibility and dependency boundary reviewscalability-checkfor load, growth, and concurrency risk reviewobservability-designfor logs, metrics, traces, and alerting designincident-debugfor production-style incident triage and mitigationsecurity-reviewfor trust-boundary and abuse-path reviewperformance-investigationfor evidence-based bottleneck diagnosisbrowsefor browser-side DOM, style, console, and network verificationpdffor PDF text extraction, rendering review, and generation tasks where layout or document fidelity mattersdocfor DOCX text extraction, structured editing, and rendered layout review when Word document fidelity matters
Default Execution Policy
When a request arrives, decide the current stage before taking action.
- If the request is ambiguous or the desired outcome is underspecified, start at
discuss. - If the request is a bug, failing test, flaky behavior, incorrect output, or unexplained runtime issue and the cause is not yet confirmed, start at
debug. - If the request is a behavior change or bugfix with a practical automated test path, prefer
tdd-executionbefore broadbuild. - If the user is comparing approaches or asking "what is the best way", start at
brainstorm. 4.1. If the request asks for a proposal, mechanism design, architecture note, or repository-governance change and the intended deliverable could reasonably be either discussion-only or direct repository edits, start atdiscussand make the expected deliverable explicit beforebuild. - If the repository is unfamiliar or the task depends on understanding existing structure, start at
map-codebase. When doing so, use a layered entry strategy: establish project baseline first, then nearby design, then the user-targeted module or flow. - If the user provides a concrete URL and the answer depends on the page's actual rendered content, start at
browse. Do not stay on text fetches, mirrors, or search snippets as the primary path while browser evidence is available. - If scope is already clear but task breakdown is missing, start at
plan. - If there is a current task with enough context to implement safely, go to
build. - If the user asks for audit, PR review, merge readiness, bug/risk scan, regression review, or "帮我看看哪里有问题", go to
review. - If implementation already exists and the remaining question is whether the requested outcome was actually achieved, go to
verify. - If the task is user-facing validation, end-to-end confidence, staging checks, smoke validation, or release-candidate validation, go to
qa. - If the work is complete and needs handoff, merge prep, or release summary, go to
ship.
Do not skip backward silently. If work reveals missing context, explicitly step back to the earlier stage that is needed.
Stage Preconditions
Use these checks before entering a stage:
discuss- no stable requirements exist yet, or the user outcome is still fuzzy
- the delivery shape is still ambiguous, such as "just analyze" versus "analyze and directly patch"
brainstorm- there is a real decision to compare, not just an implementation task
map-codebase- the task depends on understanding an unfamiliar existing codebase
plan- requirements are clear enough to sequence into phases or tasks
build- there is a sufficiently clear task, scope boundary, and target code area
review- there is already a concrete diff, branch, or implemented behavior to audit
verify- there is an outcome that can be checked with fresh evidence
- the main question is completion confidence, not broad risk discovery
qa- there is a user-facing flow, system interaction, or release candidate to validate
- the task needs runtime or flow-level confidence beyond static review
ship- implementation is done and the remaining work is handoff, merge prep, or release readiness
Use supporting skills when the problem shape requires them:
debug- a bug exists but the cause is not yet confirmed
tdd-execution- a behavior change should be driven by automated tests
release-check- readiness needs a stricter release gate than the normal
shipsummary
- readiness needs a stricter release gate than the normal
review- the user primarily wants risks, regressions, missing tests, or merge blockers called out
verify- implementation exists and the main need is evidence that the requested result is truly done
qa- the user wants confidence in a real flow, staging candidate, smoke path, or user-visible behavior rather than a diff audit
frontend-refactor- the work is a frontend cleanup or restructuring effort, not just a small UI tweak
frontend-design- the task is creating or reshaping a frontend visual direction and the main risk is bland, generic, or inconsistent UI
- before designing, identify whether the target is a marketing surface, product workbench, redesign slice, or clickable prototype
- when redesigning an existing product, inspect real pages and user flows before choosing a layout direction
bugfix-verification- a bugfix exists and needs focused proof that the symptom is truly closed
api-change-check- the change may affect API contracts, callers, validation, or compatibility
database-design- the task changes schema, indexes, query patterns, or persistence boundaries
api-design- the task defines or changes an API contract before implementation hardens
architecture-design- the task is really about system boundaries, module shape, or service structure
migration-design- the task changes existing data shape and needs phased rollout, backfill, or rollback planning
query-optimization- the problem is a slow query, poor index fit, or uncertain data access path
backend-refactor- backend code needs structural cleanup across handlers, services, repositories, or side effects
integration-design- the task introduces or reshapes a service, queue, webhook, or vendor integration boundary
service-boundary-review- the question is whether modules or services are split across the right ownership boundaries
scalability-check- the design may face throughput, concurrency, or growth limits that should be reviewed before shipping
observability-design- the task needs better operational signals, dashboards, alerts, or debugging visibility
incident-debug- the problem is an active production-like outage or degraded service that needs containment and diagnosis
security-review- the change crosses auth, secret, data exposure, or external attack-surface boundaries
performance-investigation- the problem is latency, throughput, memory, CPU, or rendering slowdown and the bottleneck is not yet confirmed
browse- the task needs browser-side evidence such as DOM state, styles, console errors, network requests, or runtime UI behavior
- the task points at a concrete webpage, article, post, or document URL and the answer depends on the original page content rather than a secondary summary
- when a concrete URL is present and browser tooling is available, original-page browser evidence is the default path rather than an optional enhancement
If a stage precondition is not met, route backward explicitly instead of improvising.
Shared State
Project docs and execution state live under docs/ and harness/ in the target project:
docs/index.md- documentation entrypoint and navigationdocs/overview/project-overview.md- project vision, scope, and constraintsdocs/overview/roadmap.md- phases, tasks, and dependenciesdocs/reference/conventions.md- language, commit, and project-specific engineering conventionsdocs/reference/requirements.md- optional numbered requirements and acceptance notes when a dedicated file is usefuldocs/reference/codebase/*- optional codebase maps whenmap-codebaseis activeharness/state.md- current status, active phase, blockers, and decisionsharness/history.md- append-first repository change history and validation milestonesharness/tasks/<task-id>/...- durable task packs for long-running work
If the project does not yet have this scaffold, initialize it via repo-bootstrap or templates/generated-project/.
Version these docs and harness files by default so workflow state survives across turns, hosts, and collaborators.
Only ignore host-generated or machine-local harness/.runtime/ artifacts such as hook logs.
Stage State Rules
Each stage should update or consume state predictably:
discuss- read:
docs/overview/project-overview.md,docs/reference/requirements.md,harness/state.mdif present - write: clarify
docs/overview/project-overview.md,docs/reference/requirements.md,harness/state.md
- read:
brainstorm- read: requirements, constraints, existing code context
- write: decision notes into
harness/state.mdand relevantdocs/notes when helpful
map-codebase- read: local docs, manifests, source layout
- write:
docs/reference/codebase/*andharness/state.md
plan- read:
docs/overview/project-overview.md,docs/reference/requirements.md,harness/state.md - write:
docs/overview/roadmap.md,harness/state.md
- read:
build- read:
docs/overview/roadmap.md,harness/state.md, relevant code and tests - write: code changes and progress notes in
harness/state.md
- read:
review- read: diff, tests,
docs/overview/roadmap.mdor request context - write: no planning file required unless review changes release confidence or reveals blockers
- read: diff, tests,
verify- read: request outcome, requirements, tests, current state
- write: update
harness/state.mdif verification changes readiness or reveals gaps
qa- read: requirements, current state, test/preview instructions
- write: update
harness/state.mdif QA changes confidence or identifies blockers
ship- read:
harness/state.md,docs/overview/roadmap.md, diff, verification evidence - write: final readiness or release notes into
harness/state.mdwhen useful
- read:
When workflow defaults such as state continuity, commit conventions, language defaults, or shared operating guards matter, use protocols/workflow-governance.md.
Documentation And Commit Conventions
See protocols/workflow-governance.md for documentation language defaults, state continuity defaults, and commit conventions.
If the project already has explicit commit rules, follow the project rule instead of this default.
When a repository follows super-stack defaults and the user is iterating phase by phase, prefer a small rollback-safe commit at each meaningful stage boundary instead of accumulating multiple unfinished stages into one large working tree.
When a repository follows super-stack defaults and the user is iterating phase by phase, prefer a small rollback-safe commit at each meaningful stage boundary instead of accumulating multiple unfinished stages into one large working tree.
Reference Reuse Boundary
See protocols/workflow-governance.md for the default interpretation of reference reuse.
Stage Exit Criteria
Treat a stage as complete only when its exit signal exists:
discuss- the request can be expressed as concrete scope, constraints, and success criteria
brainstorm- one option is recommended with clear trade-offs
map-codebase- architecture, structure, testing, integrations, and concerns are captured with evidence
plan- there is a roadmap or bounded task breakdown with clear next work
build- the requested task change is implemented and relevant evidence exists
review- findings are reported or the absence of findings is stated explicitly
verify- the requested outcome is mapped to current evidence and gaps are reported
qa- tested scope, issues, and remaining limits are reported
ship- readiness status and remaining blockers are explicit
Do not claim a later stage is complete while its exit criteria are still missing.
Operating Rules
- Read local code and docs before making architectural assumptions.
- Prefer evidence over memory when behavior can be verified quickly.
- Keep edits targeted and reversible.
- Treat transient VPN or proxy related SSL and download failures as retry-first problems unless the error is clearly deterministic.
- Do not claim completion without fresh verification evidence.
- Use
protocols/workflow-governance.mdwhen shared operating guards matter, especially for scope backtracking, environment interpretation, design artifact typing, and fork-aware redesign work. - For reviews, prioritize correctness, regressions, security, and missing tests.
- Route to
reviewwhen the user wants findings, not implementation. - For debugging, follow the debug protocol instead of guessing.
- When the task is explicitly bug diagnosis, or when a failure exists but the root cause is not yet confirmed, route to
debugbefore broad implementation. - Route to
verifywhen implementation already exists and the real question is whether the requested outcome is actually satisfied by fresh evidence. - Route to
qawhen confidence depends on user-facing flow validation, runtime interaction, smoke checks, or release-candidate behavior. - When a behavior change or bugfix has a practical automated test path, route to
tdd-executionbefore ad hoc implementation unless you can clearly justify why RED is impractical. - When release confidence is the real question, use
release-checkbefore optimistic handoff. - When a request mixes design/proposal language with "顺手完善" or similar implementation wording, explicitly state whether this turn is discussion-only or will apply repository changes before entering
build. - If a later-stage request lacks prerequisites, state the missing prerequisite and route to the right earlier stage.
- Keep workflow transitions explicit in user-facing updates.
- When a task spans multiple stages in one turn, announce the transition briefly instead of blending them invisibly.
- Prefer preserving stage outputs in files when they are likely to matter beyond the current turn.
- When a meaningful stage boundary is complete and locally verified, prefer asking for or preparing a commit-ready checkpoint so recovery does not depend on conversation memory or a giant uncommitted diff.
- When a meaningful stage boundary is complete and locally verified, prefer asking for or preparing a commit-ready checkpoint so recovery does not depend on conversation memory or a giant uncommitted diff.
Multi-Agent Guidance
Use parallel agents when tasks are independent and write scopes do not overlap.
Do not assume multi-agent work starts automatically just because a host has agent support enabled. Treat multi-agent as an explicit escalation path that requires all of the following:
- the host/session actually allows sub-agent orchestration
- the task has independent sidecar work, not one tightly coupled critical path
- file ownership can stay disjoint or read-only
- the expected gain is real enough to justify coordination overhead
Recommended roles:
planner- shape requirements or break work into tasksexplorer- gather read-only evidencereviewer- inspect risks, regressions, and missing testsbuilder- implement bounded changes
For Codex, mirror these roles through codex/agents/*.toml.
For Claude Code, keep equivalent role guidance in host instructions or skill text.
Escalation To Supporting Roles
Bring in supporting roles when a stage needs deeper evidence:
- use
explorerwhen codebase structure or runtime behavior is unclear - use
plannerwhen implementation scope is too large or sequencing is fuzzy - use
reviewerwhen changes are risky, broad, or about to be merged
Do not delegate the primary user-facing workflow itself unless the host supports reliable multi-agent orchestration for that task. If multi-agent support exists in configuration but does not activate in practice, check host policy, current session permissions, and whether the request ever crossed the explicit escalation threshold above.
Fallback And Backtracking Rules
Use these explicit backtracks:
- from
buildback toplan- when the task is larger than expected or file scope is unclear
- when product entry shape, current-phase scope, architecture direction, database strategy, or reference-reuse boundary changed after coding began
- from
buildback todebug- when a bug, failing test, flaky behavior, or incorrect output is being discussed but the root cause is still unconfirmed
- from
buildback totdd-execution- when the requested work is a behavior change or bugfix and a practical automated test path exists
- from
buildback todiscuss- when the request itself is ambiguous or acceptance criteria are missing
- from
reviewback tobuild- when findings require implementation changes
- from
buildback toreview- when the user request is really an audit, risk scan, or merge-readiness check rather than implementation
- from
buildback toverify- when code already exists and the unresolved question is completion evidence
- from
buildback toqa- when the main work is validating a user flow, smoke path, staging candidate, or real runtime behavior
- from
discuss,build, orverifyback tobrowse- when the task depends on a specific webpage's real rendered content, DOM, authenticated browser-visible state, or runtime browser evidence
- when static fetches, mirrors, search snippets, or raw HTML no longer provide trustworthy proof
- from
verifyback tobuild- when evidence shows the requested outcome is not met
- from
qaback tobuild- when user-facing defects are confirmed
- from
shipback toverifyorqa- when release confidence is not yet supported by evidence
Always name the backtrack when it happens.
Host Adapters
- Claude Code adapter:
claude/ - Codex adapter:
codex/
Adapters should reference this root file, not replace it.
Host-Neutral Routing
Map common requests to the workflow explicitly:
- vague feature or request clarification ->
discuss - architecture or option comparison ->
brainstorm - understanding an existing codebase ->
map-codebase - turning approved scope into tasks ->
plan - implementation against a current task ->
build - code audit or merge-readiness check ->
review - evidence gathering before completion ->
verify - user-facing or end-to-end validation ->
qa - release or handoff preparation ->
ship - concrete webpage, article, post, or document content analysis ->
browse
If the host does not automatically execute SKILL.md files, treat the names above as workflow stages and read the relevant skill file manually when more detail is needed.
Manual Skill Expansion
When running on a host where skills may not auto-expand:
- choose the stage from the routing table above
- state the chosen stage in your own reasoning and user update
- read the corresponding
skills/.../SKILL.mdonly when more procedural detail is needed - continue following
protocols/and thedocs/ + harness/state rules
If the stage is clear and the work is straightforward, the router alone may be enough. If the stage needs a richer checklist or output shape, expand the corresponding skill file manually.
Skill Layout
core/- request shaping and implementation entry pointsplanning/- roadmap and state managementquality/- review and verificationship/- release completion steps
Protocol References
protocols/tdd.mdprotocols/review.mdprotocols/verify.mdprotocols/debug.md
Skills should reference these files instead of duplicating large process descriptions.
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 repository42 other files it gives its agents.
- codex/AGENTS.mdAGENTS.md
- claude/CLAUDE.mdCLAUDE.md
- backend-refactorSkill
- buildSkill
- discussSkill
- docSkill
- frontend-designSkill
- frontend-refactorSkill
- low-altitude-interviewerSkill
- pdfSkill
- repo-bootstrapSkill
- skill-maintenanceSkill
- tdd-executionSkill
- architecture-guardrailsSkill
- closed-loop-testingSkill
- harness-marathonSkill
- task-harnessSkill
- api-designSkill
- architecture-designSkill
- brainstormSkill
- codex-record-retrospectiveSkill
- database-designSkill
- integration-designSkill
- map-codebaseSkill
- migration-designSkill
- observability-designSkill
- planSkill
- query-optimizationSkill
- scalability-checkSkill
- service-boundary-reviewSkill
- api-change-checkSkill
- browseSkill
- bugfix-verificationSkill
- debugSkill
- incident-debugSkill
- performance-investigationSkill
- qaSkill
- reviewSkill
- security-reviewSkill
- verifySkill
- release-checkSkill
- shipSkill
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.

