update-component-refer…
description: Add plugin components to the website docs, including component reference pages, plugin index entries, and plugin READMEs argument-hint: Component…
Visual HTML implementation plan for a feature — state machines, code snippets, edge cases
> /plugin marketplace add NikiforovAll/claude-code-rulesHow it fires
How this command gets triggered: by you, by Claude, or both.
/visual-planContext preview
What this command does when you run it.
Visual HTML implementation plan for a feature — state machines, code snippets, edge cases
description: Visual HTML implementation plan for a feature — state machines, code snippets, edge cases argument-hint: "[feature] [--style <name>] [--theme light|dark] [--slides|--handbook]" disable-model-invocation: true
Load the visual-explainer skill, then generate a comprehensive visual implementation plan for the feature below, as a self-contained HTML page. Any `--flags` in it belong to the skill's Arguments table, not to the feature description.
Feature: $ARGUMENTS
Follow the visual-explainer skill workflow. Read the reference template, CSS patterns, and mermaid theming references before generating. Use an editorial or blueprint aesthetic, but vary fonts and palette from previous diagrams.
**Data gathering phase** — understand the context before designing:
1. **Parse the feature request.** Extract:
2. **Read the relevant codebase.** Identify:
3. **Understand the extension points.** Look for:
4. **Check for prior art.** Search for:
**Design phase** — work through the implementation before writing HTML:
1. **State design.** What new state variables are needed? What existing state is affected? Draw the state machine if behavior has multiple modes.
2. **API design.** What commands, functions, or endpoints are added? What are the signatures? What are the error cases?
3. **Integration design.** How does this feature interact with existing functionality? What hooks or events are involved?
4. **Edge cases.** Walk through unusual scenarios: concurrent operations, error conditions, boundary values, user mistakes.
**Verification checkpoint** — before generating HTML, produce a structured fact sheet:
Verify each against the code. If something cannot be verified, mark it as uncertain. This fact sheet is your source of truth during HTML generation.
**Diagram structure** — the page should include:
1. **Header** — feature name, one-line description, scope summary. *Visual treatment: use a distinctive header with monospace label ("Feature Plan", "Implementation Spec", etc.), large italic title, and muted subtitle. Set the tone for the page.*
2. **The Problem** — side-by-side comparison panels showing current behavior vs. desired behavior. Use concrete examples, not abstract descriptions. Show what the user experiences or what the code does, step by step. *Visual treatment: two-column grid with rose-tinted "Before" header and sage-tinted "After" header. Numbered flow steps with arrows between them.*
3. **State Machine** — Mermaid flowchart or stateDiagram showing the states and transitions. Label edges with the triggers (commands, events, conditions). *Wrap in `.mermaid-wrap` with the standard zoom controls — see "Zoom Controls" in css-patterns.md. Use `flowchart TD` instead of `stateDiagram-v2` if labels need special characters like colons or parentheses. Add explanatory caption below the diagram.*
4. **State Variables** — card grid showing new state and existing state (if modified). *Visual treatment: two cards side-by-side, elevated depth, monospace labels.*
5. **Modified Functions** — for each function that needs changes, show:
*Visual treatment: file path as monospace dim text above code block, code in recessed card with accent-dim background.*
6. **Commands / API** — table with command/function name, parameters, and behavior description. Use `<code>` for technical names. *Visual treatment: bordered table with sticky header, alternating row backgrounds.*
7. **Edge Cases** — table listing scenarios and expected behaviors. Be thorough — include error conditions, concurrent operations, boundary values. *Visual treatment: same table style as Commands section.*
8. **Test Requirements** — table or card grid showing test categories and specific tests to add. Group by: unit tests, integration tests, edge case tests. *Visual treatment: compact table with file references.*
9. **File References** — table mapping files to the changes needed. Include file paths and brief descriptions. *Visual treatment: compact reference table, can use `<details>` if many files.*
10. **Implementation Notes** — callout boxes for:
*Visual treatment: callout boxes with colored left borders, strong labels.*
**Visual hierarchy:**
**Semantic color roles for this page type:** gold for primary accents, sage for "after"/success states, rose for "before"/warning states.
**Code blocks:** include file pa
A collection of Claude Code recommendations and practices. Learn practical techniques to enhance your AI-assisted development workflow with Claude Code.
description: Add plugin components to the website docs, including component reference pages, plugin index entries, and plugin READMEs argument-hint: Component…
Provide clear explanations of code, concepts, and system behavior with educational clarity
Use the "Five Whys" root cause analysis technique to deeply understand problems.
Generate effective prompts for Claude 4.5 Sonnet to achieve user-defined outcomes