trellis-extract-prd

Extracts a cohesive task PRD from source requirements documents with verbatim UI copy and source annotations.

Updated Jun 8, 2026
One-click install
npx skills add https://github.com/SilentFlower/flower-trellis --skill trellis-extract-prd-silentflower
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: trellis-extract-prd
Source: https://github.com/SilentFlower/flower-trellis/tree/main/.agents/skills/trellis-extract-prd
Command: npx skills add https://github.com/SilentFlower/flower-trellis --skill trellis-extract-prd-silentflower

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning a large requirements document into a focused, development-ready task PRD is error-prone: requirements get paraphrased, UI copy gets rewritten, scope boundaries blur, and traceability to the source is lost. This Skill extracts a single cohesive task PRD faithfully from the original document, preserving wording and annotating every requirement with its source location. ## Core Features & Use Cases - Faithful extraction: Quotes source requirements verbatim, preserves original numbering and structure, and annotates every requirement and acceptance criterion with line numbers or section references. - Version-plan-aware scoping: Uses a version task/wave planning document to constrain task boundaries, follow the defined task creation order, and generate wave-ordered slugs like v141-w01-t01-<slug>. - Scatter tracking and deduplication: Searches the full document for related entities, classifies each finding as in-scope or out-of-scope, and keeps each clause in exactly one section. - Use Case: Given a v1.4.1 requirements document and a task/wave planning file, generate PRDs for all tasks in wave 1, each with TL;DR, scope, verbatim source text, requirement/AC indexes, and an updated task.json with wave and source metadata. ## Quick Start Ask the AI to extract a PRD for a specific requirement or Task ID from your requirements document under doc/, optionally pointing to the version task/wave planning file.

Frequently Asked Questions about trellis-extract-prd

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

FAQPage Schema
How do I extract a task PRD from a requirements document?▼

Provide the requirement ID or Task ID plus the path to the source document, and the Skill locates the relevant sections, extracts them verbatim, and writes a structured prd.md into the task directory. If a version planning file exists, the scope is constrained to that task candidate's boundaries.

How does version wave planning affect task PRD extraction?▼

When a task/wave planning document exists, the PRD scope must stay within the corresponding task candidate's defined range, and batch creation follows the documented task creation order. Slugs include wave and task sequence keys like w01-t01 so tasks sort consistently.

Can I batch-generate PRDs for all tasks in a version plan?▼

Yes, batch generation is supported, but it must follow the task creation order defined in the version planning document, keeping tasks of the same wave consecutive. If no order is defined, the Skill asks you to confirm one rather than guessing.

What happens if no version planning document exists?▼

The Skill falls back to extracting directly from the source requirements document while still enforcing task cohesion. It will not fabricate wave IDs or Task IDs, and wave fields are marked N/A in the PRD and task.json.

Why must UI copy be quoted verbatim in the PRD?▼

User-visible text such as button labels, toasts, and placeholders must be copied character-for-character so implementation matches the specification exactly. Rewriting or summarizing UI copy is explicitly listed as an anti-pattern.

What are the limitations of document-based PRD extraction?▼

The Skill cannot invent requirements: every statement must trace to the source document or a confirmed version plan. When requirements are vague or no document exists, a conversational discovery skill such as trellis-brainstorm is the recommended alternative.