split-specifications

Split a single-file PRD into a structured product_specs directory.

41|4|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/etr/groundwork --skill split-specifications
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: split-specifications
Source: https://github.com/etr/groundwork/tree/main/skills/split-specifications
Command: npx skills add https://github.com/etr/groundwork --skill split-specifications

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert a large single-file product specification into a structured directory format to improve readability, navigation, and context loading across teams.

Core Features & Use Cases

  • Detects the single-file PRD at specs_dir/product_specs.md and validates prerequisites.
  • Splits into a predefined directory structure with _index.md, 01-product-context.md, 02-non-functional.md, 03-features/<code>.md, 04-traceability.md, 05-open-questions.md.
  • Creates per-feature files from headings like "### 3.1" with codes; handles missing codes by slugging the feature name (e.g., "### 3.5 Signature Display" → "signature-display.md").
  • Supports automatic thresholds and manual invocation for splitting.
  • Provides post-split verification and optional cleanup steps.

Quick Start

Run the split-specifications skill on your single-file PRD to generate the product_specs directory and delete the original product_specs.md.

Frequently Asked Questions about split-specifications

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split a large PRD into multiple files for a monorepo?

This skill splits a large single-file PRD into a structured directory format to improve navigation and context loading. It automatically generates section-based files like feature contexts and traceability matrices for your monorepo.

What is the directory structure for organizing product specifications?

The directory structure for organizing product specifications includes an index, product context, non-functional requirements, individual feature files, traceability, and open questions. This structured format replaces the original single-file PRD for better readability.

When do I need to split a single-file product specification into a directory?

You need to split a single-file product specification into a directory when it exceeds size thresholds and impacts context loading across teams. This process is essential for monorepo setups or multi-project environments where organized, section-based navigation is required.

How does the tool handle missing feature codes when splitting a PRD?

When splitting a PRD, the tool handles missing feature codes by slugging the feature name directly from the heading. For example, a heading without a numeric code like 'Signature Display' is automatically converted into a 'signature-display.md' file.

Can I manually invoke splitting for a product specification that hasn't hit automatic thresholds?

Yes, you can manually invoke the splitting process for a product specification even if it has not hit automatic size thresholds. The skill supports both automatic detection and manual invocation to generate the structured directory and remove the original file.

Does splitting a PRD delete the original single-file specifications?

Splitting a PRD removes the original single-file specifications after successfully generating the structured directory. The skill implements post-split verification and optional cleanup steps to ensure the directory hierarchy is correctly established before deleting the source file.