Skip to content
cccskills
FreePublished on GitHub

dev:spec-codex

Codex Plan Mode 専用。docs/PLAN/{YYMMDD}_{slug}/ に schema v3 仕様書を作成する。Gate 契約 (Goal / Constraints / Acceptance Criteria)、Mermaid 図、Cursor Agent 委任ヒントを含む。

Trigger: spec-codex

The English summary is being prepared. Showing the original description.

See how to install

Files included (13)

  • SKILL.md8.3 KB
  • agents/openai.yaml260 B
  • references/cursor-delegation-protocol.md2.4 KB
  • references/delegation-brief-template.md1.7 KB
  • references/diagram-selector.md1.8 KB
  • references/discovery-decision-sprint.md8.3 KB
  • references/gpt-55-prompting.md1.1 KB
  • references/plan-reviewer.md8.0 KB
  • references/templates/context-template.md1.6 KB
  • references/templates/spec-template-dir.md3.5 KB
  • references/templates/tasks-schema-v3-codex.md7.6 KB
  • references/templates/tasks.template.json1.8 KB
  • scripts/init-plan.sh897 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

spec-codex

Codex を有能なエンジニアとして委任できる契約書としての仕様書を作る。

Plan Mode ガード

Plan Mode でない場合は次だけを返して停止する。

このスキルは Codex Plan Mode 専用です。Plan Mode に切り替えて spec-codex を再実行してください。

実行手順

Step 1: 対象タスクを確定する

  1. 会話から実装対象を読み取る。不明な場合は質問機能で確認する
  2. date +%y%m%d で日付を取得する
  3. slug 候補を 2〜3 案提示し、質問機能でユーザーに確定させる
  4. docs/PLAN/ を確認し、{YYMMDD}_{slug} が既存ディレクトリと衝突していないことを確かめる

成果物: 確定した {YYMMDD}_{slug} 完了: slug がユーザー確定済みで衝突がない

Step 2: 作業ディレクトリを準備する

init-plan.sh を実行してディレクトリとテンプレートファイルをセットアップする。

bash .codex/skills/dev/spec-codex/scripts/init-plan.sh {YYMMDD}_{slug}

成果物: docs/PLAN/{YYMMDD}_{slug}/ ディレクトリ + references/context.md / tasks.json 完了: スクリプトがエラーなく完了し、ディレクトリと各ファイルが存在する

Step 3: コンテキストを収集する

この PLAN 固有の確認済み事実を記録する。プロジェクト全体のルールや構成は対象外。

  1. この実装で触る特定ファイル・API・コマンドを Glob / Grep / Read で確認する
  2. コードベース外の参照資料(外部 API ドキュメント等)があれば references/ にコピーまたは要約する
  3. Step 2 でコピーした docs/PLAN/{YYMMDD}_{slug}/references/context.md を編集して確認済み事実を記録する

成果物: docs/PLAN/{YYMMDD}_{slug}/references/context.md(内容が埋まった状態) 完了: 後続 Step の根拠として使える状態になっている

Step 4: 要件を深掘りする

  1. discovery-decision-sprint.md を Read し、Phase 1〜6 を順に実行する
  2. Phase 3 の質問は Plan Mode の質問機能を使い、1 ラウンドあたり 2〜3 問でユーザーと対話する
  3. Completeness Check が全て満たされたら docs/PLAN/{YYMMDD}_{slug}/references/discovery.md を Write する

成果物: docs/PLAN/{YYMMDD}_{slug}/references/discovery.md 完了: Completeness Check が全て満たされ、計画段階で解消できる不明点が残存リスクに残っていない

Step 5: spec.md authored 部を書く

  1. spec-template-dir.md を Read して構成を把握する
  2. diagram-selector.md を Read し、仕様の内容に応じた Mermaid 図の種類を選ぶ
  3. discovery.md の Gate Contract Inputs を起点に、設計決定事項・アーキテクチャ詳細を spec.md に書く
  4. generated 領域は <!-- generated:begin --> / <!-- generated:end --> markers だけ置く

成果物: docs/PLAN/{YYMMDD}_{slug}/spec.md(authored セクション) 完了: discovery.md の Gate Contract Inputs が設計決定事項とアーキテクチャ詳細に反映されている

Step 6: Gate 契約を設計する

  1. tasks-schema-v3-codex.md の Gate セクションを Read し、必須フィールドを把握する
  2. discovery.md の Gate Contract Inputs(Constraints / Acceptance Criteria)を起点に Gate を設計する
  3. Step 2 でコピーした tasks.json の gates[] を編集して内容を埋める

成果物: docs/PLAN/{YYMMDD}_{slug}/tasks.json の gates[] 完了: 全 Gate に goal / constraints / acceptanceCriteria が揃い、依存関係に循環がない

Step 7: Todo と委任ヒントを設計する

  1. tasks-schema-v3-codex.md の Todo セクションを Read し、軽量フィールドの定義を確認する
  2. 各 Gate の Todo を設計し tasks.json の gates[].todos[] を編集する
  3. cursor-delegation-protocol.md を Read し、先行実行できる作業の判断基準を確認する
  4. 先行実行できる Todo を特定したら、tasks.json のトップレベル preDelegation[] に切り出す。各項目に writeScope / verification / prompt(詳細指示書)/ relatedGate / relatedTodo を設定する

成果物: docs/PLAN/{YYMMDD}_{slug}/tasks.json の gates[].todos[] と preDelegation[] 完了: 各 Todo が軽量フィールドのみを持ち、先行実行できる作業が preDelegation[] に切り出されている

Step 8: Preflight を抽出する

  1. tasks-schema-v3-codex.md の Preflight セクションを Read し、対象カテゴリ(network 必須 / global 書き込み / 対話ログイン)を確認する
  2. discovery.md の ### Preflight にある項目を起点に、対象カテゴリのみを抽出する
  3. tasks.json の preflight[] を編集する。該当なければ preflight: [] とし、spec.md の Preflight セクションを省略する

成果物: docs/PLAN/{YYMMDD}_{slug}/tasks.json の preflight[] 完了: network 必須・global 書き込み・対話ログインのみが Preflight に入っており、通常コマンドが混在していない

Step 9: sync してレビューする

  1. sync を実行して spec.md の generated 領域を tasks.json と一致させる
bash .codex/skills/dev/spec-codex-run/scripts/sync.sh {YYMMDD}_{slug}
  1. plan-reviewer.md を Read し、全チェック項目に基づいて自己レビューする
  2. 結果を docs/PLAN/{YYMMDD}_{slug}/references/plan-review.md に Write する
  3. NEEDS_REVISION の場合は指摘箇所を修正し sync してから再レビューする(最大 2 回)

成果物: docs/PLAN/{YYMMDD}_{slug}/references/plan-review.md 完了: tasks.json が parse でき schemaVersion === 3。generated 領域が同期されている。plan-review.md が PLAN REVIEW APPROVED

Step 10: 完了を報告する

作成したファイルパス、Gate 数、使用した Mermaid 図の種類、Cursor 委任ヒントの有無、残存リスクの有無を報告する。


完了条件

  • docs/PLAN/{YYMMDD}_{slug}/ 以下に spec.md / tasks.json / references/context.md / references/discovery.md / references/plan-review.md が存在する
  • tasks.json の schemaVersion === 3
  • 全 Gate に goal / constraints / acceptanceCriteria / todos / review / passed がある
  • 全 AC が検証可能な状態記述になっている
  • spec.md に <!-- generated:begin --> / <!-- generated:end --> があり generated 領域が同期されている
  • plan-review.md が APPROVED

References

各 Step の手順内でリンク先を Read することで参照される。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Rebuild a degraded AI image to remove crunchy textures and repeated-edit artifacts while preserving identity, style, and composition. Use for clean remakes, not ordinary retouching or upscaling.

The English summary is being prepared. Showing the original description.

ryryo/dot-claude-dev3Updated Oct 19, 2026

セミナー・講義・ウェビナー・研修・実演動画をローカルで文字起こしし、内容を分析して、必要なスライド画像や動画クリップ付きのHTML/Markdown資料を作る。動画から学習資料・実践ガイドを作りたい場合に使う。映像作品の再現設計やCanvas生成は対象外。

The English summary is being prepared. Showing the original description.

ryryo/dot-claude-dev3Updated Oct 19, 2026

責務・依存方向・状態や副作用の境界を監査し、既存挙動を保って段階的にリファクタリングする。read-only監査にも対応する。

The English summary is being prepared. Showing the original description.

ryryo/dot-claude-dev3Updated Oct 19, 2026

AGENTS.mdや既存スキルをGPT-6 Astra向けに監査・整理するときに使う。契約と意図的な他モデル委譲を保ち、重複、過剰な手順、曖昧な停止条件を修正する。

The English summary is being prepared. Showing the original description.

ryryo/dot-claude-dev3Updated Oct 19, 2026

人物の参照写真から、同一性を保った複数アングルのキャラクターシートを生成・修正する。指定された身だしなみや撮影表現も整える。

The English summary is being prepared. Showing the original description.

ryryo/dot-claude-dev3Updated Oct 19, 2026

既存キャラクター画像を、承認制でピクセルアートの正準画像へ変換し、3状態パイロット、クロマ前処理、状態間ジオメトリ検証、9状態生成、遷移QA、仮配置、アプリ内確認、ロールバック可能な正式配置まで行う。キャラクターからCodexペットを作る依頼に加え、ジャンプで小さくなる、状態ごとに身長が変わる、足元が跳ねる、クロマ縁が出る、アニメーションを修復したい依頼で使用する。

The English summary is being prepared. Showing the original description.

ryryo/dot-claude-dev3Updated Oct 19, 2026

See all skills by ryryo

Report a problem with this skill