dr-init-id-collision-window

Official

Prevent task ID collisions and fix artifacts.

AuthorArcanada-one
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

đź’» Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dr-init-id-collision-window
Download link: https://github.com/Arcanada-one/datarim/archive/main.zip#dr-init-id-collision-window

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.