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

File contents

alivirgo/Major-AI-Skills/tree/main/skills/tree-sitter-scope-extractor commit 183918d73a

Frequently asked questions

npx skillmds@latest add alivirgo/tree-sitter-scope-extractor