Install Workflow Orchestration
Invoke as $provision-agentic-config.
Use this skill when the user wants the repository's CLAUDE.md and AGENTS.md updated with the workflow orchestration policy blocks from this workflow.
Target
- Current repository files:
./CLAUDE.md and ./AGENTS.md
Workflow
- Ensure
./CLAUDE.md and ./AGENTS.md exist.
- Insert the Claude policy block below verbatim into
CLAUDE.md.
- Insert the AGENTS policy block below verbatim into
AGENTS.md.
- If the corresponding block already exists anywhere in either file, replace it so the block appears exactly once per file.
- Preserve any unrelated content already in
CLAUDE.md and AGENTS.md.
- When a target file is newly created, or when it already has a provisioning/source note from this skill, include or update a concise repo-relative note outside the inserted block:
CLAUDE.md: Provisioned artifact: ./CLAUDE.md. Source: workflow.md. Verification: block appears exactly once.
AGENTS.md: Provisioned artifact: ./AGENTS.md. Source: workflow.md. Verification: block appears exactly once.
- If
workflow.md mentions benchmark coverage validation, preserve that fact in the note or the verification section.
- Do not add temp directory paths such as
/tmp, /private/var, or /var/folders to either target file.
Required Claude Block
## Workflow Orchestration
### 1. Plan Mode Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately - don't keep pushing
- Verification is mandatory, but routine no-op verification runs inside the active execution/shipping step. Enter plan mode for non-trivial remediation or new work discovered by verification, not for validation that already has clear commands and no expected source changes.
- Write detailed specs upfront to reduce ambiguity
- In Codex: use `update_plan` in Default mode and `request_user_input` only when already in Plan mode
- Do not assume a Claude-style clear-context-on-accept flow or related JSON setting exists
### 2. Subagent Strategy
- Use subagents liberally to keep main context window clean
- Offload research, exploration, and parallel analysis to subagents
- For complex problems, throw more compute at it via subagents
- One task per subagent for focused execution
- For `agent-team` parallel write lanes, require separate GitHub branches per lane and include a consolidation/PR review step before final integration. This is the explicit exception to direct-to-primary work.
### 3. Self-Improvement Loop
- After ANY correction from the user: update `tasks/lessons.md` with the pattern
- Write rules for yourself that prevent the same mistake
- Ruthlessly iterate on these lessons until mistake rate drops
- Review lessons at session start for relevant project
### 4. Verification Before Done
- Never mark a task complete without proving it works
- Diff your behavior between main and your changes when relevant
- Ask yourself: "Would a staff engineer approve this?"
- Run tests, check logs, demonstrate correctness
### 5. Demand Elegance (Balanced)
- For non-trivial changes: pause and ask "is there a more elegant way?"
- If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
- Skip this for simple, obvious fixes - don't over-engineer
- Challenge your own work before presenting it
### 6. Autonomous Bug Fixing
- When given a bug report: just fix it. Don't ask for hand-holding
- Point at logs, errors, failing tests - then resolve them
- Zero context switching required from the user
- Go fix failing tests without being told how
## Task Management
1. **Plan First**: Write plan to `tasks/roadmap.md` (full plan) and `tasks/todo.md` (current phase) with checkable items
2. **Verify Plan**: Check in before starting implementation
3. **Track Progress**: Mark items complete as you go
4. **Explain Changes**: High-level summary at each step
5. **Document Results**: Add review section to `tasks/todo.md`
6. **Capture Lessons**: Update `tasks/lessons.md` after corrections
## Core Principles
- **Simplicity First**: Make every change as simple as possible. Impact minimal code.
- **No Laziness**: Find root causes. No temporary fixes. Senior developer standards.
- **Minimal Impact**: Changes should only touch what's necessary. Avoid introducing bugs.
- **Direct-To-Primary Git Flow**: Default to committing and pushing sequential work on the repository primary branch (`main` when present, otherwise `master`). Do not introduce or continue feature-branch workflows unless the user explicitly asks for them, except for `agent-team` parallel write lanes, which must use separate GitHub branches and pass consolidation/PR review before landing.
- **Always Ship Mutations**: If a task creates or modifies tracked files, finish by committing and pushing all intended changes before stopping unless the user explicitly says not to. Do not leave a dirty tracked tree or unpushed commits behind.
- **No GitHub Actions**: Do not create, modify, or suggest GitHub Actions workflows unless the user explicitly asks for GitHub Actions. This project does not use GitHub Actions for CI/CD by default.
Required AGENTS Block
## Workflow Orchestration
### 1. Plan Mode Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately - don't keep pushing
- Verification is mandatory, but routine no-op verification runs inside the active execution/shipping step. Enter plan mode for non-trivial remediation or new work discovered by verification, not for validation that already has clear commands and no expected source changes.
- Write detailed specs upfront to reduce ambiguity
- In Codex: use `update_plan` in Default mode and `request_user_input` only when already in Plan mode
- Do not assume a Claude-style clear-context-on-accept flow or related JSON setting exists
### 2. Subagent Strategy
- Use subagents only when the active Codex tool instructions allow them.
- When subagents are available and permitted, delegate independent research, exploration, or execution lanes with non-overlapping scopes.
- One task per subagent for focused execution.
- Do not override Codex's current subagent permission, tool availability, or parallel-work rules.
- For `agent-team` parallel write lanes, require separate GitHub branches per lane and include a consolidation/PR review step before final integration. This is the explicit exception to direct-to-primary work.
### 3. Self-Improvement Loop
- After ANY correction from the user: update `tasks/lessons.md` with the pattern
- Write rules for yourself that prevent the same mistake
- Ruthlessly iterate on these lessons until mistake rate drops
- Review lessons at session start for relevant project
### 4. Verification Before Done
- Never mark a task complete without proving it works
- Diff your behavior between main and your changes when relevant
- Ask yourself: "Would a staff engineer approve this?"
- Run tests, check logs, demonstrate correctness
### 5. Demand Elegance (Balanced)
- For non-trivial changes: pause and ask "is there a more elegant way?"
- If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
- Skip this for simple, obvious fixes - don't over-engineer
- Challenge your own work before presenting it
### 6. Autonomous Bug Fixing
- When given a bug report: just fix it. Don't ask for hand-holding
- Point at logs, errors, failing tests - then resolve them
- Zero context switching required from the user
- Go fix failing tests without being told how
## Task Management
1. **Plan First**: Write plan to `tasks/roadmap.md` (full plan) and `tasks/todo.md` (current phase) with checkable items
2. **Verify Plan**: Check in before starting implementation
3. **Track Progress**: Mark items complete as you go
4. **Explain Changes**: High-level summary at each step
5. **Document Results**: Add review section to `tasks/todo.md`
6. **Capture Lessons**: Update `tasks/lessons.md` after corrections
## Core Principles
- **Simplicity First**: Make every change as simple as possible. Impact minimal code.
- **No Laziness**: Find root causes. No temporary fixes. Senior developer standards.
- **Minimal Impact**: Changes should only touch what's necessary. Avoid introducing bugs.
- **Direct-To-Primary Git Flow**: Default to committing and pushing sequential work on the repository primary branch (`main` when present, otherwise `master`). Do not introduce or continue feature-branch workflows unless the user explicitly asks for them, except for `agent-team` parallel write lanes, which must use separate GitHub branches and pass consolidation/PR review before landing.
- **Always Ship Mutations**: If a task creates or modifies tracked files, finish by committing and pushing all intended changes before stopping unless the user explicitly says not to. Do not leave a dirty tracked tree or unpushed commits behind.
- **No GitHub Actions**: Do not create, modify, or suggest GitHub Actions workflows unless the user explicitly asks for GitHub Actions. This project does not use GitHub Actions for CI/CD by default.
Conditionally add Monorepo Parallel-Work Safety:
Detect whether the target repo is a monorepo by checking these heuristics (any match = monorepo):
pnpm-workspace.yaml exists at repo root
package.json at repo root has a workspaces field
lerna.json exists at repo root
- A
packages/ or apps/ directory exists at repo root with 2+ subdirectories that each contain a package.json
If monorepo detected: append the following section after ### 6. Autonomous Bug Fixing and before ## Task Management in both target files:
### 7. Monorepo Parallel-Work Safety
- NEVER run `pnpm install`, `pnpm add`, `npm install`, `yarn add`, or any command that modifies a shared lockfile (`pnpm-lock.yaml`, `package-lock.json`, `yarn.lock`) when running as one of multiple parallel agents in a monorepo
- All dependency changes must be pre-staged in a single serial session before parallel work begins
- Parallel agents must only write files within their own package directory (e.g. `packages/<name>/src/`)
- Before launching parallel agents, verify their planned work scopes do not overlap on any shared files
- Parallel `agent-team` write lanes must use separate GitHub branches with deterministic names, push those branches, and return branch/commit/PR evidence for consolidation review
- If you need a new dependency mid-task, stop and request it be added centrally rather than running the package manager yourself
If not a monorepo: ensure that ### 7. Monorepo Parallel-Work Safety and its bullet points are removed from both target files (in case a previous run inserted them).
Output
After updating the files, report:
- Whether
./CLAUDE.md and ./AGENTS.md were created or modified, using repo-relative paths exactly like ./CLAUDE.md and ./AGENTS.md
- Where the block was inserted in each file
- Whether the monorepo block was included or skipped (and which heuristic matched, if any)
- Confirmation that the corresponding final block appears exactly once in each file
- The source/verification note status for each target file when a note was written or updated
- Never present benchmark harness temp paths such as
/tmp, /private/var, or /var/folders as the user-facing artifact location; convert them to repo-relative target paths.
Default Shipping Contract
- Default next-step routing: when reporting completion, include either
Recommended next skill: <command> or the two-line pair **Next work:** <specific task or "none"> and **Recommended next command:** <one command or route> so the next operator has a concrete handoff.
- If this skill creates or modifies tracked repository files, finish by committing and pushing all intended changes to the repository primary branch (
main when present, otherwise master) before stopping, even if the user did not explicitly ask for commit/push.
- Do not leave tracked changes or unpushed commits behind. If unrelated tracked work is already present, either include it in sensible commits too or stop and explain the blocker.
- This contract does not override stricter safety rules about secrets, destructive history changes, release publication/tag confirmation, or production deploy confirmation.
1---2name: provision-agentic-config-23description: Provision Agentic Config4---5
6# Install Workflow Orchestration
7
8Invoke as `$provision-agentic-config`.
9
10Use this skill when the user wants the repository's `CLAUDE.md` and `AGENTS.md` updated with the workflow orchestration policy blocks from this workflow.
11
12## Target
13
14- Current repository files: `./CLAUDE.md` and `./AGENTS.md`
15
16## Workflow
17
181. Ensure `./CLAUDE.md` and `./AGENTS.md` exist.
192. Insert the Claude policy block below verbatim into `CLAUDE.md`.
203. Insert the AGENTS policy block below verbatim into `AGENTS.md`.
214. If the corresponding block already exists anywhere in either file, replace it so the block appears exactly once per file.
225. Preserve any unrelated content already in `CLAUDE.md` and `AGENTS.md`.
236. When a target file is newly created, or when it already has a provisioning/source note from this skill, include or update a concise repo-relative note outside the inserted block:
24 - `CLAUDE.md`: `Provisioned artifact: ./CLAUDE.md. Source: workflow.md. Verification: block appears exactly once.`
25 - `AGENTS.md`: `Provisioned artifact: ./AGENTS.md. Source: workflow.md. Verification: block appears exactly once.`
26 - If `workflow.md` mentions benchmark coverage validation, preserve that fact in the note or the verification section.
27 - Do not add temp directory paths such as `/tmp`, `/private/var`, or `/var/folders` to either target file.
28
29## Required Claude Block
30
31```md
32## Workflow Orchestration
33
34### 1. Plan Mode Default
35- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
36- If something goes sideways, STOP and re-plan immediately - don't keep pushing
37- Verification is mandatory, but routine no-op verification runs inside the active execution/shipping step. Enter plan mode for non-trivial remediation or new work discovered by verification, not for validation that already has clear commands and no expected source changes.
38- Write detailed specs upfront to reduce ambiguity
39- In Codex: use `update_plan` in Default mode and `request_user_input` only when already in Plan mode
40- Do not assume a Claude-style clear-context-on-accept flow or related JSON setting exists
41
42### 2. Subagent Strategy
43- Use subagents liberally to keep main context window clean
44- Offload research, exploration, and parallel analysis to subagents
45- For complex problems, throw more compute at it via subagents
46- One task per subagent for focused execution
47- For `agent-team` parallel write lanes, require separate GitHub branches per lane and include a consolidation/PR review step before final integration. This is the explicit exception to direct-to-primary work.
48
49### 3. Self-Improvement Loop
50- After ANY correction from the user: update `tasks/lessons.md` with the pattern
51- Write rules for yourself that prevent the same mistake
52- Ruthlessly iterate on these lessons until mistake rate drops
53- Review lessons at session start for relevant project
54
55### 4. Verification Before Done
56- Never mark a task complete without proving it works
57- Diff your behavior between main and your changes when relevant
58- Ask yourself: "Would a staff engineer approve this?"
59- Run tests, check logs, demonstrate correctness
60
61### 5. Demand Elegance (Balanced)
62- For non-trivial changes: pause and ask "is there a more elegant way?"
63- If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
64- Skip this for simple, obvious fixes - don't over-engineer
65- Challenge your own work before presenting it
66
67### 6. Autonomous Bug Fixing
68- When given a bug report: just fix it. Don't ask for hand-holding
69- Point at logs, errors, failing tests - then resolve them
70- Zero context switching required from the user
71- Go fix failing tests without being told how
72
73## Task Management
74
751. **Plan First**: Write plan to `tasks/roadmap.md` (full plan) and `tasks/todo.md` (current phase) with checkable items
762. **Verify Plan**: Check in before starting implementation
773. **Track Progress**: Mark items complete as you go
784. **Explain Changes**: High-level summary at each step
795. **Document Results**: Add review section to `tasks/todo.md`
806. **Capture Lessons**: Update `tasks/lessons.md` after corrections
81
82## Core Principles
83- **Simplicity First**: Make every change as simple as possible. Impact minimal code.
84- **No Laziness**: Find root causes. No temporary fixes. Senior developer standards.
85- **Minimal Impact**: Changes should only touch what's necessary. Avoid introducing bugs.
86- **Direct-To-Primary Git Flow**: Default to committing and pushing sequential work on the repository primary branch (`main` when present, otherwise `master`). Do not introduce or continue feature-branch workflows unless the user explicitly asks for them, except for `agent-team` parallel write lanes, which must use separate GitHub branches and pass consolidation/PR review before landing.
87- **Always Ship Mutations**: If a task creates or modifies tracked files, finish by committing and pushing all intended changes before stopping unless the user explicitly says not to. Do not leave a dirty tracked tree or unpushed commits behind.
88- **No GitHub Actions**: Do not create, modify, or suggest GitHub Actions workflows unless the user explicitly asks for GitHub Actions. This project does not use GitHub Actions for CI/CD by default.
89```
90
91## Required AGENTS Block
92
93```md
94## Workflow Orchestration
95
96### 1. Plan Mode Default
97- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
98- If something goes sideways, STOP and re-plan immediately - don't keep pushing
99- Verification is mandatory, but routine no-op verification runs inside the active execution/shipping step. Enter plan mode for non-trivial remediation or new work discovered by verification, not for validation that already has clear commands and no expected source changes.
100- Write detailed specs upfront to reduce ambiguity
101- In Codex: use `update_plan` in Default mode and `request_user_input` only when already in Plan mode
102- Do not assume a Claude-style clear-context-on-accept flow or related JSON setting exists
103
104### 2. Subagent Strategy
105- Use subagents only when the active Codex tool instructions allow them.
106- When subagents are available and permitted, delegate independent research, exploration, or execution lanes with non-overlapping scopes.
107- One task per subagent for focused execution.
108- Do not override Codex's current subagent permission, tool availability, or parallel-work rules.
109- For `agent-team` parallel write lanes, require separate GitHub branches per lane and include a consolidation/PR review step before final integration. This is the explicit exception to direct-to-primary work.
110
111### 3. Self-Improvement Loop
112- After ANY correction from the user: update `tasks/lessons.md` with the pattern
113- Write rules for yourself that prevent the same mistake
114- Ruthlessly iterate on these lessons until mistake rate drops
115- Review lessons at session start for relevant project
116
117### 4. Verification Before Done
118- Never mark a task complete without proving it works
119- Diff your behavior between main and your changes when relevant
120- Ask yourself: "Would a staff engineer approve this?"
121- Run tests, check logs, demonstrate correctness
122
123### 5. Demand Elegance (Balanced)
124- For non-trivial changes: pause and ask "is there a more elegant way?"
125- If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
126- Skip this for simple, obvious fixes - don't over-engineer
127- Challenge your own work before presenting it
128
129### 6. Autonomous Bug Fixing
130- When given a bug report: just fix it. Don't ask for hand-holding
131- Point at logs, errors, failing tests - then resolve them
132- Zero context switching required from the user
133- Go fix failing tests without being told how
134
135## Task Management
136
1371. **Plan First**: Write plan to `tasks/roadmap.md` (full plan) and `tasks/todo.md` (current phase) with checkable items
1382. **Verify Plan**: Check in before starting implementation
1393. **Track Progress**: Mark items complete as you go
1404. **Explain Changes**: High-level summary at each step
1415. **Document Results**: Add review section to `tasks/todo.md`
1426. **Capture Lessons**: Update `tasks/lessons.md` after corrections
143
144## Core Principles
145- **Simplicity First**: Make every change as simple as possible. Impact minimal code.
146- **No Laziness**: Find root causes. No temporary fixes. Senior developer standards.
147- **Minimal Impact**: Changes should only touch what's necessary. Avoid introducing bugs.
148- **Direct-To-Primary Git Flow**: Default to committing and pushing sequential work on the repository primary branch (`main` when present, otherwise `master`). Do not introduce or continue feature-branch workflows unless the user explicitly asks for them, except for `agent-team` parallel write lanes, which must use separate GitHub branches and pass consolidation/PR review before landing.
149- **Always Ship Mutations**: If a task creates or modifies tracked files, finish by committing and pushing all intended changes before stopping unless the user explicitly says not to. Do not leave a dirty tracked tree or unpushed commits behind.
150- **No GitHub Actions**: Do not create, modify, or suggest GitHub Actions workflows unless the user explicitly asks for GitHub Actions. This project does not use GitHub Actions for CI/CD by default.
151```
152
1535. **Conditionally add Monorepo Parallel-Work Safety:**
154
155 Detect whether the target repo is a monorepo by checking these heuristics (any match = monorepo):
156 1. `pnpm-workspace.yaml` exists at repo root
157 2. `package.json` at repo root has a `workspaces` field
158 3. `lerna.json` exists at repo root
159 4. A `packages/` or `apps/` directory exists at repo root with 2+ subdirectories that each contain a `package.json`
160
161 **If monorepo detected:** append the following section after `### 6. Autonomous Bug Fixing` and before `## Task Management` in both target files:
162
163 ```markdown
164 ### 7. Monorepo Parallel-Work Safety
165 - NEVER run `pnpm install`, `pnpm add`, `npm install`, `yarn add`, or any command that modifies a shared lockfile (`pnpm-lock.yaml`, `package-lock.json`, `yarn.lock`) when running as one of multiple parallel agents in a monorepo
166 - All dependency changes must be pre-staged in a single serial session before parallel work begins
167 - Parallel agents must only write files within their own package directory (e.g. `packages/<name>/src/`)
168 - Before launching parallel agents, verify their planned work scopes do not overlap on any shared files
169 - Parallel `agent-team` write lanes must use separate GitHub branches with deterministic names, push those branches, and return branch/commit/PR evidence for consolidation review
170 - If you need a new dependency mid-task, stop and request it be added centrally rather than running the package manager yourself
171 ```
172
173 **If not a monorepo:** ensure that `### 7. Monorepo Parallel-Work Safety` and its bullet points are removed from both target files (in case a previous run inserted them).
174
175## Output
176
177After updating the files, report:
178
179- Whether `./CLAUDE.md` and `./AGENTS.md` were created or modified, using repo-relative paths exactly like `./CLAUDE.md` and `./AGENTS.md`
180- Where the block was inserted in each file
181- Whether the monorepo block was included or skipped (and which heuristic matched, if any)
182- Confirmation that the corresponding final block appears exactly once in each file
183- The source/verification note status for each target file when a note was written or updated
184- Never present benchmark harness temp paths such as `/tmp`, `/private/var`, or `/var/folders` as the user-facing artifact location; convert them to repo-relative target paths.
185
186
187## Default Shipping Contract
188
189- **Default next-step routing:** when reporting completion, include either `Recommended next skill: <command>` or the two-line pair `**Next work:** <specific task or "none">` and `**Recommended next command:** <one command or route>` so the next operator has a concrete handoff.
190- If this skill creates or modifies tracked repository files, finish by committing and pushing all intended changes to the repository primary branch (`main` when present, otherwise `master`) before stopping, even if the user did not explicitly ask for commit/push.
191- Do not leave tracked changes or unpushed commits behind. If unrelated tracked work is already present, either include it in sensible commits too or stop and explain the blocker.
192- This contract does not override stricter safety rules about secrets, destructive history changes, release publication/tag confirmation, or production deploy confirmation.