agentleFS
AraneaDevAraneaDev/knossos/skills/graph/SKILL.md

graph

Skill8 starsChanged 3 months agoMITView on GitHub

Use when you need to know what depends on something, what a change would break, where a new file belongs, how a request reaches a given component, or who calls a function, in a repository that Knossos has scanned. Answers come from a static graph with file and line evidence instead of from reading the source tree. Also covers recording durable architectural facts for later sessions.

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use understand, ingest and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • agoodwaySkill

    understand

    Multi-specialist collaborative analysis to understand how features, functions, or components work

    Also in 3 projects that use this

  • Google CloudSkill

    ingest

    Extracts, distills, and compiles raw sources (PPTX slide decks, PDFs, Word docs, Excel sheets, web URLs, transcripts, codebases, or raw/ directories) into persistent, structured Knowledge Compiler markdown wikis following the Open Knowledge Format (OKF v0.2) and Andrej Karpathy LLM-Wiki standard. Use when the user invokes /ingest, asks to ingest raw files or a target path, compile knowledge, update the wiki, or extract unstructured files into markdown knowledge bases. Don't use for retrospectively compiling the active chat conversation without external files (use distill-session) or for read-only vault lookups (use vault-query).

    Also in 4 projects that use this

  • genomewalkerSkill

    explore

    RLM-style recursive memory exploration - dynamically navigate the memory graph

    Also in 3 projects that use this

  • MicrosoftSkill

    init

    Also in 3 projects that use this

  • AnthropicSkill

    start

    Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.

    Also in 3 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

  • +1 more from anthropics

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Every project-scoped tool needs a project_id.

    line 34
  2. Very specific:

    The rule: when a Knossos answer left something out and you found it by further queries, grep or reading, record what it missed before you …

    line 58
  3. Very specific:

    The second rule: when a result you used carries a note marked stale, settle it before you give your answer, the same way.

    line 68
  4. Very specific:

    no longer true: remove it (remove: true).

    line 80
  5. Very specific:

    Write the fact on the component it is about, kind: note, and pass the files you relied on as evidence_paths, so the note is marked stale …

    line 86
  6. Very specific:

    Keep a note brief: one or two sentences, the evidence in evidence_paths, not in the text.

    line 97
  7. Distinctive:

    Use a short multi-line ASCII sketch only when the path branches, and keep it within the 1000 characters a result shows.

    line 104
  8. Distinctive:

    Not worth writing, and actively harmful because they bury the ones above:

    line 120

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “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

Asking the graph instead of reading the tree

Knossos scans a repository once and answers structural questions from a graph where every fact points at a file and a line. The point is to stop re-deriving the same structure by reading the same files.

Route these questions to the graph

About toAsk instead
grep for callers of a symbollist_usages, exact call sites with line numbers
guess what a change breaksimpact_analysis, dependants with confidence and evidence
read several files to trace a request pathexplain_flow
decide where a new file belongssuggest_location
eyeball a diff for architectural riskreview_diff
work out what a class is and what it touchesfind_component, then inspect_component
see how to call a function without opening itfind_component: its signature line
read a file's callers before editing itfile_context, boundary, rules, dependents, tests
grep for a term no symbol is named aftersearch_architecture, which also searches note text
find what has no test before changing ituntested_code, files or functions no test reaches
trust a green suite after changing a signatureaudit_tests, stale mocks and assertions that cannot fail
create a filecreation_brief, call it before you write the first line

A certain row from list_usages is a fact, not a lead: the list holds every static call the graph resolved, each marked test or not, and the summary says what it cannot see (calls through a string or dynamic dispatch). Grepping for the same symbol afterwards repeats work the graph already did.

Every project-scoped tool needs a project_id. The session brief puts it in context already. If it is not there, list_projects returns it.

Do not route these

Reaching for the graph here wastes a call and returns the wrong shape:

  • Exact string or regex search, a config key, an error message, a TODO. Use grep.
  • Reading a file you are about to edit. Edit needs the exact bytes, so use Read.
  • Anything about runtime values or behaviour. The graph is static and never executes anything, so it cannot tell you what a variable holds.
  • Confirming an edge labelled probable or possible. Those are leads to check in the source, not facts.
  • Anything structural while the session brief says STALE, UNVERIFIED, NO GRAPH or NOT SCANNED. Run scan_project first, or accept that the answer may describe a codebase that no longer exists.

Writing a fact back

annotate_component is the only way one session leaves something for the next. Notes survive rescans, because annotations are keyed by canonical name rather than by node id, and they come back with every later result that names the component.

The rule: when a Knossos answer left something out and you found it by further queries, grep or reading, record what it missed before you move on. That the code holds the fact is no reason to skip it: the graph could not give it to you, so the next agent will dig for it the same way, and a note is how the next result carries it. A fresh session with the same question then starts from your note instead of digging again. The session brief states this as a standing instruction: writing one is part of the task, not a side effect to ask about, so do it before you give your answer. Write nothing only when the answer was complete and your lookups merely confirmed it.

The second rule: when a result you used carries a note marked stale, settle it before you give your answer, the same way. stale means the component's own code, or a file the note cites, changed after the note was written, so the note may no longer be true, and nobody else will look: a stale note left alone stays stale, and once most notes read stale none of them is trusted. You are already looking at that component, which makes you the cheapest one to check it. Read the code the note describes, then:

  • still true: confirm it, annotate_component with confirm: true (and execute), which rests it on the files as they are now and clears stale, keeping its text and the files it cited.
  • partly true: correct the text and re-record it.
  • no longer true: remove it (remove: true).

This holds for every stale model note on a component you looked up, not only the ones you wrote. A stale note by a person (author: user) is theirs: say in one line that it may be out of date, and leave it.

Write the fact on the component it is about, kind: note, and pass the files you relied on as evidence_paths, so the note is marked stale when one of them changes. A component Knossos did not resolve takes a note too, under its full name: that it could not find it is the gap the next session would hit. Write the fact, not the question. If you already have a note there, extend it rather than replace it: the preview shows its text, and a write that would drop it is refused unless you pass replace.

A check annotation is the user asking you to look at a note again, its value the reason: verify the note against the code and rewrite it, and your next note on that component clears the request.

Keep a note brief: one or two sentences, the evidence in evidence_paths, not in the text. A path reads best as a one-line arrow chain:

File::delete -> FileDeleted (model event) -> DeleteFileInStorage::handle (queued)

Use a short multi-line ASCII sketch only when the path branches, and keep it within the 1000 characters a result shows. No Mermaid or Markdown: nothing that shows a note renders them.

list_annotations marks a note component_status: missing when no component carries its name any more, after a rename or a move: move it to the new name (see Mechanics), or remove it when nothing carries what it says. A note by a person (author: user) is theirs: never rewrite or remove it, and never write through the pane's own command (knossos annotate).

Worth writing:

  • BulkEditView::post, "calls whatever BulkEditSerializer.validate_method returns, a function in documents.bulk_edit"
  • ToolCatalog, "the extension seam is here; ToolService is the dispatcher and should not grow arms"
  • ProcessScannerClient, "the worker boundary is process-enforced, not convention; in-process calls will pass tests and fail in production"

Not worth writing, and actively harmful because they bury the ones above:

  • Anything the Knossos answer already gave you, or that one read of the file it pointed to settles. The next session gets the same answer and can read the same file.
  • Anything about the current task, branch, or PR. Notes have no expiry.
  • Restatements of what the graph already encodes, "this class implements that interface". The graph knows.
  • Speculation, or anything you have not verified.

Mechanics: the tool previews by default. Pass execute: true to actually write. kind is note for free-form facts. The other kinds change how other read surfaces behave, so use them only for their actual meaning: intended_boundary marks a deliberate placement, false_positive stops a component being re-flagged because the graph was wrong, intentional stops it because the finding is true and meant (a parked route, a test-only helper), confirmed_dead records verified unused code. A missing note with a suggested_component is moved there with move_to: <that name>. When suggested_component is null, find the new name with find_component on the short name, then pass it as move_to. move_to moves the note of the given kind, so pass the note's own kind from list_annotations. A moved note keeps the basis it was written against, so it reads stale when its component's code changed; check it and confirm it.

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.