ワンクリックで
cook-it
Orchestrate the full DRL research workflow from specification through paper synthesis
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Orchestrate the full DRL research workflow from specification through paper synthesis
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Reference for configuring, launching, and monitoring research iteration loops and analysis polish loops
Verifies the analysis pipeline runs end-to-end, outputs match expectations, and LaTeX compiles
Hands-on QA of the research analysis pipeline. Use whenever the user asks to verify the pipeline end-to-end, check output file integrity, validate table and figure generation, test data processing, or verify LaTeX compilation. Triggers on phrases like "test the pipeline", "QA the analysis", "check the outputs", "verify the tables", "run end-to-end", "does the paper compile", or any request to validate a research pipeline.
Define research question, hypotheses, methodology outline, and literature gap
Decompose a research question into cook-it-ready epic beads with methodology specifications
Comprehensive playbook for building rigorous, publication-quality research papers. Covers the full research output sequence from paper structure and statistical reporting through table formatting, figure design, LaTeX conventions, academic writing quality, and pre-submission review.
| name | Cook It |
| description | Orchestrate the full DRL research workflow from specification through paper synthesis |
Run the complete DRL research pipeline for a given epic. This is the DRL cook-it workflow, adapting the compound cook-it pattern for social science research. It chains five research phases in sequence, enforcing gate criteria between each transition. Each phase uses a dedicated DRL skill and involves specialized research agents.
Before running cook-it, verify these dependencies are in place:
Hooks configured in .claude/settings.json:
UserPromptSubmit must include decision-reminder.sh (ADR reminders on phase transitions)PreToolUse must include phase-guard (prevents writes during wrong phase)cat .claude/settings.json | python3 -c "import json,sys; h=json.load(sys.stdin)['hooks']; assert any('decision-reminder' in hook['command'] for entry in h['UserPromptSubmit'] for hook in entry['hooks']), 'Missing decision-reminder hook'; print('OK: hooks configured')"Hook script exists and is executable:
scripts/hooks/decision-reminder.sh must be present and executabletest -x scripts/hooks/decision-reminder.sh && echo 'OK: hook executable'ADR template exists:
docs/decisions/0000-template.md must be presenttest -f docs/decisions/0000-template.md && echo 'OK: template exists'Beads is initialized:
bd show <epic-id>.drl-phase-state.jsonThe cook-it workflow tracks its state in .claude/.drl-phase-state.json. This file is the coordination point between the orchestrator and the decision-reminder hook.
| Field | Type | Valid Values | Description |
|---|---|---|---|
cookit_active | bool | true / false | Whether a cook-it session is currently running |
current_phase | string | "spec", "plan", "work", "review", "synthesis" | The active workflow phase |
epic_id | string | A beads issue ID (e.g. "dark-research-lab-xxx") | The bead ID of the parent epic |
Who creates it: The cook-it orchestrator creates and updates this file at each phase transition.
Who reads it: decision-reminder.sh reads it on every UserPromptSubmit to detect phase changes and emit ADR reminders. The phase-guard hook reads it to restrict file writes to the current phase's scope.
Lifecycle: Created when cook-it starts, updated at each phase transition, and should be deleted (or set cookit_active: false) when the session ends. The companion file .claude/.drl-last-phase is automatically cleaned up by decision-reminder.sh when it detects cookit_active is false.
/drl:architect first to decompose the question into epicsSkill: .claude/skills/drl/architect/SKILL.md
When to use: Before starting cook-it, if no epic exists yet. /drl:architect is the entry point that decomposes a research question into cook-it-ready epics. If the epic already exists with a well-formed description (Scope, EARS, Contracts, Assumptions, Roles, Decisions sections), skip Phase 0 and begin at Phase 1.
What happens:
This phase is a prerequisite, not part of the cook-it loop itself. Cook-it operates on a single epic produced by the architect.
Skill: .claude/skills/drl/spec-dev/SKILL.md
What happens:
Agents involved: literature-analyst (for gap identification)
Decision logging: Log the final research question formulation and hypothesis choices to docs/decisions/
Gate 1: Research question approved, hypotheses articulated, literature gap documented. Human confirmation via AskUserQuestion.
Skill: .claude/skills/drl/plan/SKILL.md
What happens:
Agents involved: methodology-reviewer (for plan validation)
Decision logging: Log statistical method choices, variable operationalization decisions, and robustness check design to docs/decisions/
Gate 2: Methodology is sound, identification strategy is defensible, robustness battery is planned. Human confirmation via AskUserQuestion.
Skill: .claude/skills/drl/work/SKILL.md
What happens:
paper/outputs/tables/ and paper/outputs/figures/Agents involved: analyst (execution), robustness-checker (robustness battery)
Decision logging: Log any deviations from the plan, unexpected findings, and post-hoc decisions to docs/decisions/
Gate 3: All planned analyses complete, tables and figures generated, results written. All work subtasks closed in beads.
Skill: .claude/skills/drl/review/SKILL.md
What happens:
Decision logging: Log any methodological corrections and their rationale to docs/decisions/
Gate 4: No critical or major findings remain. All review dimensions pass.
Skill: .claude/skills/drl/compound/SKILL.md
What happens:
paper/compile.shAgents involved: writing-quality-reviewer, citation-checker, coherence-reviewer
Decision logging: Log any final methodological reflections to docs/decisions/
Gate 5: Paper compiles cleanly, all references resolve, decision log is complete. Epic closed in beads.
Between each phase:
AskUserQuestion to get human approval before proceedingdrl search) for relevant context entering the next phasedocs/decisions/ using the ADR template (docs/decisions/0000-template.md). Use /drl:decision for guided loggingDecision logging hook: The decision-reminder.sh hook fires automatically on UserPromptSubmit when a phase transition is detected. It reads .claude/.drl-phase-state.json to track the current phase and emits a reminder to log decisions to docs/decisions/. This is a shell hook, not an orchestrator prompt -- it runs automatically without agent action.
When a phase fails mid-execution:
.drl-phase-state.json and update the beads task notes with what completeddocs/decisions/ using the ADR template (docs/decisions/0000-template.md). Use /drl:decision for guided loggingbd create --title="Recovery: <phase> phase interrupted" --description="<what was completed, what remains>" --type=task --priority=1cook-it invocation:
.drl-phase-state.json to determine the interrupted phasebd list --status=in_progress for the recovery taskThe session died while a phase was running (e.g., context window hit, network failure).
# 1. Check where you left off
cat .claude/.drl-phase-state.json
bd show <epic-id>
# 2. Check which subtasks completed
bd list --status=closed --parent=<epic-id>
bd list --status=in_progress --parent=<epic-id>
# 3. Resume from the interrupted phase
/drl:cook-it <epic-id> from <interrupted-phase>
The orchestrator reads .drl-phase-state.json and picks up from the last incomplete step. Already-closed subtasks are not re-run.
The .claude/.drl-phase-state.json file is corrupted, empty, or deleted.
# 1. Delete the corrupted state file
rm .claude/.drl-phase-state.json
# 2. Determine the last completed phase from beads notes
bd show <epic-id>
# Look for "Phase: <NAME> COMPLETE | Next: <NEXT>" in the notes
# 3. Re-initialize phase state and resume
drl phase-check init <epic-id>
drl phase-check start <phase-to-resume>
/drl:cook-it <epic-id> from <phase-to-resume>
If beads notes are also missing, inspect closed subtasks and git history to determine where the workflow stopped.
The user stopped the session or the machine restarted mid-workflow.
# 1. Check phase state and beads status
drl phase-check status
bd show <epic-id>
# 2. Check for in-progress tasks left dangling
bd list --status=in_progress
# 3. If the interrupted task's work is committed, close it
bd close <task-id>
# 4. If the interrupted task's work is lost, reset and re-run
bd update <task-id> --status=open
# 5. Resume the workflow
/drl:cook-it <epic-id> from <current-phase>
To fully reset and start a phase from scratch (nuclear option):
drl phase-check clean
drl phase-check init <epic-id>
drl phase-check start <phase>
/drl:cook-it <epic-id> from <phase>
bd show <epic-id> at each phasebd close <task-id>bd create --title="..." --parent=<epic-id>bd blockeddrl search at the start of each phasedrl knowledge for literature context throughoutdrl learn after corrections, discoveries, or phase completions