Command Palette

Search for a command to run...

Back to skills
skill № 99303

03-construction

ai_plc_construction - AI-PLC Stage 3。Agent 定義が要るタスク(RUL_plc_adaptive §6)に対して実行可能なスキル定義と実行計画を生成する。

FreeNo executable scripts
miyatti777by miyatti777★ 54 GitHub stars

Install 03-construction in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

AI-PLC Stage 3: Construction

Backlogの各タスクに対して実行可能なAgent定義を生成するステージ。既存テンプレート(templates/agents/TPL_*)とタスク固有コンテキストを組み合わせる。

共通規約: 命名は RUL_plc_system §6 / 完了報告は RUL_plc_session §7(説明の詳しさは §7.0)/ Phase遷移通知は §8 / Mob CP出力と質問UIは §9・§9.1 に従う。

ライブ表示: ライブ表示(BacklogLive)は任意。tools/BacklogLive/server.py(公開版では experimental/backlog-live を手でコピーしたもの)があるときだけ、対象 Layer の scope_id が決まった時点で http://localhost:8770/?layer=<scope_id> を開く(サーバが動いていなければ python3 tools/BacklogLive/server.py --no-browser をバックグラウンドで起動する。Claude Code デスクトップで .claude/launch.json に backlog-live があればそのプレビューで開く。本人が「開かないで」と言ったとき・サブエージェントとして実行中は開かない)。無いとき・起動や表示ができないとき(ポート 8770 が使用中など)は何もせずに続ける(止めない)。

呼ぶ条件: RUL_plc_adaptive §6 の条件に当たるときだけ通す。生成するのは backlog の construction.tasks のタスクだけ(Layer 単位の条件=complex・platform_builder・construction_mode: always のときは、Inception が command のある全タスクをそこに書いている)。

自動完走モード: セッション中に RUL_plc_session §10 を指す /goal があるときは §10 に従い、Mob Checkpoint・Next Action・タスク選択で待たずに進める(無ければ本 SKILL のとおり止まる)。明示 force は §10.1。

選択した方式だけ読む: 同梱の PM アドオン(目録 addon-catalog.yaml の aipm。旧い欄 work_style: aipm も同じ)が選ばれた Layer は aipm-guided の工程を AGT の Flow に写す。dev_style: <your_style>(本人が選んだ開発方式)の Layer は AGT の Guardrails に「完成ゲートはその開発方式の規約(チェックポイント・PR の作り方・レビュー)」の1行だけ書く。どれが選ばれているかは、intent の work_style が null 以外か addons が空でないときだけ、判定関数 python3 -B .claude/skills/ai-plc/scripts/plc_addon_select.py --layer <Layer>(持ち込みの件があるときは --read-root <実許可root>、scope: common なら --common-root <root> も付ける。plc_addon.py と同じ)の返却の selected[].addon_id で確かめる(route が held なら hold_reasons を出して止める)。方式のほかに選んだものが無い Layer は、本 SKILL だけで生成する。方式(目録の work_method)が記録されていない Layer は止める: python3 -B .claude/skills/ai-plc/scripts/plc_addon_select.py --layer <Layer> --require-method(持ち込みの件があるときは上と同じ --read-root・--common-root を付ける)の hold_reasons に method_required があれば、01-collection の Phase 7 の手順5(方式の記録)へ案内して止まる。ほかの理由で held のときも hold_reasons を出して止まる。方式は自動では書かない(自動完走中だけ、手順5と同じく python3 .claude/skills/ai-plc/01-collection/recommendation.py default --layer <Layer> --apply で既定を記録してログに残す)。

入力

入力 必須 説明
Backlog ✅ Stage 2で生成されたbacklog.yaml
Agent Template Library ⭕ templates/agents/ 配下のTPL_*
Existing Agents ⭕ 過去に生成された再利用可能なAgent定義群
Task ⭕ 指定時はそのタスクのみ生成(未指定=一括生成モード)

実行フロー

Phase 1: Backlog読み込み + 定義の型の判定

backlog.yamlを読み込み、各タスクのcommand / command_template_ref を確認し、typeからAgent定義の型(Lite・Full)を自動判定する(ユーザー指定優先。旧称「ティア」— 層〔tier〕と分けるため呼び直した):

  • Lite(design / research / content / planning): Goal + Input + Output + Guardrails の4セクション。Execution FlowとInstructionsはテンプレートから暗黙適用し、Guardrails内に独立レビュー契約を必ず含める
  • Full(implementation / validation / complex / coding): 全6セクション(Goal / Input / Output / Execution Flow / Guardrails / Agent Instructions)

commandフィールドがないタスクはスキップする。

Phase 2: Template探索

3段階で探索する: ①templates/agents/のTPL_* ②既存Agents/の過去定義 ③ドメイン知識テンプレート。テンプレートが見つかれば必ずコピーして使用する。

コーディングPJではTPL_coding_agent / TPL_review_agentが選択され、生成AgentのFlow内に機能設計→Code Gen→Build & Testが組み込まれる(特別フェーズは不要。SubLayerは通常どおり4ステージを再帰展開)。

Phase 3: 生成計画 + Agent一括生成

  1. 各タスクに最適なテンプレートを特定し、定義の型に応じたAgent定義を生成して Agents/ に配置する
  2. Task未指定時は construction.tasks のタスクを一括生成(Mob CPは1回のみ)。Task指定時は単体生成
  3. Agent定義はHITL統合型(Autonomous Phase + Mob Checkpoint交互)を標準構造とし(delegable: true のタスクは4項のとおり Autonomous-only)、実行可能な詳細度で書く
  4. Subagent互換frontmatterを全AGTに付与する: name(kebab-case)/ description / tools(最小権限。reviewer系はWrite/Edit除外)/ delegable(backlog の delegable の値を写す。backlog が正。true のタスクは Mob Checkpoint を挟まない Autonomous-only で生成する)。Guardrailsに「変更禁止ファイル」欄(backlog.yaml / context.yaml / intent.yaml / sqlite / rules / SKILL等)を必ず含める。AGT本文はそのままAgent toolのpromptに渡せる自己完結指示書にする
  5. 独立レビュー契約: 04-operation Phase 5.5 に従う(Guardrails には『独立レビュー: 04-operation Phase 5.5 に従う』の1行だけ書く)。生成した AGT のパスは backlog の該当タスクの command_template_ref に書く
  6. 生成中にスコープ外タスク(別チーム作業の前提・別システムでの実装要求・スコープ外の改善点)を発見したら、Self-Describing Task構造(RUL_plc_system §9)でチケット化し「外部DBに書き出しますか?」と確認→承認後push
  7. 結果をユーザーに提示する:
【発見されたテンプレート・参考Agent】[一覧]
【生成対象Agent】
✅ [TaskID]: AGT_[タスク名] — [定義の型: Lite/Full] / 参考: [テンプレート名] / Goal: [概要]
⏭️ [TaskID]: [タスク名](commandなし → スキップ)

Phase 4: Mob Checkpoint — 生成結果確認(停止)

ここで必ず停止し、承認を待つ(§9.1): 生成Agent一覧(定義の型・参考TPL・Goal概要)を提示し、🙋承認待ちブロック(OK / 修正: [指示] / 差し戻し)を出力。修正指示があれば反映して再提示する。

Phase 5: Mob Checkpoint — 次ステージ提案(停止)

RUL_plc_session §7 の4パートを出力して停止する。Next Action: A=/04-operation でP0タスク実行(⭐推奨) / B=タスク一覧・Agent定義確認(表記は §7.4「実行形式は環境の正」)。

Agent定義の標準構造

セクション 内容
Goal このAgentが達成すること(成功基準)
Input 必要な入力データ・コンテキスト
Output 生成される成果物(完了判定基準)
Execution Flow Phase構造(Autonomous + Mob Checkpoint)
Guardrails 各Phaseの品質保証条件 + type別の独立レビュー契約
Agent Instructions Stage 4実行時のAI指示

全ての定義の型に共通でfrontmatter(name / description / tools / delegable)を付与する(Phase 3の4項参照)。

出力

Agents/ 配下のAgent定義群 → Stage 4: /04-operation

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the 03-construction skill do?

ai_plc_construction - AI-PLC Stage 3。Agent 定義が要るタスク(RUL_plc_adaptive §6)に対して実行可能なスキル定義と実行計画を生成する。

How do I install the 03-construction skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the 03-construction skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare 03-construction with