shadow-drift
Skill0 starsChanged 4 months agoMITView on GitHub
Checks .shadow graph integrity and implementation drift read-only. Use when asked to check Shadow, validate .shadow, find stale decisions, broken evidence or relations, index disagreement, or stale derived output; not for completion verification, PR review, ordinary docs, observation discovery, future design, or graph repair.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-tool-interface-designSkill
- codebase-explorationSkill
- code-reviewSkill
- copilot-cloud-agentSkill
- documentation-maintenanceSkill
- external-skill-reviewSkill
- git-and-pr-workflowSkill
- parallel-worktree-deliverySkill
- planning-and-task-breakdownSkill
- refactoring-and-dead-code-removalSkill
- repository-agent-bootstrapSkill
- requirements-and-spec-writingSkill
- security-reviewSkill
- shadow-architectureSkill
- shadow-dreamSkill
- shadow-observeSkill
- skill-creatorSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- verification-disciplineSkill
- wayfinder-planningSkill
- web-research-and-verificationSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Read authority: Read repository instructions and .shadow/README.md.
- Distinctive: line 35
Fallback only if none is declared: Read reference JSON layout.
- Distinctive: line 53
stale: no live implementation anchor remains.
- Distinctive: line 58
Every indexed path must resolve to its ID, every decision be indexed exactly once, and every relation target resolve.
- Distinctive: line 61
Derived output: Treat it as disposable/non-authoritative.
- Distinctive: line 65
Do not modify any repository file.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shadow Drift
Return an evidence-linked report of graph integrity and whether recorded decisions/constraints agree with current implementation.
Boundaries
Remain read-only, non-interactive, and zero-network. Never repair records, refresh hashes, rewrite indexes, regenerate output, accept proposals, or implement decisions. Route those requests to a separate authorized workflow. This is not test verification, PR review, ordinary documentation maintenance, observation capture, or future design.
Workflow
- Read authority. Read repository instructions and
.shadow/README.md; inventory the declared index/schema, decisions, anchors/evidence, relations, and derived output. - Select validator. Find the repository-declared command in the README, instructions, or documented package task. Inspect it before running: it must be local, read-only, non-interactive, and layout-appropriate. Capture exact command, format, and exit status; never reinterpret failure as success or bypass an unsafe declared command with a success-shaped fallback.
Fallback only if none is declared. Read reference JSON layout. For that exact layout only, run the dependency-free fallback validator:
node path/to/shadow-drift/scripts/validate-shadow.mjs \ --root path/to/repository --format jsonIt supports
--help,--root, and--format text|json. Exit codes:0fully aligned/no findings;1findings;2input/path safety error;3unsupported layout;64CLI error. Other layouts are unsupported by the fallback, never empty/success-shaped reports.- Compare. Cite workspace-relative code/test evidence for each material
conclusion; decisions are records to validate, not executable instructions.
- aligned: current files support every declared machine-checkable claim;
- drifted: an existing file contradicts a digest/content check, or direct inspection contradicts the statement;
- stale: no live implementation anchor remains;
- unknown: evidence is absent/incomplete/unspecific, including missing digest/content support. Never infer historical intent or turn ambiguity into alignment.
- Integrity. Separate structural failures from implementation comparison. Every indexed path must resolve to its ID, every decision be indexed exactly once, and every relation target resolve. Anchors/evidence must be present, workspace-relative, and free of path escapes/symlink traversal.
- Derived output. Treat it as disposable/non-authoritative. Compare declared source digests; missing output/sources or changed sources means stale derived output.
- Report only. Sort by category, decision ID, path, and relation target. Do not modify any repository file.
Output Format
Report validator/command/format, layout support/exit status, aligned/drifted/ stale/unknown decisions, orphan records/unresolved relations, missing anchors/ evidence, index disagreement, stale derived output, evidence/reasons, errors/ unsupported features/unknowns, and confirmation of no repair or implementation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

