ワンクリックで
dev-docs
Creates or updates PLAN.md based on session - auto-detects create vs update mode
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Creates or updates PLAN.md based on session - auto-detects create vs update mode
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Performs thorough code review on local changes or PRs. Use this skill proactively after implementing code changes to catch issues before commit/push. Also use when reviewing PRs from other engineers.
Generate a portable session handoff document (task, decisions, state, next steps) as a single copy-pasteable markdown block for resuming on another device or terminal.
Create or update AGENTS.md with repo-specific patterns, conventions, commands, and gotchas for LLM coding agents. Use after implementing features that introduce new patterns worth documenting.
Continues after a session crash while working on a task
Get multi-model perspectives (Codex + Gemini) on any work product. Use at any development stage — planning, design, implementation, testing — to catch blind spots the primary agent might miss.
Write, update, or review documentation (README, ARCHITECTURE.md, API docs, guides). Use after implementing features to document new APIs, CLI commands, or behavior changes.
| name | dev-docs |
| version | 1.0.1 |
| description | Creates or updates PLAN.md based on session - auto-detects create vs update mode |
| allowed-tools | AskUserQuestion, Bash, Edit, Glob, Grep, Read, TodoWrite, Write |
| model | sonnet |
sh -c 'COMMON=$(git rev-parse --path-format=absolute --git-common-dir 2>/dev/null) && dirname "$COMMON" || echo "NOT_IN_GIT_REPO"'sh -c 'COMMON=$(git rev-parse --path-format=absolute --git-common-dir 2>/dev/null); if [ -z "$COMMON" ]; then echo "NOT_IN_GIT_REPO"; exit 0; fi; MAIN_ROOT=$(dirname "$COMMON"); WT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null); CWD_PATH=$(pwd); REL="${CWD_PATH#"$WT_ROOT"}"; REL="${REL#/}"; if [ -z "$REL" ]; then echo "$MAIN_ROOT"; else echo "$MAIN_ROOT/$REL"; fi'sh -c 'COMMON=$(git rev-parse --path-format=absolute --git-common-dir 2>/dev/null); if [ -z "$COMMON" ]; then echo "NOT_IN_GIT_REPO"; exit 0; fi; MAIN_ROOT=$(dirname "$COMMON"); WT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null); CWD_PATH=$(pwd); REL="${CWD_PATH#"$WT_ROOT"}"; REL="${REL#/}"; if [ -z "$REL" ]; then PROJECT_ROOT="$MAIN_ROOT"; else PROJECT_ROOT="$MAIN_ROOT/$REL"; fi; found=""; cd "$PROJECT_ROOT" && for f in PLAN__*.md; do [ -f "$f" ] && echo "$f" && found=1; done; if [ -z "$found" ]; then [ -f PLAN.md ] && echo "LEGACY_PLAN" || echo "NO_PLAN_FILES"; fi' 2>/dev/null | sed 's/PLAN__//;s/\.md$//' | paste -sd ',' -pwdgit log -1 --format="%h %ai %s" 2>/dev/null || echo "NO_COMMITS"Automatically creates task-specific PLAN files (PLAN__<TASK>.md) or updates existing ones by analyzing session activity to track implementation progress.
Purpose: Single source of truth for plans and progress across sessions. A new agent must be able to resume work using ONLY the PLAN file -- no prior session context, no codebase re-exploration for decisions already made.
Naming Convention:
PLAN__<TASK>.md (always PLAN__ with two underscores)AUTH_FLOW, ✓ API_MIGRATION, ✓ SLACK_FORMATTINGauth_flow (lowercase), ✗ AUTH__FLOW (double underscore)ALWAYS write PLAN files to the project root, NEVER to a worktree path or ~/.claude/plans/
{project_root}/PLAN__<TASK>.md{project_root} is the "Project root" value from the Context section aboveHow project root is resolved:
The project root combines --git-common-dir (main repo root, worktree-safe) with --show-toplevel (current working tree root) to compute the correct target:
--show-toplevel)--git-common-dir)This handles worktrees (CWD may be inside <repo>/.worktrees/<name>/) and monorepos (CWD may be a subdirectory like <repo>/<app>/) correctly — including both at once.
| Situation | Main repo root | Worktree/CWD | Project root |
|---|---|---|---|
| Standard repo | /repos/myapp | /repos/myapp | /repos/myapp |
| Worktree | /repos/myapp | /repos/myapp/.worktrees/feat | /repos/myapp |
| Monorepo | /repos/mono | /repos/mono/builderbot-slack | /repos/mono/builderbot-slack |
| Worktree + monorepo | /repos/mono | /repos/mono/.worktrees/feat/builderbot-slack | /repos/mono/builderbot-slack |
Never use:
<repo>/.worktrees/<name>/) as the PLAN file location~/.claude/plans/ — this is Claude Code's internal storage, unrelated to this skillUse pre-executed context:
Check "PLAN files":
NO_PLAN_FILES → Create mode: Extract plan from ExitPlanModeLEGACY_PLAN → Legacy migration: Rename PLAN.md to PLAN__.md⚠️ ANTI-RECENCY BIAS: Recent work dominates attention. The FIRST ExitPlanMode has the complete vision. Document ALL work (completed, current, AND future).
Extract plans:
Search for implementation evidence:
Assign statuses:
PLAN__<TASK>.md, parse task hierarchy with statusesSee references/templates.md for PLAN.md structure.
Generate PLAN__.md with:
Write to {project_root}/PLAN__<TASK>.md and validate:
Update PLAN__<TASK>.md:
Handle plan evolution if detected:
[CANCELLED - plan changed]Every PLAN file must be self-contained enough for a new agent to resume work without prior session context. When writing or updating, verify:
PLAN files accumulate institutional knowledge. The design narrative — the WHY behind decisions — is more valuable than the task tracking. Agents naturally focus on WHAT to change and forget WHY, which leads to incomplete or misguided implementations when they lack the human semantic intent behind the work.
Design narrative (NEVER remove — only annotate or add forward pointers):
Tracking artifacts (CAN be relocated between PLAN files):
The test: If removing content would force a future reader to re-discover a decision, re-research an external system, or lose understanding of the human intent behind the work — that content must stay.
When restructuring (moving sections to a new PLAN file, consolidating, or splitting): keep all design narrative in the original location, add forward pointers for tracking, and duplicate design context into the new file for cold-start self-containment. Intentional overlap between files is correct.
Evidence Strength:
Valid Status Labels:
All Modes:
Create Mode:
Update Mode:
See references/templates.md for detailed PLAN.md structure and examples.