---
title: "Apply repeatable JavaScript and TypeScript codemods across large codebases with jscodeshift"
description: "Use jscodeshift when an agent needs AST-based JavaScript or TypeScript codemods for bulk migrations, API rewrites, and large refactors with reviewable diffs."
verification: "listed"
source: "https://github.com/facebook/jscodeshift"
author: "Meta"
publisher_type: "organization"
category:
  - "Code Quality & Review"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "facebook/jscodeshift"
  github_stars: 9983
  npm_package: "jscodeshift"
  npm_weekly_downloads: 27093990
---

# Apply repeatable JavaScript and TypeScript codemods across large codebases with jscodeshift

Use jscodeshift when an agent needs AST-based JavaScript or TypeScript codemods for bulk migrations, API rewrites, and large refactors with reviewable diffs.

## Prerequisites

Node.js, npm or pnpm, Git

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Install with npm install -g jscodeshift or run it with npx, then provide a transform file and target paths, for example jscodeshift -t ./transform.js src/.
```

## Documentation

- https://jscodeshift.com

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/apply-repeatable-javascript-and-typescript-codemods-across-large-codebases-with-jscodeshift/)
