Ast Grep Typescript React

Use this skill when writing, debugging, or reviewing ast-grep patterns, YAML rules, or codemods against TypeScript or React (.ts/.tsx) code — searching for JSX elements, props, hooks, imports, or type constructs, and rewriting them. Covers the TS/React-specific traps — the tsx-vs-typescript language split, JSX and TypeScript node kinds, fragment matching, rewrites, and the @ast-grep/napi API. Complements the general-purpose ast-grep skill (rule mechanics) — reach for this one whenever the target code is TypeScript or React.

pproenca 32b44f0 15 files · 24.6 KB Updated

File contents

pproenca/dot-skills/tree/main/skills/.experimental/ast-grep-typescript-react commit 32b44f03da

Frequently asked questions

npx skillmds add pproenca/ast-grep-typescript-react