Agent skill
codemod-construction-ast
Automate large-scale codebase refactoring using AST transformations on React code.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/codemod-construction-ast
SKILL.md
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?