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 that wraps node np-tools.cjs <subcommand> calls, plus orchestration prose.

Planning

Set up the project, capture decisions, write plans.

CommandWhat it does
np:new-projectGreenfield init: PROJECT.md + REQUIREMENTS.md + roadmap.yaml + milestones/M001/ shell. Detects existing project and offers archive-then-init via Phase -1.
np:archive-projectMove current .nubos-pilot/ project into archive/<slug>-<YYYYMMDD>/ with optional carry-over (status | do | list | read). Used by np:new-project Phase -1.
np:new-milestoneAppend a milestone (M<NNN>) to an existing project
np:discuss-projectAdaptive project-level context interview (PROJECT.md body)
np:discuss-phase <N>Milestone-level decision interview → M<NNN>-CONTEXT.md
np:research-phase <N>Optional milestone-level research → M<NNN>-RESEARCH.md
np:plan-phase <N>Plan the entire milestone: slices + tasks. 2-iteration plan-checker loop.
np:plan-phase <N> --repromoteRe-scaffold task files from existing slice plans without replanning
np:agent-skillsPrint the agent-skills config for a given subagent

Execution

Wave-based execution: slices run serially, tasks parallel within each slice. One atomic commit per task.

CommandWhat it does
np:execute-phase <N> [--verify-work]Execute milestone M<NNN> slice-by-slice. Pass --verify-work to auto-chain /np:verify-work <N> after finalize-milestone.
np:verify-work <N>Post-execution goal-backward verification → M<NNN>-VERIFICATION.md
np:add-tests <N>Persist VERIFICATION Pass-cases as node:test UAT files
np:commit-task <M-S-T>Atomic per-task commit via lib/git.cjs
np:checkpointPer-task checkpoint CRUD (start/transition/touch/show)
np:pause-work / np:resume-workExplicit session handoff + crash-recovery classifier
np:undo <N|M-S>Revert every task commit of a milestone or slice via git revert
np:undo-task <M-S-T>Revert a single task commit and reset task status to pending
np:reset-slice [<M-S-T>]Discard in-flight task: restore working tree, drop checkpoint (no commit)
np:skip / np:park / np:unparkTask lifecycle state CRUD

Review

Post-execution audits.

CommandWhat it does
np:validate-phase <N>Nyquist coverage audit — every requirement has ≥1 direct test assertion
np:close-projectAggregate verification across every milestone; writes PROJECT-SUMMARY.md and sets roadmap.yaml.project_status = completed when no blockers remain. The single whole-project verification pass.

Capture

Lightweight capture of work-in-flight ideas.

CommandWhat it does
np:add-todoCapture a pending todo to .nubos-pilot/todos/pending/
np:noteFree-form note (project scope commits; --global writes to ~/.nubos-pilot/notes/)
np:threadCross-session thread CRUD under .nubos-pilot/threads/

Utility

Routing, status, diagnostics.

CommandWhat it does
np:statePrint the current project state snapshot
np:statsAggregated project stats (roadmap + STATE + git + metrics)
np:dashboardOne-shot read-only view of milestones, slices, and task statuses (--json, --no-color)
np:doctorInstall + layout integrity scan (--fix for auto-safe fixes)
np:scan-codebaseInitial deep codebase inventory → .nubos-pilot/codebase/
np:update-docsRefresh stale module docs after code changes
np:session-reportSession 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/layout.cjs.slugify
np:resolve-modelResolve agent/tier to model alias or id
np:metricsRecord JSONL metrics entry