Back to list
grahama1970

treesitter

by grahama1970

1🍴 0📅 Jan 20, 2026

SKILL.md


name: treesitter description: > Parse and extract code symbols using tree-sitter. Use when you need to extract functions, classes, or understand code structure from files or code blocks. allowed-tools: Bash, Read triggers:

  • parse this code
  • extract functions from
  • list symbols in
  • what functions are in
  • code structure
  • parse with treesitter metadata: short-description: Parse code with tree-sitter for symbol extraction

Treesitter Skill

Parse code files or snippets using tree-sitter to extract symbols (functions, classes, methods).

Quick Start

# Extract symbols from a file
.agents/skills/treesitter/run.sh symbols /path/to/file.py --json

# Extract with full source code
.agents/skills/treesitter/run.sh symbols /path/to/file.py --content --json

# Scan a directory
.agents/skills/treesitter/run.sh scan /path/to/dir --json

# Parse a code snippet (writes to temp file)
.agents/skills/treesitter/run.sh parse --language python --code "def foo(): pass" --json

Commands

CommandDescription
symbols <path>Extract functions/classes from a file
scan <dir>Walk directory, summarize symbols per file
parse --code "..." --language <lang>Parse a code snippet

Options

OptionDescription
--content, -cInclude full source code of symbols
--languageOverride auto-detected language
--jsonOutput JSON format
--max-chunk-sizeMax chars for content chunks

Auto-Install

This skill uses uvx to automatically install treesitter-tools from git. No pre-installation required.

Integration with Distill

The distill skill can use treesitter to properly extract and parameterize code blocks from documents, storing them with their language and structure.

Supported Languages

Python, JavaScript, TypeScript, Go, Rust, Java, C, C++, Ruby, and more. Language is auto-detected from file extension or can be specified with --language.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon