·structural-search
</>

structural-search

0xdarkmatter/claude-mods

Search code by AST structure using ast-grep. Find semantic patterns like function calls, imports, class definitions instead of text patterns. Triggers on: find all calls to X, search for pattern, refactor usages, find where function is used, structural search, ast-grep, sg.

15Installs·0Trend·@0xdarkmatter

Installation

$npx skills add https://github.com/0xdarkmatter/claude-mods --skill structural-search

SKILL.md

Search code by its abstract syntax tree (AST) structure. Finds semantic patterns that regex cannot match reliably.

| ast-grep | sg -p 'pattern' | AST-aware code search |

| $NAME | Named identifier | function $NAME() {} | | $ | Any single node | console.log($) | | $$$ | Zero or more nodes | function $($$$) {} |

Search code by AST structure using ast-grep. Find semantic patterns like function calls, imports, class definitions instead of text patterns. Triggers on: find all calls to X, search for pattern, refactor usages, find where function is used, structural search, ast-grep, sg. Source: 0xdarkmatter/claude-mods.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/0xdarkmatter/claude-mods --skill structural-search
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is structural-search?

Search code by AST structure using ast-grep. Find semantic patterns like function calls, imports, class definitions instead of text patterns. Triggers on: find all calls to X, search for pattern, refactor usages, find where function is used, structural search, ast-grep, sg. Source: 0xdarkmatter/claude-mods.

How do I install structural-search?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/0xdarkmatter/claude-mods --skill structural-search Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/0xdarkmatter/claude-mods