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-init.md
View on GitHub# recursive-init (prompt template)
> Paste this into chat if your agent does not support custom slash commands.
## Usage Pattern
```text
Initialize recursive run: <run-id> [options]
```
## Script (Recommended)
```powershell
python "<SKILL_DIR>/scripts/recursive-init.py" --repo-root . --run-id "<run-id>" --template feature
python "<SKILL_DIR>/scripts/recursive-init.py" --repo-root . --run-id "<run-id>" --template bugfix --from-issue "#123"
python3 "<SKILL_DIR>/scripts/recursive-init.py" --repo-root . --run-id "<run-id>" --template feature
powershell -ExecutionPolicy Bypass -File "<SKILL_DIR>/scripts/recursive-init.ps1" -RepoRoot . -RunId "<run-id>" -Template feature
pwsh -NoProfile -File "<SKILL_DIR>/scripts/recursive-init.ps1" -RepoRoot . -RunId "<run-id>" -Template feature
```
## What It Does
1. Creates `/.recursive/run/<run-id>/`
2. Generates `00-requirements.md`
3. Generates a prefilled `00-worktree.md` scaffold with executable Phase 0 diff-basis fields when git state can be resolved
4. Validates that the recorded Phase 0 diff basis is executable against live git state before returning success
5. Creates `addenda/`, `subagents/`, `router-prompts/`, and `evidence/` subfolders
6. Creates canonical evidence subfolders including `review-bundles/` and `router/`
7. Marks the run as `recursive-mode-audit-v2`
8. If `recursive-training` is installed, calls `/.recursive/scripts/recursive-training-loader.py` so the new run starts with memory-index-driven experiential context
## Output
- `/.recursive/run/<run-id>/00-requirements.md`
- `/.recursive/run/<run-id>/00-worktree.md`
- `/.recursive/run/<run-id>/addenda/`
- `/.recursive/run/<run-id>/subagents/`
- `/.recursive/run/<run-id>/router-prompts/`
- `/.recursive/run/<run-id>/evidence/{screenshots,logs,perf,traces,review-bundles,router,other}/`
## Diff Basis Notes
- The generated `00-worktree.md` uses the current `HEAD` commit as the safe default baseline when possible.
- `Normalized baseline`, `Normalized comparison`, and `Normalized diff command` are treated as executable source-of-truth fields.
- If you later change the baseline reference during Phase 0, update every diff-basis field and rerun lint before locking.
## Next Step
```text
Implement requirement '<run-id>'
```
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: 469k | 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: 321k | 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: 321k | 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: 321k | Updated | Claude CodeCodex | Verified | Install |