Tree Sitter Scope Extractor

How to use Tree-sitter concrete syntax trees to extract strictly the enclosing function or class scope (+ imports) for a target line, cutting file inspection tokens by 90%.

alivirgo Updated 3 repo stars

File contents

alivirgo/Major-AI-Skills commit 183918d73a

Frequently asked questions

npx get-skill add alivirgo/tree-sitter-scope-extractor