Design
Produce or update a Software Architecture Document (SAD) as a vault topic - Arc42-informed sections with C4 Context and Container Mermaid diagrams; decisions that cross the blast-radius gate spawn ADRs via obsidian-decision instead of being buried in the SAD. Use when designing the architecture of a feature or the whole system, when asked for a "SAD" or "architecture document", or before building something that spans multiple modules. Do not use for recording a single decision (obsidian-decision), saving a discussion verbatim (obsidian-topic), or drawing runtime flows only (sequences).From its SKILL.md
npx -y skills add Marycka9/oh-my-claude-obsidian --skill designAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
8.5 KB, as published. Nobody here has run it
design
Writes the Software Architecture Document as a living topic: topics/{Feature} — SAD.md for a feature, topics/System — SAD.md for the whole system. Arc42-informed sections, C4 Context + Container diagrams inline, ADRs spawned on the blast-radius gate. C4 L3 Component / L4 Code are out of scope — that detail belongs in code and in obsidian-topic docs.
Shared references: config-resolution, vault-structure, obsidian-format, hot-md, handoff, self-check. Heavy content for this skill: templates/sad.md (section contract lives in its %%comments%%), references/c4-mermaid-syntax.md.
Arguments
/design "Payment Retries" (feature SAD, interactive walk)
/design system (whole-system SAD)
/design "Payment Retries" auto (autonomous draft, user reviews after)
Mode: interactive (default) — per-section Socratic walk. Autonomous — when the argument says auto or the user says "draft it, I'll review" or similar: draft everything, write, report assumptions for review.
Step 1 — Resolve configuration
Per config-resolution. Not initialized -> stop: Run /obsidian-init first.
Step 2 — Gather inputs (soft prerequisites)
Look for, in order; each is a soft prerequisite — if missing, warn and offer to proceed, do not refuse:
- Plan topic from
/task-planning—topics/topic covering this feature (checktopics/_index.md). Gives goals, scope, NFRs. topics/Architecture Overview.mdfrom/project-onboarding— the as-is C4 map, module layout, conventions.- Existing SAD at the target path -> update mode: read it, touch only the sections the user asked about or that are empty; never silently rewrite confirmed content.
decisions/_index.md— existing ADRs to reference instead of re-deciding.
If a plan topic and the Architecture Overview are both missing, ask once: proceed from the code repo + an interview, or run /task-planning / /project-onboarding first? Hard stop only when working blind is nonsense: no plan, no overview, no readable repo (registry Repo empty or path missing), and no feature description from the user — then stop and ask for a short brief (what is being built, for whom, key constraints). Greenfield with a brief is fine: run a short interview (5-8 questions max: actors, external systems, stack constraints, deadline, top-3 quality goals, deployment target) and proceed.
Step 3 — Scan current architecture
Prefer the map over a re-scan: if topics/Architecture Overview.md exists, read it — that IS the brownfield context. Otherwise read the repo (registry Repo path): module layout, layering, datastores, inter-module communication — enough to not invent a fictional container view. Pure greenfield -> note %%greenfield — no existing code%% in the Context section.
Step 4 — Scaffold
New SAD: create from templates/sad.md, substituting placeholders; frontmatter type: topic, tags: [topic, architecture], related linking the plan topic and "[[Architecture Overview]]" when they exist. Keep the template's %%...%% comments while sections are unfilled; delete each comment when its section is written.
Step 5 — Section walk
Sections, in order (the template's %%comments%% carry the per-section contract):
- Context and scope (+ C4 Context) 2. Constraints 3. Solution strategy 4. Building block view (+ C4 Container) 5. Runtime view (placeholder ->
/sequences) 6. Deployment view 7. Crosscutting concepts 8. Architecture decisions 9. Risks and technical debt 10. Glossary pointer.
Interactive mode — for each section: draft it, write it into the SAD, then confirm with the user before moving on. Present in prose, not by dumping the section: 2-4 sentences on what it says and which decisions it contains, plus the open points as concrete questions. For the two diagram sections follow obsidian-format Diagrams: write the Mermaid block to the file first, validate it parses, then describe it in prose (every actor, every relation direction) — never paste raw C4 source as the question. Apply adjustments, then move on; never return to a confirmed section (drift is caught at the final read-back).
Autonomous mode — draft and write all sections in one pass, keep an assumptions ledger (every judgment call, one line each), and put the ledger in the report. Diagram confirmation collapses to a one-line prose summary per diagram.
Blast-radius gate — run on every decision made during the walk. A decision crosses the gate when 2 of 3 fire:
- Irreversible — changing it in 3 months costs >=3 days of rework (storage shape, sync-vs-async coupling, ID strategy, auth model).
- Multi-module contract — >=2 modules see the contract it changes (event schema, shared error namespace, pagination convention).
- Legitimate alternatives — a reader in 6 months would ask "why not X?" where X is a real option, not a strawman.
Crossing decisions become ADRs, not SAD paragraphs: in interactive mode, invoke the obsidian-decision skill at confirmation time with the full decision context (options weighed, reasoning verbatim); if that skill is unavailable, write decisions/YYYY-MM-DD-{slug}.md yourself following ../_shared/templates/obsidian/decision.md and update decisions/_index.md. In autonomous mode do NOT spawn ADRs mid-flight — list the candidates in the report and offer to run /obsidian-decision for each. Either way, every ADR gets a row in the SAD's Architecture decisions table with a [[wikilink]], and the SAD frontmatter decisions: plus the ADR's related: are cross-linked. Non-crossing decisions stay inline, one line each. Healthy count: 2-5 ADRs per feature — one per decision kills the genre; zero usually means a missed irreversibility.
Step 6 — Cross-link and index
topics/_index.md: add/update the SAD row.- Plan topic and Architecture Overview (when present): add
"[[{Feature} — SAD]]"to theirrelated:. - Refresh
hot.mdper hot-md.
Step 7 — Report
State what was produced and summarize each diagram in one prose line (never the Mermaid source). Autonomous mode: include the assumptions ledger and the ADR candidate list. Suggest /sequences "{Feature}" to fill the Runtime view. Then the handoff block and self-check.
Self-check items (read the SAD back from disk):
- Frontmatter parses;
type: topic, tags includetopic+architecture. - All 10 sections present — filled or explicitly
N/A: {reason}(Context, Constraints, Strategy, Building blocks never N/A). - C4 Context and C4 Container blocks parse (per references/c4-mermaid-syntax.md validation section) and use real names — no
{placeholder}leftovers, noContainer_Bondarytypos. - Architecture decisions table is closed against reality: every listed ADR file exists (or is flagged as a pending candidate), every spawned ADR has a row.
- Cross-links exist both ways (SAD <-> ADRs, SAD <-> plan topic);
topics/_index.mdrow present; hot.md refreshed, under ~500 words.
Rules
- Content in the project's
language; section headings, frontmatter, and Mermaid keywords stay English per obsidian-format. - Never invent quality numbers — cite the plan topic / user verbatim, or write "target TBD" and add a Risks row.
- Never dump a large Mermaid diagram into chat; file first, prose after.
- Update mode is surgical: untouched sections stay byte-identical.
- The SAD records the to-be design; the as-is map stays in
Architecture Overview— link, don't duplicate.