aimasteracc/tree-sitter-analyzer/tsa-deps

Claude Code and agent skill by aimasteracc/tree-sitter-analyzer

Trust tier 3
  • community
Source check pending

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

Dependency / import graph analysis. Answer "what does this file import", "what imports this module", "what's the project's import topology", "show me the sitemap" without reading every file's import block. Use when: - "What does file X depend on" / "what imports module Y" - "Is module Z a leaf or a hub in the import graph" - "Show me the project sitemap" (which files glue what together) - "Are there circular imports" - Planning a module extraction: who'd you break Replaces: grep-for-import-statements + manual graph walking (~5k tokens for non-trivial repos) with 1 MCP call (~500 tokens).

Install

npx vskill@latest install aimasteracc/tree-sitter-analyzer/tsa-deps

SKILL.md

tsa-deps — Imports & module topology

Tool routing

QuestionTool
One file's direct depshealth action=deps
Project-wide import graph (who imports whom)health action=imports
Project topology (entry points, hubs)structure action=sitemap

Procedure

File-level deps
yaml
health action=deps file_path="tree_sitter_analyzer/ast_cache.py" mode="file_deps"
# returns: {imports: [...], imported_by: [...], depth: 2}

mode options:

  • summary — project-wide dependency summary (alias: full)
  • file_deps — one file's graph (requires file_path)
  • blast_radius — impact set for a file (alias: blast; requires file_path)
  • cycles — circular dependencies
Import graph (project-level)
yaml
health action=imports language="python" limit=50
# returns: ranked list of import hubs + leaves

Use to find:

  • Hubs (many things import this) — high blast radius if changed
  • Leaves (no one imports this) — possibly dead, or a CLI entry point
  • Cycles — circular imports needing breaking
Sitemap
yaml
structure action=sitemap
# returns: {entry_points: [...], hub_modules: [...], leaf_modules: [...]}

Useful as a "first look" right after tsa-landing.

CLI equivalents

bash
uv run tree-sitter-analyzer <file> --dependencies file_deps
uv run tree-sitter-analyzer --dependencies summary
uv run tree-sitter-analyzer --import-graph --import-graph-mode summary
uv run tree-sitter-analyzer --codegraph-sitemap

Anti-patterns

  • DON'T grep for ^import / ^from to build a graph — incomplete (misses

conditional / lazy imports captured by the AST)

  • DON'T worry about leaves at the start — they're often legitimate (CLI mains,

examples). Focus on hubs.

  • DON'T extract a hub module without first checking its imported_by list

— you'll break dozens of callers.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

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

Source

Popularity

Repository stars
54
Repository forks
14
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. 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/aimasteracc/tree-sitter-analyzer/tsa-deps/badge)](https://verified-skill.com/skills/aimasteracc/tree-sitter-analyzer/tsa-deps)

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