/ardent:plan-ardent [feature description or problem]from ardent
Transform feature descriptions into well-structured plans
Ships in ardent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
<feature_description> #$ARGUMENTS </feature_description>
If empty: Ask "What would you like to plan?"
Do not proceed until you have a clear feature description.
Search for recent brainstorm docs in the agent workspace that match this feature:
# Search for brainstorm files across all topic folders
find .untracked -name "brainstorm.md" -maxdepth 3 2>/dev/null | head -10
If a relevant brainstorm exists (matching topic, created within 14 days):
If no brainstorm found, run idea refinement:
Launch in parallel:
Codebase exploration — Spawn a Task with subagent_type: "Explore" and model: "haiku": "Find existing patterns, conventions, and similar implementations related to: {feature_description}. Check CLAUDE.md files for relevant guidance."
Workspace learnings — Search the agent workspace solutions directory for relevant past learnings:
Grep .untracked/solutions/ for keywords matching the feature domain
Consolidate findings: relevant file paths, conventions, institutional learnings.
Based on signals from Phase 0 and findings from Phase 1:
Announce the decision briefly and proceed.
Only run if Phase 1.5 indicates external research is valuable.
Launch in parallel:
subagent_type: "Explore" and model: "haiku": "Research best practices and real-world patterns for: {feature_description}"Before detailing code changes, produce a lightweight design and validate it. This catches wrong-layer decisions, missed unification opportunities, and overly complex approaches before investing in file-level planning.
Skip this phase for Minimal plans (simple bugs, small improvements with obvious implementation).
Run /design-review with the feature description and research context from Phase 1 as input. Design-review will explore multiple structurally different approaches, synthesize the best design, and present a clear recommendation.
Loop on design iteration until the user approves. Only then proceed to Phase 3.
Title & Categorization:
feat: Add user authentication, fix: Cart total calculation){topic} slug from the title or branch name (e.g., user-auth, cart-total-fix)Choose detail level based on complexity:
# [Title]
[Brief problem/feature description]
## Acceptance Criteria
- [ ] Core requirement 1
- [ ] Core requirement 2
## Context
[Critical information]
## References
- Related: [links]
Everything from Minimal plus: overview, problem statement, proposed solution, technical considerations, success metrics, dependencies & risks.
Include a System-Wide Impact section:
## System-Wide Impact
- **Interaction graph**: What IPC handlers, event emitters, store subscriptions, or React effects fire when this runs?
- **Error propagation**: How do errors flow across main/renderer/IPC layers? Do retry strategies align?
- **State lifecycle risks**: Can partial failure leave orphaned DB rows, stale store state, or inconsistent cache?
- **API surface parity**: What other interfaces expose similar functionality and need the same change?
- **Integration test scenarios**: Cross-layer scenarios that unit tests won't catch
Everything from Standard plus: implementation phases with tasks and success criteria, alternative approaches considered, risk analysis, future considerations.
Expand the System-Wide Impact section into subsections with guidance prose:
## System-Wide Impact
### Interaction Graph
What IPC handlers, event emitters, store subscriptions, or React effects fire when this runs? Trace at least two levels out from the primary change. Identify any implicit coupling — stores that subscribe to changes, effects that re-trigger, IPC round-trips that cascade.
### Error Propagation
How do errors flow across main/renderer/IPC layers? Map the error types at each boundary. Verify that retry logic, error boundaries, and IPC error handling don't conflict. If one layer retries and another layer also retries, you get exponential attempts.
### State Lifecycle Risks
Can partial failure leave orphaned DB rows, stale store state, or inconsistent cache? If code persists state before calling an async operation, what happens on failure? Identify whether cleanup is needed and whether operations are idempotent.
### API Surface Parity
What other interfaces expose similar functionality and need the same change? Check main process APIs, renderer IPC handlers, and direct function calls. If multiple entry points exist, they all need consistent behavior.
### Integration Test Scenarios
Cross-layer scenarios that unit tests won't catch. Identify the critical paths through the full stack — IPC → main process → DB → response → renderer state update. These are the scenarios that need integration coverage.
Before writing the plan, produce a structured fact sheet of every claim you will include:
file:line where you read it)This fact sheet is your source of truth during plan writing — do not deviate from it. Plans that reference functions that don't exist or describe behavior that doesn't match the code cause implementation failures downstream.
Detail the specific code changes based on the approved design from Phase 2. Describe changes concisely, with minimal surrounding prose. Design changes so they can be implemented incrementally — generally two or three phases that logically go together and stack on each other.
Any new or changed interfaces should be well-typed, self-documenting, and self-consistent with surrounding code. Follow existing naming conventions.
In each phase, describe specific unit tests for complex logic, grouped with the relevant phase.
Add a section at the top of each phase listing affected files and a concise summary of changes per file.
Add a task checklist at the top organized by phase with checkboxes (- [ ]) that can be marked complete during implementation.
Prioritize tasks strategically:
Flag open questions clearly at the TOP of the plan.
Derive {area} from the feature domain (see CLAUDE.md for area mapping).
Output path:
.untracked/{topic}/plan.md
Create the directory if it doesn't exist. Before creating a new topic folder, check for existing folders with matching prefixes and reuse them. If a plan.md already exists, overwrite it.
Use AskUserQuestion tool:
Question: "Plan ready at {path}. What next?"
Options:
Invoke the /document-review skill on the plan document. This runs a structured rubric (Clarity, Completeness, Specificity, YAGNI) and automatically fact-checks the plan against the codebase (verifying function names, file paths, and behavioral descriptions). Auto-fixes minor issues and flags substantive improvements for approval.
After the review completes, loop back to the options menu.
Invoke the /plan-review prompt from the visual-explainer skill, passing the plan file path. This generates a self-contained HTML page with current vs. planned architecture diagrams (Mermaid), change-by-change breakdown with side-by-side panels, dependency/ripple analysis, risk assessment, and Good/Bad/Ugly review. Opens in browser.
Best for standard and comprehensive plans where visualizing the architectural delta and blast radius is worth the extra time. Skip for minimal plans (simple bugs, small fixes).
After the page opens, loop back to the options menu.
Spawn 3 agents in parallel via Task tool in a SINGLE message — each with subagent_type: "general-purpose", model: "sonnet", and run_in_background: true. Pass each the full plan content and the project's AGENTS.md.
| Agent | Focus | Key questions |
|---|---|---|
| Simplicity | Over-engineering, YAGNI | Is there a simpler approach? Are any phases unnecessary? Could two phases collapse into one? |
| Architecture | Boundaries, coupling, patterns | Does this fit the existing architecture? Any new coupling or boundary violations? Are the right packages touched? |
| Design | Data flow, API shape, naming | Are the proposed interfaces clean? Does the data flow make sense? Any naming inconsistencies with existing code? |
After all 3 report back, synthesize into a short critique:
## Plan Review
**Verdict:** {SOLID | MINOR CONCERNS | RETHINK NEEDED}
### Findings
- {finding with rationale}
### Suggestions
- {concrete improvement}
Present the critique, then loop back to the options menu so the user can revise, deepen, or proceed to /work.
Loop back to options after Simplify or Review until user selects work or another exit.
NEVER CODE! Just research and write the plan.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ardent-ai/ardent-claude-plugins --plugin ardent24 skills in this plugin
/address_pr_feedbackAnalyze PR changes and comments, create a plan, and implement feedback/archiveUpload HTML docs to the team's GitHub Pages archive for permanent browsing and sharing. Use when the user says "archive this", "upload to archive", or /archive./brainstormExplore requirements and approaches through collaborative dialogue before planning/cleanupSimplify and refine recently modified code for clarity and maintainability while preserving behavior. Use for requests like "simplify this", "clean this up", "reduce complexity", or readability-focused refactors./compoundDocument a recently solved problem to compound your knowledge/deepen-planEnhance a plan with parallel research agents for depth, best practices, and implementation detailsOther plugins' skills for the same job