agentleFS
theyoungastronautstheyoungastronauts/polaris/skills/axon-code-intel/SKILL.md

axon-code-intel

Skill4 starsChanged 3 months agoMITView on GitHub

When and how to use Axon code-intelligence tools (call graphs, impact analysis, dead-code detection, execution-flow tracing) during exploration, implementation, and review. Apply when reasoning about structural impact or navigating an unfamiliar codebase; requires Axon installed.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use impact results to identify tests and call sites that need updating alongside your change

    line 36
  2. Very specific:

    If the MCP server runs with axon serve --watch, the index stays current automatically (file-local phases update immediately, global phases …

    line 50
  3. Distinctive:

    Before relying on Axon tools, verify the index exists:

    line 58
  4. Very specific:

    Run axon_list_repos to check if the current repo is indexed

    line 59
  5. Very specific:

    If not indexed, inform the user and suggest running axon analyze .

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Skill: Axon Code Intelligence

Purpose

Guide the use of Axon's MCP tools for structural code analysis during planning, execution, and verification.

What Axon Provides

Axon indexes codebases into a knowledge graph — call graphs, type references, execution flows, communities, and dead code detection. It answers questions that text search can't: "what breaks if I change this?", "what calls this function?", "is this code reachable?"

MCP Tools Reference

ToolWhat it doesWhen to use
axon_queryHybrid search (text + semantic + fuzzy) grouped by execution flowFinding relevant code by concept, not just name
axon_context360° view of a symbol — callers, callees, types, dead code statusUnderstanding a symbol's full dependency web before modifying it
axon_impactBlast radius grouped by depth with confidence scoresBefore changing a function/class — see what breaks
axon_dead_codeAll unreachable symbols by fileCleaning up after refactors, verifying nothing was orphaned
axon_detect_changesMaps a git diff to affected symbols and flowsDuring verification — did the changes touch everything they needed to?
axon_list_reposLists indexed repositories with statsChecking if a repo is indexed and current
axon_cypherRead-only Cypher queries against the knowledge graphAdvanced structural queries not covered by other tools

When to Use at Each Stage

Planning

  • axon_query to explore the codebase by concept ("authentication", "payment processing")
  • axon_context on key symbols to understand existing architecture before designing changes
  • axon_impact to assess risk of proposed changes and inform phase ordering

Execution

  • axon_context before modifying any symbol — understand callers, callees, and type dependencies
  • axon_impact before changing a function's signature or behavior — check the blast radius
  • Use impact results to identify tests and call sites that need updating alongside your change

Verification

  • axon_detect_changes to map the phase's diff to affected symbols and execution flows
  • axon_dead_code to check if refactors orphaned any code
  • axon_impact to verify all affected call sites were updated

Bug Fixing

  • axon_context to trace callers and callees around the buggy symbol
  • axon_impact to understand what a fix might break
  • axon_query to find related code when the bug's root cause isn't in the obvious location

Re-indexing

If the MCP server runs with axon serve --watch, the index stays current automatically (file-local phases update immediately, global phases batch every 30 seconds). A full re-index is only needed after:

  • A large merge or rebase while watch mode was not running
  • Switching branches with significant structural changes

To re-index: axon analyze . (or axon analyze --full to skip incremental logic).

Checking Availability

Before relying on Axon tools, verify the index exists:

  • Run axon_list_repos to check if the current repo is indexed
  • If not indexed, inform the user and suggest running axon analyze .

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.