Search

PythonReactSEOPDF
GitHub Skill

codemod-construction-ast

Automate large-scale codebase refactoring using AST transformations on React code.

harborgrid-justin☆ 1 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

Codemod Construction with ASTs

Summary

Automate large-scale codebase refactoring using AST transformations on React code.

Key Capabilities

  • Parse React syntax (JSX) into manipulate ASTs (jscodeshift).
  • Write robust transforms for prop renaming and component restructuring.
  • Update imports and dependencies programmatically.

PhD-Level Challenges

  • Handle diverse coding styles and formatting preservation.
  • Implement complex logic for hook migration (Class to Function).
  • Verify AST transform correctness across the entire repo.

Acceptance Criteria

  • Deliver a codemod script for a specific refactor task.
  • Apply the codemod successfully to the codebase.
  • Provide unit tests for the transformation logic.

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-01-20
Index updated
2026-01-26
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!