Skip to main content

ast-grep

Codex built-in skill for structural code search with ast-grep when queries depend on AST shapes, call patterns, decorators, scopes, or required child nodes.

跳到安装

来源信息

仓库
Rycen7822/skill-retrieval-mcp
最近来源活动
2026年5月10日 17:34
检测到的 SKILL.md 语言
英语
星标
2
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
ast-grep
description
Codex built-in skill for structural code search with ast-grep when queries depend on AST shapes, call patterns, decorators, scopes, or required child nodes.
tags
["codex-builtin","ast-grep","structural-search","code-search"]
# ast-grep ## When to Use Use when the task needs AST-aware structural search instead of plain text grep, such as finding function definitions, call shapes, imports, decorators, or missing child nodes. ## Do Not Use When Do not use for ordinary keyword, filename, documentation, or broad repository text search. ## Required Inputs Target language, structural pattern, repository path, and a small validation snippet when possible. ## Workflow 1. Narrow the candidate files if the repository is large. 2. Write an ast-grep pattern or rule. 3. Run ast-grep on a small target. 4. Expand only after validating the match shape.
在 GitHub 查看