Draft, review, and update Software Design Documents using IEEE 1016-2009 structure with pragmatic compliance checks and output structure validation. Use this whenever a user asks to write an SDD, assess SDD quality/completeness, align design docs to IEEE 1016, map PRD requirements to design, produce architecture/interface/data design sections, generate a gap report with remediation actions, perform SDD review-only compliance analysis, or update an SDD after architecture changes.
Create or review an SDD using an IEEE 1016-inspired structure while staying pragmatic for project context.
.agent-doc-skills/.chars, words, lines) and optional Markdown heading breakdown (--by-heading).Mandatory preflight sequence:
python3 scripts/count_text_size.py --glob "<sdd-root>/**/*.md" --by-heading.Do not start drafting until preflight confirmation is received, unless user explicitly uses /fast or /assume.
Clause 4), not normative text.IEEE 1016-inspired internal guidance, unofficial.).draft+review.pragmatic.ieee-pragmatic.docs/sdd/.agent-doc-skills/docs/sdd/index.mddocs/sdd/01-introduction.mddocs/sdd/02-03-system-context-and-concerns.mddocs/sdd/04-architecture-overview.mddocs/sdd/05-viewpoints-and-views.mddocs/sdd/06-design-elements-and-constraints.mddocs/sdd/07-08-traceability-and-rationale.mddocs/sdd/09-10-risks-and-summary.md.agent-doc-skills/sdd/gaps/YYYY-MM-DD.md.agent-doc-skills/sdd/drift/YYYY-MM-DD.mdIf the user specifies a different mode, follow the user preference. If the user specifies a different canonical output root or artifact root, only accept a safe relative directory inside the project folder.
Mode shortcuts accepted in user prompts:
/de or /draft+review -> draft+review/d or /draft-only -> draft-only/r or /review-only -> review-only/dc or /drift-check -> drift-checkMode resolution precedence:
/de, /d, /r, /dc, or long form)review only)draft+reviewInteraction options:
/ask (default): confirm scope/mode/inputs before drafting and request missing critical info./fast: proceed immediately with reasonable assumptions, then list assumptions in the output./assume: proceed with assumptions even if inputs are incomplete, and clearly mark assumption-based sections.Detail profile options:
ieee-pragmatic (default): strict base structure with concise implementation guidance.implementation-deep: keep all base sections and add deeper implementation files.If user asks for detailed, implementation handoff, architecture deep dive, ERD/data dictionary, or full design package, use implementation-deep.
docs/architecture/sdd/ or .agent-doc-artifacts/)...)..git/, .github/workflows/, /etc/, home directories).Expect at least one of:
index.md to review/update, orIf neither is available, stop and ask for missing inputs before drafting. Do not invent project-specific architecture details.
Useful optional inputs:
Before drafting, perform an intake check:
If critical inputs are missing, ask concise clarification questions first.
Only skip clarification when user explicitly uses /fast or /assume.
draft+review (default)docs/sdd/.docs/sdd/ and a dated gap report under .agent-doc-skills/sdd/gaps/.draft-onlydocs/sdd/.review-onlyindex.md as input..agent-doc-skills/sdd/gaps/ with concrete remediation actions for the document set.drift-checkindex.md plus repository context.Doc Baseline Commit from the input SDD entrypoint index.md and compare <baseline>..HEAD using git history, diff summaries, and targeted diffs for changed files..agent-doc-skills/sdd/drift/ with changed areas, likely affected SDD files/sections, and suggested next action.Not Applicable with justification.references/document-set/ as the canonical template library.index.md is the document entrypoint and must contain document control metadata plus links to every generated section file in canonical order.index.md; do not duplicate it across section files.Doc Baseline Commit and Last Reviewed On in ## Document Control when repository context is available.## 4. Architecture Overview in 04-architecture-overview.md### 5.1 Viewpoint-to-View Mapping in 05-viewpoints-and-views.md### 6.1 Design Element Catalog (Formal Definitions) in 06-design-elements-and-constraints.md with fields: Component, Responsibility, Inputs, Outputs, Dependencies, Public FunctionsStimulus, Environment, Response, Measurement when quality concerns are material.06-design-elements-and-constraints.md and/or 11-data-design.md when persistent data is currently absent/static.N/A rationale.implementation-deep, include extension files:
11-data-design.md12-component-design.md13-human-interface-design.md14-requirements-traceability-matrix.md15-appendices.md16-design-decisions-locked.mdindex.md links to every generated section file.drift-checkDoc Baseline Commit from index.md.HEAD as a new baseline with no drift comparison for prior changes.<baseline>..HEAD with git log, git diff --stat, and targeted git diff output for changed files.draft+review or draft-only, write the canonical section files under docs/sdd/ or the approved custom canonical root.draft+review or review-only, write a dated gap report under .agent-doc-skills/sdd/gaps/ or the approved custom artifact parent root.drift-check, write a dated drift report under .agent-doc-skills/sdd/drift/ or the approved custom artifact parent root.review-only and drift-check, do not modify source SDD files unless explicitly requested.python3 scripts/check_sdd_structure.py --mode <draft+review|draft-only|review-only|drift-check> --docs-dir <canonical-output-root> --profile <ieee-pragmatic|implementation-deep>.--require-all-subsections.--allow-soft-sections only when section checks should be advisory.review-only or drift-check, add --strict-review-input when CI/evals should fail on missing canonical input files, missing document-map links, or missing required headings in the reviewed SDD set.draft+review or review-only, run python3 scripts/check_doc_artifacts.py --artifact-root <artifact-root> --doc-kind sdd --artifact-kind gaps.drift-check, run python3 scripts/check_doc_artifacts.py --artifact-root <artifact-root> --doc-kind sdd --artifact-kind drift only when drift-check completed with a valid reachable baseline and produced a drift report.YYYY-MM-DD.md naming.Use these files as the default document sequence:
index.md01-introduction.md02-03-system-context-and-concerns.md04-architecture-overview.md05-viewpoints-and-views.md06-design-elements-and-constraints.md07-08-traceability-and-rationale.md09-10-risks-and-summary.mdUse these headings in order:
# SDD Gap Report## Scope and Inputs## Missing Required Content## Weak or Implicit Rationale## Traceability Gaps## Recommended Fixes (Priority Ordered)## Coverage SummaryWrite dated gap reports under .agent-doc-skills/sdd/gaps/YYYY-MM-DD.md.
Use these headings in order:
# SDD Drift Report — YYYY-MM-DD## Scope and Baseline## Changed Since Last Review## Recommended SDD Files and Sections to Revisit## Suggested Next ActionInclude these metadata bullets near the top:
SDD Root:Baseline Commit:Current Commit:Commits Since Baseline:Checked On:Write dated drift reports under .agent-doc-skills/sdd/drift/YYYY-MM-DD.md.
04, 5.1, 6.1 with formal fields) as required.N/A rationale.N/A rationale.UX consistency / visual design constraints over vague labels such as aesthetics.single consolidated stylesheet over monolithic stylesheet.index.md provides stable navigation and document control.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer