Skip to content

Workflows Overview

A workflow is a Markdown file under workflows/ (in source) that defines an np:* slash-command. Each workflow body is a small shell script wrapping node np-tools.cjs <subcommand> calls plus orchestration prose.

The five categories below mirror the grouping in bin/np-tools/_commands.cjs — same names, same descriptions.

Planning

Set up the project, capture decisions, write plans.

CommandWhat it does
np:new-projectGreenfield init: PROJECT.md + REQUIREMENTS.md + roadmap + first phase dir
np:new-milestoneAppend a milestone + first phase to an existing project
np:discuss-phaseAdaptive phase-context interview → CONTEXT.md
np:discuss-phase-powerBulk gray-area question file-UI (power mode)
np:research-phaseOptional phase-level research → RESEARCH.md
np:plan-phaseAuthor PLAN.md with plan-checker verification loop
np:plan-milestone-gapsCreate corrective phases from audit gaps
np:agent-skillsPrint the agent-skills config for a given subagent
np:plan-diffRender a two-part PLAN.md diff (semantic + git)
np:ai-integration-phaseAI-SPEC generator with framework-selector + eval-planner
np:ui-phaseUI-SPEC generator with researcher + checker revision loop

Execution

Wave-based execution, atomic commits, lifecycle CRUD on tasks.

CommandWhat it does
np:execute-phaseWave-based phase execution; spawns one executor per task
np:execute-planSingle-plan execution (sub-case of execute-phase)
np:autonomousIn-session auto-advance loop (ADR-0001 — no daemon)
np:verify-workTwo-pass goal-backward verification → VERIFICATION.md
np:add-testsPersist VERIFICATION Pass-cases as node:test UAT
np:commit-taskAtomic per-task commit via lib/git.cjs (D-03/D-25 enforced)
np:checkpointPer-task checkpoint CRUD (start/transition/touch/show)
np:pause-workStamp STATE.session.stopped_at + write resume file
np:resume-workClassify session state from STATE + checkpoints
np:undoRevert all task commits of a phase or plan via git revert
np:undo-taskRevert a single task commit and reset task status
np:reset-sliceRestore in-flight task working tree, no commit
np:skipMark task status skipped
np:parkMark task status parked
np:unparkReturn a parked task to pending

Review

Audits and code review.

CommandWhat it does
np:code-reviewSource-file review via np-code-reviewer → REVIEW.md
np:code-review-fixAuto-fix REVIEW.md findings via np-code-fixer
np:reviewCross-AI peer review via 7-CLI fan-out
np:secure-phaseThreat-mitigation audit against PLAN.md threat_model
np:validate-phaseNyquist validation gap-fill via np-nyquist-auditor
np:ui-reviewRetroactive 6-pillar UI audit on a completed phase
np:eval-reviewRetroactive eval-coverage audit on a completed phase

Capture

Lightweight capture of work-in-flight ideas.

CommandWhat it does
np:add-todoCapture a pending todo + bump STATE count
np:noteCapture a free-form note (project default; --global writes to ~/.nubos-pilot/notes/)
np:add-backlogAppend backlog item 999.x to ROADMAP.md + scaffold phase dir
np:threadCross-session thread CRUD under .nubos-pilot/threads/

Utility

Routing, status, diagnostics.

CommandWhat it does
np:nextPrint the next actionable step (six-rule gate)
np:dispatchState-router: compute next action and Skill() to it
np:progressReport % complete across phases and plans
np:statePrint the current project state snapshot
np:statsAggregated project stats (roadmap + STATE + git + metrics)
np:doctor5-check install-integrity scan (--fix for auto-safe fixes)
np:queueUnified queue across todos / backlog / UAT / unplanned phases
np:triageInteractive per-item triage loop (promote / keep / drop)
np:cleanupArchive completed milestones; collapse ROADMAP <details> block
np:session-reportGenerate session report from metrics since .last-session
np:helpList all commands grouped by category
np:askuserCapability-layer prompt wrapper
np:commitAtomic git commit wrapper with gitignore-guard
np:config-getRead value from .nubos-pilot/config.json
np:generate-slugSlugify text via lib/phase.cjs.phaseSlug
np:phasePhase utilities (next-decimal <base>)
np:resolve-modelResolve agent/tier to model alias or id
np:metricsRecord JSONL metrics entry