From claude-nexus
Structured multi-perspective analysis to decompose issues, align on decisions, and produce an enriched execution plan before acting. Planning only — does not execute.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-nexus:nx-planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A skill for decomposing issues, comparing options, and producing a plan **together with the user** before execution begins. Lead orchestrates subagent research and analysis and presents recommendations, but **decision authority always belongs to the user**.
A skill for decomposing issues, comparing options, and producing a plan together with the user before execution begins. Lead orchestrates subagent research and analysis and presents recommendations, but decision authority always belongs to the user.
This skill does not execute. Execution is handled separately by the [run] flow. When user dialogue must be skipped and Lead must decide autonomously, use [auto-plan] instead of this skill.
The three rules below are the identity of this skill. Violating even one makes this auto-plan, not nx-plan.
nx_plan_decide, nx_plan_update, or nx_task_add, and do not move to the next issue.If the user requests full delegation such as "you decide" or "whatever you think", do NOT proceed with this skill — first confirm whether to switch to [auto-plan].
Assess the complexity of the request and determine how deeply to pursue the plan.
| Level | Signal | Exploration Scope |
|---|---|---|
| Specific | File path, function name, error message, or concrete target named | Focus on the relevant file or module |
| Direction-setting | Open-ended question, "it would be nice if ~", choice needed among approaches | Related area + external case research |
| Abstract | "I'm not sure how to approach this", goal itself unclear, fundamental direction needed | Full codebase + external research + comparable project comparison |
Understand code, core knowledge, and prior decisions before forming the planning agenda.
.nexus/memory/ and .nexus/context/ first.nx_history_search to check for prior decisions, failures, and retrospectives on similar topics. Narrow the call with scope (e.g., 'decision', 'analysis', 'task.result.outcome') to retrieve only the relevant cell type and reduce context consumption.| Situation | Approach |
|---|---|
| Codebase orientation needed | Agent({ subagent_type: "explore", prompt: "<file/code search task>" }) for codebase exploration |
| External research needed | Agent({ subagent_type: "researcher", prompt: "<research question>" }) for web search |
| Both needed | Spawn Agent({ subagent_type: "explore", prompt: "<file/code search task>" }) and Agent({ subagent_type: "researcher", prompt: "<research question>" }) in parallel |
Once research is complete, open the planning session with nx_plan_start. Any existing plan.json is automatically archived. Show the issue list to the user and confirm the direction before proceeding.
Issues must be processed one at a time. For each issue:
nx_plan_resume first.SendMessage({ to: "<id>", message: "<resume prompt>" }) with the agent_id returned by nx_plan_resume; otherwise, spawn fresh.nx_plan_analysis_add(issue_id, role, agent_id=<id from spawn>, summary). The agent_id is the value nx_plan_resume will return on a future resume request for the same role, so always pass the agent id obtained from the spawn tool response. Do not substitute a human-readable assigned name; names are only for messaging a currently running subagent and are not a safe resume identifier for a completed session. This record feeds both future resume paths and Step 7 task decomposition.nx_plan_decide, nx_plan_update, or nx_task_add.For each issue, spawning the domain-matched HOW subagent for independent analysis is the default. Use any HOW the user explicitly named as-is; propose additions for uncovered axes visible in the mapping table. Additional spawns are free at any point during analysis.
| Domain Keywords | Recommended HOW |
|---|---|
| UI, UX, design, interface, user experience, layout | Designer |
| Architecture, system design, performance, structural change, API, schema | Architect |
| Research methodology, evidence evaluation, literature, experiment design | Postdoc |
When an issue crosses multiple domains, spawn multiple HOWs together. If you skip spawning, state the reason in the analysis text — justified-skip examples: existing memory or history already covers the decision basis / no clear domain match in the table for a procedural issue / decision is self-evident with low irreversibility.
Rows are options, columns are attributes. Column vocabulary (Pros / Cons / Tradeoff / Recommend) matches the HOW agent trade-off table. For plan-time output, an extra When column supports the user's decision — one line on the situation each option fits.
| Option | Pros | Cons | Tradeoff | When | Recommend |
|---|---|---|---|---|---|
| A | ... | ... | ... | ... | ✓ — one-line reason |
| B | ... | ... | ... | ... | ✗ — one-line reason |
Recommendation: {option name} — add two or three sentences below the table only when the Recommend cell's one line is insufficient. Avoid duplicating cell content.
Enter this step only when the user has explicitly selected, accepted, or confirmed. Entering based on Lead's own judgment or user silence violates Absolute Rules 1 and 3.
When entry is justified, use nx_plan_decide to mark the issue as decided. nx_plan_decide records only the final decision text and decision state — it does not append to analysis. All HOW analysis and resume routing records must already be stored via nx_plan_analysis_add in Step 4.
nx_plan_status and announce the next issue in one line.nx_plan_update.nx_plan_update and return to Step 4.Call nx_plan_decide only when all of the following answer "yes":
If any answer is "no", return to the Step 4 stop state and re-ask the user.
nx_plan_update.nx_plan_update, and return to Step 4.Once all issues are decided, decompose the decisions from plan.json into actionable tasks and populate tasks.json via nx_task_add. This is the default termination procedure of the plan skill and proceeds automatically without a separate user confirmation. From this point, task tools — not plan tools — take over.
Fill in the following fields for each task:
approach — implementation strategy derived from the decision rationaleacceptance — definition of done, verifiable criteriarisk — risks surfaced during analysisdeps — execution-order dependenciesowner — assigned according to the criteria belowFor issues where HOW subagents participated, reference the analysis recorded in Step 4, or re-spawn the same HOW to receive domain-appropriate decomposition together with cross-issue consistency and missing-coverage checks.
| Work Type | owner | Criteria |
|---|---|---|
| Single file, small change | lead | Subagent overhead exceeds task effort |
| Code implementation | engineer | Source code creation or modification |
| Documentation/content | writer | .md, README, docs, non-code content |
| External research | researcher | External information gathering required |
| Design analysis / review | HOW role | Technical judgment is the core work |
| Sequential edits to the same file | lead | High risk of parallel edit conflicts |
engineer task has a runtime-behavior criterion in its acceptance, pair a tester task.writer task has a verifiable deliverable criterion in its acceptance, pair a reviewer task.Once tasks are generated, show the user a summary and instruct them to execute with [run].
npx claudepluginhub moreih29/claude-nexus --plugin claude-nexusCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.