LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

ast-grep-custom-language - Build and Register Custom ast-grep Languages

Author a tree-sitter grammar, build its parser library, and register it as an ast-grep custom language.

Tags

Updated: 2026-11-24

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Author tree-sitter grammars
  • Configure grammar fields and precedence
  • Generate parser sources
  • Build parser dynamic libraries
  • Register custom languages in ast-grep
  • Verify node kinds and fields

Inputs

  • Target language syntax
  • Grammar project files
  • grammar.js source
  • ast-grep configuration

Outputs

  • Generated parser sources
  • Parser dynamic library
  • Registered ast-grep custom language
  • Verified node kinds and fields

Requirements

  • Node.js runtime
  • C or C++ compiler
  • Tree-sitter CLI
  • ast-grep installation

Source

  • Spec: SKILL.md
tree-sitter
ast-grep
grammar
parser generation
custom language
Author tree-sitter grammars
Configure grammar fields and precedence
Generate parser sources
Build parser dynamic libraries
Target language syntax
Grammar project files
grammar.js source
Generated parser sources
Parser dynamic library
Registered ast-grep custom language