software-manual
19
总安装量
19
周安装量
#18980
全站排名
安装命令
npx skills add https://github.com/catlog22/claude-code-workflow --skill software-manual
Agent 安装分布
claude-code
16
opencode
13
codex
12
cursor
11
antigravity
9
Skill 文档
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
- 主 Agent ç¼æï¼å Agent æ§è¡: ææç¹é计ç®å§æç»
universal-executorå Agent - Brief Returns: Agents return path + summary, not full content (avoid context overflow)
- System Agents: 使ç¨
cli-explore-agent(æ¢ç´¢) åuniversal-executor(æ§è¡) - æçåºå åµ: marked.js (MD è§£æ) + highlight.js (è¯æ³é«äº®)ï¼æ CDN ä¾èµ
- Single-File HTML: TiddlyWiki-style interactive document with embedded resources
- 卿æ ç¾: æ ¹æ®å®é ç« èèªå¨çæå¯¼èªæ ç¾
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
| Agent | Role | Output File | Focus Areas |
|---|---|---|---|
| overview | Product Manager | section-overview.md | Product intro, features, quick start |
| ui-guide | UX Expert | section-ui-guide.md | UI operations, step-by-step guides |
| api-docs | API Architect | section-api-reference.md | REST API, Frontend API |
| config | DevOps Engineer | section-configuration.md | Env vars, deployment, settings |
| troubleshooting | Support Engineer | section-troubleshooting.md | FAQs, error codes, solutions |
| code-examples | Developer Advocate | section-examples.md | Beginner/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)
- Search: Full-text search with result highlighting
- Collapse/Expand: Per-section collapsible content
- Tag Navigation: Filter by category tags
- Theme Toggle: Light/Dark mode with localStorage persistence
- Single File: All CSS/JS/images embedded as Base64
- Offline: Works without internet connection
- 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
| Document | Purpose |
|---|---|
| phases/01-requirements-discovery.md | ç¨æ·é ç½®æ¶é |
| phases/02-project-exploration.md | 项ç®ç±»åæ£æµ |
| phases/02.5-api-extraction.md | API èªå¨æå |
| phases/03-parallel-analysis.md | 6 Agent å¹¶è¡åæ |
| phases/03.5-consolidation.md | æ´åä¸è´¨éæ£æ¥ |
| phases/04-screenshot-capture.md | Chrome MCP æªå¾ |
| phases/05-html-assembly.md | HTML ç»è£ |
| phases/06-iterative-refinement.md | è¿ä»£ä¼å |
| specs/quality-standards.md | è´¨éæ å |
| specs/writing-style.md | åä½é£æ ¼ |
| templates/tiddlywiki-shell.html | HTML æ¨¡æ¿ |
| templates/css/wiki-base.css | åºç¡æ ·å¼ |
| templates/css/wiki-dark.css | æè²ä¸»é¢ |
| scripts/bundle-libraries.md | åºæä»¶æå |
| scripts/api-extractor.md | API æå说æ |
| scripts/extract_apis.py | API æåèæ¬ |
| scripts/screenshot-helper.md | æªå¾è¾ å© |