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

graph

Skill2 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.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use watch, lint and 3 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.
  • hidai25Skill

    watch

    Start EvalView watch mode to automatically re-run regression checks whenever project files change.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    lint

    Run all linting and spell checking for TypeScript and Rust code. Run this before committing to catch style issues, clippy warnings, and misspellings.

    Also in 3 projects that use this

  • raven-souravSkill

    ingest

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 4 projects that use this

  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 2

    Distinctive

    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
  1. Very specific:

    Every project-scoped tool needs a project_id.

    line 24
  2. Distinctive:

    Write one when all three hold:

    line 47
  3. Distinctive:

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

    line 58

“Common” is measured: kept by at least 6 in 10 of the 11 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
read a file's callers before editing itfile_context, boundary, rules, dependents, tests

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.

Write one when all three hold:

  1. The fact cost real effort to learn.
  2. It is not visible by reading the component itself.
  3. It will still be true in a month.

Worth writing:

  • 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 you learned by reading the file once. The next session can read it too.
  • 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.

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.