aimasteracc/tree-sitter-analyzer/tsa-structure
Claude Code and agent skill by aimasteracc/tree-sitter-analyzer
- community
Checking that the SKILL.md file is still in the repository.
Structural analysis of one file — classes, methods, exports, common patterns, semantic classification of a diff. Returns the file's *shape* without reading the file body. Use when: - "What classes and methods does X file have" - "Show me a table / outline of <file>" - "Run query: find all decorated functions in file X" - "Is this diff a refactor or a behavior change" (semantic classification) - "Find patterns like singleton / factory in this code" Replaces: reading the whole file (~20k tokens for big files) with structural views (200-1000 tokens).
Install
npx vskill@latest install aimasteracc/tree-sitter-analyzer/tsa-structureSKILL.md
tsa-structure — File shape without the file body
Tool routing
| Question | Tool | |
|---|---|---|
| Outline / table of classes + methods | structure action=analyze | |
Run a tree-sitter query (e.g., all def nodes) | search action=query | |
| Detect design patterns (singleton, factory, …) | health action=patterns | |
| Classify a diff (refactor vs feature vs fix) | edit action=classify |
Procedure
File outline (most common)
For a markdown-formatted table:
Custom tree-sitter query
When you need something the built-in tools don't surface:
--list-queries (CLI) shows all built-in queries available per language.
Diff classification
Useful for PR descriptions and CHANGELOG categorization.
Pattern detection
CLI equivalents
Anti-patterns
- DON'T read the whole file just to find "what classes are in it" — use the structure tool
- DON'T write a custom tree-sitter query when
structure action=analyzecovers it - DON'T use
edit action=classifyon huge multi-purpose commits — split them first
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
- SKILL.md in the repositoryCheckingtree_sitter_analyzer/skills/tsa-structure/SKILL.md
Popularity
- Repository stars
- 60
- Repository forks
- 17
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 Nov 2026, 5 days ago.
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
[](https://verified-skill.com/skills/aimasteracc/tree-sitter-analyzer/tsa-structure)