ensemble-refine-trdlisted
Install: claude install-skill FortiumPartners/ensemble
# Ensemble Command: /ensemble:refine-trd
This Codex skill mirrors the Ensemble slash command `/ensemble:refine-trd`.
Follow the workflow below, adapt to the current repository, and keep outputs structured.
<!-- DO NOT EDIT - Generated from refine-trd.yaml -->
<!-- To modify this file, edit the YAML source and run: npm run generate -->
Refine and enhance an existing Technical Requirements Document based on stakeholder
feedback, additional research, or identified gaps. Updates TRD while maintaining
version history, traceability, and Design Readiness scoring.
## Workflow
### Phase 1: TRD Review
**1. Current TRD Analysis**
Review existing TRD content and extract structural metadata
- Read the TRD file from the path provided in $ARGUMENTS
- Parse frontmatter for Document ID (TRD-YYYY-NNN), Version, PRD reference, Design Readiness Score
- Count total tasks (TRD-NNN pattern), total test tasks (TRD-NNN-TEST), total hours estimated
- Build dependency graph from [depends: TRD-NNN] annotations
- Check if Acceptance Criteria Traceability matrix exists
- Note current version number for bumping later
- PR format detection: scan TRD for '### PR ' followed by a digit within the '## Master Task List' section (from '## Master Task List' heading to the next '##' heading or EOF). If found: set PR_FORMAT=true and log 'TRD format: PR-stack'. Else: set PR_FORMAT=false and log 'TRD format: legacy phase/sprint'.
- If PR_FORMAT=true: count PR boundary sections; for e