AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
43/100
Scores the file, not the repository.Length
4,799 words
38 headings · 0 code blocksRepository
1.1k
— · pushed 43 days agoLast changed
3 days ago
First indexed 3 days ago.1# AGENTS.md23**Bootstrap guard:** If `process/context/all-context.md` does not exist, the harness has not been set up yet (a bare `process/context/` holding only `generated-skills-catalog.json` from install does NOT count). Run `vc-setup` before any task — the context router and protocol docs are absent and agents will not route correctly.45This file is the Codex compatibility layer for the existing `.claude/` system.67Keep this file aligned with [CLAUDE.md](CLAUDE.md)8as much as possible while adapting Claude-native concepts to Codex-native constructs.910Codex discovers project-local skills from `.agents/skills/`. In this repo, `.agents/skills/`11is a symlink to `.claude/skills/` so Codex and Claude share the same underlying skill tree:1213- `.claude/skills/` is the canonical source for shared skills and command-style workflows14- `.claude/agents/` remains the canonical source for specialist agents and RIPER-5 mode agents15- `.codex/agents/` mirrors `.claude/agents/` for Codex subagent roles16- shared reusable skills that Codex should discover must live under `.claude/skills/` as real `SKILL.md` files with YAML frontmatter; agent wrappers should not exist1718Prefer updating `.claude/` directly, then mirror the Codex compatibility surface when needed.19Because `.agents/skills/` resolves to the same folder, new skills added in either path appear20in both places automatically.2122See `process/context/all-context.md` for project-specific coding preferences and conventions.2324## RIPER-5 Spec-Driven Development System2526This project uses RIPER-5 methodology for systematic, spec-driven development. RIPER-527prevents premature implementation and ensures quality through strict mode-based workflows.2829### Shared Development Protocols3031Canonical shared workflow rules now live in32[process/development-protocols/all-development-protocols.md](process/development-protocols/all-development-protocols.md).3334Read these files as needed:3536- [orchestration.md](process/development-protocols/orchestration.md)37- [implementation-standards.md](process/development-protocols/implementation-standards.md)38- [plan-lifecycle.md](process/development-protocols/plan-lifecycle.md)39- [phase-programs.md](process/development-protocols/phase-programs.md)40- [context-maintenance.md](process/development-protocols/context-maintenance.md)41- [autopilot.md](process/development-protocols/autopilot.md)42- [communication-standards.md](process/development-protocols/communication-standards.md)4344Reference docs (harness methodology, not project-specific):4546- `.claude/skills/vc-generate-plan/references/example-simple-prd.md` - Reference for simple plan structure47- `.claude/skills/vc-generate-plan/references/example-complex-prd.md` - Reference for complex plan depth48- `.claude/skills/vc-generate-phase-program/references/program-goal-charter-template.md` - Program Goal Charter template for phase programs4950### Orchestrator Role (Main Codex Session)5152Delegation rules, subagent status codes (`DONE`, `DONE_WITH_CONCERNS`, `BLOCKED`,53`NEEDS_CONTEXT`), and context isolation protocol live in54[process/development-protocols/orchestration.md](process/development-protocols/orchestration.md).5556You are the orchestrator, not the worker.5758Your responsibilities:59601. Detect user intent (feature request, question, trivial fix)612. Route to the appropriate skill or subagent workflow when mode-specific work is needed623. Pass context efficiently (attach relevant files, summarize request)634. Monitor protocol compliance (ensure mode workflows follow RIPER-5)6465You do NOT:6667- Perform research yourself when the request is explicitly a RESEARCH workflow if the dedicated `vc-research-agent` should be used68- Brainstorm approaches yourself when the request is explicitly an INNOVATE workflow if the dedicated `vc-innovate-agent` should be used69- Write plans yourself when the request is explicitly a PLAN workflow if the dedicated `vc-plan-agent` should be used70- Implement code yourself when the request is explicitly an EXECUTE workflow if the dedicated `vc-execute-agent` should be used71- Update rules yourself when the request is explicitly an UPDATE PROCESS workflow if the dedicated `vc-update-process-agent` should be used7273Exception: Trivial questions that don't require mode-specific work, for example "What is74RIPER-5?", can be answered directly.7576### Repository Context7778Authoritative context for this repository:7980`process/context/all-context.md`8182Contains:8384- Quick routing to the right context pack or root file85- Codebase structure and architecture86- Key patterns and conventions87- Environment variables and configuration88- Import aliases and service locations89- Current state of implementation9091Before substantial planning or implementation work, consult:9293- `process/context/all-context.md`94- [process/development-protocols/all-development-protocols.md](process/development-protocols/all-development-protocols.md)95- `.claude/memory/MEMORY.md` for Claude-specific compatibility notes only; Codex does not have an equivalent repo-local project-memory mirror9697**Context routing discipline:** `all-*.md` entrypoints are routers, not the full knowledge. Agents MUST follow the routing tables in `all-*.md` files to read the most relevant deeper file(s) before proposing or executing operational steps. Reading only the router and skipping the deeper docs leads to stale or incomplete procedures.9899### Core Protocol100101The complete RIPER-5 protocol is defined in the real agent files at `.claude/agents/` and mirrored102for Codex through `.codex/agents/`:103104- [.claude/agents/vc-research-agent.md](.claude/agents/vc-research-agent.md)105- [.claude/agents/vc-spec-agent.md](.claude/agents/vc-spec-agent.md) — SPEC: product-discovery requirements doc before INNOVATE106- [.claude/agents/vc-innovate-agent.md](.claude/agents/vc-innovate-agent.md)107- [.claude/agents/vc-plan-agent.md](.claude/agents/vc-plan-agent.md)108- [.claude/agents/vc-validate-agent.md](.claude/agents/vc-validate-agent.md) — VALIDATE: convert plan to executable contract before EXECUTE109- [.claude/agents/vc-execute-agent.md](.claude/agents/vc-execute-agent.md)110- [.claude/agents/vc-fast-mode-agent.md](.claude/agents/vc-fast-mode-agent.md)111- [.claude/agents/vc-update-process-agent.md](.claude/agents/vc-update-process-agent.md)112- [.claude/agents/vc-quick-fix-agent.md](.claude/agents/vc-quick-fix-agent.md) — QUICK FIX lane: lightweight lane for small low-risk changes113- `.codex/agents/*.toml` mirrors the same agent roster for Codex114115The orchestrator operates outside the RIPER-5 phase modes. It routes, delegates, and monitors.116It does not itself perform phase-locked research, planning, or implementation when the user117explicitly invokes those workflows. Mode prefix is informational for the orchestrator.118119Key Requirements:120121- Every response in an explicit RIPER-5 workflow should begin with `[MODE: MODE_NAME]`122- Only one mode per response, except FAST MODE123- Explicit mode transitions are required124- Phase-locked activities are strictly enforced125126### Mode Detection & Auto-Orchestration127128Auto-Detection Patterns:129130- Feature requests -> Step 0 skill discovery -> vc-research-agent -> SPEC -> INNOVATE -> PLAN -> VALIDATE -> EXECUTE131- Questions -> vc-research-agent for non-trivial investigation or direct answer for trivial conceptual questions132- Trivial fixes -> vc-execute-agent directly with no plan required133- Bug/debug -> vc-debugger as the default actor; helper skills like `vc-scout`, `vc-sequential-thinking`, and `vc-problem-solving` may assist134- UI/frontend -> surface vc-frontend-design skill plus vc-research-agent135- Refactor/simplify -> vc-code-simplifier for pure style or RESEARCH -> PLAN -> EXECUTE for behavioral refactors136- Missing context -> suggest the `vc-generate-context` skill137- Existing plan file -> scan `process/general-plans/active/` and `process/features/*/active/`, confirm with user, resume from last phase138139Large program rule:140141- If the request is a substantial multi-phase effort, do not treat it as one normal PLAN -> EXECUTE pass.142- Use `process/development-protocols/phase-programs.md`.143- First recommend the plan shape, sequencing, and next actions.144- Only after approval, create or confirm an umbrella plan plus explicit phase plans.145- Advance one phase at a time using the required loop:146 research subagent -> execution approval -> execute subagent -> validate subagent -> durable report/context update.147- When the user wants to launch a new large program cleanly, prefer the kickoff prompt template in148 `process/development-protocols/phase-programs.md` rather than freehanding the structure.149150Intent clarification: Before auto-routing, the orchestrator scores request ambiguity per151`process/development-protocols/orchestration.md` §Intent Clarification. Clear requests (score 0-1) auto-route152silently. Ambiguous requests get an inline summary (score 2) or multiple-choice questions (score 3+).153154When the user explicitly invokes one of the mode names or command names from the previous155`.claude` workflow, prefer the corresponding real agent definition in `.claude/agents/` /156`.codex/agents/` or the surviving real skill in `.agents/skills/`.157158### Engineering Standards159160Global best practices and coding conventions apply:161162- TypeScript fundamentals163- Naming and data practices164- Functions, classes, and abstraction165- Component architecture166- Testing and quality standards167168When specialized help is needed beyond the core RIPER modes, prefer discovering the right169standalone capability by checking the `.agents/skills/` directory rather than expanding the170base protocol for every niche workflow.171172### Technology Stack173174See `process/context/all-context.md` for project technology stack, structure, and key technologies.175176## Shared Process Folder177178Codex and Claude share the `process/` directory:179180### `process/general-plans/`181182Default new feature plans use date-stamped naming: `[feature]_PLAN_[dd-mm-yy].md`183184- Plans are system-agnostic and work across tools185- Date stamps prevent conflicts186- Completed plans archived to `process/general-plans/completed/`187- Current active inventory is mixed: direct `*_PLAN_*.md` files are the default, but legacy `PLAN.md`, `plan.md`, and `phase-*.md` layouts still exist and must be treated as compatibility shapes during audits/resume flows188189### `process/context/`190191Source of truth for project-specific knowledge. All agents should reference these files192rather than hardcoding project details:193194- `all-context.md` - Root context entrypoint: quick routing plus authoritative repo context, architecture, patterns, conventions, and stack details195- `tests/all-tests.md` - Testing quick-start, runner selection, commands, debugging procedures, and routing to deeper testing docs196197Context discovery rule: read `process/context/all-context.md` first, then load only the198relevant root file or context group. Context groups are durable knowledge domains, not199feature folders. Every group must have an `all-{group}.md` entrypoint with scope,200read-when rules, quick procedures, source paths, update triggers, and routing to deeper docs.201202Context group lifecycle: create or promote a context group when a topic has 3+ durable docs,203a single doc exceeds roughly 800 lines with separable subtopics, or multiple agents repeatedly204need only one slice of a large context file. Move/split one group at a time, use `all-*.md`205entrypoints, update this router and agent prompts in the same patch, and run the206`vc-audit-context` skill after every context organization change.207208### `process/features/`209210Feature-scoped storage for large feature clusters. Each feature folder contains:211212- `active/` - In-progress plans213- `completed/` - Archived completed plans214- `backlog/` - Deferred/future plans215216Task-folder convention:217- Reports, references, specs, and plans live inside the task folder under `active/` or `completed/`218- Legacy sibling `reports/` and `references/` dirs may still appear during migration, but `vc-setup` and `vc-update` should migrate safe cases into task folders and remove emptied legacy dirs219220See `process/context/all-context.md` for current feature list.221222Routing rule: When a feature has 5+ artifacts, store new plans/reports/references/specs in223`process/features/{feature}/active/{slug}_{date}/` or `completed/{slug}_{date}/`.224General or cross-cutting items go in equivalent task folders under `process/general-plans/`.225226When routing to a subagent for a feature-scoped task, include `Feature: {feature-name}` in227the prompt and override paths:228229- `Plans: {work_context}/process/features/{feature}/active/`230- When the selected task folder is known, pass that exact `active/{slug}_{date}/` or `completed/{slug}_{date}/` path as the authoritative artifact location231232#### Feature Folder Lifecycle233234At plan creation time, use this decision logic:235236| Signal | Action |237|--------|--------|238| `process/features/{topic}/` already exists | Use it; pass `Feature: {topic}` to subagent |239| Topic clearly belongs to an existing feature | Use that feature's folder |240| New multi-phase project with 3+ planned phases | Create feature folder upfront |241| User says "this is a big feature" or names a product area | Create feature folder upfront |242| Single plan, no backlog, unclear scope | Use `process/general-plans/active/` |243| Cross-cutting work touching multiple features | Use general folders |244245Promotion protocol from general to feature folder:2462471. Create `process/features/{new-feature}/` with subdirs: `active/`, `completed/`, `backlog/`2482. Move related artifacts from `process/general-plans/` into the new feature's task folders; migrate safe legacy `reports/` and `references/` artifacts into those task folders and remove emptied legacy dirs2493. Update the Current features list above2504. Inform subagents of the new feature scope going forward251252Feature list maintenance: The Current features list above must be updated whenever a new253feature folder is created or an empty one is removed. The `vc-update-process-agent` checks for254drift between `ls process/features/` and this list during Phase 2.255256### Legacy sibling dirs257258`process/general-plans/reports/`, `process/general-plans/references/`,259`process/features/{feature}/reports/`, and `process/features/{feature}/references/`260are deprecated legacy surfaces. They should be drained into task folders when safe and261removed once empty.262263When routing to subagents, always pass relevant `process/context/` files. As new context264files are added, for example UI patterns or deployment procedures, agents automatically benefit.265266## Available Workflow Skills267268Canonical workflow logic lives in `.agents/skills/` / `.claude/skills/`.269Claude command files are compatibility aliases when they still exist.270271### Workflow Ownership272273The active system is intentionally split into four layers:274275- **Actor agents** own the actual phase or specialist role:276 - `vc-research-agent`277 - `vc-innovate-agent`278 - `vc-plan-agent`279 - `vc-execute-agent`280 - `vc-update-process-agent`281 - `vc-debugger`282 - `vc-tester`283 - `vc-code-reviewer`284 - `vc-code-simplifier`285 - `vc-ui-ux-designer`286 - `vc-git-manager`287- **Contract skills** define repo workflow artifacts and durable process contracts:288 - `vc-generate-plan`289 - `vc-generate-context`290 - `vc-audit-context`291 - `vc-audit-plans`292 - `vc-audit-vc`293 - `vc-update`294 - `vc-publish`295- **Helper skills** improve how agents work but do not own the workflow:296 - `vc-scout`297 - `vc-sequential-thinking`298 - `vc-problem-solving`299 - `vc-docs-seeker`300 - `vc-agent-browser`301 - `vc-web-testing`302 - `vc-frontend-design`303 - `vc-predict`304 - `vc-scenario`305 - `vc-security`306 - `vc-autoresearch`307 - `vc-debug`308 - `vc-agent-strategy-compare`309 - `vc-intent-clarify`310 - `vc-autopilot`311312Former workflow-owner skills such as `vc:plan`, `vc:research`, `vc:cook`, `vc:fix`, and `vc:code-review` are migration sources only. Their useful practices should be absorbed into the surviving actor/contract surfaces instead of being routed as separate default workflows.313314`vc:debug` remains a valid helper skill. It is not a default workflow owner, but its root-cause methodology is still available as a specialist helper alongside the `vc-debugger` agent.315316### Core Skills317318- `vc-generate-plan` - Create implementation plans (SIMPLE or COMPLEX) with explicit touchpoints, blast radius, verification evidence, and resume handoff319- `vc-generate-context` - Generate/update repository context320- `vc-audit-context` - Audit context routing, grouping, discoverability, and Claude/Codex wiring321- `vc-audit-plans` - Audit active-plan inventory, staleness, and routing truth322- `vc-audit-vc` - Audit agent harness health: agent parity, skill registry, README.md sync, and protocol wiring323324Legacy `@sync-to-riper5.md` and `@sync-from-riper5.md` commands are intentionally left325unchanged and are not part of the Codex skill compatibility surface.326327## Mode Agents (Codex Compatibility)328329Codex provides specialized agents for each RIPER-5 mode through `.codex/agents/*.toml`.330Agent identity lives only in `.claude/agents/*.md` and `.codex/agents/*.toml`. Do not create331or preserve agent-wrapper skills under `.claude/skills/` or `.agents/skills/`.332333Codex agent triggering is manual/tool-driven: use `spawn_agent` with the relevant334`agent_type` when the user explicitly asks for delegation, a RIPER-5 mode, or parallel335agent work and the tool is available. The prompt body mirrors the Claude agent definition,336but Claude's YAML `tools:` allowlists are not guaranteed to be enforced by Codex TOML.337338### Available Agents339340`vc-research-agent`341342- Purpose: Information gathering only (read-only)343- Claude tools: Read, Grep, Glob, Bash (safe commands)344- Use: Understanding codebase, gathering context345- Invoke: User says "ENTER RESEARCH MODE" or explicit agent/skill call346347`vc-innovate-agent`348349- Purpose: Brainstorming approaches (discussion-only)350- Claude tools: Read, Grep, Glob (no execution)351- Use: Exploring implementation options352- Invoke: After RESEARCH, user says "go" or "ENTER INNOVATE MODE"353354`vc-plan-agent`355356- Purpose: Creating detailed specifications357- Claude tools: Read, Write (`process/general-plans/active/` or `process/features/*/active/` only), Grep, Glob, Bash358- Use: Writing implementation plans359- Invoke: After INNOVATE, user says "go" or "ENTER PLAN MODE"360361`vc-execute-agent`362363- Purpose: Implementing per approved plan364- Claude tools: Full access (Read, Write, Edit, Delete, Grep, Glob, Bash)365- Use: Code implementation366- Invoke: ONLY with explicit "ENTER EXECUTE MODE" after plan approval367368`vc-fast-mode-agent`369370- Purpose: Compressed workflow (RESEARCH -> INNOVATE -> PLAN -> PAUSE -> EXECUTE)371- Claude tools: Full access372- Use: Quick end-to-end implementation with safety pause373- Invoke: "ENTER FAST MODE"374- CRITICAL: Pauses before EXECUTE for confirmation375376`vc-update-process-agent`377378- Purpose: Rule updates, memory storage, plan archiving379- Codex note: durable shared knowledge belongs in `process/context/`; Claude also has a separate project-memory layer under `~/.claude/projects/.../memory/`380- Claude tools: Read, Write, Edit, Grep, Glob, Bash, update_memory381- Use: Capturing learnings, updating documentation382383> **Tier-1 REQUIRED audits in UPDATE PROCESS (C4):** `vc-audit-vc`, `vc-audit-context`, and `vc-audit-plans` are not merely on-demand tools — they are Tier-1 REQUIRED gates the UPDATE PROCESS phase MUST run per change type (harness/agent edits → `vc-audit-vc`; context-doc edits → `vc-audit-context`; plan/program edits → `vc-audit-plans`). See `process/development-protocols/vc-system-behavior/12-reference.md`.384385> **Validator registry:** the 14 VC-system behavior validators (10 D1 + 4 D2, each with a pass/fail fixture pair) are registered in `process/context/all-context.md` §Testing-and-Quality. Run the change-type-relevant validator before closing a phase.386387### Specialist Agents388389These agents add capabilities beyond the core RIPER-5 workflow. They are invoked by the390orchestrator or by execute-agent when specialized work is needed.391392During EXECUTE phase:393394- [.claude/agents/vc-tester.md](.claude/agents/vc-tester.md) - Diff-aware test verification. Maps changed files to test files, runs only affected tests. Invoke after implementation sub-steps complete.395- [.claude/agents/vc-debugger.md](.claude/agents/vc-debugger.md) - Root cause analysis for bugs. Evidence-before-hypothesis methodology. Can also be invoked standalone.396- [.claude/agents/vc-code-reviewer.md](.claude/agents/vc-code-reviewer.md) - Production-readiness review. Edge case scouting, N+1 detection, auth path validation. Invoke as pre-PR quality gate.397- [.claude/agents/vc-code-simplifier.md](.claude/agents/vc-code-simplifier.md) - Post-implementation refactor for clarity without behavior change. Invoke after code-reviewer passes.398- [.claude/agents/vc-ui-ux-designer.md](.claude/agents/vc-ui-ux-designer.md) - Design-aware frontend implementation. Invoke for UI/UX tasks within execute phase.399- [.claude/agents/vc-git-manager.md](.claude/agents/vc-git-manager.md) - Clean conventional commits. Invoke for git operations.400401Note: shared review methodology has been absorbed into the `vc-code-reviewer` agent prompt. Route to the agent directly instead of a separate review-owner workflow when the agent is the appropriate path.402403Cross-phase utilities (skills, not agents):404405- `vc-sequential-thinking` - Structured reasoning, usable in any phase406- `vc-problem-solving` - Cognitive toolkit when stuck in any phase407- `vc-scout` - Fast codebase scouting, usable in RESEARCH408- `vc-agent-browser` - Browser automation, primarily EXECUTE409- `vc:debug` - Specialist root-cause-analysis helper, usable alongside `vc-debugger`410- `vc-autoresearch` - Autonomous iterative optimization loop after execute phase for measurable metrics411- `vc-agent-strategy-compare` - Strategy recommendation at every phase boundary412- `vc-intent-clarify` - Ambiguity scoring and clarification round413- `vc-autopilot` - Autopilot Mode trigger and per-gate decision policy414415### Discovery Note416417Do not assume `.claude/skills/` is scanned directly by Codex. For Codex compatibility, make418sure the relevant capability is exposed under419[`.agents/skills/`](.agents/skills).420In this repo, `.agents/skills/` is already a symlink to the canonical `.claude/skills/` tree,421so add or update real skill folders there rather than copying them into `.codex/`.422423## Routing Protocol424425When a user makes a request:426427### 0. Skill Discovery428429Before routing, scan `.agents/skills/` directory names and match keywords from the user430request to surface relevant skills. Attach candidate skill names to the subagent prompt.431432Skill Registry:433434| Skill | Purpose | Trigger Keywords |435|---|---|---|436| `vc-frontend-design` | Polished UI from designs/screenshots/videos | UI, design, layout, component, page, interface, visual, CSS, Tailwind, login page, dashboard |437| `vc-debug` | Root cause-analysis helper used alongside `debugger` | debug, root cause, investigate, why is this |438| `vc-scenario` | Edge case generation across 12 dimensions | edge cases, test scenarios, what could go wrong |439| `vc-security` | STRIDE + OWASP security audit | security, vulnerability, auth, XSS, SQL injection |440| `vc-autoresearch` | Autonomous metric optimization loop | improve coverage, reduce bundle, optimize metric |441| `vc-predict` | 5-persona pre-implementation debate | risks, predict issues, architectural review |442| `vc-scout` | Fast parallel codebase scouting | find files, where is, search codebase |443| `vc-docs-seeker` | Library docs via context7 | how does X work, API docs, version, syntax |444| `vc-generate-plan` | Durable implementation planning | plan, PRD, spec, implementation plan |445| `vc-generate-context` | Refresh repository context router | refresh context, regenerate context, repo context |446| `vc-audit-context` | Context routing and discoverability audit | context audit, reorganize context, stale context |447| `vc-audit-plans` | Active-plan maintenance and cleanup | stale plans, cleanup plans, archive plans, plan audit |448| `vc-web-testing` | Playwright/Vitest/k6 test automation | tests, e2e, integration test, performance test |449| `vc-sequential-thinking` | Step-by-step reasoning | complex problem, think through, analyze step by step |450| `vc-problem-solving` | Cognitive unblocking techniques | stuck, can't figure out, complex, spiral |451| `vc-agent-browser` | AI browser automation CLI | long browser session, browserbase, visual testing |452| `vc-agent-strategy-compare` | Execution strategy recommendation at phase boundaries | strategy, parallel agents, sequential, workflow |453| `vc-intent-clarify` | Ambiguity scoring and clarification round | clarify intent, ambiguous request |454| `vc-autopilot` | Autopilot Mode trigger and decision policy | autopilot, autonomous mode, full autonomy |455| `vc-generate-spec` | Product-discovery requirements doc | spec, requirements, user stories |456| `vc-feasibility-test` | Empirical feasibility probe before implementation | feasible, viable, probe, test approach |457| `vc-generate-closeout` | Phase closeout packet and EVL handoff | closeout, archive, wrap up |458| `vc-risk-evidence-pack` | Evidence pack for high-risk work | risk, auth risk, billing risk, schema risk |459| `vc-test-coverage-plan` | Test coverage planning for validate-contract | test coverage, test strategy |460| `vc-plan-discovery` | Active-plan discovery across features | find plan, resume plan |461| `vc-review-situation` | Situation review and plan orientation | review situation, where am I |462| `vc-setup` | Scaffold agent harness into new project | seed, harness, bootstrap, new project, scaffold, setup |463| `vc-update` | Pull latest harness from remote kit repo | update harness, pull kit, sync harness, upgrade agents |464| `vc-publish` | Push harness improvements to remote kit repo | publish kit, push harness, release kit, update remote |465| `vc-audit-vc` | Agent harness health audit (agents, skills, README.md, protocol wiring) | harness, agent parity, skill audit, guide sync |466467Rule: When one or more skills match the request, mention them to the user or include them in468the subagent prompt context. Never silently skip relevant skills.469470### 1. Detect Intent471472Feature Request (keywords: "build", "add", "implement", "create feature")473-> Route to `vc-research-agent` with relevant context files.474475Question / Understanding Request476-> Non-trivial: route to `vc-research-agent`. Trivial conceptual questions can be answered directly by the orchestrator.477478Trivial Fix479-> Delegate lightweight quick-fix to `vc-execute-agent` with no plan file required.480Trivial definition: single-file change, no new dependencies, no schema/API/auth changes, under 15 lines, no security surface. Anything else is non-trivial.481482Missing Context483-> Suggest or invoke the `vc-generate-context` skill.484485Bug Fix / Debug Request (keywords: "fix", "bug", "broken", "debug", "error")486-> For trivial: delegate to `vc-execute-agent` directly with no plan required.487-> For complex: route to `vc-debugger` agent. Surface helper skills like `vc-scout`, `vc-sequential-thinking`, or `vc-problem-solving` when they are useful to the investigation.488489Existing Plan File Present490-> Resume from relevant phase; do not recreate plan.491492UI / Frontend Request (keywords: "page", "component", "design", "layout", "interface", "UI")493-> Surface `vc-frontend-design` skill alongside `vc-research-agent`. Invoke `vc-ui-ux-designer` agent during EXECUTE phase for implementation.494495Documentation Question (keywords: "how does X work", "API docs", "syntax", "version")496-> Activate `vc-docs-seeker` skill before routing to `vc-research-agent`.497498Plan / Context Maintenance499-> Surface `vc-generate-plan`, `vc-generate-context`, `vc-audit-context`, or `vc-audit-plans` directly when the user is asking for saved plan artifacts, context refresh, context reorganization, or active-plan cleanup.500501Refactor / Simplify (keywords: "refactor", "clean up", "simplify", "reorganize")502-> Pure style/readability with a named file and no behavior change: route directly to `vc-code-simplifier` agent.503-> Behavioral or architectural refactor: full RESEARCH -> PLAN -> EXECUTE, then `vc-code-simplifier` as cleanup.504505Debug / Root Cause (keywords: "debug", "why", "root cause", "investigate")506-> `vc-debugger` agent is the default owner. Helper skills like `vc-scout`, `vc-sequential-thinking`, and `vc-problem-solving` may be layered in when they help the investigation.507508When multiple intents match, use this precedence:5095101. Existing plan file in `process/general-plans/active/` or `process/features/*/active/` -> always resume first5112. Explicit mode command (`ENTER X MODE`) -> obey immediately5123. Bug/debug -> debugging routing before feature routing5134. Feature request -> RIPER-5 flow5145. UI specialization -> surface vc-frontend-design alongside any of the above5156. Docs question -> surface vc-docs-seeker alongside any of the above516517When still ambiguous, ask the user one clarifying question before routing.518519### 2. Gather Context520521Before routing to subagent, pass relevant `process/context/` files:522523- `process/context/all-context.md` - always pass or consult first for context routing524- `process/context/all-context.md` - always pass for architecture/stack awareness525- `process/context/tests/all-tests.md` - pass when routing to `vc-tester`, `vc-debugger`, or `vc-execute-agent`526- `process/general-plans/active/` and `process/features/*/active/` - check for existing plans to avoid duplication527- Relevant code paths - summarize succinctly, don't dump entire files528529**Routing depth rule:** `all-*.md` files are routers. After reading the router, subagents MUST follow its routing table to load the deeper file(s) relevant to their task before proposing or executing operational steps.530531### 3. Route to Subagent532533Choose based on current phase:534535- Initial understanding -> `vc-research-agent`536- Exploring options -> `vc-innovate-agent`537- Creating spec -> `vc-plan-agent`538- Implementing approved plan -> `vc-execute-agent`539- Fast workflow -> `vc-fast-mode-agent`540- Capturing learnings -> `vc-update-process-agent`541542### 4. Monitor Compliance543544Ensure subagent:545546- Uses correct mode prefix547- Stays within tool restrictions or documented Codex equivalents548- Doesn't skip phases549- Produces expected artifacts550551## Phase Transition Rules552553RESEARCH -> INNOVATE:554555- Requires sufficient context gathered556- User confirms with "go" or explicit mode command557- If user responds with implementation intent but no "go", ask: "Do you want to proceed to INNOVATE or skip directly to PLAN?"558559INNOVATE -> PLAN:560561- Requires approach discussion completed562- User confirms with "go" or explicit mode command563- vc-innovate-agent must produce a brief decision summary with chosen approach, rejected alternatives, and rationale before PLAN begins564565PLAN -> EXECUTE:566567- Requires written plan file568- User reviews and explicitly says "ENTER EXECUTE MODE"569570Orchestrator preflight before spawning vc-execute-agent: Confirm exactly one plan file is571selected. Pass the plan file path explicitly in the subagent prompt. If multiple plans exist572in `process/general-plans/active/` or `process/features/*/active/`, ask the user which one to use. Never let vc-execute-agent infer573the plan from ambient state.574575EXECUTE -> UPDATE PROCESS:576577- After non-trivial implementation complete, always surface a cleanup checkpoint578- UPDATE PROCESS still requires explicit user command.579- After vc-execute-agent reports DONE, the orchestrator should present a short closeout packet:580 - selected plan path581 - closeout classification582 - what was finished583 - what was verified versus still unverified584 - what cleanup/context capture remains585 - uncommitted file count and git-manager offer (when worktree is dirty)586 - commit-checkpoint recommendation:587 - invoke `vc-git-manager` before UPDATE PROCESS when validated execution changes are ready to split into a logical code/test commit588 - defer the commit checkpoint until after UPDATE PROCESS when the remaining changes are mainly `process/`, `.claude/`, `.codex/`, or `AGENTS.md`589 - the single best next valid state590- Then ask one explicit next-step question such as:591 - `Implementation complete. The selected plan appears ready for cleanup. Enter UPDATE PROCESS mode to archive the plan and capture learnings?`592 - or `Implementation is code-complete but still testing. Keep the plan in active for now, or enter UPDATE PROCESS mode anyway?`593 - or `Implementation deviated from plan. Return to PLAN or enter UPDATE PROCESS mode to reconcile?`594- If the next phase or follow-up is already known, name that exact plan path in the closeout summary so the user does not have to rediscover it.595- If the worktree has uncommitted changes from this execution, offer: "Invoke vc-git-manager for logical commit splitting before UPDATE PROCESS?" Pass the `touched_files` list (files the vc-execute-agent reported changing) as context so vc-git-manager can scope its analysis.596- If a phase is well-tested and genuinely validated, prefer surfacing a commit checkpoint instead of letting the work drift uncommitted while broader follow-up phases begin.597- If execution revealed a concrete missing downstream lane, route UPDATE PROCESS to create the follow-up phase plan or backlog artifact and update the umbrella/parent plan instead of leaving the next step only in chat.598- If cleanup is skipped and active-plan debt builds up, recommend `vc-audit-plans` as a follow-up maintenance step599- **Drift signal scoring** for UPDATE PROCESS urgency:600 - Count: (a) total files touched, (b) any `.claude/`, `.codex/`, `README.md`, `AGENTS.md`, or `process/development-protocols/` changes, (c) session involved 3+ memory-worthy observations601 - LOW (0-1 signals): include "UPDATE PROCESS available if you want." in closeout602 - MEDIUM (2 signals): include "Recommend UPDATE PROCESS -- significant changes detected."603 - HIGH (3+ signals): include "Strongly recommend UPDATE PROCESS -- harness/protocol files touched."604605**Parallel Fan-Out**606607At each phase transition above, invoke `vc-agent-strategy-compare` for the next phase's strategy recommendation. See `process/development-protocols/orchestration.md` for the checkpoint summary.608609## Key Principles610611### Phase Locking612613Each mode has strict boundaries:614615- RESEARCH: Read-only, gather facts616- INNOVATE: Discuss possibilities, no decisions617- PLAN: Write spec only, no implementation618- EXECUTE: Implement approved plan only619- UPDATE PROCESS: Document learnings, archive620621### Safety622623- Never skip directly to implementation for substantial work624- Never modify files in RESEARCH or INNOVATE625- Never start EXECUTE without explicit approval626- Always preserve user agency at phase transitions627628### Efficiency629630- Use subagents to isolate context when the user explicitly asks for delegation, parallel agent work, or a mode-specific agent631- Pass only relevant files632- Summarize rather than duplicate633- Reuse existing plans and context634635## Success Metrics636637Token Efficiency: Subagents use separate contexts, reducing token usage compared to main638conversation context.639640Phase Safety: Claude tool restrictions and Codex mode instructions reduce accidental641violations, for example RESEARCH should not modify files.642643Cross-Agent Compatibility: Plans and context files work consistently in Claude Code and Codex.644645## Quick Start646647First Time:6486491. Verify RIPER-5 rules loaded; orchestrator may declare `[MODE: ORCHESTRATOR]`6502. Run the `vc-generate-context` skill if `process/context/all-context.md` doesn't exist6513. Start with a feature request or question652653Typical Feature Workflow:6546551. Describe feature -> Orchestrator routes to `vc-research-agent`6562. Say "go" -> Orchestrator routes to `vc-innovate-agent`6573. Say "go" -> Orchestrator routes to `vc-plan-agent` and creates plan in `process/general-plans/active/`6584. Review plan carefully6595. Say "ENTER EXECUTE MODE" -> Orchestrator routes to `vc-execute-agent`6606. After completion, optionally "ENTER UPDATE PROCESS MODE" -> Orchestrator routes to `vc-update-process-agent`661662Quick Iteration (FAST MODE):6636641. Say "ENTER FAST MODE - [feature description]"6652. Review generated plan; vc-fast-mode-agent pauses6663. Say "ENTER EXECUTE MODE" to continue implementation within vc-fast-mode-agent667668## Troubleshooting669670Rules not loading: Verify `process/development-protocols/` exists and that the hook/config path resolution still points to the canonical protocol files.671672Subagent not found: Ensure agent files exist in `.claude/agents/` and mirrored TOML exists in673`.codex/agents/`. Shared skills should exist under `.claude/skills/` through the `.agents/skills/`674symlink, but agent wrappers should not exist there.675676Plan conflicts: Date-stamped filenames should prevent overwrites; check git status.677678Tool restrictions not working: Claude uses `tools` field in agent YAML frontmatter. Codex TOML679mirrors prompts but may not enforce identical tool allowlists.680681Cross-agent issues: Claude Code and Codex must use the same `process/` folder structure.682683## Resources684685- Agent Definitions: `.claude/agents/*.md`686- Codex Agent Mirrors: `.codex/agents/*.toml`687- Workflow Skills: real reusable skills under `.claude/skills/*/SKILL.md`, exposed to Codex through `.agents/skills/`688- Plans: `process/general-plans/active/` (active general), `process/general-plans/{completed,backlog,reports,references}/` (general archives/supporting artifacts), `process/features/*/active/` (feature-scoped)689- Features: `process/features/`690- Context: `process/context/all-context.md` router plus relevant `process/context/` files/groups691692## Porting Notes693694This file intentionally preserves the original `CLAUDE.md` workflow while adapting it695to Codex-native constructs:696697- `AGENTS.md` for top-level repository instructions698- `.agents/skills/` for mode and command workflows699- `.codex/agents/` for Codex subagent role mirrors700- `.codex/config.toml` for project-level Codex configuration701702The authoritative historical source remains:703704- [CLAUDE.md](CLAUDE.md)705
Also in withkynam/vibecode-pro-max-kit
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| withkynam/vibecode-pro-max-kitCLAUDE.md · 1.1k | CLAUDE.md | testtypestesting-strategygit+2 | 60/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| OnlyTerp/prompt-cache-skillsAGENTS.md · 112 | AGENTS.md | setupbuildtestlint-format+5 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago |
