AGENT SKILL

nous-execute-plan

Execute an existing NOUS plan sequentially or in parallel terminal sessions after checking that the plan exists. Use when the user asks to execute a plan, run a planned implementation, or execute UI, ultra UI, DB, BE, backend, or QA plans.

License 许可
MIT
所属仓库
max-kharena/nous
最近更新
2026-04-28
Stars
★ 0
Forks
0

01 前言 Front Matter

name
nous-execute-plan
risk
high
type
execution
version
0.1.0
description
Execute an existing NOUS plan sequentially or in parallel terminal sessions after checking that the plan exists. Use when the user asks to execute a plan, run a planned implementation, or execute UI, ultra UI, DB, BE, backend, or QA plans.

03 SKILL.md 正文

nous:execute-plan

Core Principle

Never execute before confirming the plan exists.

Supported Commands

  • nous:execute-plan - execute a user-provided or detected plan.
  • nous:quick-ui / quick:ui - quick-execute a small UI change without a saved plan.
  • nous:quick-be / quick:be - quick-execute a small backend change without a saved plan.
  • nous:quick-db / quick:db - quick-execute a small database change without a saved plan.
  • nous:execute-ui-plan - execute the UI plan.
  • nous:execute-ui-ultra-plan - execute the ultra UI plan.
  • nous:execute-db-plan - execute the database plan.
  • nous:execute-be-plan - execute the backend plan.
  • nous:execute-qa-plan - execute the QA plan.
  • nous:execute-release-plan - execute the release / deploy / infra plan.
  • nous:execute-ultraplan - execute a fullstack phased plan.

Plan Existence Check

If the user provides a plan path, verify that file exists before execution.

If no path is provided, search in this order:

.nous/plans/{domain}-plan.md
.nous/plans/nous-{domain}-plan.md
docs/nous/plans/{domain}-plan.md
docs/nous/plans/nous-{domain}-plan.md
docs/plans/{domain}-plan.md
docs/plans/nous-{domain}-plan.md

Domains: ui, ui-ultra, db, be, backend, qa, release, ultraplan. Treat fullstack wording as an alias for ultraplan. Treat deploy and infra wording as aliases for release.

HARD-GATE: Missing Plan

If no matching plan exists, stop. Do not improvise execution.

Respond exactly in this shape:

Plan not found for {domain}. Create the plan first with {planner-command}, or provide a plan path.

Planner command mapping:

  • UI: nous:ui-plan
  • Ultra UI: nous:ui-ultra-plan
  • DB: nous:db-plan
  • BE/backend: nous:be-plan
  • QA: nous:qa-plan
  • Release/infra: nous:release-plan
  • Ultraplan/fullstack: nous:ultraplan
  • Generic: ask which planner should create the missing plan.

HARD-GATE: Invalid Plan Shape

A plan file that exists but is missing the contract sections is not executable. Before doing any work, confirm the plan contains:

For domain plans (ui, ui-ultra, db, be, backend, qa, release):

## Objective
## Specialized Tasks
## Validation Requirements
## Not In Scope

For ultraplans:

## Feature Objective
## Phase Plan
## Parallelization Map
## Validation Strategy

If any required section is missing or empty, stop and respond:

Plan at {path} is missing required section(s): {missing}. Re-run {planner-command} to regenerate, or edit the plan to satisfy the contract.

Do not infer missing sections. Do not execute partial plans.

Execution Modes

Default mode is sequential unless the user asks for parallel execution or the plan clearly defines independent tasks.

Modes:

  • Sequential: execute one task at a time in the current session.
  • Parallel terminal: execute independent tasks in separate terminal sessions or isolated agent sessions.
  • Parallel wave: execute independent tasks in the same dependency wave concurrently, then continue to the next wave.
  • Phase worktrees: execute independent phases in separate git worktrees, then merge/reconcile in main.

Required Methodology Skills

  • Use test-driven-development before feature, bugfix, refactor, or behavior-change implementation unless the user approves an exception.
  • Use systematic-debugging before fixing any failing test, build failure, regression, or unexpected behavior discovered during execution.
  • Use verification-before-completion before reporting any task, phase, or plan as complete.
  • Use requesting-code-review before merge/PR or after risky phases.
  • Use receiving-code-review when acting on review feedback.
  • Use finishing-a-development-branch after verified branch/worktree implementation when integration or cleanup is needed.

Worktree Gate

Before any phase-worktrees, worktree, or parallel-worktree execution, use using-git-worktrees to establish isolation.

Required evidence before implementation:

  • Worktree directory selected by existing convention, CLAUDE.md, or user choice.
  • Project-local worktree directory is gitignored.
  • Worktree branch and path are reported.
  • Baseline setup and verification ran, or the user explicitly approved proceeding despite failures.

Stop if any worktree safety gate fails.

Parallel Terminal Rules

Use parallel terminal sessions only when:

  • Tasks are independent or grouped into explicit dependency waves.
  • Each session can work on separate files or isolated worktrees.
  • Verification can be run per task without corrupting shared state.
  • Merge/reconciliation work is planned after parallel execution.

When using delegated workers in the same session, prefer subagent-driven-development. When there are multiple independent investigations or failures, use dispatching-parallel-agents.

Do not parallelize:

  • Database migrations that depend on sequence.
  • Shared state edits without isolation.
  • Tasks that modify the same files unless the plan explicitly handles conflict resolution.
  • Release or deployment steps.

UI Ultra Execution Rules

When executing a ui-ultra plan:

  1. Apply frontend-design-skill-ultra before editing UI code.
  2. Preserve the plan's declared type scale, spacing ramp, color ramps, and pixel-perfect review gate.
  3. Implement all required interaction states: hover, focus, active, disabled, loading, empty, error, and success where applicable.
  4. Verify desktop and mobile behavior when a browser or screenshot workflow is available.
  5. Include visual verification evidence in the final report: screenshots, browser checks, component states reviewed, or a clear blocker.

Ultraplan Execution Rules

When executing an ultraplan:

  1. Read Phase Plan, Parallelization Map, and Execution Strategy.
  2. Execute phases in dependency order.
  3. Use main for integration, final verification, release decisions, and conflict resolution.
  4. Use subagent for research, review, QA, security, perf, and isolated implementation tasks.
  5. Use worktree for a phase that needs implementation isolation.
  6. Use parallel-worktree only for phases marked independent by the ultraplan.
  7. Verify each phase before starting dependent phases.
  8. Stop if a phase fails verification; do not continue into dependent phases.

Execution Workflow

  1. Resolve domain from command or natural language.
  2. Check the plan exists.
  3. Read the plan.
  4. Confirm execution mode: sequential, parallel terminal, or parallel wave.
  5. Execute only the tasks in the plan using TDD where applicable.
  6. Verify after each task or wave with verification-before-completion.
  7. Stop on failing verification and report the blocker.
  8. Request code review for risky or merge-bound work.
  9. Summarize completed tasks, verification evidence, and remaining work.

Output Contract

## Plan Located
## Execution Mode
## Phase Status
## Tasks Executed
## Verification Evidence
## Blockers
## Remaining Work

04 同仓库更多 Skills