/groundwork:split-architecturefrom groundwork
Converts a single-file architecture document into a directory-based format for better organization and targeted context loading when the file exceeds 500 lines or 10 decision records.
Ships in groundwork. 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.
None: SKILL.md is the whole skill.
Converts a single-file architecture document ({{specs_dir}}/architecture.md) into a directory-based format ({{specs_dir}}/architecture/) for better organization and targeted context loading.
design-architecture and source-architecture-from-code when the single-file architecture doc crosses 500 lines or 10 decision records (sections matching ### DR-\d+)/groundwork:split-architecture.groundwork.yml exist at the repo root?
{{project_name}} non-empty?
Skill(skill="groundwork:select-project") to select a project, then restart this skill.{{project_name}}, specs at {{specs_dir}}/.{{specs_dir}}/architecture.md must exist
{{specs_dir}}/architecture.md. Nothing to split." and stop.{{specs_dir}}/architecture/ must not already exist
{{specs_dir}}/architecture/. Nothing to do." and stop.^### DR-\d+). Compare with the thresholds below: if neither is crossed and the user did not ask for the split in this invocation, stop and report the counts — a split below threshold is churn, not upkeep.Parse the single-file architecture doc into sections and write each to its own file under {{specs_dir}}/architecture/.
{{specs_dir}}/architecture/
├── _index.md # Header, metadata
├── 01-executive-summary.md # Section 1: Executive Summary
├── 02-architectural-drivers.md # Section 2: Architectural Drivers
├── 03-system-overview.md # Section 3: System Overview
├── 04-components/ # Section 4: One file per component
│ ├── _index.md # Section 4 header ("## 4) Component Details")
│ └── <component-slug>.md # e.g., cli.md, query-router.md
├── 05-data.md # Section 5: Data Architecture
├── 06-integration.md # Section 6: Integration Architecture
├── 07-security.md # Section 7: Security Architecture
├── 08-infrastructure.md # Section 8: Infrastructure & Deployment
├── 09-observability.md # Section 9: Observability
├── 10-cost-model.md # Section 10: Cost Model
├── 11-decisions/ # Section 11: One file per DR
│ ├── _index.md # Section 11 header ("## 11) Decision Records")
│ └── DR-NNN.md # e.g., DR-001.md, DR-015.md
├── 12-open-questions.md # Section 12: Open Questions & Risks
└── 13-appendices.md # Section 13: Appendices
_index.md — Everything from the start of the file up to (but not including) ## 1). This includes the header block (Version, Last updated, Status, Owner).
01-executive-summary.md — From ## 1) up to (but not including) ## 2).
02-architectural-drivers.md — From ## 2) up to (but not including) ## 3).
03-system-overview.md — From ## 3) up to (but not including) ## 4).
04-components/_index.md — The ## 4) heading line and any text before the first ### 4. subsection. Typically just:
## 4) Component Details
04-components/<component-slug>.md — One file per ### 4.N subsection. The filename is a slug of the component name:
### 4.1 CLI → cli.md### 4.2 Query Router → query-router.md### 4.15 MCP Server → mcp-server.md### 4.N ... heading in the file05-data.md — From ## 5) up to (but not including) ## 6).
06-integration.md — From ## 6) up to (but not including) ## 7).
07-security.md — From ## 7) up to (but not including) ## 8).
08-infrastructure.md — From ## 8) up to (but not including) ## 9).
09-observability.md — From ## 9) up to (but not including) ## 10).
10-cost-model.md — From ## 10) up to (but not including) ## 11).
11-decisions/_index.md — The ## 11) heading line and any text before the first ### DR- subsection.
11-decisions/DR-NNN.md — One file per ### DR-NNN subsection. The filename matches the DR number:
### DR-001: Project Structure → DR-001.md### DR-015: Call Graph Data Model [V3] → DR-015.md### DR-NNN: ... heading in the file12-open-questions.md — From ## 12) up to (but not including) ## 13).
13-appendices.md — From ## 13) to the end of the file.
NN-slug.md files.---) as they appear in the source.After all directory files are written and verified:
_index.md, at least one component file, and at least one DR file to confirm they look correct.{{specs_dir}}/architecture.md using rm.Split architecture.md into directory format:
{{specs_dir}}/architecture/
├── _index.md
├── 01-executive-summary.md
├── 02-architectural-drivers.md
├── 03-system-overview.md
├── 04-components/ (N component files)
├── 05-data.md
├── ...
├── 11-decisions/ (N decision records)
├── 12-open-questions.md
└── 13-appendices.md
The single file has been removed. All skills (design-architecture, source-architecture-from-code, etc.) already support directory mode.
A caller that auto-triggers this skill after checking the thresholds itself has already verified that at least one is crossed (Step 1's count confirms it). A model reaching for this skill on its own is not such a caller: for it the count alone decides:
wc -l on {{specs_dir}}/architecture.md >= 500### DR-\d+ headings >= 10No user confirmation is needed — the split happens silently and the caller reports what happened.
When invoked manually by the user, skip threshold checks and split unconditionally.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (etr/groundwork) — no native marketplace selected
npx claudepluginhub p/etr-groundwork44 skills in this plugin
/build-unplannedBuild a feature from a description with worktree isolation and TDD. Optional flag - --on-unrelated-failure stop-and-ask|expand-and-fix|ignore-and-merge - how validation treats gate failures unrelated to the active project (default stop-and-ask)./check-specs-alignmentVerify alignment between code and specs./create-tasksGenerate implementation tasks from architecture document./debugUse when investigating bugs, unexpected behavior, test failures, or any code that does not work as expected - enforces systematic root cause analysis before any fix/design-architectureUse when the user asks to design system architecture, make architectural decisions, or translate PRD into technical design/design-it-twiceUse before committing to a non-trivial module, service boundary, or public API - generate 2-3 divergent interface designs, compare them on depth/locality/seam, and recommend oneOther plugins' skills for the same job