Design: Retroactive Issue Management
Context
📝 ADR-0009 decided to add project grouping and developer workflow conventions (branch naming, PR close keywords) to the /sdd:plan skill, with opt-out flags. It also decided to create two separate retroactive skills -- /sdd:organize and /sdd:enrich -- for applying these conventions to issues that already exist. SPEC-0007 covers the forward-looking additions to /sdd:plan; this spec (SPEC-0008) covers the retroactive skills exclusively. See 📝 ADR-0009 and SPEC-0007.
Goals / Non-Goals
Goals
- Enable retroactive project grouping for issues created by prior
/sdd:planruns - Enable retroactive branch naming and PR convention enrichment for existing issue bodies
- Share spec resolution and tracker detection logic with
/sdd:planfor consistency - Support dry-run previews so users can verify changes before applying them
- Be idempotent: safe to run multiple times without duplicating projects or sections
- Read
.claude-plugin-design.jsonfor saved preferences to minimize re-prompting
Non-Goals
- Re-creating issues (both skills operate on existing issues only)
- Modifying acceptance criteria or issue content beyond appending
### Branchand### PR Conventionsections - Supporting
--reviewmode (both are utility skills, not authoring skills) - Syncing issue state back to spec artifacts
- Creating issues for requirements that lack corresponding tracker issues (use
/sdd:planinstead) - Supporting trackerless environments (both skills require a live tracker connection)
Decisions
Separate skills over combined skill
Choice: Two separate skills (/sdd:organize and /sdd:enrich) rather than a single /sdd:workflow or a mode flag on /sdd:plan.
Rationale: Organize and enrich operate on different tracker primitives. Organize creates projects and manages membership (no issue content changes). Enrich modifies issue bodies (no project operations). Their allowed-tools overlap but their concerns do not. A user may want to organize without enriching, or vice versa. Separate skills follow the plugin's single-purpose skill convention (see 📝 ADR-0003).
Alternatives considered:
- Combined
/sdd:workflowskill with--organizeand--enrichflags: Violates single-purpose convention; forces a large allowed-tools union; confusing invocation surface - Flags on
/sdd:plan(--retroactive): Overloads planning with a fundamentally different operation (modifying existing issues vs. creating new ones)
Shared spec resolution and tracker detection
Choice: Reuse the same spec resolution (SPEC number or capability name) and tracker detection (.claude-plugin-design.json → ToolSearch + CLI probing) flows from /sdd:plan.
Rationale: Users already understand these patterns from /sdd:plan. Consistency reduces cognitive load and ensures .claude-plugin-design.json preferences work identically across all three skills. The duplication is in the SKILL.md instructions only -- there is no shared code to maintain.
Alternatives considered: