try-works/role-model / .agents/skills/recursive-mode
recursive-mode
UnverifiedRepository workflow orchestration skill for staged implementation, locked artifacts, late-phase receipts, and durable memory maintenance. Use when executing recursive-mode runs, resuming a run, locking a phase, or verifying locks.
docs/templates/commands/recursive-subagent-action.md
View on GitHub# recursive-subagent-action (prompt template)
> Paste this into chat if your agent does not support custom slash commands.
## Usage Pattern
```text
Record a subagent action for run <run-id> phase <phase> so the controller can verify it against real files and recursive artifacts.
```
## Script (Recommended)
```powershell
python "<SKILL_DIR>/scripts/recursive-subagent-action.py" --repo-root . --run-id "<run-id>" --subagent-id reviewer-01 --phase "03.5 Code Review" --purpose "Delegated code review" --execution-mode review --artifact-path "/.recursive/run/<run-id>/03-implementation-summary.md" --review-bundle "/.recursive/run/<run-id>/evidence/review-bundles/code-review.md" --router-used "recursive-router" --routed-role "code-reviewer" --routed-cli "codex" --routed-model "gpt-5.4" --routing-config-path ".recursive/config/recursive-router.json" --routing-discovery-path ".recursive/config/recursive-router-discovered.json" --prompt-bundle-path ".recursive/run/<run-id>/router-prompts/code-reviewer-bundle.md" --invocation-exit-code "0" --output-capture-path ".recursive/run/<run-id>/evidence/router/code-reviewer-output.md" --action-taken "Reviewed the implementation summary, review bundle, and changed files for requirement and diff alignment." --reviewed-file "src/app.py" --artifact-read "/.recursive/run/<run-id>/02-to-be-plan.md" --artifact-read "/.recursive/run/<run-id>/03-implementation-summary.md" --evidence-used "/.recursive/run/<run-id>/evidence/router/code-reviewer-output.md" --evidence-used "/.recursive/run/<run-id>/evidence/logs/green/final.log" --finding "No blocking issues remained after verifying the repaired diff." --verification-path "src/app.py" --verification-path "/.recursive/run/<run-id>/evidence/review-bundles/code-review.md" --verification-item "Inspect these paths first during controller acceptance."
pwsh -NoProfile -File "<SKILL_DIR>/scripts/recursive-subagent-action.ps1" -RepoRoot . -RunId "<run-id>" -SubagentId reviewer-01 -Phase "03.5 Code Review" -Purpose "Delegated code review" -ExecutionMode review -ArtifactPath "/.recursive/run/<run-id>/03-implementation-summary.md" -ReviewBundle "/.recursive/run/<run-id>/evidence/review-bundles/code-review.md" -RouterUsed "recursive-router" -RoutedRole "code-reviewer" -RoutedCli "codex" -RoutedModel "gpt-5.4" -RoutingConfigPath ".recursive/config/recursive-router.json" -RoutingDiscoveryPath ".recursive/config/recursive-router-discovered.json" -PromptBundlePath ".recursive/run/<run-id>/router-prompts/code-reviewer-bundle.md" -InvocationExitCode "0" -OutputCapturePath ".recursive/run/<run-id>/evidence/router/code-reviewer-output.md" -ActionTaken "Reviewed the implementation summary, review bundle, and changed files for requirement and diff alignment." -ReviewedFile "src/app.py" -ArtifactRead "/.recursive/run/<run-id>/02-to-be-plan.md","/.recursive/run/<run-id>/03-implementation-summary.md" -EvidenceUsed "/.recursive/run/<run-id>/evidence/router/code-reviewer-output.md","/.recursive/run/<run-id>/evidence/logs/green/final.log" -Finding "No blocking issues remained after verifying the repaired diff." -VerificationPath "src/app.py","/.recursive/run/<run-id>/evidence/review-bundles/code-review.md" -VerificationItem "Inspect these paths first during controller acceptance."
```
## What It Writes
- A durable Markdown action record under `/.recursive/run/<run-id>/subagents/`
- Metadata, inputs provided, claimed file/artifact impact, claimed findings, and verification handoff
- Routing metadata such as `Routing Config Path`, `Routing Discovery Path`, `Routed CLI`, and `Routed Model`
- The scaffold is only a starting point; replace placeholder `none` sections with the concrete files, artifacts, evidence, and findings from the delegated work before relying on it
- For review or audit records, point `Current Artifact` at the stable artifact actually reviewed when possible. If you point it at a mutable draft and then edit that draft later, the action-record hash will go stale and should be refreshed.
## Controller Rule
Writing the action record is not acceptance. The controller must still verify:
- claimed changed files against the real diff
- claimed created files against the real worktree
- claimed artifact refs against real recursive artifacts
- bundle/action-record alignment when a review bundle was used
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |