From claude-nexus
Autonomous planning skill — Lead decomposes, analyzes, and decides issues without user confirmation, producing an execution plan. Keeps nx-plan's research and analysis depth while skipping user dialogue.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-nexus:nx-auto-planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
For each issue, collaborate with HOW subagents (architect/designer/postdoc), researcher, and explore to gather multi-angle analysis, then synthesize the results so Lead records the decision directly without waiting for a user response.
For each issue, collaborate with HOW subagents (architect/designer/postdoc), researcher, and explore to gather multi-angle analysis, then synthesize the results so Lead records the decision directly without waiting for a user response.
The flow is as follows:
nx_plan_decide without user confirmation; once all issues are decided, brief the user in a single pass.This skill does not execute. Execution is handled separately by the [run] flow. It is also the path [run] invokes internally when tasks.json is absent.
The four rules below are the identity of this skill. Violating even one departs from auto-plan's intended form.
nx_plan_decide after internal deliberation grounded in the collaboration results.nx_plan_decide → next issue without seeking confirmation or sending intermediate approval requests immediately after individual decisions. The user-facing report happens only once at the Step 7 briefing after all issues are decided. Waiting for HOW subagent results is not stopping — when the issue's depth requires it, spawn HOW and wait for the results before deciding. What must not stop is "user confirmation," not "analytical depth."[run].Determine issue scope and complexity from the request itself. Do NOT conduct additional user interviews or clarification questions. When information is insufficient, supplement with research; if ambiguity remains unresolved, note it in the decision text's "assumptions" field and proceed in the direction Lead judges most reasonable.
| 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 | 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. Unlike nx-plan, the issue list is NOT presented to the user beforehand — proceed directly to Step 4.
Process issues 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.For each issue, spawning the domain-matched HOW subagent for independent analysis is the default. Lead selects autonomously based on issue scope; use any HOW the user explicitly named, and 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.
Use nx_plan_decide to mark the issue as decided. Lead records directly without requesting user confirmation. The decision text MUST include:
nx_plan_decide records only the final decision text and decision state — it does not append to analysis. If HOW subagents participated, their analysis and resume-routing records must already have been written via nx_plan_analysis_add in Step 4, and Step 7 should reference those records directly.
If the decision creates follow-up questions or derived issues, add them with nx_plan_update and move to Step 6. Again, do NOT ask the user for confirmation.
nx_plan_update and return to Step 4. Do NOT ask the user for permission to add.nx_plan_update and return to Step 4.Once all issues are decided, brief the user in a single pass:
[auto-plan complete] N issues, N decisions
- #1: {selected} ({rejected alternative} — reason)
- #2: ...
Immediately after briefing, decompose the decisions from plan.json into actionable tasks and populate tasks.json via nx_task_add. 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, instruct the user to execute with [run]. If this skill was invoked internally by [run], hand off to the run flow directly without the instruction.
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.