skills/design-consolidate/SKILL.md
(Designer) Consolidate Source GDD + server code extraction + optional refs into enriched consolidated-gdd.md under docs/runs/<feature_id>/...
npx skillsauth add dvduongth/skills design-consolidateInstall 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 | Designer (Consolidation) |
| Goal | Merge Source GDD with auto-extracted server code (CMD IDs, data models, routing) and optional reference files into a single consolidated GDD ready for design-ingest |
| Use when | A Designer has written a Source GDD and you need to enrich it with server API data before running the design pipeline |
| Constraints | Read-only on Source GDD — never modify the original file. Only ADD sections (Data Models, API Reference), never modify Designer-written content. Server extraction limited to: CMD definitions, data models, handler routing — no business logic. |
| Anti-patterns | Resolving conflicts (that is design-doc's job); adding Architecture sections (that is dev-analyze's job); adding Showcase/Test sections (that is dev-specs's job); modifying the source GDD file |
| Quality standard | consolidated-gdd.md must be self-contained — a reader should understand the feature without opening other files. All auto-extracted sections marked with <!-- auto-extracted from server code -->. |
| Output format | Vietnamese (keep technical terms/keywords in English) |
Required reads (before execution):
--gdd argument)tools/scaffold_run.py — to create run folderAuto-discover reads (server code via GitNexus):
serverccn2/src/main/kotlin/org/ccn2/modules/CmdDefine.kt — CMD ID definitionsserverccn2/src/main/kotlin/org/ccn2/modules/<feature>/cmd/ — Request/Response classesserverccn2/src/main/kotlin/org/ccn2/ — data model classes (*Item.kt, Stored*.kt)*RequestHandler.kt)Optional reads (from --refs or auto-scan):
shared/concepts/<feature>/ — UI specs, screenshots, reference docsshared/godot-client/docs/design/<feature>/ — balance CSV, profiles, existing design docsPattern reference (how character module did it):
shared/concepts/character/gdd-character.md — example outputdocs/runs/002-character/20260407_1814_step1_ingest/source-manifest.md — example source indexpython tools/scaffold_run.py <feature_id> consolidate
Creates run folder + input.md. Note the path.--gdd <path> file exists. If not → error and stop.Use GitNexus to find relevant server code for this feature:
Step 2a: Extract feature keywords from GDD title + section headers.
Example: "Character System" → keywords: ["character", "upgrade", "enlightenment"]
Step 2b: Query CmdDefine.kt for matching CMD entries:
gitnexus_query({query: "<keyword> CMD", repo: "serverccn2"})
OR grep CmdDefine.kt for keyword matches.
Extract: CMD ID, name, request class, response class.
Step 2c: For each discovered CMD, find Request/Response classes:
gitnexus_context({name: "ReqClassName"}) → read fields
gitnexus_context({name: "ResClassName"}) → read fields
Step 2d: Find data model classes:
Search for *Item.kt, Stored*.kt matching feature keywords.
gitnexus_context({name: "FeatureItem"}) → read fields
Step 2e: Find handler routing:
Search *RequestHandler.kt for CMD routing.
Write results to server-extract.md:
# Server Code Extraction — <feature_id>
## CMD Definitions (from CmdDefine.kt)
| CMD ID | Name | Request Class | Response Class |
|--------|------|---------------|----------------|
| ... | ... | ... | ... |
## Data Models
### <ModelName> (from <file.kt>)
| Field | Type | Notes |
|-------|------|-------|
| ... | ... | ... |
## Handler Routing
| CMD | Handler | Notes |
|-----|---------|-------|
| ... | ... | ... |
--refs provided → read each path, add to source index.--refs → auto-scan:
shared/concepts/<feature_slug>/ — list all filesshared/godot-client/docs/design/*<feature_slug>*/ — list all filesconsolidated-gdd.md.## Data Models section → inject from server-extract.md:
<!-- auto-extracted from server code -->
## Data Models
[content from server-extract.md Data Models section]
## API Reference section → inject from server-extract.md:
<!-- auto-extracted from server code -->
## API Reference
[content from server-extract.md CMD Definitions + routing]
## Sources section listing all sources used (from source-index.md).Compare GDD content with server extraction:
Write conflicts to notes.md — do NOT resolve them. Format:
### Conflicts
| # | GDD says | Server code says | Severity |
|---|----------|-----------------|----------|
| C-01 | ... | ... | high/med/low |
### Open Questions (preliminary)
| # | Question | Needs answer from |
|---|---------|-------------------|
| OQ-01 | ... | Designer / Dev |
Write to docs/runs/<feature_id>/<ts>_consolidate/:
consolidated-gdd.md (REQUIRED) — enriched GDDsource-index.md (REQUIRED) — all sources with paths and hashesserver-extract.md (optional) — raw server extractionnotes.md (optional) — conflicts, preliminary OQs, decisionsPrint summary:
✅ Consolidation complete for <feature_id>
Sources: N files indexed
Server CMDs: N found
Data models: N extracted
Conflicts: N detected
Output: docs/runs/<feature_id>/<ts>_consolidate/
development
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.