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.
Install
npx skills add https://github.com/agentskillexchange/skills/tree/main/skills/apply-repeatable-javascript-and-typescript-codemods-across-large-codebases-with-jscodeshift
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install agentskillexchange-skills@llmmart
git clone https://github.com/agentskillexchange/skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole agentskillexchange/skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
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
Use the upstream install or setup path that matches your environment:
- $ npm install -g jscodeshift
- make the transform more readable.
- To update docs in /docs, use npm run docs.
- To view these docs locally, use npx http-server ./docs
Requirements and caveats from upstream:
- const = require('jscodeshift/src/Runner')
- const path = require('node:path');
- An AST node is a plain JavaScript object with a specific set of fields, in
Basic usage or getting-started notes:
Get jscodeshift from npm:
This will install the runner as jscodeshift.
VSCode Debugger
Extracted from upstream docs: https://raw.githubusercontent.com/facebook/jscodeshift/HEAD/README.md
Documentation
Source
Files (skills)
-
SKILL.md 2 KB
--- name: "Apply repeatable JavaScript and TypeScript codemods across large codebases with jscodeshift" slug: "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." github_stars: 9983 verification: "security_reviewed" 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 Use the upstream install or setup path that matches your environment: - $ npm install -g jscodeshift - make the transform more readable. - To update docs in /docs, use npm run docs. - To view these docs locally, use npx http-server ./docs Requirements and caveats from upstream: - const {run: jscodeshift} = require('jscodeshift/src/Runner') - const path = require('node:path'); - An AST node is a plain JavaScript object with a specific set of fields, in Basic usage or getting-started notes: - Get jscodeshift from [npm](https://www.npmjs.com/package/jscodeshift): - This will install the runner as jscodeshift. - ## VSCode Debugger - Source: https://github.com/facebook/jscodeshift - Extracted from upstream docs: https://raw.githubusercontent.com/facebook/jscodeshift/HEAD/README.md ## Documentation - https://jscodeshift.com ## Source - [Agent Skill Exchange](https://agentskillexchange.com/skills/apply-repeatable-javascript-and-typescript-codemods-across-large-codebases-with-jscodeshift/)
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.