skills/smithery.ai/ast-grep-rule-crafter

ast-grep-rule-crafter

Installation
SKILL.md

ast-grep Rule Crafter

ast-grep uses tree-sitter to parse code into AST, enabling precise pattern matching. Rules are defined in YAML for linting, searching, and rewriting code.

Quick Start

id: no-console-log
language: JavaScript
rule:
  pattern: console.log($$$ARGS)
fix: logger.log($$$ARGS)
message: Replace console.log with logger

Project Configuration

项目级扫描需要 sgconfig.yml 配置文件:

Installs
1
First Seen
Mar 25, 2026
ast-grep-rule-crafter from smithery.ai