# ast-grep

Match forbidden syntax structurally

Express a repository convention as a syntax-tree pattern. Keep a matching fixture and a near miss alongside the rule so equivalent formatting produces the same finding.

Category: Code quality
Languages: JavaScript, TypeScript, Rust, Go, Python
Seikika catalog assessment: runnable (4/5 checks passed).

## Adoption

Use ast-grep in this repository to meet this standard: Match forbidden syntax structurally. Express a repository convention as a syntax-tree pattern. Keep a matching fixture and a near miss alongside the rule so equivalent formatting produces the same finding. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
ast-grep scan
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://ast-grep.github.io/)
- [Agent skill](/skills/ast-grep/SKILL.md)
