with one click
drift-check
// Pre-PR advisory check for deviations from the project spec. Read-only analysis.
// Pre-PR advisory check for deviations from the project spec. Read-only analysis.
| name | drift-check |
| description | Pre-PR advisory check for deviations from the project spec. Read-only analysis. |
Pre-PR deviation check against the project spec. Run this before /create-pr to verify alignment between implementation and documentation.
Reference: See
~/.claude/docs/prd-workflow/spec-driven-development.mdยง2โยง4 for the deviation threshold, workflow, and checkpoint cadence that this skill operationalizes.
Perform a lightweight, advisory review of the current branch's changes against the project's spec and living documents. This is a read-only check โ do not modify any files.
git log main..HEAD --oneline to see all commits on this branchgit diff main...HEAD --stat to see all files changeddocs/prd/ROADMAP.md โ if it exists, identify which phase or item this work relates todocs/prd/ files that cover the feature areaReview git diff main...HEAD for changes that cross the deviation threshold:
Flag if present:
For each flagged change, check whether the relevant spec or living document already describes it. If it does, no action needed. If it doesn't, this is a potential deviation.
docs/prd/CHANGELOG.md exists, check whether any deviations found in Step 3 have already been loggeddocs/prd/ROADMAP.md exists and this work corresponds to a checkbox item, check whether the checkbox is marked [x]gh-<N>) has closing keywords in any commit or is ready to be referenced in a PR descriptionPresent a concise report with these sections:
## Drift Check โ [branch name]
### Spec Reference
[Which PRD section or living document this work relates to, or "No spec found"]
### Deviation Signals
[List any changes that cross the threshold but aren't in the spec]
[Or: "No deviations detected"]
### Documentation Status
- CHANGELOG: [entry exists / entry needed / not applicable]
- ROADMAP: [checkbox marked / checkbox not marked / not applicable]
- Issue linking: [ready / needs attention]
### Recommended Actions
[Bulleted list of any actions needed before creating the PR]
[Or: "Clear to proceed with /create-pr"]
Detailed technical walkthrough covering architecture, test coverage, product tour, and key design decisions.
Generate a hands-on browser walkthrough of a PR's user-facing changes to exercise before review; --publish posts the final version to the PR for QA.
Quick 2-minute status update on current phase, completed work, blockers, and health check.
Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool.
Audit and update a project README, or bootstrap a new one. Detects tech stack, versions, and services.
Manage Todoist tasks, projects, labels, comments, and more via the td CLI