skills/dev-specs/SKILL.md
(Tech Lead) Promote validated Design Doc into feature-scoped specs (requirements/use-cases/acceptance-criteria) and record promotion run artifacts.
npx skillsauth add dvduongth/skills dev-specsInstall 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 | Tech Lead |
| Goal | Promote validated design artifacts into feature-scoped canonical specs: requirements, use-cases, and acceptance-criteria |
| Use when | Design doc exists and /design_validate has passed (validation-report present), or user explicitly skips validation |
| Constraints | IDs must be assigned using next_id.py tool — never hardcoded; every AC must use Given/When/Then format; unverified statements must remain as Assumptions or Open Questions, never promoted as facts; spec files must live under specs/<feature_id>/ only |
| Anti-patterns | Writing ACs that are not testable; promoting assumptions as requirements; hardcoding REQ/UC/AC numbers; creating spec files outside specs/<feature_id>/; skipping run artifact saves |
| Quality standard | A Coder can implement and a Tester can write test cases using only the spec files — without reading the design doc |
| Output format | specs/<feature_id>/requirements.md + use-cases.md + acceptance-criteria.md + (optional) data-contracts.md + observability.md if explicitly present in design doc + run artifacts under docs/runs/<feature_id>/<run_path>/ |
Required reads (before execution):
docs/design-docs/<feature_id>/design-doc.md — primary input (required)docs/runs/<feature_id>/<validate_run>/validation-report.md — flags open issues (optional, default: latest)docs/runs/<feature_id>/<ingest_run>/ingest-summary.md — raw source context (optional, default: latest)Prerequisites:
/design_validate must have passed (validation-report exists), or user explicitly skipspython tools/scaffold_run.py and python tools/next_id.py must be availableRelated skills:
design-validate (step 3)dev-analyze-design (step 5)Key constraints (from CLAUDE.md):
python tools/mkdir.py if directories need creating — never bash mkdirScaffold run:
python tools/scaffold_run.py <feature_id> dev_specs
Note the printed run path — used for all artifact writes in step 7.
Get next IDs:
python tools/next_id.py REQ <feature_id> → starting REQ number
python tools/next_id.py UC <feature_id> → starting UC number
python tools/next_id.py AC <feature_id> → starting AC number
Use these as the first IDs when writing specs below.
Read inputs — see Knowledge Layer. Skip missing optional files silently.
Write specs/<feature_id>/requirements.md
REQ-<feature_id>-01, REQ-<feature_id>-02, …Write specs/<feature_id>/use-cases.md
UC-<feature_id>-01, UC-<feature_id>-02, …Write specs/<feature_id>/acceptance-criteria.md
AC-<feature_id>-01, AC-<feature_id>-02, …> **Assumption:** ... or > **Open Question:** ... block, never promoted as AC6b. If design doc includes data contracts or observability specs:
specs/<feature_id>/data-contracts.md — DTOs, API contracts, event schemasspecs/<feature_id>/observability.md — metrics, logging requirements, alertsdocs/runs/<feature_id>/<run_path>/:
input.md — feature_id, paths read, validate/ingest run referencesoutput.md — summary of changes + pasted new spec sectionsnotes.md — open questions, deferred items, next recommended stepdiffs.patch — optional but recommendedspecs/<feature_id>/ contains all three core spec filesdevelopment
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.