neondatabase

Ast Grep — Testing skill for Claude Code

Testing community

This command helps to create and test ast-grep rules for code quality enforcement.

How to install Ast Grep

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.

What Ast Grep does


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

Alternatives in Testing

  • Pua — Use when the user invokes /pua or asks for PUA mode, try-harder/retry help, change-approach coaching, completi 19.5k ★
  • Deslop Reborn — One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents 12.6k ★
  • Deliver — Delivery phase - Review, validate, and test with multi-AI quality assurance 2.8k ★

Full documentation available on GitHub

View Source Repository