System Design Baseline Builder skill

Defines measurable architecture drivers and constraints before system design.

by levnikolaevich·MIT license·★ 568 Stars on the repo·GitHub ↗

Use now

Files of System Design Baseline Builder

levnikolaevich/master1 file shown
SKILL.md
Show the full text102 lines

System Design Baseline Builder

Goal: Create or update one durable source of truth for the project's architecture-driving requirements and constraints. Change only the approved architecture document; do not design the solution, review a plan, audit implementation, edit product code, or invent missing targets.

Execution contract: The checklist defines completion. Track each item internally as PENDING, PROVEN with evidence, CLEARED with evidence its condition is absent, or UNPROVEN with a gap; reading, delegation, tool failure, a zero exit status, or a self-reported success is not proof; only the observed outcome is. Reconcile after each section. Before returning, resolve all PENDING, count only PROVEN and CLEARED, and apply verdict and approval rules to every gap. Preserve intent, scope, and existing authorization. Continue authorized work; ask only for consequential unresolved choices or required external approval. When no one can answer during the run, state the exact question and apply the skill's verdict for the remaining gap instead of waiting or guessing. Scale depth to material risk without skipping checks. Preserve dependency and safety order; otherwise choose an appropriate verification method. Accept equivalent user or repository evidence; no other skill, named artifact, or complete lifecycle is required. Preserve source requirement and decision IDs. Bind reused evidence to relevant source versions, dirty changes, configuration, and environment; invalidate only affected claims. On continuation, reconcile task, authorization, current state, and unresolved evidence. For long work, return a compact continuation record or update an already authorized artifact; read-only skills do not persist it. Distinguish artifact readiness, verified behavior, and external-action authority. Prepare authorized work before required approval. If blocked by an instruction, cite its exact source and unresolved boundary; do not invent approval gates from caution.

Tool Routing

Need Preferred capability Fallback
Repository rules and document conventions Native file reads plus focused search User-provided convention with an explicit limitation
Existing requirements and architecture artifacts Narrow repository search and direct reads Conversation evidence marked with its source
Current workload or service evidence Metrics, dashboards, logs, manifests, or checked-in reports Mark UNKNOWN; never manufacture production numbers
Current external limits or standards Official documentation or specifications Mark the claim UNVERIFIED
Document mutation Minimal patch to the approved Markdown artifact Return BLOCKED if no safe writable path is authorized

Use external research only when a time-sensitive fact changes a constraint. Do not browse for values that must come from product owners, operators, the repository, or measured workload.

Artifact Rules

  • Prefer an existing unambiguous architecture-requirements document.
  • Otherwise use docs/architecture/system-design-baseline.md.
  • Read before writing, preserve unrelated content, and update facts in place instead of creating parallel truth.
  • Classify applicability separately as APPLICABLE or NOT_APPLICABLE, with evidence for exclusions.
  • Rank each applicable item as DRIVER, SUPPORTING, or INFORMATIONAL.
  • Classify evidence separately as CONFIRMED, ASSUMED, or UNKNOWN.
  • Separate observed current values, required targets, hard limits, and future evolution triggers.
  • Express quality attributes through observable scenarios and response measures; record undecided targets as missing decisions rather than inventing numbers.
  • Treat the baseline as versioned project knowledge, not an immutable promise.

Checklist

1. Establish Scope and Destination
  • Resolve the project, business outcome, intended readers, approved documentation scope, and language.
  • Read applicable repository instructions and inspect Git state so unrelated changes remain untouched.
  • Search for existing requirement, architecture, SLO, recovery, security, cost, and ownership documents.
  • Select one canonical artifact: reuse a clear equivalent or choose the default path; explain why no duplicate will be created.
  • Return BLOCKED if the destination is ambiguous and choosing one could split project truth.
2. Build the Evidence Ledger
  • Collect business goals, actors, journeys, scope, non-goals, and decision horizon with their sources and confidence for the driver analysis; do not create a second context inventory.
  • Record sources for current workload, data volume, service behavior, platform limits, and existing commitments.
  • Separate repository facts from stakeholder choices and estimates.
  • Detect contradictions between documents, code, configuration, and stated requirements; preserve both claims until resolved.
  • Ask only for choices whose absence materially changes architecture; mark all other gaps UNKNOWN.
3. Define and Prioritize Architecture Drivers
  • Business and scope: Record actors, critical journeys, business horizon, scope, non-goals, and externally committed outcomes.
  • Demand and data scale: Record current and target users, rates, concurrency, payloads, growth, retention, and forecast horizon where relevant.
  • User-observable service quality: Define SLIs and SLOs for availability, latency, throughput, error rate, correctness, or freshness with measurement windows.
  • Data semantics and recovery: Define consistency, ordering, idempotency, reconciliation, durability, backup, RTO, RPO, and acceptable data loss at affected boundaries.
  • Security, privacy, and compliance: Define trust boundaries, data classification, residency, access, audit, and destructive-action constraints.
  • Operations and economics: Define ownership, operational capacity, cost envelope, supported regions, delivery cadence, and platform or vendor constraints.
  • Evolution: Record thresholds, business events, or evidence that justify revisiting an assumption, target, or deferred capability.
  • Separate applicability, criticality, and evidence status; do not use UNKNOWN to mean unimportant or NOT_APPLICABLE.
  • Prioritize the few scenarios most likely to shape architecture and express each as source/stimulus/environment/artifact/response/measure.
4. Write the Baseline
  • Create or update the artifact with: identity and status; business context; scope and non-goals; critical scenarios; workload and data; quality targets; recovery; consistency; security; cost and operations; constraints; assumptions and unknowns; review triggers.
  • Give material parameters their theme, applicability, criticality, evidence status, value/range, source, owner, as-of date, and review trigger. State shared metadata once with explicit inheritance; use UNKNOWN for missing ownership or values.
  • Keep calculations reproducible and label estimates separately from observed measurements.
  • Link shared architecture artifacts only by repository path or document title; never require a particular workflow or tool.
  • Preserve historical context needed to understand changed requirements instead of silently rewriting prior commitments.
5. Validate and Report
  • Re-read the written artifact and verify that no unknown was converted into a confident fact.
  • Check that targets are measurable, internally consistent, and proportionate to the evidenced business horizon.
  • Check that every architecture-critical gap has an owner or exact next evidence action.
  • Link architecture drivers to their source product requirements; preserve the product source as owner of functional rules rather than copying a second requirements baseline.
  • Use READY only when the baseline is usable for decisions and no material unknown lacks a safe handling rule; use INCOMPLETE for a useful artifact with consequential open drivers; use BLOCKED when scope, authority, or destination prevents safe creation.

Self-Check

  • Reconcile before returning. Check item-level evidence, requirement coverage, contradictions, scope, verdict, and applicable cleanup. Correct the report or authorized artifacts. Reuse valid evidence; do not automatically rescan the repository or rerun successful commands. Repeat checks only for relevant changes, failures, or unresolved evidence. Disclose remaining gaps.

Output Contract

Report in the user's language, in this order; label all five fields and state each fact once. Use controlled plain language: one fact per sentence, usually under 20 words, active voice, and one term per concept, with no synonyms for verdicts, IDs, or states. Small results may use one line per field; omit empty tables and do not copy linked artifacts:

  1. Result: The exact skill-specific verdict token first, then the supported outcome.
  2. Scope: Reviewed/changed scope, exclusions, baseline, and material assumptions.
  3. Evidence: Skill-specific fields below; distinguish facts, inferences, and unverified claims. Link artifacts; use tables when useful.
  4. Verification: Checks/results, unavailable evidence, and applicable cleanup/external state.
  5. Completion: Checklist: X/Y complete; Incomplete: None or each UNPROVEN item's reason, outcome impact, and exact next action; residual risks and required decisions.

Skill-specific evidence: Artifact path, established drivers and prioritized quality scenarios, applicable constraints, and changed sections. The artifact owns the driver register: theme/parameter, applicability, criticality, evidence status, value/measure, source/owner, as-of date, and review trigger. Summarize only decision-changing gaps; do not copy the register into the response.

1---
2name: ln-21-system-design-baseline-builder
3description: "Defines measurable architecture drivers and constraints before system design; edits architecture docs only."
4---
5 
6# System Design Baseline Builder
7 
8**Goal:** Create or update one durable source of truth for the project's architecture-driving requirements and constraints. Change only the approved architecture document; do not design the solution, review a plan, audit implementation, edit product code, or invent missing targets.
9 
10**Execution contract:** The checklist defines completion. Track each item internally as `PENDING`, `PROVEN` with evidence, `CLEARED` with evidence its condition is absent, or `UNPROVEN` with a gap; reading, delegation, tool failure, a zero exit status, or a self-reported success is not proof; only the observed outcome is. Reconcile after each section. Before returning, resolve all `PENDING`, count only `PROVEN` and `CLEARED`, and apply verdict and approval rules to every gap.
11Preserve intent, scope, and existing authorization. Continue authorized work; ask only for consequential unresolved choices or required external approval. When no one can answer during the run, state the exact question and apply the skill's verdict for the remaining gap instead of waiting or guessing. Scale depth to material risk without skipping checks. Preserve dependency and safety order; otherwise choose an appropriate verification method.
12Accept equivalent user or repository evidence; no other skill, named artifact, or complete lifecycle is required. Preserve source requirement and decision IDs. Bind reused evidence to relevant source versions, dirty changes, configuration, and environment; invalidate only affected claims.
13On continuation, reconcile task, authorization, current state, and unresolved evidence. For long work, return a compact continuation record or update an already authorized artifact; read-only skills do not persist it. Distinguish artifact readiness, verified behavior, and external-action authority.
14Prepare authorized work before required approval. If blocked by an instruction, cite its exact source and unresolved boundary; do not invent approval gates from caution.
15 
16 
17## Tool Routing
18 
19| Need | Preferred capability | Fallback |
20|---|---|---|
21| Repository rules and document conventions | Native file reads plus focused search | User-provided convention with an explicit limitation |
22| Existing requirements and architecture artifacts | Narrow repository search and direct reads | Conversation evidence marked with its source |
23| Current workload or service evidence | Metrics, dashboards, logs, manifests, or checked-in reports | Mark `UNKNOWN`; never manufacture production numbers |
24| Current external limits or standards | Official documentation or specifications | Mark the claim `UNVERIFIED` |
25| Document mutation | Minimal patch to the approved Markdown artifact | Return `BLOCKED` if no safe writable path is authorized |
26 
27Use external research only when a time-sensitive fact changes a constraint. Do not browse for values that must come from product owners, operators, the repository, or measured workload.
28 
29## Artifact Rules
30 
31- Prefer an existing unambiguous architecture-requirements document.
32- Otherwise use `docs/architecture/system-design-baseline.md`.
33- Read before writing, preserve unrelated content, and update facts in place instead of creating parallel truth.
34- Classify applicability separately as `APPLICABLE` or `NOT_APPLICABLE`, with evidence for exclusions.
35- Rank each applicable item as `DRIVER`, `SUPPORTING`, or `INFORMATIONAL`.
36- Classify evidence separately as `CONFIRMED`, `ASSUMED`, or `UNKNOWN`.
37- Separate observed current values, required targets, hard limits, and future evolution triggers.
38- Express quality attributes through observable scenarios and response measures; record undecided targets as missing decisions rather than inventing numbers.
39- Treat the baseline as versioned project knowledge, not an immutable promise.
40 
41## Checklist
42 
43### 1. Establish Scope and Destination
44 
45- [ ] Resolve the project, business outcome, intended readers, approved documentation scope, and language.
46- [ ] Read applicable repository instructions and inspect Git state so unrelated changes remain untouched.
47- [ ] Search for existing requirement, architecture, SLO, recovery, security, cost, and ownership documents.
48- [ ] Select one canonical artifact: reuse a clear equivalent or choose the default path; explain why no duplicate will be created.
49- [ ] Return `BLOCKED` if the destination is ambiguous and choosing one could split project truth.
50 
51### 2. Build the Evidence Ledger
52 
53- [ ] Collect business goals, actors, journeys, scope, non-goals, and decision horizon with their sources and confidence for the driver analysis; do not create a second context inventory.
54- [ ] Record sources for current workload, data volume, service behavior, platform limits, and existing commitments.
55- [ ] Separate repository facts from stakeholder choices and estimates.
56- [ ] Detect contradictions between documents, code, configuration, and stated requirements; preserve both claims until resolved.
57- [ ] Ask only for choices whose absence materially changes architecture; mark all other gaps `UNKNOWN`.
58 
59### 3. Define and Prioritize Architecture Drivers
60 
61- [ ] **Business and scope:** Record actors, critical journeys, business horizon, scope, non-goals, and externally committed outcomes.
62- [ ] **Demand and data scale:** Record current and target users, rates, concurrency, payloads, growth, retention, and forecast horizon where relevant.
63- [ ] **User-observable service quality:** Define SLIs and SLOs for availability, latency, throughput, error rate, correctness, or freshness with measurement windows.
64- [ ] **Data semantics and recovery:** Define consistency, ordering, idempotency, reconciliation, durability, backup, RTO, RPO, and acceptable data loss at affected boundaries.
65- [ ] **Security, privacy, and compliance:** Define trust boundaries, data classification, residency, access, audit, and destructive-action constraints.
66- [ ] **Operations and economics:** Define ownership, operational capacity, cost envelope, supported regions, delivery cadence, and platform or vendor constraints.
67- [ ] **Evolution:** Record thresholds, business events, or evidence that justify revisiting an assumption, target, or deferred capability.
68- [ ] Separate applicability, criticality, and evidence status; do not use `UNKNOWN` to mean unimportant or `NOT_APPLICABLE`.
69- [ ] Prioritize the few scenarios most likely to shape architecture and express each as source/stimulus/environment/artifact/response/measure.
70 
71### 4. Write the Baseline
72 
73- [ ] Create or update the artifact with: identity and status; business context; scope and non-goals; critical scenarios; workload and data; quality targets; recovery; consistency; security; cost and operations; constraints; assumptions and unknowns; review triggers.
74- [ ] Give material parameters their theme, applicability, criticality, evidence status, value/range, source, owner, as-of date, and review trigger. State shared metadata once with explicit inheritance; use `UNKNOWN` for missing ownership or values.
75- [ ] Keep calculations reproducible and label estimates separately from observed measurements.
76- [ ] Link shared architecture artifacts only by repository path or document title; never require a particular workflow or tool.
77- [ ] Preserve historical context needed to understand changed requirements instead of silently rewriting prior commitments.
78 
79### 5. Validate and Report
80 
81- [ ] Re-read the written artifact and verify that no unknown was converted into a confident fact.
82- [ ] Check that targets are measurable, internally consistent, and proportionate to the evidenced business horizon.
83- [ ] Check that every architecture-critical gap has an owner or exact next evidence action.
84- [ ] Link architecture drivers to their source product requirements; preserve the product source as owner of functional rules rather than copying a second requirements baseline.
85- [ ] Use `READY` only when the baseline is usable for decisions and no material unknown lacks a safe handling rule; use `INCOMPLETE` for a useful artifact with consequential open drivers; use `BLOCKED` when scope, authority, or destination prevents safe creation.
86 
87## Self-Check
88 
89- [ ] **Reconcile before returning.** Check item-level evidence, requirement coverage, contradictions, scope, verdict, and applicable cleanup. Correct the report or authorized artifacts. Reuse valid evidence; do not automatically rescan the repository or rerun successful commands. Repeat checks only for relevant changes, failures, or unresolved evidence. Disclose remaining gaps.
90 
91## Output Contract
92 
93Report in the user's language, in this order; label all five fields and state each fact once. Use controlled plain language: one fact per sentence, usually under 20 words, active voice, and one term per concept, with no synonyms for verdicts, IDs, or states. Small results may use one line per field; omit empty tables and do not copy linked artifacts:
94 
951. **Result:** The exact skill-specific verdict token first, then the supported outcome.
962. **Scope:** Reviewed/changed scope, exclusions, baseline, and material assumptions.
973. **Evidence:** Skill-specific fields below; distinguish facts, inferences, and unverified claims. Link artifacts; use tables when useful.
984. **Verification:** Checks/results, unavailable evidence, and applicable cleanup/external state.
995. **Completion:** `Checklist: X/Y complete`; `Incomplete: None` or each `UNPROVEN` item's reason, outcome impact, and exact next action; residual risks and required decisions.
100 
101**Skill-specific evidence:** Artifact path, established drivers and prioritized quality scenarios, applicable constraints, and changed sections. The artifact owns the driver register: theme/parameter, applicability, criticality, evidence status, value/measure, source/owner, as-of date, and review trigger. Summarize only decision-changing gaps; do not copy the register into the response.
102 

Discussion

Alternatives

Diagram designCreate branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, or database schema diagrams as HTML/SVG/PNG, with .drawio, Mermaid, and .excalidraw import, plus lifecycle phase maps, block decomposition trees, and onboarding guidance.Coding · MITReview architectureReview a PR against the Pascal architectural rules — package boundaries (core/viewer/editor/nodes), the registry-driven composition model (def.geometry / def.renderer / def.system), legacy-dispatch regressions, the slots + world-scale-UV convention for new nodes/geometry, hook hygiene (useEditor/useScene/useViewer), and selector performance. Use when the user asks to review a PR, audit a branch, or check that changes respect the codebase's architecture.Coding · MITDraw.io Architecture StudioCreate and edit draw.io/diagrams.net diagrams as editable `.drawio` files. Covers architecture, UML/ERD/sequence, BPMN, network, and swimlane views authored from a description or converted from code, IaC, SQL, and API schemas, plus sync, query, test, review, export, and publish of existing diagrams. Use when the user asks for draw.io/diagrams.net or an editable diagram; prefer Mermaid/PlantUML when diagrams-as-code is enough.Coding · MITLLM Wiki — Knowledge Distillation PatternThe foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use this skill whenever the user wants to understand the wiki pattern, set up a new knowledge base, or needs guidance on the three-layer architecture (raw sources → wiki → schema). Also use when discussing knowledge management strategy, wiki structure decisions, or how to organize distilled knowledge. This is the "theory" skill — other skills handle specific operations (ingesting, querying, linting).Coding · MIT