Install
$ agentstack add skill-haipingshi-coderail-drift-check ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Drift Check
Check whether the project is still moving toward the North Star, whether the CodeRail Coordinate still holds, and whether the trace graph has gaps.
Read
docs/NORTH_STAR.mddocs/TASKS.mddocs/HANDOFF.mddocs/DECISIONS.mddocs/ASSETS.mddocs/TRACELOG.jsonl/docs/TRACE_INDEX.mdgit status- recent diff or commits when available
Coordinate Drift checks
- Do recent tasks share, or cleanly switch, their G field?
- Is there a task whose T changed but whose G did not (suspicious)?
- Is there a task whose S was expanded but whose X was not revisited?
- Is there a task whose V passed but whose P was not updated?
- Does
HANDOFF.md's current task disagree withTASKS.md's T? - Are there trace
changeevents with no G/T link?
North-Star checks
- Do recent tasks map to Outcome, Current Bet, Invariants, or Current Slice?
- Does
HANDOFF.mdmention a new direction not inNORTH_STAR.md? - Does
TASKS.mdcontain orphan tasks with no G mapping? - Did code introduce capability, public API, schema, dependency, or state not recorded in docs?
- Did
DECISIONS.mdchange the Current Bet without updatingNORTH_STAR.md? - Does the harness still verify the actual Outcome?
Trace Graph checks
- Are there recent tasks that cannot map to a North Star?
- Are there orphan
changeevents (no task/north_star/file)? - Are there done tasks missing a
verifytrace event? - Does
git diffinclude product assumptions not registered anywhere? - Does
TRACELOG.jsonlhave orphan changes? - Is
TRACE_INDEX.mdstale relative toTRACELOG.jsonl?
Asset checks
- Are raw materials or working notes being treated as permanent assets?
- Is
HANDOFF.mdtoo long or acting as a log?
Optional script
python3 scripts/drift_check.py --target .
Output
## Drift Check Report
Overall status: aligned | minor drift | major drift | blocked
North-Star mismatches:
-
Coordinate drift:
-
Trace Graph gaps:
-
Task/document mismatches:
-
Code/document mismatches:
-
Asset-boundary issues:
-
Handoff/context issues:
-
Required fixes before more coding:
-
Safe next task:
-
Do not write code as part of drift-check unless the user explicitly asks to repair the docs after the report. Run /link to close trace gaps instead.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: HaipingShi
- Source: HaipingShi/coderail
- License: MIT
- Homepage: https://github.com/HaipingShi/coderail
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.