jelly-bulk-edit

Perform AST-based bulk code transformations across JavaScript and TypeScript projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dev-jelly/jelly-dotclaude --skill jelly-bulk-edit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jelly-bulk-edit
Source: https://github.com/dev-jelly/jelly-dotclaude/tree/main/skills/jelly-bulk-edit
Command: npx skills add https://github.com/dev-jelly/jelly-dotclaude --skill jelly-bulk-edit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables large-scale, pattern-based code transformations across a repository using ASTs for correctness.

Core Features & Use Cases

  • Bulk replacements: replace patterns across many files safely.
  • Pattern recipes: bulk-update common code smells or anti-patterns.
  • Risk-aware edits: ensure changes are scoped and reviewable.

Quick Start

Define a pattern and replacement using sg and apply across the repository.

Frequently Asked Questions about jelly-bulk-edit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform bulk code refactoring across multiple files safely?

Bulk code refactoring uses AST-based pattern matching to transform code semantically across your entire codebase. This Skill applies ast-grep patterns to replace common patterns like console.log with logger, require to ES6 imports, var to const/let, and == to === while preserving code correctness and enabling preview before committing changes.

Can I use AST-based transformations on JavaScript and TypeScript projects?

Yes. AST-based transformations work on both JavaScript and TypeScript projects, enabling safe pattern-based code changes across your repository. You define patterns using ast-grep syntax and apply them to targeted files or repo-wide, with interactive modes to review changes before execution.

What's the best way to replace code patterns across a large codebase?

The best approach is semantic pattern matching with AST tools, which understands code structure rather than text. This ensures replacements respect scope and context—replacing only the patterns you intend—while supporting preview and interactive application modes to keep changes reviewable and scoped.

How does AST-based code transformation differ from find-and-replace?

AST-based transformation understands code structure and semantics, so it matches patterns contextually and preserves code meaning. Text-based find-and-replace can produce false matches and break syntax, while AST matching ensures only valid, intentional transformations occur across your codebase.

Do I need to write custom scripts to migrate code patterns across files?

No. This Skill uses predefined pattern recipes for common migrations like require-to-import and var-to-const, eliminating the need for custom scripts. You define the pattern and target scope, then apply it interactively with built-in preview and validation to ensure correctness.

What limitations should I know before performing large-scale code transformations?

Transformations are scoped to files and patterns you explicitly define, so edge cases in dynamic code or complex metaprogramming may not be captured. Always preview changes and run tests after applying bulk transformations to catch unintended side effects in your specific codebase.