codellm-devkit/codeanalyzer-python/analyzing-canpy-graphs

Claude Code and agent skill by codellm-devkit/codeanalyzer-python

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when querying the canpy (codeanalyzer-python) Neo4j graph — call-graph, dataflow, taint, slicing, entrypoint, exit-point, inheritance, dependency/SBOM, or configuration questions, or when writing any Cypher over schema v2's projection.

Install

npx vskill@latest install codellm-devkit/codeanalyzer-python/analyzing-canpy-graphs

SKILL.md

Analyzing canpy graphs (schema v2, Neo4j projection)

One additive tree + typed edge overlays, projected as a property graph (--emit neo4j → graph.cypher snapshot or live Bolt push). Vocabulary is fixed — never guess a label, property, or key — it is all in references/vocabulary.md. The exhaustive analysis catalogue (structure, calls, entrypoints, inheritance, imports, CFG/CDG/DDG, slicing, taint, dependencies/artifacts, health metrics) is references/analyses.md; every recipe states its minimum -a level.

What exists at which level

-atreeedges
1callables + call body nodes + entrypoints + artifacts/dependenciesHAS_ARTIFACT, DECLARES_DEPENDENCY, LOCKS, PY_PROVIDES, PY_UNRESOLVED_IMPORT
2callee resolvedPY_CALLS (prov jedi/defuse), PY_RESOLVES_TO, PY_USES_CONFIG (literal tier) + PY_READS_CONFIG_UNRESOLVED
3full statement body, @entry/@exitPY_CFG_NEXT, PY_CDG, PY_DDG (prov ssa, reaching-defs)
4formal_in/out, actual_in/out verticesPY_PARAM_IN, PY_PARAM_OUT, PY_SUMMARY, ddg widened points-to

Artifacts, dependencies, unresolved imports, and entrypoints are L1 data — present and identical at every level. Anything interprocedural needs -a 4. Neo4j is always projected full-depth for the level analyzed.

Identity in 20 seconds

  • `can://` ids are opaque — match on properties, never delimiter-split ids.
  • PyBodyNode.id is the GLOBAL ordinal "<callable-id>@<local>"; locals are

"line:col", "@entry", "@exit", "@formal_in:<i>", "@formal_out", "<callsite>/actual_in:<i>", "<callsite>/actual_out".

  • Artifact.id is language-neutral (can://<app>/artifact/<path>);

Package.id is a purl (pkg:pypi/<name>) — cross-language merge keys.

The standing traps

  1. Bound every transitive walk. Unbounded *1.. enumerates paths —

exponential on real corpora (odoo L4: 4.6M PY_DDG edges). Use *1..N with DISTINCT, or shortestPath for existence questions.

  1. Discriminated edges. PY_DDG merges per (var, prov) and

PY_CFG_NEXT per kind, DECLARES_DEPENDENCY per kind — via the internal _k property. Endpoint-pair matching alone under-counts.

  1. ddg `prov` mixes tiers at L4 (ssa/reaching-defs/points-to) —

filter when you need only the syntactic subset.

  1. `:PyExternal` ghosts come in two grains: member-level

(…/@external/<module>/<name>, call-graph targets) and module-level (…/@external/<module>, dependency/import joins). Same label; join by the module property when you need both.

  1. Entrypoints live on properties (is_entrypoint,

entrypoint_frameworks) of PyCallable AND PyClass — there is no :Entrypoint label.

PY_USES_CONFIG widens with the analysis level (literal at -a 2, def-use closure at -a 3, cross-call closure at -a 4) and never guesses — unresolved reads carry a reason instead. Taint is composed, not stored: reachability over PY_DDG ∪ PY_PARAM_IN ∪ PY_PARAM_OUT ∪ PY_SUMMARY (provider/client boundary — source/sink packs are the SDK's job). Exit points = returns + external calls + caller-visible writes; both have full recipes in analyses.md.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/codellm-devkit/codeanalyzer-python/analyzing-canpy-graphs/badge)](https://verified-skill.com/skills/codellm-devkit/codeanalyzer-python/analyzing-canpy-graphs)

Something wrong with this skill or its page? Tell us.