[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MVQR3HK81K3ZPR2HCQM8K":3,"skill-same:01M77MVQR3HK81K3ZPR2HCQM8K":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77MVQR3HK81K3ZPR2HCQM8K","architecture-authoring",null,"Design and write architecture documents — initial architecture or sprint updates","League-Robotics\u002Fmbdeploy","League-Robotics","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F208509796?v=4","01M73830ZS54M88FRN73WZ722B","League Robotics","01M77MVK2GZVVDZY8DXRYW18FK",0,"MIT","https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Farchitecture-authoring\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: architecture-authoring\ndescription: Design and write architecture documents — initial architecture or sprint updates\n---\n\n# Architecture Authoring Skill\n\nThis skill guides writing architecture documents, whether an initial\narchitecture from scratch or a sprint update.\n\n## Two Modes\n\n### Mode 1: Initial Architecture\n\nDesign the system architecture from scratch when no architecture document\nexists yet.\n\nGiven `overview.md` and `usecases.md` in the project's configured\ndesign directory (`paths.design` in `.clasi\u002Fconfig.yaml`, default\n`docs\u002Fdesign\u002F`), produce the first architecture document following\nsteps 1-7 below.\n\nThis mode is superseded, for a project that has opted into the persistent\nper-subsystem design-doc set (`Project.design_docs_opt_in` is `True`), by\nthe `bootstrap-design` skill, which produces `docs\u002Fdesign\u002Fdesign.md` plus\na root-level `DESIGN.md` per declared source root plus one doc per\nsubsystem, instead of a single architecture document. Use Mode 1 only for\na project that has not opted in.\n\n### Mode 2: Sprint Architecture Update\n\nWrite the sprint's architecture output, sized to the change — or write\n\"N\u002FA — trivial\" when the change has no architectural impact. This output\nis authored after the effort decision is made and use cases are defined,\nand **before tickets exist** — tickets are derived from it, not the other\nway around. The guiding question throughout is: \"Is this description\nclear enough that tickets can be derived from it without ambiguity?\"\n\n**Where the output goes** depends on `Project.design_docs_opt_in`:\n\n- **Not opted in** (`design_docs_opt_in` is `None` or `False`): write the\n  Architecture section of the sprint's `sprint.md`, exactly as before.\n  Nothing below in this subsection changes that path.\n- **Opted in** (`design_docs_opt_in` is `True`) and the sizing decision is\n  **compact or substantial**: the output goes into the sprint's `design\u002F`\n  overlay instead of a `sprint.md` Architecture section (Mode 2a below).\n- **Opted in** and the sizing decision is **trivial**: no overlay is\n  created and no `sprint.md` Architecture section is written either — same\n  \"N\u002FA — trivial\" skip as the not-opted-in path (Open Question 4's\n  resolution: trivial-sprint behavior is unchanged by opt-in). Do not call\n  `seed_sprint_design_overlay` for a trivial sprint.\n\nThe tiering decision itself — and everything in Steps 1-7 below about\n*how* to reason about the content — is identical regardless of where the\noutput lands. Opt-in changes the output's destination, not the sizing\nlogic or the seven-step process that produces it.\n\nMake an explicit sizing decision first, using three tiers, not two:\n\n- **Trivial \u002F small** — a bug fix, config tweak, or change confined to\n  one module with no new component or data-model impact: minimal or\n  omitted Architecture section (may read \"N\u002FA — trivial\").\n- **Compact** — one new or changed module\u002Fcomponent, with *no* new\n  cross-module dependency, *no* dependency-direction change, and *no*\n  data-model change: full section structure (What Changed, Why, Impact,\n  Migration Concerns) but no diagrams (see Step 4) and prose sized to\n  describing one module — typically 300-500 words as a consequence of\n  scope, not a target. This tier exists because \"adds one module\" is not\n  the same problem as \"introduces a subsystem,\" and treating it as such\n  is what produces bloated plans for small projects.\n- **Substantial \u002F structural** — 3+ modules touched, a new\u002Fchanged\n  cross-module dependency, a dependency-direction change, or a data-model\n  change: the full write-up below, diagrams included.\n\nJudge the tier by concrete signals (module count, dependency changes,\ndata-model changes), not by guessing a word count first and writing to\nit — a heuristic that misjudges a genuinely complex sprint as compact is\nworse than one that occasionally treats a simple sprint as substantial.\nWhen borderline, prefer the heavier tier and say why in the sizing\nsentence.\n\nAt authoring time the section (or, under opt-in, the overlay copy) is a\nstructural plan. Not-opted-in behavior: after the sprint closes it\naccumulates as a historical record (an ADR at sprint granularity,\nembedded in that sprint's `sprint.md`). It is not merged back into the\ncanonical architecture docs — it stands on its own. See the\n`consolidate-architecture` skill for how these per-sprint sections are\nlater merged into a consolidated architecture document, if needed.\nOpted-in behavior is the opposite: the overlay is applied back onto the\ncanonical `docs\u002Fdesign\u002F` doc set at sprint close (see Mode 2a below and\nthe `close-sprint` skill) — the whole point of opting in is that the\ncontent *does* merge back, instead of standing alone.\n\nGiven the sprint plan and current architecture, write the content with:\nPlanned Changes, Rationale, Impact on Existing Components, Migration\nConcerns. Under opt-in this becomes the body of each edited overlay\ndocument rather than a `sprint.md` section — see Mode 2a.\n\n### Mode 2a: Authoring the sprint's `design\u002F` overlay (opt-in)\n\nWhen `design_docs_opt_in` is `True` and the sizing decision is compact or\nsubstantial, the sprint's architecture output is written into the\nsprint's `clasi\u002Fsprints\u002FNNN-slug\u002Fdesign\u002F` overlay directory instead of a\n`sprint.md` Architecture section. This is authored during Phase 2 detail\nplanning (see the `plan-sprint` skill for exactly where in that phase),\nafter the tiering decision above and after use cases are defined, same\nas Mode 2's timing rule.\n\n1. **Identify affected canonical docs.** Decide which of the persistent\n   `docs\u002Fdesign\u002F` docs this sprint's changes touch — the system-level\n   `design.md`, one or more subsystem `DESIGN.md` files (co-located in\n   each subsystem's own source directory), or both. This is a judgment\n   call over the sprint's planned changes, the same \"one sentence, no\n   'and'\" cohesion reasoning Step 2 below already asks for, applied to\n   *which existing docs* rather than *which new modules*. For example, a\n   sprint might touch `design.md` (system-level context changed) and\n   `src\u002Fclasi\u002Ftools\u002FDESIGN.md` (one subsystem's contract changed) —\n   name both.\n\n   **Relocation is not a content change.** This judgment call is only\n   for sprints making *content-only* changes to a doc at its existing,\n   stable location. A sprint that *moves* a doc — renaming it, or\n   changing which directory it lives in (this sprint's own move from\n   flat `docs\u002Fdesign\u002F\u003Cslug>.md` files to co-located `\u003Csubsystem>\u002F\n   DESIGN.md` is the worked example, see this sprint's Design\n   Rationale) — should not run that move through the overlay lifecycle\n   at all. A relocation is a direct, ticket-scoped file operation\n   (`git mv` plus updating whatever code\u002Fprose points at the old path),\n   done once, in a ticket, not something `seed_sprint_design_overlay`\n   \u002F`generate_diffs`\u002F`apply` are built to represent: the overlay\n   lifecycle diffs *content* against a pristine baseline at a fixed\n   path, not a path change.\n\n2. **Seed the overlay — every affected doc, one call.** Call\n   `seed_sprint_design_overlay(sprint_id, doc_names)` **exactly once**,\n   passing *every* canonical doc identified in step 1 in a single\n   `doc_names` list — never one call per doc, and never only the first\n   doc found. `doc_names` accepts two forms per entry: a bare filename\n   with no path separator (e.g. `\"design.md\"`), resolved relative to\n   `docs\u002Fdesign\u002F` — the system doc; or a path containing a separator\n   (e.g. `\"src\u002Fclasi\u002Ftools\u002FDESIGN.md\"`), resolved relative to the repo\n   root with no `..\u002F..\u002F` escape — a subsystem's co-located canonical\n   doc. A bare `\"DESIGN.md\"` with no separator does **not** reach a\n   subsystem's doc (it resolves to `docs\u002Fdesign\u002FDESIGN.md` instead) —\n   always give the co-located path when the sprint touches a subsystem\n   doc, e.g. `[\"design.md\", \"src\u002Fclasi\u002Ftools\u002FDESIGN.md\",\n   \"src\u002Fclasi\u002Fdesign\u002FDESIGN.md\"]` to seed the system doc plus two\n   subsystem docs in one call. Since every co-located subsystem doc\n   shares the bare basename `DESIGN.md`, the tool derives a unique\n   overlay slug per doc from its path relative to its enclosing source\n   root (see `_derive_overlay_slug` in `clasi.tools.artifact_tools`) so\n   multiple `DESIGN.md` files seeded in the same call land under\n   distinct filenames in the flat `design\u002F` overlay directory rather\n   than colliding; the seed step records each seeded file's full\n   canonical source path in the overlay directory's `_sources.json`\n   manifest, keyed by that slug, so `apply` can resolve it back to the\n   right subsystem later. This copies each named canonical doc verbatim\n   into `clasi\u002Fsprints\u002FNNN-slug\u002Fdesign\u002F` and commits the pristine copies\n   immediately, before any edits — do not skip this step or edit a file\n   that hasn't been seeded first; the diff-generation step below depends\n   on a committed pristine baseline existing. This call is a no-op if\n   `doc_names` is empty or opt-in is off, so skipping it entirely is\n   exactly how a trivial sprint (see above) avoids creating an overlay.\n\n3. **Edit the seeded copies in place.** Open each file under the sprint's\n   `design\u002F` directory and write a complete, updated copy of that\n   document reflecting the sprint's planned changes — not a diff, not a\n   patch, a full document, the same way the pristine copy itself is a\n   full document. Reuse the seven-step process below (Understand the\n   Problem through Flag Open Questions) to decide what the updated\n   content should say; only the destination differs from Mode 2.\n\n4. **Generate diffs.** Once edits are complete, run the diff-generation\n   step of `clasi.design.overlay` (`generate_diffs`) to produce a\n   `\u003Cname>.diff.md` sibling for each edited file. These diff files are\n   what `architecture-review` reads (see that skill) — they are agent-\n   reviewer input, not something the stakeholder is expected to read\n   directly (the stakeholder reviews via `git diff` in VS Code instead,\n   per the sprint 021 issue's framing).\n\n5. **Validate before handoff.** Run `clasi design validate` (or the\n   `validate_design` MCP tool) with `overlay_dir` pointed at the sprint's\n   `design\u002F` directory before handing off to `architecture-review`. Fix\n   any reported failure (unresolved frontmatter reference, stale or\n   missing `.diff.md`) and re-validate — do not hand off a failing\n   overlay.\n\n**What this changes and does not change**: the sizing tiers, the\nseven-step authoring process, and the section content (Planned Changes,\nRationale, Impact, Migration Concerns) are identical to Mode 2 — only the\nfile(s) the content is written into differ (full document per affected\ncanonical doc, under `design\u002F`, instead of one `sprint.md` section).\n\n### Revising in place\n\nWhen an exception loop triggers an architecture revision under the\nnot-opted-in path, revise the Architecture section of `sprint.md` **in\nplace** — edit the section\ndirectly rather than creating a separate revision file. Add a brief\n`## Revision` note (or update the section's Design Rationale) describing\nwhat changed and why, so the revision is visible without relying on file\nhistory.\n\nThis supersedes the older convention (used by sprints planned before\nsprint 018's single-doc rewrite) of writing separate\n`architecture-update-r1.md`, `-r2.md`, etc. files that preserved the\noriginal `architecture-update.md` untouched. Sprints planned under the\nold three-document model may still have those files on disk as a\nhistorical record — that is expected for sprints 001-017 and is not a\ndefect. New sprints revise the `sprint.md` Architecture section in place.\n\nUnder opt-in (Mode 2a), the equivalent \"in place\" revision target is the\nalready-edited overlay copy under `clasi\u002Fsprints\u002FNNN-slug\u002Fdesign\u002F`, not\n`sprint.md` — edit the overlay file directly and re-run diff generation\n(`generate_diffs`) so its `.diff.md` sibling reflects the revision;\n`architecture-review` re-reads the regenerated diff. Do not create a\nsecond overlay file for the revision.\n\nThe team-lead and sprint-planner both reference this convention. The full\nrule lives here; the sprint-planner agent carries only a brief\ncross-reference.\n\n## Steps\n\n### 1. Understand the Problem\nRead the overview, use cases, and (if updating) current architecture and\nsprint plan.\n\n### 2. Identify Responsibilities\nList distinct responsibilities the system handles. Group related ones.\nSeparate those that change independently.\n\n### 3. Define Subsystems and Modules\nMap responsibility groups to modules. For each:\n- **Purpose**: One sentence, no \"and\"\n- **Boundary**: What is inside and outside\n- **Use cases served**\n\n### 4. Produce Diagrams\nFor **Mode 1 (Initial Architecture)** or a **substantial\u002Fstructural**\nsprint update, include:\n1. **Component\u002FModule Diagram** — subsystems as boxes, labeled edges.\n   Required whenever 3+ modules are touched or a new cross-module\n   dependency is introduced. If a substantial-tier sprint touches many\n   existing modules for independent changes with no new composition\n   between them, a diagram may be omitted — but state in one sentence why\n   it wouldn't clarify anything (sprint 020 is a worked example: 9\n   largely independent bugfix issues, no new subsystem, diagram omitted\n   with a stated reason). Default to including it; the omission requires\n   an articulated reason, not silence.\n2. **Entity-Relationship Diagram** — entities, attributes, cardinality.\n   Only if the data model changes.\n3. **Dependency Graph** — module dependencies with labeled edges. Only if\n   module dependencies change.\n\nGuidelines: 5-12 nodes, label every edge, one concern per diagram.\n\nFor a **compact** sprint update (one new\u002Fchanged module, no new\ncross-module dependency, no data-model change), omit all diagrams. The\none-sentence purpose and boundary from Step 3 already say everything a\ndiagram would show for a single module.\n\n### 5. Complete the Document\nSections: Architecture Overview, Technology Stack, Module Design, Data\nModel, Dependency Graph, Security Considerations, Design Rationale, Open\nQuestions, Sprint Changes.\n\nStay at module\u002Fsubsystem level. No function signatures or column schemas.\n\n### 6. Document Design Rationale\nFor significant decisions: Decision, Context, Alternatives, Why this\nchoice, Consequences.\n\n### 7. Flag Open Questions\nList anything ambiguous or requiring stakeholder input.\n\n## Quality Checks\n\n- Every module addresses at least one use case\n- Every use case addressed by at least one module\n- Each module passes cohesion test (one sentence, no \"and\")\n- Dependency graph has no cycles\n- Fan-out no greater than 4-5 without justification\n- Mermaid diagrams included for Mode 1 and substantial-tier sprint\n  updates, unless omitted with a stated one-sentence reason; omitted by\n  rule (no justification needed) for compact-tier sprint updates\n- Document stays at module level\n- For a compact-tier sprint update: no diagrams present, and length is\n  proportionate to one module (roughly 300-500 words is typical, not a\n  hard limit) — if the section runs much longer than that, check whether\n  the sizing decision undercounted scope (a 3rd module, a new dependency,\n  a data-model change) rather than trimming prose to fit\n","# Architecture Authoring Skill\n\nThis skill guides writing architecture documents, whether an initial\narchitecture from scratch or a sprint update.\n\n## Two Modes\n\n### Mode 1: Initial Architecture\n\nDesign the system architecture from scratch when no architecture document\nexists yet.\n\nGiven `overview.md` and `usecases.md` in the project's configured\ndesign directory (`paths.design` in `.clasi\u002Fconfig.yaml`, default\n`docs\u002Fdesign\u002F`), produce the first architecture document following\nsteps 1-7 below.\n\nThis mode is superseded, for a project that has opted into the persistent\nper-subsystem design-doc set (`Project.design_docs_opt_in` is `True`), by\nthe `bootstrap-design` skill, which produces `docs\u002Fdesign\u002Fdesign.md` plus\na root-level `DESIGN.md` per declared source root plus one doc per\nsubsystem, instead of a single architecture document. Use Mode 1 only for\na project that has not opted in.\n\n### Mode 2: Sprint Architecture Update\n\nWrite the sprint's architecture output, sized to the change — or write\n\"N\u002FA — trivial\" when the change has no architectural impact. This output\nis authored after the effort decision is made and use cases are defined,\nand **before tickets exist** — tickets are derived from it, not the other\nway around. The guiding question throughout is: \"Is this description\nclear enough that tickets can be derived from it without ambiguity?\"\n\n**Where the output goes** depends on `Project.design_docs_opt_in`:\n\n- **Not opted in** (`design_docs_opt_in` is `None` or `False`): write the\n  Architecture section of the sprint's `sprint.md`, exactly as before.\n  Nothing below in this subsection changes that path.\n- **Opted in** (`design_docs_opt_in` is `True`) and the sizing decision is\n  **compact or substantial**: the output goes into the sprint's `design\u002F`\n  overlay instead of a `sprint.md` Architecture section (Mode 2a below).\n- **Opted in** and the sizing decision is **trivial**: no overlay is\n  created and no `sprint.md` Architecture section is written either — same\n  \"N\u002FA — trivial\" skip as the not-opted-in path (Open Question 4's\n  resolution: trivial-sprint behavior is unchanged by opt-in). Do not call\n  `seed_sprint_design_overlay` for a trivial sprint.\n\nThe tiering decision itself — and everything in Steps 1-7 below about\n*how* to reason about the content — is identical regardless of where the\noutput lands. Opt-in changes the output's destination, not the sizing\nlogic or the seven-step process that produces it.\n\nMake an explicit sizing decision first, using three tiers, not two:\n\n- **Trivial \u002F small** — a bug fix, config tweak, or change confined to\n  one module with no new component or data-model impact: minimal or\n  omitted Architecture section (may read \"N\u002FA — trivial\").\n- **Compact** — one new or changed module\u002Fcomponent, with *no* new\n  cross-module dependency, *no* dependency-direction change, and *no*\n  data-model change: full section structure (What Changed, Why, Impact,\n  Migration Concerns) but no diagrams (see Step 4) and prose sized to\n  describing one module — typically 300-500 words as a consequence of\n  scope, not a target. This tier exists because \"adds one module\" is not\n  the same problem as \"introduces a subsystem,\" and treating it as such\n  is what produces bloated plans for small projects.\n- **Substantial \u002F structural** — 3+ modules touched, a new\u002Fchanged\n  cross-module dependency, a dependency-direction change, or a data-model\n  change: the full write-up below, diagrams included.\n\nJudge the tier by concrete signals (module count, dependency changes,\ndata-model changes), not by guessing a word count first and writing to\nit — a heuristic that misjudges a genuinely complex sprint as compact is\nworse than one that occasionally treats a simple sprint as substantial.\nWhen borderline, prefer the heavier tier and say why in the sizing\nsentence.\n\nAt authoring time the section (or, under opt-in, the overlay copy) is a\nstructural plan. Not-opted-in behavior: after the sprint closes it\naccumulates as a historical record (an ADR at sprint granularity,\nembedded in that sprint's `sprint.md`). It is not merged back into the\ncanonical architecture docs — it stands on its own. See the\n`consolidate-architecture` skill for how these per-sprint sections are\nlater merged into a consolidated architecture document, if needed.\nOpted-in behavior is the opposite: the overlay is applied back onto the\ncanonical `docs\u002Fdesign\u002F` doc set at sprint close (see Mode 2a below and\nthe `close-sprint` skill) — the whole point of opting in is that the\ncontent *does* merge back, instead of standing alone.\n\nGiven the sprint plan and current architecture, write the content with:\nPlanned Changes, Rationale, Impact on Existing Components, Migration\nConcerns. Under opt-in this becomes the body of each edited overlay\ndocument rather than a `sprint.md` section — see Mode 2a.\n\n### Mode 2a: Authoring the sprint's `design\u002F` overlay (opt-in)\n\nWhen `design_docs_opt_in` is `True` and the sizing decision is compact or\nsubstantial, the sprint's architecture output is written into the\nsprint's `clasi\u002Fsprints\u002FNNN-slug\u002Fdesign\u002F` overlay directory instead of a\n`sprint.md` Architecture section. This is authored during Phase 2 detail\nplanning (see the `plan-sprint` skill for exactly where in that phase),\nafter the tiering decision above and after use cases are defined, same\nas Mode 2's timing rule.\n\n1. **Identify affected canonical docs.** Decide which of the persistent\n   `docs\u002Fdesign\u002F` docs this sprint's changes touch — the system-level\n   `design.md`, one or more subsystem `DESIGN.md` files (co-located in\n   each subsystem's own source directory), or both. This is a judgment\n   call over the sprint's planned changes, the same \"one sentence, no\n   'and'\" cohesion reasoning Step 2 below already asks for, applied to\n   *which existing docs* rather than *which new modules*. For example, a\n   sprint might touch `design.md` (system-level context changed) and\n   `src\u002Fclasi\u002Ftools\u002FDESIGN.md` (one subsystem's contract changed) —\n   name both.\n\n   **Relocation is not a content change.** This judgment call is only\n   for sprints making *content-only* changes to a doc at its existing,\n   stable location. A sprint that *moves* a doc — renaming it, or\n   changing which directory it lives in (this sprint's own move from\n   flat `docs\u002Fdesign\u002F\u003Cslug>.md` files to co-located `\u003Csubsystem>\u002F\n   DESIGN.md` is the worked example, see this sprint's Design\n   Rationale) — should not run that move through the overlay lifecycle\n   at all. A relocation is a direct, ticket-scoped file operation\n   (`git mv` plus updating whatever code\u002Fprose points at the old path),\n   done once, in a ticket, not something `seed_sprint_design_overlay`\n   \u002F`generate_diffs`\u002F`apply` are built to represent: the overlay\n   lifecycle diffs *content* against a pristine baseline at a fixed\n   path, not a path change.\n\n2. **Seed the overlay — every affected doc, one call.** Call\n   `seed_sprint_design_overlay(sprint_id, doc_names)` **exactly once**,\n   passing *every* canonical doc identified in step 1 in a single\n   `doc_names` list — never one call per doc, and never only the first\n   doc found. `doc_names` accepts two forms per entry: a bare filename\n   with no path separator (e.g. `\"design.md\"`), resolved relative to\n   `docs\u002Fdesign\u002F` — the system doc; or a path containing a separator\n   (e.g. `\"src\u002Fclasi\u002Ftools\u002FDESIGN.md\"`), resolved relative to the repo\n   root with no `..\u002F..\u002F` escape — a subsystem's co-located canonical\n   doc. A bare `\"DESIGN.md\"` with no separator does **not** reach a\n   subsystem's doc (it resolves to `docs\u002Fdesign\u002FDESIGN.md` instead) —\n   always give the co-located path when the sprint touches a subsystem\n   doc, e.g. `[\"design.md\", \"src\u002Fclasi\u002Ftools\u002FDESIGN.md\",\n   \"src\u002Fclasi\u002Fdesign\u002FDESIGN.md\"]` to seed the system doc plus two\n   subsystem docs in one call. Since every co-located subsystem doc\n   shares the bare basename `DESIGN.md`, the tool derives a unique\n   overlay slug per doc from its path relative to its enclosing source\n   root (see `_derive_overlay_slug` in `clasi.tools.artifact_tools`) so\n   multiple `DESIGN.md` files seeded in the same call land under\n   distinct filenames in the flat `design\u002F` overlay directory rather\n   than colliding; the seed step records each seeded file's full\n   canonical source path in the overlay directory's `_sources.json`\n   manifest, keyed by that slug, so `apply` can resolve it back to the\n   right subsystem later. This copies each named canonical doc verbatim\n   into `clasi\u002Fsprints\u002FNNN-slug\u002Fdesign\u002F` and commits the pristine copies\n   immediately, before any edits — do not skip this step or edit a file\n   that hasn't been seeded first; the diff-generation step below depends\n   on a committed pristine baseline existing. This call is a no-op if\n   `doc_names` is empty or opt-in is off, so skipping it entirely is\n   exactly how a trivial sprint (see above) avoids creating an overlay.\n\n3. **Edit the seeded copies in place.** Open each file under the sprint's\n   `design\u002F` directory and write a complete, updated copy of that\n   document reflecting the sprint's planned changes — not a diff, not a\n   patch, a full document, the same way the pristine copy itself is a\n   full document. Reuse the seven-step process below (Understand the\n   Problem through Flag Open Questions) to decide what the updated\n   content should say; only the destination differs from Mode 2.\n\n4. **Generate diffs.** Once edits are complete, run the diff-generation\n   step of `clasi.design.overlay` (`generate_diffs`) to produce a\n   `\u003Cname>.diff.md` sibling for each edited file. These diff files are\n   what `architecture-review` reads (see that skill) — they are agent-\n   reviewer input, not something the stakeholder is expected to read\n   directly (the stakeholder reviews via `git diff` in VS Code instead,\n   per the sprint 021 issue's framing).\n\n5. **Validate before handoff.** Run `clasi design validate` (or the\n   `validate_design` MCP tool) with `overlay_dir` pointed at the sprint's\n   `design\u002F` directory before handing off to `architecture-review`. Fix\n   any reported failure (unresolved frontmatter reference, stale or\n   missing `.diff.md`) and re-validate — do not hand off a failing\n   overlay.\n\n**What this changes and does not change**: the sizing tiers, the\nseven-step authoring process, and the section content (Planned Changes,\nRationale, Impact, Migration Concerns) are identical to Mode 2 — only the\nfile(s) the content is written into differ (full document per affected\ncanonical doc, under `design\u002F`, instead of one `sprint.md` section).\n\n### Revising in place\n\nWhen an exception loop triggers an architecture revision under the\nnot-opted-in path, revise the Architecture section of `sprint.md` **in\nplace** — edit the section\ndirectly rather than creating a separate revision file. Add a brief\n`## Revision` note (or update the section's Design Rationale) describing\nwhat changed and why, so the revision is visible without relying on file\nhistory.\n\nThis supersedes the older convention (used by sprints planned before\nsprint 018's single-doc rewrite) of writing separate\n`architecture-update-r1.md`, `-r2.md`, etc. files that preserved the\noriginal `architecture-update.md` untouched. Sprints planned under the\nold three-document model may still have those files on disk as a\nhistorical record — that is expected for sprints 001-017 and is not a\ndefect. New sprints revise the `sprint.md` Architecture section in place.\n\nUnder opt-in (Mode 2a), the equivalent \"in place\" revision target is the\nalready-edited overlay copy under `clasi\u002Fsprints\u002FNNN-slug\u002Fdesign\u002F`, not\n`sprint.md` — edit the overlay file directly and re-run diff generation\n(`generate_diffs`) so its `.diff.md` sibling reflects the revision;\n`architecture-review` re-reads the regenerated diff. Do not create a\nsecond overlay file for the revision.\n\nThe team-lead and sprint-planner both reference this convention. The full\nrule lives here; the sprint-planner agent carries only a brief\ncross-reference.\n\n## Steps\n\n### 1. Understand the Problem\nRead the overview, use cases, and (if updating) current architecture and\nsprint plan.\n\n### 2. Identify Responsibilities\nList distinct responsibilities the system handles. Group related ones.\nSeparate those that change independently.\n\n### 3. Define Subsystems and Modules\nMap responsibility groups to modules. For each:\n- **Purpose**: One sentence, no \"and\"\n- **Boundary**: What is inside and outside\n- **Use cases served**\n\n### 4. Produce Diagrams\nFor **Mode 1 (Initial Architecture)** or a **substantial\u002Fstructural**\nsprint update, include:\n1. **Component\u002FModule Diagram** — subsystems as boxes, labeled edges.\n   Required whenever 3+ modules are touched or a new cross-module\n   dependency is introduced. If a substantial-tier sprint touches many\n   existing modules for independent changes with no new composition\n   between them, a diagram may be omitted — but state in one sentence why\n   it wouldn't clarify anything (sprint 020 is a worked example: 9\n   largely independent bugfix issues, no new subsystem, diagram omitted\n   with a stated reason). Default to including it; the omission requires\n   an articulated reason, not silence.\n2. **Entity-Relationship Diagram** — entities, attributes, cardinality.\n   Only if the data model changes.\n3. **Dependency Graph** — module dependencies with labeled edges. Only if\n   module dependencies change.\n\nGuidelines: 5-12 nodes, label every edge, one concern per diagram.\n\nFor a **compact** sprint update (one new\u002Fchanged module, no new\ncross-module dependency, no data-model change), omit all diagrams. The\none-sentence purpose and boundary from Step 3 already say everything a\ndiagram would show for a single module.\n\n### 5. Complete the Document\nSections: Architecture Overview, Technology Stack, Module Design, Data\nModel, Dependency Graph, Security Considerations, Design Rationale, Open\nQuestions, Sprint Changes.\n\nStay at module\u002Fsubsystem level. No function signatures or column schemas.\n\n### 6. Document Design Rationale\nFor significant decisions: Decision, Context, Alternatives, Why this\nchoice, Consequences.\n\n### 7. Flag Open Questions\nList anything ambiguous or requiring stakeholder input.\n\n## Quality Checks\n\n- Every module addresses at least one use case\n- Every use case addressed by at least one module\n- Each module passes cohesion test (one sentence, no \"and\")\n- Dependency graph has no cycles\n- Fan-out no greater than 4-5 without justification\n- Mermaid diagrams included for Mode 1 and substantial-tier sprint\n  updates, unless omitted with a stated one-sentence reason; omitted by\n  rule (no justification needed) for compact-tier sprint updates\n- Document stays at module level\n- For a compact-tier sprint update: no diagrams present, and length is\n  proportionate to one module (roughly 300-500 words is typical, not a\n  hard limit) — if the section runs much longer than that, check whether\n  the sizing decision undercounted scope (a 3rd module, a new dependency,\n  a data-model change) rather than trimming prose to fit\n",{"name":5,"description":7},"main","24934a6d75061fc150189e702e20e6b4091b1f9b",".agents\u002Fskills\u002Farchitecture-authoring","https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy","https:\u002F\u002Fgithub.com\u002FLeague-Robotics","Robotics projects","2026-09-25 08:28:58",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add League-Robotics\u002Fmbdeploy --skill architecture-authoring",{"tool":37,"command":38},"bunx","bunx skills add League-Robotics\u002Fmbdeploy --skill architecture-authoring",{"tool":40,"command":41},"pnpm","pnpm dlx skills add League-Robotics\u002Fmbdeploy --skill architecture-authoring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Farchitecture-authoring\u002FSKILL.md",true,[],[46,52,58,64,70,76],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M77MYDJNB6EF788KHCJ1B67N","tdd-cycle","https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftdd-cycle\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M77MYADTSFAFZNFJH7BMBDV7","systematic-debugging","https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M77MY9J4K70XJDSDE03XPQEF","sprint-roadmap","https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsprint-roadmap\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M77MY8Q0GWKGEMJHCAAPY9JQ","sprint-review","https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsprint-review\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M77MY6CT2ER58ATYSJ3EP6MK","self-reflect","https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fself-reflect\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M77MY5372W2MA0JDE2TB2AXH","se","https:\u002F\u002Fgithub.com\u002FLeague-Robotics\u002Fmbdeploy\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fse\u002FSKILL.md",[],[]]