ast-grep 标准
Guide for writing ast-grep rules to perform structural code search and analysis. This skill should be used when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search, or when a simple grep/glob search is insufficient for structural code pattern matching.
安装方式
cp -r skills/ast-grep ~/.claude/skills/ast-grep把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
https://raw.githubusercontent.com/archibate/dotfiles-opencode/46b6b23087de595d20df792bb4cbd769d3dfe20f/skills/ast-grep/SKILL.md下载后另存为 ~/.claude/skills/ast-grep/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/archibate/dotfiles-opencode.git
依赖与权限
- 无需 API Key
- 需要联网访问外部服务
- 依赖外部命令:
nodepythongo - 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
摘要与原文
本站未内联该 skill 的正文(许可不在允许再分发的白名单内,或作者未声明许可)。下面是本站撰写的摘要,完整内容请查看原文。
Guide for writing ast-grep rules to perform structural code search and analysis. This skill should be used when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search, or when a simple grep/glob search is insufficient for structural code pattern matching.
质量与来源
- 所属仓库
- archibate/dotfiles-opencode
- 仓库星标
- 108
- 最近更新
- 6 个月前
- 采集时间
- 今天
- commit
- 46b6b23087de
- 内容指纹
- sha256:0311c2d6775ffa2
- 文件路径
- skills/ast-grep/SKILL.md