一键导入
refactor
Safely refactor code while maintaining all tests and type safety (Daniel Okoye's workflow)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Safely refactor code while maintaining all tests and type safety (Daniel Okoye's workflow)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new implementation of the primary protocol/interface (Alex Rivera's workflow)
Add a new API endpoint following all project standards
Plan and implement a complete feature end-to-end across all layers
Full codebase audit — dead code, layer violations, concurrency, observability, code quality
Set up or update GitHub Actions CI/CD pipeline (Marcus Chen's workflow)
Remove dead code, unused imports, stale files, and fix code quality issues found by /audit
| name | refactor |
| description | Safely refactor code while maintaining all tests and type safety (Daniel Okoye's workflow) |
| disable-model-invocation | true |
Refactor: $ARGUMENTS
Follow Daniel Okoye's architecture standards:
Baseline: Run the test and type-check commands (see project config) BEFORE making any changes. If either fails, fix existing issues first — never refactor on a broken baseline.
Analyze: Read the code to be refactored and all its callers
Refactor rules:
If splitting files:
__init__.py exports if neededIf renaming:
Verify: Run the test and type-check commands again. All tests MUST still pass. No new type errors. No regressions.