shadow-architecture
Skill0 starsChanged 4 months agoMITView on GitHub
Sets up and maintains a repository-owned .shadow graph, manages approved decision lifecycles and index or schema compatibility, supersedes accepted history, and renders reviewed records. Use when creating or migrating .shadow, recording approved architecture decisions, maintaining its index or schema, superseding accepted decisions, or generating derived views from reviewed records; not for discovering observations, imagining future states, or checking drift.
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-dreamSkill
- shadow-driftSkill
- shadow-observeSkill
- skill-creatorSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- verification-disciplineSkill
- wayfinder-planningSkill
- web-research-and-verificationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 21 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Never invent historical intent or rationale.
- Distinctive: line 45
Treat approved decision records as historical artifacts.
- Distinctive: line 47
Treat candidate observations, future-state proposals, and drift reports as inputs for review, not as accepted decisions.
- Distinctive: line 49
Treat rendered files as derived output, never as authority.
- Distinctive: line 55
Read workspace instructions before changing files.
- Very specific: line 56
Read .shadow/README.md first when it exists.
- Distinctive: line 57
Follow the index and schema locations declared there, even when they differ from the reference layout.
- Distinctive: line 75
Do not broaden a maintenance request into repository observation, architecture ideation, or drift analysis.
- Very specific: line 80
When .shadow/ is absent, create the smallest useful layout: a README, declared index, declared schema, and decision-record location.
- Distinctive: line 82
Document which files are authoritative, which are inputs awaiting review, and which are derived.
- Distinctive: line 87
Add aliases, optional fields, schema unions, or a version marker before requiring destructive rewrites.
- Distinctive: line 96
Keep the index synchronized with authoritative records and their statuses.
- Distinctive: line 97
Keep IDs stable and relation targets resolvable.
- Distinctive: line 106
Create a stable ID and a present-tense statement.
- Very specific: line 110
Use observed for an evidence-supported description of current architecture and proposed for a not-yet-adopted decision.
- Distinctive: line 113
Update the authoritative index and schema-compatible record together.
- Distinctive: line 122
Never overwrite the substance of an accepted decision to express a new choice.
- Distinctive: line 124
Create a new decision with its own evidence, rationale, approval, and ID.
- Distinctive: line 128
Update the index atomically so both records and their relationship remain visible.
- Distinctive: line 133
Read only authoritative, reviewed records and indexes.
- Distinctive: line 136
Write output under the repository-declared derived location.
- Distinctive: line 140
Do not alter decision text, lifecycle status, approval, evidence, or rationale while rendering.
- Distinctive: line 145
Stop for human approval before:
- Very specific: line 160
Run the repository-declared .shadow/ validator when one exists.
- Distinctive: line 162
Check unique IDs, supported kinds and statuses, relation targets, required approval fields, provenance fields, and index-to-record …
- Distinctive: line 164
Check that evidence and anchor references use the repository's declared conventions and that missing rationale remains explicit.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Architecture
Set up and maintain a repository-owned .shadow/ graph as durable, reviewable
architecture memory. The repository's .shadow/README.md, declared index, and
declared schema remain authoritative. Read the
Shadow v2 reference contract when creating,
migrating, or changing the graph contract.
Scope
This skill owns:
- initial
.shadow/setup and migration from the minimal convention; - index, schema, identifier, relation, and compatibility maintenance;
- recording decisions after the required human approval;
- moving decisions through
observed,proposed,accepted, andsuperseded; - preserving accepted history by linked supersession; and
- rendering reviewed records into disposable derived output.
This skill does not autonomously discover candidate observations, invent
future-state architecture, or compare the graph with implementation for drift.
Hand those requests to shadow-observe, shadow-dream, or shadow-drift
respectively. Use codebase-exploration for a repository map and
documentation-maintenance for ordinary documentation work unrelated to the
.shadow/ contract.
Evidence Rules
- Separate verified evidence, inference, and unknowns in every record.
- Cite repository-relative code, tests, documentation, issues, pull requests, or commits for material claims.
- Never invent historical intent or rationale. Store
unknownwhen it cannot be verified. - Treat approved decision records as historical artifacts. Do not silently rewrite them to match current preferences.
- Treat candidate observations, future-state proposals, and drift reports as inputs for review, not as accepted decisions.
- Treat rendered files as derived output, never as authority.
Workflow
1. Read Repository Authority
- Read workspace instructions before changing files.
- Read
.shadow/README.mdfirst when it exists. - Follow the index and schema locations declared there, even when they differ from the reference layout.
- Inventory decision statuses, record kinds, identifiers, relations, approvals, provenance, and derived output.
- Preserve valid repository-specific fields and older records unless an approved migration explicitly changes them.
2. Classify the Request
Choose one or more bounded operations:
setup: create the minimal repository-owned graph and document its authority;migrate: add v2 concepts without invalidating readable legacy records;maintain: repair or evolve indexes, schemas, relations, or compatibility;record: add or transition a decision with the required approval evidence;supersede: replace accepted history with linked new history; orrender: generate a view from reviewed records without changing them.
Do not broaden a maintenance request into repository observation, architecture ideation, or drift analysis.
3. Set Up or Migrate
- When
.shadow/is absent, create the smallest useful layout: a README, declared index, declared schema, and decision-record location. - Document which files are authoritative, which are inputs awaiting review, and which are derived.
- Define stable IDs, record kinds, lifecycle states, relation types, evidence fields, approval fields, and run provenance.
- For an existing graph, preserve its current paths and readable record shape.
- Add aliases, optional fields, schema unions, or a version marker before requiring destructive rewrites.
- Record migration provenance and unresolved compatibility gaps.
- Require human approval before changing the authoritative contract or
promoting any record to
accepted.
4. Maintain the Contract
- Make the schema accept every record that the README promises is supported.
- Keep the index synchronized with authoritative records and their statuses.
- Keep IDs stable and relation targets resolvable.
- Preserve unknown values instead of replacing them with guesses.
- Retain run, approval, and source provenance through format changes.
- Make derived output regenerable and exclude it from authority decisions.
- Report incompatible legacy records instead of silently dropping fields.
5. Record a Decision
- Identify the reviewed input and the evidence supporting the decision.
- Create a stable ID and a present-tense statement.
- Record rationale only when verified; otherwise mark it
unknown. - Record explicit evidence, inference, unknowns, anchors, relations, source provenance, and approval state.
- Use
observedfor an evidence-supported description of current architecture andproposedfor a not-yet-adopted decision. - Promote to
acceptedonly with recorded human approval. - Update the authoritative index and schema-compatible record together.
Candidate observations from shadow-observe, future-state proposals from
shadow-dream, and drift reports from shadow-drift remain their original
record kinds until reviewed. Approval may produce or update a decision; it does
not retroactively turn the source artifact into an accepted decision.
6. Supersede Accepted History
- Never overwrite the substance of an accepted decision to express a new choice.
- Create a new decision with its own evidence, rationale, approval, and ID.
- Link the new record to the old one with
supersedes. - Mark the old record
supersededand link it to the replacement. - Preserve the old statement, rationale, evidence, approval, and provenance.
- Update the index atomically so both records and their relationship remain visible.
7. Render Reviewed Records
- Read only authoritative, reviewed records and indexes.
- Exclude unapproved candidates unless the requested view explicitly labels them as unapproved inputs.
- Write output under the repository-declared derived location.
- Record generator identity or command, source record IDs, source revisions or hashes when available, and generation time.
- Mark the output as derived and disposable.
- Do not alter decision text, lifecycle status, approval, evidence, or rationale while rendering.
Approval Gates
Stop for human approval before:
- promoting a decision to
accepted; - changing an accepted decision's meaning;
- superseding accepted history;
- changing the authoritative README, index, or schema contract incompatibly; or
- treating a candidate observation, future-state proposal, or drift report as a decision.
Mechanical index synchronization and regeneration of already-reviewed derived output do not require a new architecture approval when repository policy allows them.
Validation
- Run the repository-declared
.shadow/validator when one exists. - Otherwise parse the declared machine-readable files.
- Check unique IDs, supported kinds and statuses, relation targets, required approval fields, provenance fields, and index-to-record agreement.
- Check that evidence and anchor references use the repository's declared conventions and that missing rationale remains explicit.
- Confirm legacy records remain readable after migration.
- Confirm derived output identifies its sources and is not indexed as an authoritative decision.
- Review the diff for invented rationale, silent history rewrites, and accidental observation, dreaming, or drift work.
Response
Report the operation performed, authoritative files changed, decision lifecycle transitions, approvals used or still required, compatibility preserved, records rendered, validation commands and results, unknowns, and any handoff needed to a sibling skill.
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.

