/drift:driftfrom drift
Queries repository conventions, structure, and code patterns via Drift before reading files. Use to learn how routes, handlers, auth, validation, and data access are built in a codebase.
Ships in drift. 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.
Drift reads this repository's code and answers, as facts, how it is built: its
packages, entry points, the guards they carry, and what is not known. Where a
.drift/conventions.yaml exists, it also holds conventions learned from the code
and approved by its maintainers.
drift card <path> (works for a file that does not exist
yet). Read other files only for what it lists under Not known. It is one
cheap call (MCP drift_card): the file's package, its entry points with their
guards, what its siblings carry with a file to copy, and a last line, "Not
known: ...". When it says "No answer for this file", read or grep as usual.
drift map gives the packages, layers and entry points of the whole repository.drift card <target file> (or drift practices --path <file> when
available). Grep only for what it reports as not known. Keep using grep to find
where a symbol is called or a string is defined. These lookups are read-only
and run without a permission prompt.In a repository with .drift/conventions.yaml:
drift example <path> and copy the structure
of the file it names: its wrappers, guards and imports. For a path that does
not exist yet, the examples are grouped by what the file will contain ("if it
exports HTTP handlers"); follow the group that matches what you are writing.(blocks) (or mode block in drift check) must be fixed to match the
convention, unless the exception is intentional. Everything else is advice:
follow it where it fits the code at hand; where it does not fit, no action is
needed: no change and no comment. Each report shows the rule, why (how many
members of its role follow it), its known exceptions ("except ...") and an
example to copy; drift_explain <id> says more.// drift-ignore <id>: <reason> (# drift-ignore <id>: <reason> in Python)
directly above the declaration. A comment without a reason does not suppress
anything. Reviewers see every suppression, so give a real reason. Advice
never needs one.drift_verify_card: run its prompt 3 times
in fresh contexts and send the replies back. It is optional..drift/conventions.yaml or drift.lock. People change policy
with drift review; edits by agents are denied.drift security <files> to see the guards, risky operations (raw SQL, shell,
raw HTML, computed redirects) and server-only imports it reaches. These are
facts for you to judge, not rules; mention anything new in your summary.drift check before finishing to see any remaining new violations.
Legacy code is baselined, so only new problems are listed. A violation of a
convention in block mode (marked (blocks) in Drift's hook messages and
mode block in drift check) fails the check and stops the end of your
turn; the others, suggestions included, are advice, and need no action where
they do not fit.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dadbodgeoff/drift --plugin driftOther plugins' skills for the same job