evolve
CommandEvolve skill files by integrating validated lessons from real usage
Generate a visual HTML implementation plan, detailed feature specification with state machines, code snippets, and edge cases
> /plugin marketplace add jamditis/claude-skills-journalism
description: Generate a visual HTML implementation plan, detailed feature specification with state machines, code snippets, and edge cases
Load the visual-explainer skill, then generate a comprehensive visual implementation plan for `$@` as a self-contained HTML page.
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 zoom controls (+/−/reset/expand) and click-to-expand. 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). Use code blocks with proper `white-space: pre-wrap`. *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:**
**Typography and color:**
**Optional hero image**, if `surf` CLI is available (`which surf`), consider generating a conceptual illustration th
A collection of Agent Skills for journalists, researchers, academics, media professionals, and communications practitioners. The same repository serves Claude Code and Codex while keeping Claude-only commands, agents, and hooks clearly labeled.
Evolve skill files by integrating validated lessons from real usage
Initialize .autocontext/ in the current project for knowledge persistence
Initialize the current project with Scientific Writer - a deep research and writing tool that combines AI-driven research with…