agentleFS
dachentdachent/skills/code-intelligence/SKILL.md

code-intelligence

Skill27 starsChanged 3 months agoMITView on GitHub

use only in Claude Code as an explicit provider router when Graphify, code-mapper, or selective CodeQL availability must be assessed. do not install or auto-trigger for Codex GPT-5.6 Sol; native direct inspection, Plan Mode, explorer work, and subagents cover this routing without an added analyzer.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use only as a Claude Code provider router.

    line 10
  2. Distinctive:

    Do not install or auto-trigger this skill for Codex GPT-5.6 Sol.

    line 12
  3. Very specific:

    Keep providers independent.

    line 14
  4. Very specific:

    Run scripts/preflight.py only when Graphify freshness or local capability matters.

    line 29
  5. Very specific:

    Follow references/freshness-policy.md before graph-backed work.

    line 31
  6. Very specific:

    Follow references/provider-contract.md and record route, freshness, latency, evidence, warnings, and fallback use.

    line 32
  7. Distinctive:

    Verify against current source and tests.

    line 33
  8. Distinctive:

    Run scripts with Python 3.10 or newer.

    line 67

“Common” is measured: kept by at least 6 in 10 of the 3 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

Code Intelligence — Claude Code Provider Router

Purpose

Use only as a Claude Code provider router. Choose the least expensive installed provider that can answer the question reliably, preserve evidence provenance, and verify material conclusions against current source and tests.

Do not install or auto-trigger this skill for Codex GPT-5.6 Sol. Native direct inspection, Plan Mode, explorer work, and subagents already cover the routing function without adding an analyzer.

Keep providers independent. This skill does not vendor or absorb Graphify, code-mapper-skill, or CodeQL.

Active Routes

  1. Direct source and tests — default for known non-Python targets, small repositories, stale or missing graph data, and final verification.
  2. Graphify — broad or unknown-target discovery only when an existing graph is relevant and fresh.
  3. code-mapper-skill — Python imports, callers, cycles, blast radius, artifacts, contracts, APIs, catalogs, and lineage.
  4. Selective CodeQL through code-mapper-skill — Python security or value-flow questions when CodeQL is available and the mapper's documented trigger applies.

Codebase-Memory is a benchmark candidate, not an active provider. Serena, Joern/codebadger, SCIP/Sourcegraph, Semgrep, and Aider-style maps are not part of the MVP routing surface.

Workflow

  1. Confirm this is an explicit Claude Code provider-routing request, not ordinary repository inspection or planning.
  2. Classify the request as broad discovery, known-target Python analysis, artifact or contract lineage, security-flow triage, or direct source work.
  3. Run scripts/preflight.py only when Graphify freshness or local capability matters. It must not parse graph.json merely to choose a route.
  4. Apply references/routing-policy.md. Prefer the known-target fast path and do not build an index unless repeated discovery justifies it.
  5. Follow references/freshness-policy.md before graph-backed work. Graph existence is not proof of freshness.
  6. Follow references/provider-contract.md and record route, freshness, latency, evidence, warnings, and fallback use.
  7. Verify against current source and tests.
  8. Report stale evidence, unavailable capabilities, inferences, and unverified assumptions.

Fast Rules

  • Known Python file or symbol: code-mapper-skill, without Graphify I/O.
  • Python artifact, contract, API, catalog, or lineage question: code-mapper-skill.
  • Python security/value-flow question: code-mapper-skill with selective CodeQL when available; otherwise report the limitation.
  • Broad unknown-target question: fresh Graphify if already available; otherwise direct source exploration.
  • Known non-Python target or small repository: direct source and host-native tools.
  • Durable planning is outside this router; use the harness-native planning workflow.

Performance Boundaries

The direct route to code-mapper-skill must not read or parse Graphify's graph and must not spawn Graphify. The router itself adds no runtime overhead: routing is a decision tree applied in-context, not a process. route.py is an importable policy function (decide_route), never a subprocess in the request path — there is no CLI to spawn between the request and the selected provider.

Required References

  • references/architecture.md
  • references/routing-policy.md
  • references/freshness-policy.md
  • references/provider-contract.md
  • references/alternatives.md
  • references/implementation-plan.md
  • references/adversarial-review.md
  • ADR files

Bundled Scripts

  • scripts/route.py — importable routing policy (decide_route); no CLI, not spawned at runtime
  • scripts/preflight.py — Graphify freshness / capability check, run only when graph-backed work is in scope
  • scripts/test_route.py
  • scripts/test_preflight.py

Run scripts with Python 3.10 or newer. Do not report repository work complete until the PR's required checks have concluded successfully.

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.