/groundwork:split-specsfrom groundwork
Converts a single-file product spec into a directory-based format for better organization and targeted context loading. Automatically triggered when specs exceed 500 lines or 15 features.
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 product spec ({{specs_dir}}/product_specs.md) into a directory-based format ({{specs_dir}}/product_specs/) for better organization and targeted context loading.
design-product and source-product-specs-from-code when the single-file PRD crosses 500 lines or 15 features (feature sections matching ### \d+\.\d+)/groundwork:split-specs.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}}/product_specs.md must exist
{{specs_dir}}/product_specs.md. Nothing to split." and stop.{{specs_dir}}/product_specs/ must not already exist
{{specs_dir}}/product_specs/. Nothing to do." and stop.^### \d+\.\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 PRD into sections and write each to its own file under {{specs_dir}}/product_specs/.
{{specs_dir}}/product_specs/
├── _index.md # Header, metadata, and section 0 (EARS cheat sheet)
├── 01-product-context.md # Section 1: Product context
├── 02-non-functional.md # Section 2: Non-functional & cross-cutting requirements
├── 03-features/ # Section 3: One file per feature
│ ├── _index.md # Section 3 header ("## 3) Feature list (living backlog)")
│ └── <feature-code>.md # e.g., PRD-SRCH.md, PRD-AUTH.md
├── 04-traceability.md # Section 4: Traceability
└── 05-open-questions.md # Section 5: Open questions log
_index.md — Everything from the start of the file up to (but not including) ## 1). Include the YAML-style header block (Doc status, Last updated, Owner, Audience) and section 0 (EARS cheat sheet).
01-product-context.md — From ## 1) up to (but not including) ## 2).
02-non-functional.md — From ## 2) up to (but not including) ## 3).
03-features/_index.md — The ## 3) heading line and any text before the first ### 3. subsection. Typically just:
## 3) Feature list (living backlog)
03-features/<feature-code>.md — One file per ### 3.N subsection. The filename is derived from the feature's PRD code:
### 3.1 Text Search (PRD-SRCH) → PRD-SRCH.md### 3.5 Signature Display → signature-display.md### 3.N ... heading in the file04-traceability.md — From ## 4) up to (but not including) ## 5).
05-open-questions.md — From ## 5) to the end of the file, or up to ## 6) if present. If there is a ## 6) (e.g., "Out of scope"), include it in 05-open-questions.md as well.
---) as they appear in the source.After all directory files are written and verified:
_index.md and at least two feature files to confirm they look correct.{{specs_dir}}/product_specs.md using rm.Split product_specs.md into directory format:
{{specs_dir}}/product_specs/
├── _index.md
├── 01-product-context.md
├── 02-non-functional.md
├── 03-features/ (N feature files)
├── 04-traceability.md
└── 05-open-questions.md
The single file has been removed. All skills (design-product, source-product-specs-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}}/product_specs.md >= 500### \d+\.\d+ headings >= 15No 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
Three short reads, in order
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 fixOther plugins' skills for the same job