Agent SkillsAgent Skills
COLDTURNIP

plan-gate

@COLDTURNIP/plan-gate
COLDTURNIP
0
0 forks
Updated 4/7/2026
View on GitHub

Lints Longhorn markdown execution plans for required step contract fields. Minimal contract.

Installation

$npx agent-skills-cli install @COLDTURNIP/plan-gate
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Path.opencode/skills/plan-gate/SKILL.md
Branchmain
Scoped Name@COLDTURNIP/plan-gate

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

npx agent-skills-cli list

Skill Instructions


name: plan-gate description: Lints Longhorn markdown execution plans for required step contract fields. Minimal contract. compatibility: opencode

Skill: plan-gate

Purpose

Validate Longhorn planning documents before execution. This gate enforces the presence of required step contract fields.

Usage

bash .opencode/skills/plan-gate/plan_gate.sh [options] [plan_markdown_path]
  • If no plan_markdown_path is provided, defaults to .sisyphus/plans/atlas-governance-p0-p1.md.

Options

  • --execute: Perform check (default dry-run semantics)
  • --dry-run: Dry-run (default)
  • --json-log: Emit JSON log lines
  • -h, --help: Show help

Contract Checks

The following fields/headings must be present in the plan:

  • Plan Step Contract
  • Action:
  • Target:
  • Verify Command:
  • Done Criteria:
  • Writing purpose:
  • Global Hard Rules
  • Forbidden references

Hotfix Retry Prompt Gate

If the plan contains Hotfix Retry Prompt, each block must contain exactly one line each:

  • Target file: <path>
  • Change objective: <one sentence>
  • Verify: <single command>

The Verify line must be a single command (no &&, ||, ;, or pipes).

Exit Codes

  • 0: pass
  • 2: argument error
  • 3: gate failure