agentsclimarketplace

Cf plan

Skill QBall-Inc/clear/skills/cf-plan

Context Layering & Engineering for Agentic Resources — Persistent memory, intelligent context, and structured project management for Claude Code

Install
npx -y skills add QBall-Inc/clear --skill cf-plan

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Manage and view the development plan — status, progress, blockers, phases, and next steps. Use when the user asks about plan status, needs next-step recommendations, wants to create or modify the plan, or asks about phases and milestones.

SKILL.md

8.1 KB, as published. Nobody here has run it

CLI Usage: When unsure about a CLI's interface or flags, run it with --help first. Do NOT attempt to discover functionality by reading plugin source code — doing so leads to incorrect execution from assumptions made without context of the holistic flow.

CLEAR Plan Management

Manage and view the development plan: status, progress, blockers, phases, next steps, and plan creation.

Plugin Root Resolution

CLI commands in this skill reference $CLEAR_PLUGIN_ROOT — a .claude/settings.json env var the shell expands. The SessionStart hook persists it, but settings env vars load at session launch, so on a brand-new consumer's first session (before its next restart) the variable is empty and node "$CLEAR_PLUGIN_ROOT/build/..." fails with MODULE_NOT_FOUND.

First-session bootstrap — if $CLEAR_PLUGIN_ROOT is empty, set it inline in the same Bash call as the CLI (each Bash call is a fresh shell, so a separate export would not carry over):

export CLEAR_PLUGIN_ROOT="${CLEAR_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}"

Prepend it to the CLI in one shell line: export CLEAR_PLUGIN_ROOT="${CLEAR_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}"; <node "$CLEAR_PLUGIN_ROOT/build/..." command>. ${CLAUDE_PLUGIN_ROOT} resolves in this SKILL.md body to the actually-loaded plugin path; once the consumer restarts, $CLEAR_PLUGIN_ROOT is populated and the assignment is a harmless no-op. Reference files are left unchanged.

When to Use This Skill

TriggerExamples
Plan status or overview"How's the plan looking?", "Plan status?"
Progress check"How much progress have we made?", "Phase progress?"
Blocker analysis"Are there any blockers?", "What's blocking us?"
Next-step recommendation"What should we work on next?", "What's the next WP?"
Phase listing"Show me the phases", "What phases are there?"
Plan creation"Create a plan", "Initialize the development plan"
Add a phase"Add a new phase", "Create phase 3"

Not for: Workpackage management (/cf-workpackage), session status (/cf-status), debugging (/cf-debug).


Command Reference

Plan CLIs at $CLEAR_PLUGIN_ROOT/build/infrastructure/plan/cli/. Scripts at $CLEAR_PLUGIN_ROOT/scripts/plan/.

ActionCommand
Plan overview / statusload-cli --clear-dir=./.clear (also auto at session start via plan-load.sh)
Check progressprogress-cli --clear-dir=./.clear
Check blockersblockers-cli --clear-dir=./.clear [--phase=<phase-id>]
Recommend next workpackagenext-cli --clear-dir=./.clear
Create new plan scaffoldcreate-cli --cwd=. --name="..."
Import existing plan YAMLimport-cli --plan-path=<path>
Add new phasephase-cli --cwd=. --name="..." [--after=<phase-id>]
Write plan YAML to diskecho "<yaml>" | plan-write-cli --cwd=.
Set active phase (manual override)update-cli --active-phase=<phase-id>
Mark milestone complete (manual override)update-cli --milestone=<id> --status=complete
Rollup progress from WPsupdate-cli --rollup
Add changelog entryupdate-cli --changelog --changelog-type=<type>

Hook-internal scripts (not for direct invocation): plan-load.sh (SessionStart), plan-progress.sh (UserPromptSubmit). These bash scripts wrap the corresponding CLIs for dispatcher JSON-envelope translation. Use the CLIs directly in skill flows.


Pre-Flight Check

if [ -f ".clear/config/clear-manifest.yaml" ]; then
  echo "INITIALIZED"
else
  echo "NOT_INITIALIZED"
fi

If NOT_INITIALIZED: Display "CLEAR is not initialized in this project. Run /cf-init to set up CLEAR." and stop.


Subcommand Table

SubcommandTypeReference FileIntent Signals
status[R]references/status.md"status", "how's the plan", "overview"
progress[R]references/progress.md"progress", "how far", "how much done"
blockers[R]references/blockers.md"blockers", "what's blocking", "stuck"
next[R]references/next.md"next", "what should we work on", "recommend"
phases[R]references/phases.md"phases", "show phases", "what phases" — file-read only (no underlying CLI; reads master-plan.yaml directly via yq)
help[R]references/help.md"help", "how do I", "usage"
create[W]references/create.md"create a plan", "initialize plan", "set up plan"
addPhase[W]references/add-phase.md"add phase", "new phase", "create phase"
update[W]references/update.md"update the plan", "set active phase", "mark milestone", "rollup"

Routing

Follow these steps in order. Track which step you reached — this determines whether confirmation is needed.

Step 1 — Check the arguments for an explicit subcommand. The provided arguments are: $ARGUMENTS Check whether those arguments literally start with one of the subcommand keywords from the table above (e.g., status, progress, create). This is a string match, not intent inference.

  • If YES: load references/{subcommand}.md, pass remaining arguments. Done — skip steps 2-4.
  • If NO (empty, missing, or does not start with a table keyword): continue to step 2.

Step 2 — Infer intent from the user's natural language message. The arguments did not contain an explicit subcommand. Determine which subcommand best matches the user's intent from their message. Use the subcommand table's intent signals, the "When to Use" examples, and the conversation context.

  • If you can identify a specific subcommand with reasonable confidence: continue to step 3.
  • If the user's message is purely a status or overview inquiry with no action intent (e.g., "how's the plan looking?"): load references/default.md. Done. Only use this exit if the message contains no entity identifiers (phase name, WP ID) and expresses no specific action intent.
  • If you cannot determine intent with reasonable confidence: go to step 4.

Step 3 — Confirm before write actions (NL-inferred only). You reached this step via intent inference (step 2), not explicit arguments (step 1).

  • If the inferred subcommand is a read action ([R] in the table): load the reference file immediately.
  • If the inferred subcommand is a write action ([W] in the table): you MUST confirm before proceeding. Ask: "I'll run {subcommand}{details}. Proceed?" where {details} includes the target identifier (e.g., " for phase_2"). For destructive actions, always include the target. Wait for the user's response. Only load the reference file after the user confirms.

Step 4 — Ambiguity fallback. Ask the user: "I matched /cf-plan but I'm not sure which action you want. Did you mean: {top 2-3 candidates}?" Do NOT silently fall through to default.


Create Sub-Routing

The create subcommand is a router. references/create.md classifies the input then routes to:

  • references/import.md — Track A: import an existing plan YAML (or directory containing plan_v*.md) via plan-import.sh.
  • references/create-from-scratch.md — Track B: build a new plan from a topic via the three-agent pipeline (requirements-analyst, architect, detail-engineer) plus synthesis.

Both import.md and create-from-scratch.md are loaded by create.md based on input classification; they are not directly user-invocable subcommands.


Related Commands

/cf-workpackage, /cf-status, /cf-knowledge, /cf-debug


Completion Checklist

  • Pre-flight check passed
  • Correct subcommand reference loaded
  • Command executed successfully
  • Output displayed to user

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.