software-manual

Generate interactive TiddlyWiki-style HTML software manuals with screenshots, API docs, and multi-level code examples. Use when creating user guides, software documentation, or API references. Triggers on "software manual", "user guide", "generate manual", "create docs".

allowed_tools: Task, AskUserQuestion, Read, Bash, Glob, Grep, Write, mcp__chrome__*

$ Install

git clone https://github.com/catlog22/Claude-Code-Workflow /tmp/Claude-Code-Workflow && cp -r /tmp/Claude-Code-Workflow/.claude/skills/software-manual ~/.claude/skills/Claude-Code-Workflow

// tip: Run this command in your terminal to install the skill


name: software-manual description: Generate interactive TiddlyWiki-style HTML software manuals with screenshots, API docs, and multi-level code examples. Use when creating user guides, software documentation, or API references. Triggers on "software manual", "user guide", "generate manual", "create docs". allowed-tools: Task, AskUserQuestion, Read, Bash, Glob, Grep, Write, mcp__chrome__*

Software Manual Skill

Generate comprehensive, interactive software manuals in TiddlyWiki-style single-file HTML format.

Architecture Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Context-Optimized Architecture                                  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                  โ”‚
โ”‚  Phase 1: Requirements      โ†’ manual-config.json                โ”‚
โ”‚           โ†“                                                      โ”‚
โ”‚  Phase 2: Exploration       โ†’ exploration-*.json                โ”‚
โ”‚           โ†“                                                      โ”‚
โ”‚  Phase 3: Parallel Agents   โ†’ sections/section-*.md             โ”‚
โ”‚           โ†“ (6 Agents)                                          โ”‚
โ”‚  Phase 3.5: Consolidation   โ†’ consolidation-summary.md          โ”‚
โ”‚           โ†“                                                      โ”‚
โ”‚  Phase 4: Screenshot        โ†’ screenshots/*.png                 โ”‚
โ”‚           Capture              (via Chrome MCP)                 โ”‚
โ”‚           โ†“                                                      โ”‚
โ”‚  Phase 5: HTML Assembly     โ†’ {name}-ไฝฟ็”จๆ‰‹ๅ†Œ.html              โ”‚
โ”‚           โ†“                                                      โ”‚
โ”‚  Phase 6: Refinement        โ†’ iterations/                       โ”‚
โ”‚                                                                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Design Principles

  1. ไธป Agent ็ผ–ๆŽ’๏ผŒๅญ Agent ๆ‰ง่กŒ: ๆ‰€ๆœ‰็น้‡่ฎก็ฎ—ๅง”ๆ‰˜็ป™ universal-executor ๅญ Agent
  2. Brief Returns: Agents return path + summary, not full content (avoid context overflow)
  3. System Agents: ไฝฟ็”จ cli-explore-agent (ๆŽข็ดข) ๅ’Œ universal-executor (ๆ‰ง่กŒ)
  4. ๆˆ็†Ÿๅบ“ๅ†…ๅตŒ: marked.js (MD ่งฃๆž) + highlight.js (่ฏญๆณ•้ซ˜ไบฎ)๏ผŒๆ—  CDN ไพ่ต–
  5. Single-File HTML: TiddlyWiki-style interactive document with embedded resources
  6. ๅŠจๆ€ๆ ‡็ญพ: ๆ นๆฎๅฎž้™…็ซ ่Š‚่‡ชๅŠจ็”Ÿๆˆๅฏผ่ˆชๆ ‡็ญพ

Execution Flow

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Phase 1: Requirements Discovery (ไธป Agent)                     โ”‚
โ”‚  โ†’ AskUserQuestion: ๆ”ถ้›†่ฝฏไปถ็ฑปๅž‹ใ€็›ฎๆ ‡็”จๆˆทใ€ๆ–‡ๆกฃ่Œƒๅ›ด             โ”‚
โ”‚  โ†’ Output: manual-config.json                                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Phase 2: Project Exploration (cli-explore-agent ร— N)           โ”‚
โ”‚  โ†’ ๅนถ่กŒๆŽข็ดข: architecture, ui-routes, api-endpoints, config     โ”‚
โ”‚  โ†’ Output: exploration-*.json                                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Phase 2.5: API Extraction (extract_apis.py)                    โ”‚
โ”‚  โ†’ ่‡ชๅŠจๆๅ–: FastAPI/TypeDoc/pdoc                                โ”‚
โ”‚  โ†’ Output: api-docs/{backend,frontend,modules}/*.md             โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Phase 3: Parallel Analysis (universal-executor ร— 6)            โ”‚
โ”‚  โ†’ 6 ไธชๅญ Agent ๅนถ่กŒ: overview, ui-guide, api-docs, config,     โ”‚
โ”‚    troubleshooting, code-examples                               โ”‚
โ”‚  โ†’ Output: sections/section-*.md                                โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Phase 3.5: Consolidation (universal-executor)                  โ”‚
โ”‚  โ†’ ่ดจ้‡ๆฃ€ๆŸฅ: ไธ€่‡ดๆ€งใ€ไบคๅ‰ๅผ•็”จใ€ๆˆชๅ›พๆ ‡่ฎฐ                          โ”‚
โ”‚  โ†’ Output: consolidation-summary.md, screenshots-list.json      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Phase 4: Screenshot Capture (universal-executor + Chrome MCP)  โ”‚
โ”‚  โ†’ ๆ‰น้‡ๆˆชๅ›พ: ่ฐƒ็”จ mcp__chrome__screenshot                        โ”‚
โ”‚  โ†’ Output: screenshots/*.png + manifest.json                    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Phase 5: HTML Assembly (universal-executor)                    โ”‚
โ”‚  โ†’ ็ป„่ฃ… HTML: MDโ†’tiddlers, ๅตŒๅ…ฅ CSS/JS/ๅ›พ็‰‡                     โ”‚
โ”‚  โ†’ Output: {name}-ไฝฟ็”จๆ‰‹ๅ†Œ.html                                  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Phase 6: Iterative Refinement (ไธป Agent)                       โ”‚
โ”‚  โ†’ ้ข„่งˆ + ็”จๆˆทๅ้ฆˆ + ่ฟญไปฃไฟฎๅค                                    โ”‚
โ”‚  โ†’ Output: iterations/v*.html                                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Agent Configuration

AgentRoleOutput FileFocus Areas
overviewProduct Managersection-overview.mdProduct intro, features, quick start
ui-guideUX Expertsection-ui-guide.mdUI operations, step-by-step guides
api-docsAPI Architectsection-api-reference.mdREST API, Frontend API
configDevOps Engineersection-configuration.mdEnv vars, deployment, settings
troubleshootingSupport Engineersection-troubleshooting.mdFAQs, error codes, solutions
code-examplesDeveloper Advocatesection-examples.mdBeginner/Intermediate/Advanced examples

Agent Return Format

interface ManualAgentReturn {
  status: "completed" | "partial" | "failed";
  output_file: string;
  summary: string;                    // Max 50 chars
  screenshots_needed: Array<{
    id: string;                       // e.g., "ss-login-form"
    url: string;                      // Relative or absolute URL
    description: string;              // "Login form interface"
    selector?: string;                // CSS selector for partial screenshot
    wait_for?: string;                // Element to wait for
  }>;
  cross_references: string[];         // Other sections referenced
  difficulty_level: "beginner" | "intermediate" | "advanced";
}

HTML Features (TiddlyWiki-style)

  1. Search: Full-text search with result highlighting
  2. Collapse/Expand: Per-section collapsible content
  3. Tag Navigation: Filter by category tags
  4. Theme Toggle: Light/Dark mode with localStorage persistence
  5. Single File: All CSS/JS/images embedded as Base64
  6. Offline: Works without internet connection
  7. Print-friendly: Optimized print stylesheet

Directory Setup

// Generate timestamp directory name
const timestamp = new Date().toISOString().slice(0,19).replace(/[-:T]/g, '');
const dir = `.workflow/.scratchpad/manual-${timestamp}`;

// Windows
Bash(`mkdir "${dir}\\sections" && mkdir "${dir}\\screenshots" && mkdir "${dir}\\api-docs" && mkdir "${dir}\\iterations"`);

Output Structure

.workflow/.scratchpad/manual-{timestamp}/
โ”œโ”€โ”€ manual-config.json              # Phase 1
โ”œโ”€โ”€ exploration/                    # Phase 2
โ”‚   โ”œโ”€โ”€ exploration-architecture.json
โ”‚   โ”œโ”€โ”€ exploration-ui-routes.json
โ”‚   โ””โ”€โ”€ exploration-api-endpoints.json
โ”œโ”€โ”€ sections/                       # Phase 3
โ”‚   โ”œโ”€โ”€ section-overview.md
โ”‚   โ”œโ”€โ”€ section-ui-guide.md
โ”‚   โ”œโ”€โ”€ section-api-reference.md
โ”‚   โ”œโ”€โ”€ section-configuration.md
โ”‚   โ”œโ”€โ”€ section-troubleshooting.md
โ”‚   โ””โ”€โ”€ section-examples.md
โ”œโ”€โ”€ consolidation-summary.md        # Phase 3.5
โ”œโ”€โ”€ api-docs/                       # API documentation
โ”‚   โ”œโ”€โ”€ frontend/                   # TypeDoc output
โ”‚   โ””โ”€โ”€ backend/                    # Swagger/OpenAPI output
โ”œโ”€โ”€ screenshots/                    # Phase 4
โ”‚   โ”œโ”€โ”€ ss-*.png
โ”‚   โ””โ”€โ”€ screenshots-manifest.json
โ”œโ”€โ”€ iterations/                     # Phase 6
โ”‚   โ”œโ”€โ”€ v1.html
โ”‚   โ””โ”€โ”€ v2.html
โ””โ”€โ”€ {่ฝฏไปถๅ}-ไฝฟ็”จๆ‰‹ๅ†Œ.html           # Final Output

Reference Documents

DocumentPurpose
phases/01-requirements-discovery.md็”จๆˆท้…็ฝฎๆ”ถ้›†
phases/02-project-exploration.md้กน็›ฎ็ฑปๅž‹ๆฃ€ๆต‹
phases/02.5-api-extraction.mdAPI ่‡ชๅŠจๆๅ–
phases/03-parallel-analysis.md6 Agent ๅนถ่กŒๅˆ†ๆž
phases/03.5-consolidation.mdๆ•ดๅˆไธŽ่ดจ้‡ๆฃ€ๆŸฅ
phases/04-screenshot-capture.mdChrome MCP ๆˆชๅ›พ
phases/05-html-assembly.mdHTML ็ป„่ฃ…
phases/06-iterative-refinement.md่ฟญไปฃไผ˜ๅŒ–
specs/quality-standards.md่ดจ้‡ๆ ‡ๅ‡†
specs/writing-style.mdๅ†™ไฝœ้ฃŽๆ ผ
templates/tiddlywiki-shell.htmlHTML ๆจกๆฟ
templates/css/wiki-base.cssๅŸบ็ก€ๆ ทๅผ
templates/css/wiki-dark.cssๆš—่‰ฒไธป้ข˜
scripts/bundle-libraries.mdๅบ“ๆ–‡ไปถๆ‰“ๅŒ…
scripts/api-extractor.mdAPI ๆๅ–่ฏดๆ˜Ž
scripts/extract_apis.pyAPI ๆๅ–่„šๆœฌ
scripts/screenshot-helper.mdๆˆชๅ›พ่พ…ๅŠฉ