ast-grep-practice

Community

Master ast-grep patterns for project linting.

Authormizchi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Structural linting that expresses complex AST-based rules which general-purpose linters can't capture, enabling repeatable, codified checks across a codebase.

Core Features & Use Cases

  • Rule authoring: define precise AST patterns to detect anti-patterns and enforce project-wide standards.
  • Testing & CI: supports classification and snapshot tests for rule changes and integrates with sgconfig.yml for CI enforcement.
  • Reusable workflows: enables end-to-end linting, rule distribution, and automation across multi-language codebases.

Quick Start

Create a rule under rules/ with tests under rule-tests, then run ast-grep test to validate it.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ast-grep-practice
Download link: https://github.com/mizchi/skills/archive/main.zip#ast-grep-practice

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.