agentleFS
Cody-SimsCody-Sims/agent-skills/skills/shadow-observe/SKILL.md

shadow-observe

Skill0 starsChanged 4 months agoMITView on GitHub

Runs bounded, read-only Shadow repository analysis to generate evidence-linked candidate architecture observations, map boundaries and dependencies, and separate verified claims, inference, and unknowns. Use when asked to run Shadow, scan architecture, generate observations, or map boundaries or dependencies for a repository-owned .shadow graph; unlike codebase-exploration, it does not orient an unfamiliar codebase or locate change sites, and it does not create decisions, propose future state, or repair drift.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use codebase-exploration for broad orientation in an unfamiliar repository, build and test discovery, conventions, or locating a change …

    line 20
  2. Very specific:

    Use shadow-architecture to create, repair, or maintain the .shadow graph, decision records, anchors, indexes, schemas, lifecycle state, or …

    line 22
  3. Very specific:

    Use shadow-dream for future-state architecture proposals.

    line 25
  4. Very specific:

    Use shadow-drift only to compare declared architecture with implementation and report drift without changing the graph.

    line 26
  5. Distinctive:

    Do not invent rationale, historical intent, ownership, or decision status.

    line 28
  6. Distinctive:

    Do not create accepted decisions, future-state proposals, or drift repairs.

    line 29
  7. Distinctive:

    Default to a report only. Write candidate observation artifacts only when the user explicitly requests files and the repository declares …

    line 30
  8. Distinctive:

    Read repository instructions that govern the requested scope.

    line 36
  9. Very specific:

    Read .shadow/README.md, then the index and schema it names.

    line 37
  10. Very specific:

    Read only the files needed to support the scoped architecture question.

    line 50
  11. Very specific:

    Prefer manifests, module boundaries, public interfaces, dependency declarations, tests, and existing .shadow records over broad content …

    line 51
  12. Distinctive:

    If files were explicitly requested, re-read the repository's declared observation layout and schema.

    line 63
  13. Distinctive:

    Read the observation record guide before writing an artifact or when a structured report is requested.

    line 68
  14. Distinctive:

    If the repository uses different states, follow its schema and preserve the same approval boundary.

    line 80
  15. Very specific:

    If an artifact was written, run the repository-declared .shadow validator and verify the path is inside the declared observation layout.

    line 92

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Shadow Observe

Perform an on-demand, bounded, read-only analysis of current repository architecture. Produce candidate observations for a repository-owned .shadow graph without promoting them to decisions.

Boundaries

  • Use codebase-exploration for broad orientation in an unfamiliar repository, build and test discovery, conventions, or locating a change site.
  • Use shadow-architecture to create, repair, or maintain the .shadow graph, decision records, anchors, indexes, schemas, lifecycle state, or rendered views.
  • Use shadow-dream for future-state architecture proposals.
  • Use shadow-drift only to compare declared architecture with implementation and report drift without changing the graph.
  • Do not invent rationale, historical intent, ownership, or decision status.
  • Do not create accepted decisions, future-state proposals, or drift repairs.
  • Default to a report only. Write candidate observation artifacts only when the user explicitly requests files and the repository declares their location and shape.

Workflow

  1. Read repository instructions that govern the requested scope.
  2. Read .shadow/README.md, then the index and schema it names. Treat those declarations as authoritative. If they do not exist, continue with a report only and do not bootstrap .shadow/.
  3. Define a bounded scope: the question, included paths, excluded paths, traversal depth or entry limit, and stopping condition. Avoid a repository-wide survey when a smaller slice answers the request.
  4. Capture run provenance. Record the source revision when available, whether the worktree has relevant uncommitted changes, the commands or tools used, the scope limits, and unavailable provenance as unknown.
  5. Inventory names and structure before reading content. Run the deterministic inventory helper when a bounded structural inventory is useful. It does not follow symlinks, read file contents, write files, or use the network.
  6. Read only the files needed to support the scoped architecture question. Prefer manifests, module boundaries, public interfaces, dependency declarations, tests, and existing .shadow records over broad content scans.
  7. Classify every material statement:
    • Verified claim: directly supported by cited repository evidence.
    • Inference: a bounded interpretation supported by cited evidence but not explicitly declared.
    • Unknown: unresolved or unsupported; state what evidence would resolve it.
  8. Link observations to existing decision IDs only when the repository index supports the relation. Do not manufacture IDs or convert observations into decisions.
  9. Return the report in the format below. Include contradictions as observations, not as automatic drift diagnoses or repairs.
  10. If files were explicitly requested, re-read the repository's declared observation layout and schema. Write only candidate observation artifacts under that layout. Do not write when the layout has no candidate-observation location or lifecycle.

Read the observation record guide before writing an artifact or when a structured report is requested.

Lifecycle Guidance

  • Candidate: machine-generated and unreviewed. This is the only lifecycle state this skill may assign.
  • Confirmed: a reviewer or repository-declared process verifies the claim and promotes it. The skill may report the required review but must not self-confirm.
  • Dismissed: a reviewer rejects, supersedes, or archives the candidate according to the repository schema, retaining the reason and evidence when the schema supports them.
  • If the repository uses different states, follow its schema and preserve the same approval boundary. Never add unsupported lifecycle values.

Validation

  1. Confirm each verified claim has at least one resolvable workspace-relative anchor or evidence path.
  2. Confirm each inference is labeled and cites the evidence it interprets.
  3. Confirm unknowns do not contain invented explanations.
  4. Confirm related decision IDs exist in the declared index.
  5. Confirm the report includes scope, source revision or unknown, and run provenance.
  6. If an artifact was written, run the repository-declared .shadow validator and verify the path is inside the declared observation layout.
  7. Confirm no source, decision, index, or lifecycle record was changed unless the explicit request and repository schema required that exact candidate artifact update.

Output Format

Return:

  1. Scope: question, included and excluded paths, limits, and stopping reason.
  2. Run provenance: source revision, worktree state, commands or tools, and unavailable fields.
  3. Verified claims: claim, anchors, evidence paths, and related decision IDs.
  4. Inferences: inference, supporting evidence, and confidence boundary.
  5. Unknowns: missing fact and the evidence needed to resolve it.
  6. Candidate artifacts: none by default, or written paths and validation results when explicitly requested.
  7. Lifecycle next step: review needed to confirm or dismiss each candidate.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.