skills/dev-analyze-design/SKILL.md
(Architect) Analyze specs + tech-requirements → analysis report + Mermaid diagrams (usecase, sequence, flow, class) separated by client/server/shared. Creates tech-requirements if missing. Supersedes former dev-analyze and dev-design.
npx skillsauth add dvduongth/skills dev-analyze-designInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Field | Content |
|-------|---------|
| Role | Architect |
| Goal | Analyze specs and tech-requirements → produce analysis-report.md + Mermaid diagrams (HIGH + DETAIL) organized by client/server/shared |
| Use when | specs/<feature_id>/ has all 3 files from /dev_specs |
| Constraints | Do NOT create implementation tasks (that belongs to dev-tasks); state diagrams only when trigger conditions are met; existing diagrams must never be modified silently; mermaid-diagram skill must be invoked before any diagram is written |
| Anti-patterns | Stuffing all content into a single diagram file; creating DETAIL before HIGH; bypassing the checkpoint gate; modifying existing diagrams without user approval; skipping module test surface definition |
| Quality standard | A Coder can implement the file skeleton from the File Map; a Tester can define test cases from the Module Breakdown test surfaces; HIGH diagrams are readable without opening any DETAIL file |
| Output format | analysis-report.md (run artifact) + Mermaid files per output tree + INDEX.md (feature + global) |
Required reads (before execution):
specs/<feature_id>/requirements.mdspecs/<feature_id>/use-cases.mdspecs/<feature_id>/acceptance-criteria.mddocs/design-docs/<feature_id>/design-doc.mddocs/dev/tech-requirements.md (global) — create if missing; see phase1-gather.mddocs/dev/<feature_id>/tech-requirements.md (feature override) — skip silently if missingPrerequisites:
specs/<feature_id>/ must contain all 3 spec files from /dev_specsmermaid-diagram skill must be invoked before writing any diagram (Phase 3)Related skills:
dev-specs (step 4)dev-tasks (step 6)mermaid-diagram (Phase 3)Key constraints (from CLAUDE.md):
python tools/mkdir.py — never bash mkdirRead
.claude/skills/dev-analyze-design/phase1-gather.mdfor full instructions.
Scaffold run:
python tools/scaffold_run.py <feature_id> promote
Note the printed run path.
Create output directories:
python tools/mkdir.py docs/dev/<feature_id> docs/dev/<feature_id>/client docs/dev/<feature_id>/server
Read all required inputs and resolve tech-requirements — follow phase1-gather.md.
Read
.claude/skills/dev-analyze-design/phase2-analyze.mdfor full analysis-report structure.
Write analysis-report.md to the run folder — all 9 sections per phase2-analyze.md.
CHECKPOINT — Use AskUserQuestion to present:
Ask: "Analysis done — proceed to generate diagrams?"
/dev_analyze_design or /dev_tasks when readyRead
.claude/skills/dev-analyze-design/phase3-diagram-types.mdfor diagram types and output structure. Read.claude/skills/dev-analyze-design/phase3-diagram-standards.mdwhen writing each diagram file.
Invoke mermaid-diagram skill (Skill tool) before writing any diagram.
Create diagrams per output tree and scope flag — follow phase3-diagram-types.md.
Apply standards to every diagram file — follow phase3-diagram-standards.md.
Write INDEX.md — feature reading-order index + update global index — follow phase3-diagram-standards.md.
Save run artifacts — update input.md and notes.md with checkpoint outcome and diagram plan executed.
analysis-report.md contains all 9 sections (section 7 only if existing diagrams found)architecture.md created (shared, HIGH) — always requirednotes.md includes recommended next stepdevelopment
Hiểu sâu bất kỳ codebase nào đã được GitNexus index — architecture, execution flows, symbol relationships, blast radius. Dùng khi hỏi về codebase architecture, symbol context, impact analysis, hoặc index status.
tools
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.
documentation
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
tools
Gemini CLI for one-shot Q&A, summaries, and generation.