What problem does it solve?
This Skill prevents two concurrent agent sessions from reserving the same TASK ID during the workspace TOCTOU window, which can later cause inconsistent artifact paths, duplicate archive entries, and broken references.
Core Features & Use Cases
- Collision detection across canonical task and archive sets: Probes tasks, backlog, active context, and documentation/archive subdirectories to determine whether an ID already exists outside the current session’s scope.
- Retroactive ID relabel with safe renaming: Performs batched sed updates across artifact bodies and audit logs, coordinates git renames, updates thin-index files, and restores file permissions for verification audit logs.
- Guided anti-pattern prevention: Avoids renaming mid-pipeline and avoids partial renames that would desynchronize filenames from frontmatter task_id keys.
Use case: Two parallel runs attempt to execute /dr-init and then commit via /dr-archive using the same TASK-PREFIX-NNNN; the loser renames its entire derived chain (PRD, plan, QA artifacts, reports, reflection, snapshots) so the archive and indexes stay consistent.
Quick Start
Run the Skill when /dr-init probe or /dr-archive collision detection indicates the candidate TASK-PREFIX-NNNN already exists, then execute the retroactive rename procedure to move the losing chain to the next free ID.