← Back to list

import-refactor
by sorryhyun
Agent building tools via block diagram UI
⭐ 13🍴 2📅 Dec 30, 2025
SKILL.md
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
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon