Borrowing it
Nothing to install: this file belongs to aimasteracc/tree-sitter-analyzer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/aimasteracc/tree-sitter-analyzer/main/.claude/skills/tsa-deps/SKILL.mdgit clone --depth 1 https://github.com/aimasteracc/tree-sitter-analyzerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aimasteracc/tree-sitter-analyzer/tsa-deps)<a href="https://agentmods.dev/skills/aimasteracc/tree-sitter-analyzer/tsa-deps"><img src="https://agentmods.dev/badge/skills/aimasteracc/tree-sitter-analyzer/tsa-deps/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aimasteracc/tree-sitter-analyzer/tsa-deps"><img src="https://agentmods.dev/badge/skills/aimasteracc/tree-sitter-analyzer/tsa-deps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00145 | $0.00698 |
| Opus 5.5 | $0.00058 | $0.00279 |
| Sonnet 5.5 | $0.00029 | $0.00140 |
| Haiku 4.5 | $0.00015 | $0.00070 |
Grade A, and why
tsa-deps scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
tsa-deps — Imports & module topology
Tool routing
| Question | Tool |
|---|---|
| One file's direct deps | health action=deps |
| Project-wide import graph (who imports whom) | health action=imports |
| Project topology (entry points, hubs) | structure action=sitemap |
Procedure
File-level deps
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 (requiresfile_path)blast_radius— impact set for a file (alias:blast; requiresfile_path)cycles— circular dependencies
Import graph (project-level)
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
structure action=sitemap
# returns: {entry_points: [...], hub_modules: [...], leaf_modules: [...]}
Useful as a "first look" right after tsa-landing.
CLI equivalents
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/^fromto 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_bylist — you'll break dozens of callers.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 88 lines · 145 tokens per session scan A 253b2ee0d7e0
tsa-deps is a skill published in the GitHub repository aimasteracc/tree-sitter-analyzer (61 stars, last pushed today), licensed MIT. It adds 145 tokens to every session and 698 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
memstack-development-performance-audit
Use this skill when the user says 'performance audit', 'why is it slow', 'optimize performance', 'page speed', 'Core Web Vitals', 'lighthouse', 'load time', or needs to diagnose and fix frontend or backend performance issues. Do NOT use for code reviews or security audits.
investigate
Systematic debugging with root cause investigation. Four phases: investigate, analyze, hypothesize, implement. Iron Law: no fixes without root cause. Use when asked to "debug this", "fix this bug", "why is this broken", "investigate this error", or "root cause analysis". Proactively invoke this skill (do NOT debug…
memorix-troubleshooting
Use when Memorix MCP, setup, project binding, HTTP control plane, hooks, skills, or agent integration is missing, stale, or failing.
debug
Use this skill to locate a runtime bug. Add targeted instrumentation, collect reproduction evidence, and confirm the root cause before changing code.
assess-impact
Analyze blast radius before changing specific files. Use before refactoring core components, making breaking API changes, or modifying shared code to identify affected files and stakeholders.
report-debt
Generate comprehensive tech debt assessment with quantified metrics and prioritized issues. Use for sprint planning, stakeholder reports, or justifying refactoring time allocation.