Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

ast-grep rules for TypeScript and React v1.0.0

Use this resource to write an ast-grep rule or automatic rewrite on TypeScript or React code

New

  • 559 downloads
  • 236 likes
  • 243 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install ast-grep-tsx-rules

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent writes or corrects ast-grep patterns and rules for TypeScript and React. It checks the tsx versus typescript language choice, JSX and TypeScript node kinds and complete rewrites. You get a rule that actually finds the target code instead of silently matching nothing.

Mostly picked by

Updated November 2, 2026

Card for the “ast-grep rules for TypeScript and React” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on language selection, JSX patterns and TypeScript constructs
  • references/: cards on rewrites, fragment context and the napi API

Good fit for

  • An ast-grep rule matches no React component
  • You want to migrate a component API across a whole codebase

Not for

    Tags

    • ast-grep
    • react
    • typescript
    • tsx
    • codemod

    About

    You say

    “Write an ast-grep rule that finds className props passed to my Button component in TSX files.”

    Card for the “ast-grep rules for TypeScript and React” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write an ast-grep rule or automatic rewrite on TypeScript or React code
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md3.3 KB
    • assets/templates/_template.md1 KB
    • LICENSE1.1 KB
    • metadata.json1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md2 KB
    • references/ctx-fragment-context-selector.md1.5 KB
    • references/fix-jsx-rewrite-completeness.md1.2 KB
    • references/jsx-attribute-metavars.md1.2 KB
    • references/jsx-self-closing-vs-paired.md1.1 KB
    • references/lang-scan-ts-and-tsx.md1.4 KB
    • references/lang-tsx-for-jsx.md1.2 KB
    • references/napi-lang-tsx-findall.md1.3 KB
    • references/ts-as-expression-casts.md1 KB
    • references/ts-generic-react-fc.md1.6 KB
    • references/ts-type-only-imports.md1.2 KB
    • SKILL.md4.8 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/ast-grep-typescript-react
    Licence
    MIT

    Notice

    « ast-grep-typescript-react » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.