intent-drift
/intent-drift
Detects intent drift in AI-assisted development by comparing the original goal against the current plan and execution context. Run /intent-drift to evaluate whether ongoing work has drifted from what was asked. Triggers on "check intent drift", "are we still on track", "is this aligned with the goal", "did the plan drift", "intent alignment", "scope creep check", "am I off track".
- Author
- shauryagangrade ↗
- Repository
- intent-drift-skill ↗
- Licence
- Apache-2.0
- Last repository change
- 21.10.2026
Assessment and security
- Files in this package
- 40
- Scripts
- 23
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 23 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: __init__.py, analyzer.py, config.py, examples/auto_context.py, examples/basic.py, exporters/__init__.py, history.py, install.sh
What it does and when to use it
Detects intent drift in AI-assisted development by comparing the original goal against the current plan and execution context. Run /intent-drift to evaluate whether ongoing work has drifted from what was asked. Triggers on "check intent drift", "are we still on track", "is this aligned with the goal", "did the plan drift", "intent alignment", "scope creep check", "am I off track".
Triggers from the description
Original author description
Detects intent drift in AI-assisted development by comparing the original goal against the current plan and execution context. Run /intent-drift to evaluate whether ongoing work has drifted from what was asked. Triggers on "check intent drift", "are we still on track", "is this aligned with the goal", "did the plan drift", "intent alignment", "scope creep check", "am I off track".
How it works
- Run (when invoked)
- How it works
- Rules
- Files
SKILL.md preview
---
name: intent-drift
description: Detects intent drift in AI-assisted development by comparing the original goal against the current plan and execution context. Run /intent-drift to evaluate whether ongoing work has drifted from what was asked. Triggers on "check intent drift", "are we still on track", "is this aligned with the goal", "did the plan drift", "intent alignment", "scope creep check", "am I off track".
---
# intent-drift
A skill that uses the Intent Alignment Engine to detect whether an AI coding agent's
current work has drifted from the user's original goal.
## Run (when invoked)
**0. Gather inputs** (ask only what you cannot infer from the repo):
- `--original-goal` (required): the user's stated objective, or infer from the
conversation / issue / PR description if available.
- `--current-plan` (required): what is actually being built right now (steps, branch
purpose, recent edits), or infer from git state + recent messages.
- `--context` / `--auto-context`: execution evidence (edited files, git diff, recent
commands). With `--auto-context`, collect automatically (see `scripts/collect_context.py`).
Auto-context is **repo-only by default**: git diff, commits, edited files, and file
changes. Your **shell history is never read** unless you pass `--include-shell-history`.
That opt-in is deliberate — `.bash_history` / `.zsh_history` can contain credentials
typed into a shell and commands unrelated to the current repo, so it stays off unless
explicitly requested. Auto-collected context is also **scrubbed by default**: secret-like
content (tokens, `password=`/`api_key=` assignments, `Authorization:` headers, long
base64 blobs) is masked before it reaches the analyzer and report exporters. To disable
the scrub (not recommended), construct `ContextCollector(sanitize_secrets=False)`.
- `--format` (`text` | `markdown` | `json`): output format.
- `--threshold` (default 75): minimum alignment % to be considered "on track".
Do NOT ask if enough is inferable from the repo + conversation — infer and state your
assumptions.
**1. Build the context** and call the analyzer:
```bash
python3 ~/.claude/skills/intent-drift/analyzer.py \
--original-goal "Reduce memory usage" \
--current-plan "Optimize startup latency" \
--context "Edited: main.py, startup.py. Recent: pip install numpy, cProfile main.py" \
--format text
```
Or in Python:
```python
sys.path.insert(0, str(Path.home() / ".claude" / "skills" / "intent-drift"))
from analyzer import IntentDriftAnalyzer
a = IntentDriftAnalyzer()
rep = a.analyze(a.parse_arguments([
"--original-goal", "Reduce memory usage",
"--current-plan", "Optimize startup latency",
]))
print(a.export_report(rep, "text"))
```
**2. Report** to the user:
- Overall alignment %, status (Fully_Aligned → Critical_Drift), and confidence %.
- The recommendation verbatim.
- The 2–3 strongest evidence lines (✅ / ⚠ / ❌) with their source provider.
- If alignment < threshold: highlight the drifted dimension from the breakdown.
**3. If drift is detected**, surface it clearly and suggest pausing to confirm intent
before continuing — do not silently keep building the off-track plan.
## How it works
Nine evidence providers each inspect the same context and emit weighted `Evidence`
(value 0–100, confidence 0–1). The engine computes a weighted score, a consistency-based
confidence, a status band, and a recommendation. Providers live in `providers/`,
exporters in `exporters/`, and auto context collection in `scripts/collect_context.py`.
| Provider | Weight | What it checks |
|----------|--------|----------------|
| goal_provider | 0.25 | Semantic overlap between goal and plan |
| constraint_provider | 0.20 | Constraints satisfied / violated |
| scope_provider | 0.15 | Scope expansion or reduction |
| execution_provider | 0.15 | Commands / edits / reasoning vs goal |
| file_graph_provider | 0.10 | File relationships and patterns |
| dependency_provider | 0.10 | Dependency install/remove vs goal |
| architecture_provider | 0.10 | Architectural change patterns |
| requirement_coverage_provider | 0.08 | Success criteria coverage |
| problematic_findings_provider | 0.07 | Cross-provider problematic patterns |
## Rules
- State assumptions when inferring goal/plan from the repo; never fabricate intent.
- Below-threshold results are a call to confirm, not a reason to abandon good work.
- Prefer `--auto-context` so evidence reflects real repo state, not just prose.
- This skill is a maintainer tool, not a replacement: it pauses and asks for
confirmation — it never acts autonomously or re-plans the work itself.
## Files
| File | Purpose |
|------|---------|
| `analyzer.py` | CLI + `IntentDriftAnalyzer` (parse → analyze → export) |
| `providers/` | 9 evidence providers + `base.py` |
| `exporters/` | text / markdown / json report exporters |
| `scripts/collect_context.py` | Repo-only context collection (git diff, commits, edited files, file changes) with default-on secret scrubbing; shell history is opt-in via `--include-shell-history` |
| `config/defaults.yaml` | Thresholds, weights, enabled providers |
| `metadata.json` | Importable skill metadata (params, deps) |
Files in this package (40)
- .gitignore 1 KB
- .gitleaks.toml 1 KB
- .npmignore 1 KB
- CHANGELOG.md 7 KB
- CODE_OF_CONDUCT.md 3 KB
- CONTRIBUTING.md 5 KB
- FUNDING.yml 1 KB
- LICENSE 11 KB
- README.md 9 KB
- ROADMAP.md 4 KB
- SECURITY.md 1 KB
- SKILL.md 5 KB
- __init__.py 1 KB
- analyzer.py 18 KB
- config.py 9 KB
- history.py 7 KB
- install.sh 2 KB
- metadata.json 2 KB
- package.json 1 KB
- pyproject.toml 3 KB
- requirements.txt 1 KB
- setup.py 1 KB
- config/defaults.yaml 2 KB
- examples/auto_context.py 1 KB
- examples/basic.py 1 KB
- exporters/__init__.py 6 KB
- providers/__init__.py 1 KB
- providers/architecture_provider.py 4 KB
- providers/base.py 1 KB
- providers/constraint_provider.py 4 KB
- providers/dependency_provider.py 5 KB
- providers/execution_provider.py 7 KB
- providers/file_graph_provider.py 3 KB
- providers/goal_provider.py 3 KB
- providers/problematic_findings_provider.py 4 KB
- providers/requirement_coverage_provider.py 4 KB
- providers/scope_provider.py 6 KB
- scripts/__init__.py 1 KB
- scripts/collect_context.py 13 KB
- scripts/weekly_summary.py 3 KB
Versions
The database has no other skills named intent-drift.
Database snapshot: 13.11.2026 · package version 2e186bdac371 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100spec-analyze
Check consistency and alignment between spec.md, plan.md, and project/TASKS.md — detect drift and mismatches. Use when: analyze spec, consistency check, alignment, drift, spec vs plan, are specs aligned, spec mismatch. - 100refocus
Use when a branch may have drifted from its ticket or pull-request goal and needs its work and gaps reclassified. - 90plan
Step 1 of the SDLC. Turn a GitHub "Idea" issue into an intent file (intent/<issue#>-<slug>.md) via a PR, or sync an existing intent file when its issue has changed. Use when given an issue number to plan, or asked to check whether an issue and its intent file have drifted. - 96skill-intent-contract
Use when starting a complex or ambiguous task that risks scope drift - 100echo-intent
Start or refine a work item's intent.md, the Plan-stage artifact. Use when beginning a new echo work item from a ticket and a short goal. - 100scope-check
Analyzes a feature or sprint for scope creep by comparing current scope against the original plan, flagging additions and recommending cuts. Use when a sprint feels bloated or when the user mentions scope creep, scope check, or feature bloat.