/project-toolkit:sync spec-tier-or-emptyfrom project-toolkit
Scans REQ, DESIGN, and TASK specs for references to code that no longer exists, reporting drift for triage. Run after hand-edits that moved or deleted code.
Ships in project-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Migrated from the sync command under ADR-064, which makes skills the single user-invocable surface. The command file is gone, so its path is named here in plain text rather than as a citation to something a reader could open.
The forward path (/spec -> /plan -> /build) turns intent into code. There is no clean reverse path. When you hand-edit code (refactor, hotfix, taste change), the spec drifts silently and the staleness surfaces only at /review time, late and often misattributed as "the spec was wrong" instead of "the spec needs updating". /sync closes that loop: it finds the drift while you still remember why you made the change.
This command detects Spec->Code drift and reports it. It does NOT auto-rewrite specs. Detection runs; patch proposal is a follow-up (see Step 3).
| Phrase | Action |
|---|---|
/sync | Scan all spec tiers for stale code references |
/sync .project-toolkit/specs/design | Scan one spec tier |
detect spec drift | Run the detector and report drift |
Sync: the problem statement from the conversation (under Copilot CLI the skill tool takes no argument vector, so state it in your message)
If $ARGUMENTS names a spec tier, scan that tier only by passing it to
--target. Otherwise scan all three tiers.
Run the drift detector against the specification tier:
python3 scripts/sync/detect_spec_drift.py --output-format human
The detector scans .project-toolkit/specs/requirements, .project-toolkit/specs/design, and .project-toolkit/specs/tasks for backticked references to code and artifact paths rooted at any of its known trees (the scripts, build, skills, commands, templates, tests and source roots; the authoritative list is the detector's own). Each reference is resolved against the working tree. A reference to a path absent on disk is drift: the spec points at code that moved or was deleted.
To scan one tier only, pass --target:
python3 scripts/sync/detect_spec_drift.py --target .project-toolkit/specs/design --output-format human
Exit codes (per ADR-035): 0 no drift, 1 drift found, 2 configuration error. Unsafe --target values (absolute paths, .., or symlink escapes) return exit 2. Unsafe spec references are reported as drift instead of probing outside the repo.
For each DRIFT line the detector reports (spec_file:line -> path absent on disk), decide which case applies:
<!-- sync-drift-ignore --> so the detector skips it..., an absolute path, or a symlink escape. Treat it as drift and update the spec to a repo-contained path.Do not auto-apply edits. Confirm each case with the author of the change before touching the spec.
Patch proposal via the spec-generator agent is tracked as a follow-up. When wired, /sync will hand the drift findings to the spec-generator agent (Claude Code: Task; Copilot CLI: task; Codex: spawn_agent; Muse Code: subagent_spawn) to draft REQ/DESIGN/TASK edits and write a sync-log record, in a directory alongside the spec tiers, carrying the commit range it covered. Until then, apply the triage from Step 2 by hand and record the rationale in the PR description.
/sync after a hand-edit. Real-time drift detection during /build is a PostToolUse hook concern, out of scope here.No em dashes or en dashes in anything this skill writes. Use commas, periods, colons, parentheses, hyphens, or restructure.
VERDICT line (PASS or DRIFT) and per-finding spec_file:line -> path list.A gate is any check whose failure would falsify your conclusion. Only a current result on the exact state and scope clears it. Failure, timeout, stale run, skip, or subset leaves the claim unproved. Say what ran and what returned. If blocked, name who can clear it.
0 only when no drift exists.1 when stale references exist.2 for unsafe targets, unreadable specs, or missing custom targets.| Avoid | Why | Instead |
|---|---|---|
| Treating unreadable specs as clean | Hides drift behind an I/O failure | Fail closed with exit 2 |
| Scanning absolute or parent targets | Walks outside the repository | Reject unsafe targets |
| Auto-rewriting specs | Changes source of truth without review | Report drift and require author triage |
spec-generator.scripts/sync/detect_spec_drift.py.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
spec-drift, spec-sync, code-reference-check, drift-detection
Generated from the plugin's indexed repository (rjmurillo/ai-agents) — no native marketplace selected
npx claudepluginhub p/rjmurillo-copilot-cli-agents-src-copilot-cli104 skills in this plugin
/adr-generatorCreate comprehensive Architectural Decision Records (ADRs). Researches the destination directory to detect existing template conventions, gathers context, determines next ADR number, generates the ADR, validates completeness, and saves. Supports multiple ADR formats (MADR, Nygard, Alexandrian, project canonical). Use when documenting technical decisions, creating new ADR files, or capturing rationale so future readers can revisit a choice. Use when you say "write an ADR", "document this decision", "document these design choices", "record why we chose this", "capture the rationale", or "for future maintainers", or when creating an ADR-like markdown file under docs/decisions/, docs/adr/, docs/architecture/, architecture/decisions/, or .project-toolkit/architecture/. Do NOT use to debate or review an existing ADR (use adr-review)./adr-reviewMulti-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is created/edited/deleted, or when reviewing, accepting, or updating a decision file under .project-toolkit/architecture/, docs/architecture/, docs/decisions/, docs/adr/, or architecture/decisions/, including intent like "review this decision record" or "check this rationale for future maintainers". Do NOT use to author a new ADR (use adr-generator).Other plugins' skills for the same job