ワンクリックで
kmg-execute-plan
Enforce zero-deviation plan execution when user invokes plan implementation
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Enforce zero-deviation plan execution when user invokes plan implementation
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Provide orientation to the Knowledge Graph system architecture and guidance for knowledge capture
Auto-surface ADR creation when user makes architectural decisions or chooses between technical approaches
Auto-invoke knowledge graph search when user asks about project history, past decisions, or previously solved problems
Ensure the knowledge graph is consulted before any recommendation is made
Route capture-that / remember-that requests to the correct destination via auto-detection
Intercept explicit doc-update requests and route to the correct command
| name | kmg-execute-plan |
| description | Enforce zero-deviation plan execution when user invokes plan implementation |
Purpose: Enforce zero-deviation plan execution when user invokes plan implementation.
Trigger Keywords:
docs/plans/*.md file in conversationPlatform Guard (checked before anything else below): This skill is scoped to Gemini running in Antigravity — it was written as a drift-guardrail for that platform specifically (Gemini would go off-rails/tangent without a heavy strict-mode protocol). It is NOT intended for Claude Code or any other ECC platform.
Before surfacing the STRICT EXECUTION MODE banner, determine whether the current session is running under Gemini/Antigravity:
If the runtime does not self-identify as Gemini/Antigravity (e.g., this is a Claude Code session): do NOT surface the banner or run the 8-step protocol below. Instead output:
kmg-execute-plan is scoped to Gemini/Antigravity sessions only (it was written as a
drift-guardrail for that platform). This session is running under a different platform —
use superpowers:executing-plans or superpowers:subagent-driven-development instead, per
the plan file's own "REQUIRED SUB-SKILL" header.
Then stop — do not proceed to any step below.
If the runtime is Gemini/Antigravity: proceed exactly as documented below, unchanged.
No confirmed platform/runtime marker was found in this repo to detect "is this Gemini/Antigravity" directly (see issue-12 for the investigation). Fallback heuristic: Claude Code sessions can self-identify as Claude Code; treat "self-identifies as Claude Code" (or any other non-Gemini/Antigravity ECC platform) as the exclusion trigger — asymmetric by design, since a false negative (occasionally not firing for a genuine Gemini/Antigravity session) is far cheaper than the false positive this guard exists to prevent (firing wrongly inside Claude Code and driving an entire plan execution under the wrong protocol, as happened live during this branch's own c0 execution).
Behavior: When triggered, surface the STRICT EXECUTION MODE banner and enforce the 8-step protocol:
═══════════════════════════════════════════════════════════════
STRICT EXECUTION MODE
Allowed Tools: File read, file edit, file write, shell (verification only)
Forbidden: Improvements, assumptions, gap-filling, unauthorized fixes
═══════════════════════════════════════════════════════════════
ECC Compatibility Note: This skill is intentionally scoped to Gemini/Antigravity sessions,
where it originated as a drift guardrail (.agent/workflows/gov-execute-plan.md). On Claude
Code and other ECC platforms, this skill should not fire at all — see the Platform Guard
above. If ported to a new platform in the future where an equivalent guardrail is genuinely
needed, treat this file as a template to adapt for that platform, not a skill to broaden in
place to cover multiple platforms at once.
Prerequisite Check — Step 6.4 Sync Verification: Before implementing any ENH or issue in scope, verify that Step 6.4 (ROADMAP + CHANGELOG sync) was completed for each item. This check fires at implementation start, not at issue-tracking completion.
For each ENH/issue in the plan:
⚠️ PREREQUISITE CHECK — Step 6.4 Not Completed
Before implementing [ENH-NNN / issue-N], Step 6.4 (ROADMAP + CHANGELOG sync) was not completed.
Options:
[C] Complete now — run ROADMAP + CHANGELOG sync inline, then proceed
[S] Skip — proceed without sync (your choice; noted in commit message)
[X] Cancel — abort implementation
Enter choice (C / S / X):
HALT — Implementation cancelled. Complete Step 6.4 before retrying.This check runs once per item, before the first edit for that item.
Prerequisite Check — In-Plan Cascade Review: Before executing, check for ADR capture flag:
ADR_FLAG="/tmp/kmgraph-adr-captured-$(date +%Y-%m-%d).flag"
If flag EXISTS:
If flag ABSENT: skip this check and proceed normally.
Detection mechanism: flag file written by
adr-guideafter successful ADR creation. Day-scoped via$(date +%Y-%m-%d)— consistent with existingkmgraph-plan-gatepattern. No model self-tracking required.
Subagent fallback: If
kmg-execute-planis somehow invoked as a subagent with the flag present (parent failed to gate), output: "Parent must resolve in-plan cascade before dispatching subagents. HALT." Do not attempt to prompt the user — subagents have no interaction channel.
Protocol Steps:
Source: Adapted from .agent/workflows/gov-execute-plan.md (now kmg-execute-plan)
Key Constraint: "No improvements" — even if you spot bugs, better implementations, or missing error handling, DO NOT FIX unless explicitly in the plan.
Example Trigger:
User: "Let's execute the v0.0.10.1 plan from docs/plans/v0.0.10.1-alpha-skills-and-agents.md"
Assistant Response: Output STRICT EXECUTION MODE banner and follow 8-step protocol.
v0.2.1 Decision Note — Agent Dispatch Evaluation: Agent dispatch was evaluated and rejected for this skill. Rationale: