Update all import statements, module references, string paths, and config references after moving or renaming files and modules. Handles Python, TypeScript, and JavaScript imports. Use when moving files, renaming modules, restructuring directories, or consolidating code.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
npx agent-skills-cli listSkill Instructions
name: import-refactor description: Update all import statements, module references, string paths, and config references after moving or renaming files and modules. Handles Python, TypeScript, and JavaScript imports. Use when moving files, renaming modules, restructuring directories, or consolidating code.
Import and Reference Updater
This guide is for updating all module references after moving or renaming files, including import statements, string paths, and configuration references.
Core workflow:
- Map old paths β new paths
- Find ALL references (imports, strings, configs, docs)
- Update systematically by type
- Verify paths exist and imports resolve
- Report changes made
Reference types updated:
- Import statements (Python/TS/JS)
- String-based paths
- Configuration files
- Documentation examples
Quick example
Moving utilities to /utils:
1. Find old utility imports
2. Update to /utils imports
3. Update string references
4. Update docs
β Report: 23 files, 45 imports updated
Best practices:
- Verify paths exist before updating
- Preserve import style (absolute vs relative)
- Process in batches for large refactorings
- Test after major changes
More by sorryhyun
View allRouter skill for DiPeO code generation pipeline (TypeScript specs β IR β Python/GraphQL). Use when task mentions TypeScript models, IR builders, generated code diagnosis, or codegen workflow. For simple tasks, handle directly; for complex work, escalate to dipeo-codegen-pipeline agent.
Test implementation of thin router skill for DiPeO backend. Provides decision criteria and documentation anchors for FastAPI server, CLI (dipeo run/results/metrics/compile/export), SQLite schema, and MCP integration in apps/server/. Use when task mentions CLI commands, server endpoints, database queries, or MCP tools.
Router skill for DiPeO runtime Python code (execution handlers, service architecture, domain models, LLM infrastructure). Use when task mentions node handlers, EventBus, ServiceRegistry, Envelope pattern, or domain logic. For simple tasks, handle directly; for complex work, escalate to dipeo-package-maintainer agent.
Remove unnecessary, redundant, or obvious code comments while preserving valuable explanations. Use when cleaning up comments, removing verbose documentation, simplifying inline comments, or preparing code for review.
