LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ts-morph-refactor - TypeScript Refactoring with ts-morph

Perform safe AST-based TypeScript refactoring operations across a codebase using ts-morph executable scripts.

Tags

Updated: 2026-09-24

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Rename symbols across codebase
  • Move declarations between files
  • Propagate interface changes to classes
  • Add method stubs to implementations
  • Rename parameters across matching signatures
  • Set return types for methods
  • Organize and clean up imports
  • Extract code into new function
  • Add or modify interface properties

Inputs

  • tsconfig.json file path
  • TypeScript source files
  • Script command arguments

Outputs

  • Updated TypeScript source files
  • Refactored code declarations and imports

Requirements

  • ts-morph package
  • tsx script runner
  • Node.js environment

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
typescript
refactoring
ts-morph
ast
codebase
Rename symbols across codebase
Move declarations between files
Propagate interface changes to classes
Add method stubs to implementations
tsconfig.json file path
TypeScript source files
Script command arguments
Updated TypeScript source files
Refactored code declarations and imports