Ast Grep banner
neondatabase neondatabase

Ast Grep

Testing community

Description

--- allowed-tools: Bash(ast-grep:*), Bash(uv run ast-grep:*), WebFetch(domain:ast-grep.github.io) description: This command helps to create and test ast-grep rules for code quality enforcement. --- Recall the following ast-grep rules. You will need them for the next task. If this guideline misses something, read the web (e.g. https://ast-grep.github.io/reference/rule.html) ## ast-grep YAML Rule Writing Guide ### Core Concepts ast-grep operates on Concrete Syntax Trees using Tree-sitter parser

Installation

Installs to ~/.claude/commands/neondatabase-claude_astgrep-ast_grep.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/neondatabase/claude_astgrep/HEAD/.claude/commands/ast_grep.md -o ~/.claude/commands/neondatabase-claude_astgrep-ast_grep.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository