spec-drift-detection

Compare implemented changes against approved spec manifests to detect drift.

6|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/moberghr/mtk-agent-toolkit --skill spec-drift-detection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spec-drift-detection
Source: https://github.com/moberghr/mtk-agent-toolkit/tree/main/.claude/skills/spec-drift-detection
Command: npx skills add https://github.com/moberghr/mtk-agent-toolkit --skill spec-drift-detection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drift detection ensures that code changes align exactly with the approved spec, preventing scope creep and unreviewed modifications that could introduce gaps or unintended behavior.

Core Features & Use Cases

  • Compare touched files against the spec's change_manifest to verify alignment.
  • Validate public contracts, security implications, and declared scope against the actual diff.
  • Generate auditable drift reports suitable for compliance reviews and gate decisions.

Quick Start

Trigger a drift check against the current branch to compare the implementation with the latest spec manifest.

Frequently Asked Questions about spec-drift-detection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is spec-implementation drift and how do I detect it?

Spec-implementation drift occurs when code changes deviate from the approved specification. You detect this by comparing touched files, public contracts, and security considerations against the spec manifest to identify gaps and enforce scope.

How do I validate code changes against a spec manifest before review?

To validate changes against a spec manifest, trigger a drift check during the post-implementation or pre-review phase. This compares the actual diff against declared scope, change manifests, and success criteria to generate an auditable compliance report.

Does spec drift detection require a specific file structure to work?

Yes, drift detection requires an existing spec manifest located under the docs/specs directory. Without this approved spec manifest present in the repository, the tool cannot compare touched files or verify scope compliance.

Can I automate compliance reports for scope creep and unreviewed modifications?

You can automate compliance reporting by running drift detection on your current branch. It validates public contracts and security implications against the diff, producing auditable drift reports suitable for gate decisions.

What is the best way to prevent scope creep in software engineering projects?

The best way to prevent scope creep is enforcing drift detection during pre-review phases. Comparing the actual diff against the approved spec manifest ensures code changes align exactly with declared scope and success criteria.