dev-crew
CLAUDE.md1 starsChanged 55 days agoMITView on GitHub
Auto-orchestrate after plan approve (Post-Approve Action): plan review(Claude + Codex)は承認前(plan mode 内、spec Step 8)で完了済み。plan approve後は /orchestrate を起動する。orchestrate が sync-plan(転記)→ architect(転記後検証)→ TDDサイクルを全て管理する。 Codex が利用可能な場合、Plan Review と Code Review は常時 competitive に実行。RED/GREEN の委譲は codex_mode (full/no) で制御。REFACTOR は Claude が主担当(Codex fallback)。REVIEW は Claude + Codex competitive。詳細は CONSTITUTION.md 参照。 Codex 不在時は Claude fallback(既存スキルそのまま)。 一覧は AGENTS.md(@AGENTS.md で import 済み)を参照。 Phase-boundary compaction: - Phase output persisted to Cycle doc before compaction - Context restored from files, not conversation history - plan review (承認前) → plan approve…
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- attack-reportSkill
- carefulSkill
- codify-insightSkill
- commitSkill
- context-reviewSkill
- cycle-retrospectiveSkill
- diagnoseSkill
- evolveSkill
- flask-qualitySkill
- flutter-qualitySkill
- generate-e2eSkill
- greenSkill
- hugo-qualitySkill
- js-qualitySkill
- learnSkill
- onboardSkill
- orchestrateSkill
- php-qualitySkill
- python-qualitySkill
- redSkill
- refactorSkill
- reviewSkill
- security-auditSkill
- security-scanSkill
- skill-makerSkill
- specSkill
- sync-skillsSkill
- ts-qualitySkill
The file
Files
@AGENTS.md
dev-crew (Claude Code Extensions)
Claude Code Integration
- plan mode: spec + design consolidated in plan file
- /compact: PreCompact hook (scripts/hooks/pre-compact.sh) persists phase summary before compaction
Auto-orchestrate after plan approve (Post-Approve Action): plan review(Claude + Codex)は承認前(plan mode 内、spec Step 8)で完了済み。plan approve後は /orchestrate を起動する。orchestrate が sync-plan(転記)→ architect(転記後検証)→ TDDサイクルを全て管理する。
Codex Integration
Codex が利用可能な場合、Plan Review と Code Review は常時 competitive に実行。RED/GREEN の委譲は codex_mode (full/no) で制御。REFACTOR は Claude が主担当(Codex fallback)。REVIEW は Claude + Codex competitive。詳細は CONSTITUTION.md 参照。
# plan review は承認前(spec Step 8、plan mode 内、read-only sandbox)で実行。
# session ID は plan の Plan Review Record 経由で sync-plan が Cycle doc frontmatter
# codex_session_id へ転記する(orchestrate 自身は取得しない)
codex exec --sandbox read-only "review plan <planファイルパス>" < /dev/null
# RED/GREEN/REVIEW 委譲(codex_session_id があれば resume <session-id>、なければ resume --last)
# フラグは resume より前に置く(後ろに置くと rc=2)。stdin がパイプのままだとハングするので < /dev/null
codex exec --sandbox workspace-write resume <session-id> "red docs/cycles/xxx.md" < /dev/null
codex exec --sandbox workspace-write resume <session-id> "green docs/cycles/xxx.md" < /dev/null
codex exec --sandbox read-only resume <session-id> "review code docs/cycles/xxx.md" < /dev/nullCodex 不在時は Claude fallback(既存スキルそのまま)。
Skills
一覧は AGENTS.md(@AGENTS.md で import 済み)を参照。
- cycle-retrospective: TDD サイクル末尾で失敗-成功ペアを抽出する advisory スキル (「retrospective」「振り返り」で起動)
- codify-insight: retrospective insights を既定では自動 triage し、
skill候補/低確信時のみ確認する decide gate (「codify」「codify-insight」で起動)
Token Optimization
Phase-boundary compaction:
- Phase output persisted to Cycle doc before compaction
- Context restored from files, not conversation history
- plan review (承認前) → plan approve → compact + accept edits on → auto-orchestrate
Hooks
| Event | Matcher | Script | Purpose |
| PostToolUse | Edit|Write|Bash | scripts/hooks/observe.sh | Logs tool usage patterns for learn skill |
| PostToolUse | Skill|Agent | ~/.claude/hooks/observe-skills.sh | Logs Skill/Agent usage for prune planning (global hook) |
| PreToolUse | Bash | scripts/hooks/no-verify-guard.sh | Blocks --no-verify commands (exit 2) |
| PreCompact | manual | scripts/hooks/pre-compact.sh | Persists phase summary before /compact |
人間の判断点(ブラウザで見せる)
terminal では図が読めず、長い報告は流れる。以下の 3 点では 1 枚の md を書き、mdopen <path> を案内してから AskUserQuestion で OK/NG を求める。terminal に長文を流して判断を求めない。
| 止める場所 | 見せるもの |
| 計画の承認前 | docs/OVERVIEW.md の図の上で「どこを触るか」。作る量の見積もりも添える |
| 規模が予想を超えたとき | 想定と実際の差分。続行 / 分割 / 縮小を選んでもらう |
| REVIEW 完了後・COMMIT 前 | 結局どこが変わったか。テスト結果だけを報告しない |
レビュー指摘への対応は AI 側で完結させる(実装の細部を裁定として投げない)。ただし指摘に応えると規模が膨らむ場合は「規模が予想を超えたとき」に該当する。
Usage Patterns
| Scenario | Mode | Context Management |
| Task search | plan mode | search-task → spec |
| Small-Medium | plan mode → accept edits on | spec (+plan-review) → approve → /orchestrate (sync-plan + TDD内包) |
| Large (auto) | plan mode → accept edits on (AGENT_TEAMS=1) | spec → orchestrate (Task() for isolation) |
| Session resume | accept edits on | Cycle doc を読み IN_PROGRESS cycle を継続 |
| auto-learn | accept edits on (DEV_CREW_AUTO_LEARN=1) | auto learn after commit (20+ observations) |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

