Skip to main content

Intent Drift

v1.0.0New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install github-copilot-intent-drift

What this does: Use when the user asks whether current work still matches the original request, or when an agent has made several edits and is about to continue. Compares the working-tree diff against the stated request and lists out-of-scope changes before more edits are made.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/github-copilot-intent-drift/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Intent Drift Check

Use this skill when the user asks "are we still on track?", "did we drift?",
"check intent drift", or when an agent has made several edits and is about to
continue.

This skill produces a concrete diff review, not a score. A passing test only
proves the tested behavior; it does not prove the rest of the diff matches the
request. It uses only git and the repository's existing acceptance command;
it does not install or run external scoring packages.

Procedure

  1. State the request and its acceptance check. Write the original request in
    one sentence. Then name the check that decides whether it is done. For "make
    the tests pass", that is the full test suite the request refers to, not only
    the first test that failed: a shared-helper change can need another edit to
    keep an already-passing test green. Include any security constraint the
    change must preserve (authorization, input validation, secret handling) in
    the check.

  2. Inspect all pending changes. Changes can be unstaged, staged, or in new
    files, and git diff alone shows none of the last two. Run:

    git status --short --untracked-files=all
    git diff --stat
    git diff
    git diff --cached --stat
    git diff --cached
    

    --untracked-files=all is required: plain git status --short collapses a
    new directory to ?? newdir/, and can omit untracked files entirely when
    status.showUntrackedFiles is disabled. Read every untracked file the
    command lists. Review all of these sources before judging anything; a
    staged-only or untracked change is still part of the work.

  3. Confirm a passing baseline, then split each hunk into logical changes.
    Run the acceptance check on the current tree. If it does not pass, the
    necessity test has no baseline and would mislabel unrelated breakage as
    required: report VERDICT: inconclusive, show what is failing, and pause
    before reverting anything.

    One hunk often mixes a required fix with unrelated edits, so a file-level or
    hunk-level verdict can hide drift or wrongly protect it. Separate each hunk
    into the smallest independently reviewable changes, then test each one:

    "Does the acceptance check fail without this change, or does the stated
    request or a required security/input-validation constraint require it?"

    • Required — yes, the check fails without it, or the change directly
      implements part of the stated request or a required security/input-validation
      constraint. If the current acceptance check does not cover that required
      control, keep it, add the missing coverage or flag it for human review, and
      do not revert it.
    • Out of scope — no, the check still passes without it and it does not
      implement part of the stated request or a required constraint.

    Do not treat a change as out of scope merely because it was not named in the
    prompt; compare it against the stated request, acceptance check, and required
    constraints. Docstrings, type coercion, cleanup, refactors, comment changes,
    and edits to functions the acceptance check never exercises are often out of
    scope, but only when they are not explicitly requested and not required by a
    security/input-validation constraint. If classification is ambiguous, ask
    before reverting. Only judge a whole hunk when it truly cannot be split.

  4. Report in this exact format:

    REQUEST: <one sentence>
    ACCEPTANCE: <test suite or behavior that decides done>
    REQUIRED: <files/functions and why the check fails without them>
    OUT OF SCOPE: <every out-of-scope change, marked "reverted" or "kept because ...">
    VERDICT: <on track | drifted (uncorrected) | drifted (corrected) | inconclusive>
    

    Use drifted (uncorrected) when drift exists and has not been dealt with
    yet, including when an out-of-scope change must be kept because it is
    user-authored. Use drifted (corrected) only after step 5 is complete.
    Use inconclusive when the acceptance check has no passing baseline.

  5. Correct only when the verdict is drifted (uncorrected). Revert only the
    out-of-scope changes, keep the required changes, then re-run the full
    acceptance check. A change can live in the index, the working tree, or both,
    and each needs its own revert. Clear the index first, then the working tree:

    git restore --staged -p             # staged hunks: remove from the index
    git restore -p                      # working-tree hunks: remove from files
    

    That order matters. For a staged-only change the working tree already
    matches the index, so restoring the working tree first does nothing; resetting
    the index afterwards would only unstage the drift and leave it in the files.

    Edit the file and stage the correction when that is clearer. If a revert
    makes the check fail, that change was required: restore it and reclassify
    it. Before reporting drifted (corrected), confirm the drift is gone from
    every source:

    git status --short --untracked-files=all
    git diff
    git diff --cached
    

    Both diffs omit untracked files, and unstaging a newly added file leaves it
    untracked, so the status check is required. Do not delete untracked files by
    default. Only remove an out-of-scope untracked file if you created it in this
    task and it is clearly not user-authored work; if that is uncertain, keep it,
    report it, and ask before deleting. Name every reverted or kept out-of-scope
    change in OUT OF SCOPE; do not report "none" just because it is gone from
    the final diff.

Rules

  • Tests follow the requested behavior. Weakening, skipping, deleting, or
    bypassing a test to make it pass is drift (for example, broadening assertions,
    commenting out checks, or adding skip/xfail/todo markers) unless the user
    explicitly asked to remove or relax that coverage. Updating assertions that
    encode the old behavior is required when the user asked to change that
    behavior, even if the user never mentioned the test file. If a test is wrong or
    obsolete, explain why, keep or replace its coverage where appropriate, and get
    confirmation before removing it.
  • Passing tests are not proof of alignment. Inspect the diff.
  • Report concrete changes. Base the verdict on the request, the acceptance
    check, and the diff. This skill does not run PyPI/npm engine checks and does
    not rely on an external alignment score to decide the verdict.
  • Do not revert required changes, tests that define acceptance criteria, or
    user-authored work.
  • Security controls are required until the user says otherwise. An
    authorization check, input validation, escaping, or secret handling is not
    out of scope just because the acceptance suite passes without it. Keep it,
    add it to the acceptance check, and flag it for human review rather than
    reverting it.
  • If the request is ambiguous, ask before reverting anything.

Worked example

See examples/real-session.md for a real GitHub
Copilot CLI session (kept as a historical transcript) and an illustrative
current-procedure walkthrough that applies this package-free diff-review flow,
including keeping and flagging input-validation changes for human review.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
security-reviewAI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching vulnerabilities that pattern-matching tools miss. Use this skill when asked to scan code for security vulnerabilities, find bugs, check for SQL injection, XSS, command injection, exposed API keys, hardcoded secrets, insecure dependencies, access control issues, or any request like "is my code secure?", "review for security issues", "audit this codebase", or "check for vulnerabilities". Covers injection flaws, authentication and access control bugs, secrets exposure, weak cryptography, insecure dependencies, and business logic issues across JavaScript, TypeScript, Python, Java, PHP, Go, Ruby, and Rust.3 installsanti-ui-slopStop coding agents from shipping generic UI. Use UIZZE's 800,000+ real web and iOS screens to build product-specific interfaces, define a design contract, cover required states, and run a hard finish gate. Use when designing, implementing, redesigning, critiquing, or pre-ship reviewing a web or iOS interface in Codex, Claude Code, Cursor, Copilot, or another coding agent. Trigger with "anti-ui-slop", "stop UI slop", "ground this UI in real screens", or "run the UI finish gate".3 installsweb-design-reviewerThis skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design", "check the UI", "fix the layout", "find design problems". Detects issues with responsive design, accessibility, visual consistency, and layout breakage, then performs fixes at the source code level.3 installsdotnet-best-practicesEnsure .NET/C# code meets best practices for the solution/project.2 installsmvvm-toolkitCommunityToolkit.Mvvm (the MVVM Toolkit) core: source generators ([ObservableProperty], [RelayCommand], [NotifyPropertyChangedFor], [NotifyCanExecuteChangedFor], [NotifyDataErrorInfo]), base classes (ObservableObject / ObservableValidator / ObservableRecipient), commands (RelayCommand / AsyncRelayCommand), and validation. Companion skills: mvvm-toolkit-messenger for pub/sub, mvvm-toolkit-di for Microsoft.Extensions.DependencyInjection wiring. Works across WPF, WinUI 3, MAUI, Uno, and Avalonia.2 installsrhino3d-scriptsAuthoring and debugging scripts for Rhinoceros 3D (Rhino 8 and later). Use when asked to write RhinoScript (VBScript / .rvb / .vbs), RhinoPython, or RhinoCommon-based scripts; automate Rhino modeling tasks; build command macros; manipulate Rhino geometry, layers, blocks, or document objects; pick objects from the viewport; control redraw and undo; or load and run scripts from the Rhino Script Editor. Covers `rhinoscriptsyntax`, `scriptcontext`, the `Rhino.*` RhinoCommon namespaces (`Rhino.Geometry`, `Rhino.DocObjects`, `Rhino.Input`, `Rhino.UI`, `Rhino.Display`, `Rhino.FileIO`), and the Rhino 8 unified Script Editor.2 installs

More from GitHub Copilot

View source →
convert-word-to-mdConverts Word (.docx) documents into Markdown so their contents can be accurately analyzed, summarized, searched, or extracted from. Use this skill whenever the user shares, references, or asks about a .docx file — even if they don't say "convert" or "markdown" explicitly. This includes requests to "read", "summarize", "review", "extract data from", "compare", or "analyze" a Word document, resume, report, contract, or proposal. Always run the bundled conversion script to produce Markdown first; do not attempt to parse .docx content directly or write ad-hoc conversion code. Also use this skill for batch requests involving a whole folder of Word documents. IMPORTANT: When the user references a folder or set of documents containing multiple file types (.pdf, .docx, .xlsx), invoke ALL three sibling skills — convert-pdf-to-md, convert-word-to-md, and convert-excel-to-md — so no file type is silently skipped.7 installsfreecad-scriptsExpert skill for writing FreeCAD Python scripts, macros, and automation. Use when asked to create FreeCAD models, parametric objects, Part/Mesh/Sketcher scripts, workbench tools, GUI dialogs with PySide, Coin3D scenegraph manipulation, or any FreeCAD Python API task. Covers FreeCAD scripting basics, geometry creation, FeaturePython objects, interface tools, and macro development.5 installsprompt-optimizerTurn any rough prompt, half-formed idea, or task description into a finished, ready-to-send prompt optimized for any LLM model inside a chat interface — NOT the API. Use this skill whenever the user wants to write, rewrite, optimize, improve, sharpen, or polish a prompt for chat. Trigger phrases include "rewrite this prompt", "make this a better prompt", "optimize this prompt", "turn this into a prompt", "help me prompt this", "draft a prompt that...", "I want to ask...", or whenever the user pastes a draft prompt and asks for improvements. Also trigger when the user describes a task they plan to send to an LLM model and clearly wants a reusable, well-structured prompt rather than a direct answer. The output is always a single, copy-pasteable prompt in a code block that the user sends as-is — never a template with placeholders.5 installscodebase-memory-mcpUse when exploring unfamiliar code, mapping architecture, finding symbols or relationships, tracing callers, callees, data flow or dependencies, assessing impact, auditing dead or complex code, or handling explicit Codebase Memory requests. Otherwise skip tasks confined to a supplied known file, tiny one-file check, exact literal, configuration value, error string, or non-code text.5 installsgame-engineExpert skill for building web-based game engines and games using HTML5, Canvas, WebGL, and JavaScript. Use when asked to create games, build game engines, implement game physics, handle collision detection, set up game loops, manage sprites, add game controls, or work with 2D/3D rendering. Covers techniques for platformers, breakout-style games, maze games, tilemaps, audio, multiplayer via WebRTC, and publishing games.4 installsdraw-io-diagram-generatorUse when creating, editing, or generating draw.io diagram files (.drawio, .drawio.svg, .drawio.png). Covers mxGraph XML authoring, shape libraries, style strings, flowcharts, system architecture, sequence diagrams, ER diagrams, UML class diagrams, network topology, layout strategy, the hediet.vscode-drawio VS Code extension, and the full agent workflow from request to a ready-to-open file.4 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.653 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.553 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.365 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.265 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.185 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions149 installs

You might also like

Frequently asked questions about intent-drift

What does the intent-drift skill do?

Use when the user asks whether current work still matches the original request, or when an agent has made several edits and is about to continue. Compares the working-tree diff against the stated request and lists out-of-scope changes before more edits are made. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the intent-drift skill?

Run `npx @skills-hub-ai/cli install github-copilot-intent-drift` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/github-copilot-intent-drift/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does intent-drift work with?

intent-drift runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the intent-drift skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use intent-drift after installing it?

In Claude Code, type `/github-copilot-intent-drift` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the intent-drift skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.