ast-grep-best-practices

Installation
SKILL.md

ast-grep Community Best Practices

Comprehensive best practices guide for ast-grep rule writing and usage, maintained by the ast-grep community. Contains 42 rules across 8 categories, prioritized by impact to guide automated rule generation and code transformation.

When to Apply

Reference these guidelines when:

  • Writing new ast-grep rules for linting or search
  • Debugging patterns that don't match expected code
  • Optimizing rule performance for large codebases
  • Setting up ast-grep projects with proper organization
  • Reviewing ast-grep rules for correctness and maintainability

Rule Categories by Priority

Priority Category Impact Prefix
1 Pattern Correctness CRITICAL pattern-
2 Meta Variable Usage CRITICAL meta-
Related skills

More from pproenca/dot-skills

Installs
2
GitHub Stars
141
First Seen
Jan 24, 2026