agent/skills/retype/SKILL.md
Refactors TypeScript codebases with AST-aware rename, extract, and reference finding. Use for moving functions between files, renaming across codebase, or finding all usages of a symbol.
npx skillsauth add knoopx/pi retypeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
TypeScript refactoring built on ts-morph. AST-aware — safe renames, extractions, and reference finding across the entire codebase.
Search for functions, classes, or types:
bunx retype-cli search linearGraphQL -p ./src --list
bunx retype-cli search "create.*Component" --regex -p ./src --list
bunx retype-cli search myFunction --body -p ./src # Show code body
See every usage of a symbol:
bunx retype-cli references linearGraphQL -p ./src --list
bunx retype-cli references linearGraphQL -p ./src --list --all # Don't truncate
Preview changes before applying:
bunx retype-cli rename oldName newName -p ./src --preview
bunx retype-cli rename oldName newName -p ./src --yes # Apply without confirmation
bunx retype-cli rename oldName newName -p ./src --exact --yes # Exact match only
Move a symbol to a different file, updating all imports automatically:
bunx retype-cli extract linearGraphQL ./src/api/linear.ts -p ./src --yes
bunx retype-cli fix-imports -p ./src # Fix missing imports
bunx retype-cli unused -p ./src --list # Find unused exports
bunx retype-cli search linearGraphQL -p ./src --listbunx retype-cli references linearGraphQL -p ./src --listbunx retype-cli extract linearGraphQL ./src/api/linear.ts -p ./src --yesbunx retype-cli rename createComponent createWidget -p ./src --previewbunx retype-cli rename createComponent createWidget -p ./src --yestools
Inform the user what is happening — skip passive lookups
development
Renders markdown to self-contained HTML with a custom dark stylesheet and opens in browser. Use when previewing markdown documents, generating styled HTML from README or report files.
testing
Programmatic hunk selection for Jujutsu — split, commit, or squash specific hunks without interactive prompts. Use when making partial commits or selective squashes.
content-media
Manage version control with Jujutsu (jj) — no staging area, immediate changes, smart rebasing. Use when navigating history, squashing, or pushing to Git remotes.