/d3nexus:dev-designerfrom d3nexus
Use when analyzing high-level requirements to design a complete software Epic across Web Applications, Flutter, Android Native, iOS Native, Python, or Rust projects, including High-Level Design (HLD), Mermaid diagrams, Integration Test Plans, and Kanban task breakdowns with BDD & TDD specifications.
Ships in d3nexus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Transforms high-level requirements or approved dev-brainstorming specs into an Epic HLD, Integration Test Plan, exhaustive BDD suite, and LachyFS Kanban task contracts for Web Applications, Flutter, Android Native, iOS Native, Python, and Rust Core / Polyglot repositories.
This skill is Stage 2 of dev-lifecycle, enforcing Gate 2 (task breakdown confirmed) before writing task files. Full YAML templates, task_01 Hub/Satellite worked layouts, Mermaid parallel tracks, and per-platform testing matrices live in references/task-template-examples.md.
Starts either from a raw user requirement or an approved dev-brainstorming spec relocated into .devtool/epic/<epic_name>/ (each sub-project spec becomes its own epic). Treat an approved spec as the SSOT for Decisions Already Made; record a same-directory link back to the source spec in Meta Data and inspect ## Shared Contract Warnings to preserve all Stage 1 human-approved contract choices.
Detect platform via root manifests (package.json, pubspec.yaml/melos.yaml, Gradle files, Project.swift/Tuist.swift/Package.swift, pyproject.toml, Cargo.toml). For polyglot repos, detect_project_type.sh --all + bootstrap_worktree.sh run sequentially (.agents/quality/python-quality.json supports an optional "bootstrap" command array).
HLD) & BDD SuiteWrite artifacts inside .devtool/epic/<epic_name>/, strictly separating audiences:
<epic_name>.md; a legacy <epic_name>.en.md is accepted, not produced): Human overview & "Prompt to Maintain" map — Table of Contents (linking every ##), Meta Data (valid initial - **Status**: prefix: Draft (...), Design (...), Proposed (...), Planning (...), Planned (...), or Queued (backlog) ... per references/task-template-examples.md, creator - **PIC**: <profile> via python3 scripts/resume_context.py --detect-profile, Platform, Depends on epic, Source Spec, and Approved Visual Companions linking assets/*.html whenever Stage 1 persisted approved HTML mockups into .devtool/epic/<epic_name>/assets/), Background, Goals & Non-Goals, Architecture (mermaid flowchart TD/LR only — never graph; conditional sequenceDiagram only for multi-actor/async/IPC flows), Feature Maintenance Map, Rollout Strategy, Kanban Tasks Breakdown (use inline code spans such as `task_01_<name>.md` in Step 1 before Gate 2 creates task files so check_document.py passes, then upgrade them to relative Markdown links in Step 2), and [SE-NN] ## Spec Errata. Do not embed raw Gherkin blocks inside the HLD. All internal design/task prose, plans, code comments, and commits MUST be strictly in English.<epic_name>.md and bdd_scenarios.md as single English files (legacy .en.md names are accepted, not produced). Never create Vietnamese variants unless Role 1.0 explicitly asks for one. Verify them mechanically with:
python3 skills/doc_quality_check/resources/scripts/check_document.py \
--require-toc \
.devtool/epic/<epic_name>/<epic_name>.md \
.devtool/epic/<epic_name>/bdd_scenarios.md
check_code_impact.py --files <planned_files> --symbols <core_classes> --base-ref develop to scope blast radius, then run d3nexus resolve-quality --files <planned_files> --base-ref develop (or python3 "$D3NEXUS_KIT/skills/dev-implementation/resources/scripts/resolve_task_quality_plan.py" --files <planned_files>) to derive canonical/forbidden test roots, dual Web V8 LCOV + Tier C2 rules, coverage_floors.json ratchets, referencing ?v= templates, and $D3NEXUS_KIT/skills-interpolated scoped TIER-B commands before freezing contracts.## Verification Environment (data isolation, forbidden live stores, Needs vars; first task carries a live-store sentinel row if applicable) plus these exact lines:
Integration test roots: <dirs> — defaults: tests/integration/ and tests/e2e/ (Web), test/integration/ and integration_test/ (Flutter), app/src/test/ and shell/src/test/ (Android), App/Tests/ and Shell/Tests/ (iOS), tests/integration/ and tests/e2e/ (Python), tests/ (Rust). TierCTaxonomy (_stack_lifecycle_registry.py) validates that every root is safe and matches tracked or planned files, and separates mandatory fast host/VM subcutaneous Tier C1 (< 5s: test/integration/*_integration_test.dart, cargo nextest, Vitest/Node wire tests, tests/integration/, JVM/Robolectric *FlowTest, swift test --filter *FlowTests) from heavy simulator/emulator/device/Playwright Tier C2 (# tier: C2 trailing comment + Needs:-gated).Protected paths: .agents/quality/**, .devtool/epic/<epic_name>/bdd_scenarios.mdIntegration results: <level-2 blast-radius command> -> <report_path> (and optional Integration results (live, needs: VAR1): <cmd> -> <path> for opt-in suites). Level 3 full-repo test runs execute only at Stage 4 before landing.shared-contracts/ (physical = Hub Mode -> Contract Owner Persona; symlink = Satellite Mode -> Consumer Persona). Read Triad (api_contract.md, architecture_and_flow.md, gaps_and_rfcs.md), guarantee non-breaking backward-compatible schemas, and document findings in ## Shared Contract Impact (None — self-contained feature if unaffected).bdd_scenarios.md): Organize across all 5 dimensions (HP, EC, ST, AR, FR) prioritizing boundary/fault cases with linked ToC and bracketed IDs Scenario: [<EPIC>-<DIM>-<NN>] [Tier A - Unit | Tier C - Integration] .... Verify prefix uniqueness via grep -rho --include='bdd_scenarios.md' --include='bdd_scenarios.en.md' '\[[A-Z][A-Z0-9]*-' .devtool/epic | sort -u.Present a short numbered task list (title, one-line scope, assigned Covers: IDs, and review_tier) for user confirmation before writing task_*.md.
task_01 Contract-First Rule: If shared-contracts/ is impacted, task_01 MUST run first — Hub Mode updates canonical contracts and emits a Parallel Handoff Summary; Satellite Mode updates internal DTOs/adapters (never adding shared-contracts/... to Allowed files, see references/task-template-examples.md for interactive cross-repo Hub commits and sync_contracts.py ack)..devtool/features/*.md (excluding done/ and archived/) for active (todo/in-progress/review) tasks in another epic. If present, generate new tasks as status: "backlog" and mark Meta Data Status: Queued (backlog) — behind <epic>.Write each task to .devtool/features/task_<number>_<name>.md and mirror to .devtool/epic/<epic_name>/task_<number>_<name>.md, then upgrade the Step 1 inline code spans in the HLD's Kanban Tasks Breakdown to relative Markdown links (e.g. [Task 01](task_01_<name>.md)). Task files are English-only — never create .vi.md task variants or mix Vietnamese prose.
Each task must include:
task-reviewer Gating: Include review_tier: "full" in task YAML frontmatter when a task modifies > 2 non-test modules OR carries high-risk labels (security, architecture, concurrency, contract); omit review_tier (or set "skip") for trivial single-file tasks so Stage 3 skips task-reviewer.Allowed files: Exact paths/globs ((new) if created; no bare directories; never .devtool/ mirrors/evidence unless updating a protected path; never shared-contracts/ in Satellite Mode). Whenever a task modifies shared .css or .js assets, grep every referencing *.html, *.astro, *.jinja, and *.jinja2 template and add all of them to the same task's Allowed files so ?v= cache-bust updates commit atomically. For the final Tier C task, include .agents/contract_sync.json (for sync_contracts.py ack) and .agents/contract_map.json when using path waivers.Read-only context: Paths read only (may carry (new) for upstream outputs).target_files Anchors: Under ## Impact Analysis & Blast Radius, whenever a task modifies an existing file > 200 lines, annotate each target file with exact target symbol names plus line ranges (L<start>-L<end>) so implementers run bounded reads immediately.Level 1 task-scoped Task 1..N-1 rows (Allowed files only — never whole-repo ruff/mypy/pytest), Level 2 blast-radius Task N integration rows + fast manifest-registered mechanical gates (boundaries, architecture, anti_stub, check, e.g. lint-imports or $D3NEXUS_KIT/skills/... checks), and Level 3 full suite at Stage 4. Every scenario in bdd_scenarios.md MUST be covered by at least one automated integration test under Integration test roots carrying the scenario ID, assigned through Covers: to exactly one task (final Tier C task sweeps any remaining IDs). Unit mocks never substitute for Tier C integration tests.### BDD SCENARIOS): Directly under ### BDD SCENARIOS, write Covers: <ID>, <ID> (omit only on non-scenario tooling tasks) and copy exact Given / When / Then blocks verbatim from bdd_scenarios.md. Pin assertions to concrete production outputs/indices/timestamps — vague assertions (should be truthy, is valid, should work, returns non-empty) are rejected by check_task_contract.py --design.## Verification): Use columns ID | Phase | Command | Expect | Needs with phases RED, MEASURE (writing declared Evidence files:), GREEN, REGRESSION, TIER-B, TIER-C. Follow references/verification-rows.md and references/verification-row-grammar.md.
RED row MUST target an exact node ID (path/test_file.py::test_name), expect exit 1, and require test failure output (-k without a node ID is rejected).RED rows and place RED: n/a — <reason> right under the table.REGRESSION Coverage: Never allow a Verification table to run only the newly created unit test file (e.g. running test_ctc_padding_guard.py while skipping tests/unit/align/test_ctc.py). Generate at least one REGRESSION row (or expand GREEN / TIER-C) running the test suite of the entire touched module and all Downstream Callers listed under ## Impact Analysis & Blast Radius.Allowed files TIER-B Scope & Architectural Boundary Checks: Run d3nexus resolve-quality --files <planned_files> (when .agents/quality/*-quality.json exists) and adopt its $D3NEXUS_KIT/skills-interpolated, Allowed files-scoped type_check/lint commands, dual Web V8 LCOV + Tier C2 test requirements, coverage_floors.json ratchets, and referencing ?v= templates (never emit unexpanded {skills_dir} or {base_ref} literals; enforced across all 6 stacks via TierBContractAdapter in _stack_lifecycle_registry.py, with portable dual-floor coverage via $D3NEXUS_KIT/skills/quality_check/resources/scripts/check_diff_coverage.py); forbid bare npx <bin> in verification rows — always pass npx --no-install <bin> (or explicit npx --yes --package <pkg> <bin>). TIER-B lint/format (ruff check, ruff format --check or stack equivalent) and type-check (mypy --strict or stack equivalent) MUST run across all Allowed files (both production source files and new/modified test files), never scanning only a single source file. Whenever a task touches cross-module imports or contracts, include an architectural boundary or contract check (lint-imports or equivalent) in TIER-B. Any TIER-C command launching a simulator/emulator/device/Playwright browser MUST end with # tier: C2 and declare Needs:. When a review_tier: "full" task runs sync_contracts.py diff-check inside an uncommitted worker slot, pass --allow-dirty (which still blocks if shared-contracts, .agents/contract_map.json, or .agents/contract_sync.json is dirty) while keeping strict clean-tree enforcement (without --allow-dirty) at Gate 4. check_task_contract.py --design emits a compact 1-line PASS (Result: 0 problems — PASS) by default (--verbose / --json opt-in).## Stop and Report If directly below the table with the five default escalation bullets (see references/task-template-examples.md).## Decisions Already Made: Inline exact production signatures, defaults, constants, and caller-to-callee chains (Source: grounded vs New contract:). For executable tasks (RED, GREEN, or REGRESSION rows), Decisions Already Made must not be empty or write None; only non-behavioral doc tasks may write None.## Definition of Done Checkbox Lock & Links: Write every DoD item as an unchecked Markdown checkbox - [ ] <criterion> (V2, V3, V5) (or (Gate 5) for human review); include Blocked by [Task N](...) and rollback notes. Updating frontmatter to status: "done" (or setting completedAt) is strictly forbidden while any - [ ] checkbox remains unchecked; the executing agent must tick [x] with a brief mechanical result summary (e.g. exit 0, 42 passed)..devtool/features/):
python3 "$SKILL_DIR"/../dev-implementation/resources/scripts/check_epic_readiness.py <epic_name> [--baseline]
# Required only when tasks embed literal `Create` / `Replace in` / `Insert in` patch directives
# (contract-based tasks without test-creation directives self-skip R8):
python3 "$SKILL_DIR"/../dev-implementation/resources/scripts/check_epic_readiness.py <epic_name> --replay
(Isolate failures with check_bdd_traceability.py plan and check_task_contract.py --design.) check_epic_readiness.py <epic_name> is mandatory for every epic, and --replay is required when tasks carry literal patch directives; applicable checks must exit 0 before committing..agents/config.json sets auto_commit: true, stage only .devtool/epic/<epic_name>/ and generated .devtool/features/task_*.md, committing per Commit Message Format (no trailers).--pending-decision for Choice A, and checkpoint state (do not run package_epic.py or generate handoff.md yet — packaging runs at /principal-review completion and stamps creator PIC cleanly; verify parallel waves cleanly via compute_execution_order.py <epic_slug> --parallel):
python3 scripts/resume_context.py --gate 2 --epic <epic_slug> --approved "<task breakdown summary>"
python3 scripts/resume_context.py --pending-decision "Approve Gate 2 HLD and choose execution mode" --decision-kind gate_2 --epic <epic_slug>
python3 scripts/resume_context.py --state --epic <epic_slug> --status "Stage 2: Waiting for Choice A"
(When the user chooses AUTO MODE or Handoff Mode, --gate / non-paused --state / package_epic.py clears this epic's pending decision automatically.).devtool/review_config.json, stop calling tools, and present the Handoff Choice (Gate 2 Unified Confirmation with reviewer provider/model priority: AUTO MODE Triển khai (tự động) vs Handoff Mode Dừng lại). Never invoke dev-implementation directly.Append sequentially numbered task files, update Kanban Tasks Breakdown links (and Mermaid diagrams if changed) in the HLD, and retrofit scenario IDs / Covers: / Integration test roots: before running check_bdd_traceability.py plan.
| Agent Rationalization | Enforced Counter-Rule |
|---|---|
| "Node.js unit tests prove this web UI works." | REJECTED: Web Tier C uses hermetic Playwright E2E + screenshot/layout (getComputedStyle, getBoundingClientRect) + Zero-Console-Error checks as the primary automated browser gate (independent of host HOME). |
| "Hardcoding mock data in a stub is enough." | REJECTED: Wire-level fixtures from shared-contracts/ are required. |
| "Browser console errors are harmless warnings." | REJECTED: Zero-Console-Error fails Gate 4 on any uncaught console error. |
| "No simulator, so a unit test counts as Tier C." | REJECTED: Mobile Tier C requires Subcutaneous Testing with real DI/persistence. |
| "HTML matches the Visual Companion mockup." | REJECTED: Web Tier C2 UI tests must assert getComputedStyle and getBoundingClientRect layout properties against the Visual Companion design. |
"Interactive Chrome DevTools failed because DevToolsActivePort is missing, so skip browser verification." | REJECTED: Interactive Chrome DevTools (browser_subagent) requires a DevToolsActivePort pre-flight check with Playwright fallback in isolated multi-profile HOME setups; run the primary hermetic Playwright E2E + screenshot gate instead. |
Doubt-Driven Verification Protocol: 1. CLAIM (state assertion) -> 2. EXTRACT (inspect JUnit XML classnames, Playwright traces, mocks) -> 3. DOUBT (challenge mock/unit shortcuts) -> 4. RECONCILE (verify against real production code paths).
shared-contracts/ design without checking Triad files first, omitting task_01, or putting shared-contracts/... in Satellite Allowed files.task_*.md, or omitting Covers: / scenario IDs.graph TD/LR, unquoted special-char labels, or skipping check_bdd_traceability.py plan / check_task_contract.py --design.package_epic.py or dev-implementation directly instead of stopping at the Gate 2 Handoff Choice for /principal-review.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub danhdue/ai-agent-tools --plugin d3nexus72 skills in this plugin
/android-api-integrationGenerates a standardized Network Module, API Interface, Remote Data Source, Repository, UseCase, Models, and ViewModel updates for Android using the Hybrid Network Architecture and MVI Pattern./android-quality-checkRead-only Android quality assurance provider implementing the common quality contract. Executes project-configured Gradle, Spotless, Detekt, and Konsist capabilities from .agents/quality/android-quality.json, enforces BCV and architecture policies, and outputs structured results bound to repository SHA./android-ui-auditAudits Jetpack Compose and Android UI code for recomposition stability, state hoisting, Material3 design system adherence, and modifier best practices.Other plugins' skills for the same job