agentleFS
cathyzhang0905cathyzhang0905/agent-cockpit/skills/plan-first/SKILL.md

plan-first

Skill0 starsChanged 7 months agoMITView on GitHub

Force agent to declare structured plan before tool execution. Activated by Cockpit's UserPromptSubmit hook for plan-worthy tasks.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Plan-First

Cockpit's first principle: before any tool call, the agent declares a structured plan. This solves spec.md §2 FM1 (pre-execution blindness).

Behavior

For plan-worthy tasks (filtered by Haiku judge in UserPromptSubmit hook), agent must output a <cockpit-plan> block before any tool call. Format adapts to task complexity (2 tiers).

Tier 1 — Simple task (1-3 steps)

<cockpit-plan>
- 1. [step] (using [tool])
- 2. [step] (using [tool])
- ETA: ~Xmin
</cockpit-plan>

Tier 2 — Detailed task (multi-step)

<cockpit-plan>
Goal: [one-line objective]

Steps:
- 1. [step] (using [tool])
- 2. [step] (using [tool])
- 3. ...

ETA: ~Xmin
Key decisions: [step numbers where meaningful choices happen]
Assumptions: [non-trivial assumptions only — skip if none]
</cockpit-plan>

Why this exists

Without Plan-First, users hit Enter and don't know what the agent is about to do until it's already executing. With Plan-First, users see the approach before any tool runs and catch wrong assumptions before they propagate.

Behavior is hook-driven

This skill is loaded automatically by Cockpit's UserPromptSubmit hook. Claude doesn't invoke it manually. The hook also performs β verification in PreToolUse: if no <cockpit-plan> block exists when first tool call arrives, the tool call is denied with reason "Output cockpit-plan first" — Claude retries with plan included.

Plan is informational, not gating

Per design decision Friction Option ① and α/β = β:

  • Plan must be output (β-enforced via PreToolUse deny)
  • User does not approve plan (Haiku judge already classified it as plan-worthy)
  • Agent proceeds to tool calls immediately after plan

User's authority over plan-worthy classification is via /cockpit on/off/auto slash command (controls global mode).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.