ast-grep Code Search

ast-grep/agent-skill

Turn a code search request into an ast-grep pattern or rule, test it against an example, and search the project.

Материал обновлён:

В коллекцииast-grep Agent Skills ↗
Открыть на GitHub
npx skills add ast-grep/agent-skill
904Звёзды37ФоркиПоследний push репозитория

Об этом Skill

Build syntax-aware searches from examples using ast-grep patterns and YAML rules, then inspect matches with paths and line numbers. The Skill includes a rule reference and guidance for debugging zero matches.

Почему мы его выбрали

Includes guidance for rule syntax, debugging and interpreting results.

Для каких задач подходит

  • Find a function call within a particular syntactic context across a codebase.

Перед использованием

  • The separately installed ast-grep CLI and source code in a supported language.

Источники и материалы

Ссылки на оригинальные материалы приведены ниже. Практические идеи предложены редакцией SkillHey.