tree-sitter-queries
CommunityMaster tree-sitter queries for code insight
Software Engineering#queries#parsers#code-analysis#tree-sitter#syntax-highlighting#editor-integration#scm
Authorhafley66
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Writing and maintaining tree-sitter queries for syntax highlighting, code analysis, and editor tooling can be complex and error-prone, requiring precise pattern matching of language syntax trees.
Core Features & Use Cases
- Write tree-sitter queries using S-expression syntax to match language nodes.
- Use captures, predicates, quantifiers, anchors, and field names to extract and constrain matches.
- Build queries for syntax highlighting, code analysis, and editor features across multiple languages.
- Understand the difference between tree-sitter queries and ast-grep patterns to choose the right approach.
Quick Start
Write a simple tree-sitter query to capture function names from a source file.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tree-sitter-queries Download link: https://github.com/hafley66/claude-research/archive/main.zip#tree-sitter-queries Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.