---
name: source-command-prd-drift
description: Show, toggle, or run the PRD Plugin drift check (tracking/docs/traceability drift on Stop). Host-native /prd-drift equivalent for hosts that load skills instead of Claude command files; trigger on "/prd-drift", "prd-drift", or a request to run the prd-drift operation.
---

# /prd-drift (host-native command skill)

Generated from `commands/prd-drift.md` by `scripts/generate_command_skills.py` — do not edit by hand; edit the command file and regenerate.

Treat the user's invocation as this command. Where the instructions use `$ARGUMENTS`, substitute the arguments the user supplied.

Manage the PRD Plugin drift monitor's on-Stop check. Observation-only — it never
blocks; it surfaces a one-line drift summary at the end of a turn when enabled.

The argument is: `$ARGUMENTS` (one of `on`, `off`, `status`, `run`; default `status`).

Run the matching action from the repo root (use the downstream path if it exists,
else the hub path):

- **status** (default): show whether the on-Stop drift check is enabled and what
  the on-stop validator set is.
  `python .prd_plugin/scripts/prd_hooks.py drift status`
- **on**: enable it — sets `drift.monitoring.on_stop` true in
  `.prd_plugin/config.json`.
  `python .prd_plugin/scripts/prd_hooks.py drift on`
- **off**: disable it.
  `python .prd_plugin/scripts/prd_hooks.py drift off`
- **export on** / **export off**: also append each drift event to a committed,
  shared feed (`.prd_plugin/drift/events.jsonl`, tracked) so drift history
  travels with the repo. Default off.
  `python .prd_plugin/scripts/prd_hooks.py drift export on`
- **run**: run the full drift monitor now and print the findings (does not change
  config).
  `python .prd_plugin/scripts/drift_monitor.py --snapshot --format markdown`

The on-Stop check runs a cheap subset — `state_consistency_check`,
`staleness_audit`, `prd_self_audit`, `prd_graph` — covering tracking, docs, and
traceability drift. The heavy `gap_audit`/`release_check` scans stay in the full
`run` / session-close / CI. Default is off.

Report the resulting state in one plain line.

## Staleness

This adapter owns no records of its own; apply the shared policy in `.prd_plugin/method/staleness-rules.md` to any records the underlying operation reads or writes.
