一键导入
guiding-refactoring-with-code-health
Use when refactoring unhealthy code and needing Code Health findings to choose small safe steps and verify improvement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when refactoring unhealthy code and needing Code Health findings to choose small safe steps and verify improvement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when installing the CodeScene MCP Server binary or package, registering it in an AI assistant, or copying agent guidance files into a repository.
Write an end-to-end integration test for the CodeScene MCP Server, covering file structure, backend abstraction, MCPClient usage, test registration, and verification.
Run the end-to-end integration test suite for the CodeScene MCP Server. Use when you need to verify that all MCP tools work correctly against the real CLI and server infrastructure.
Update the embedded CodeScene CLI to a new version, including downloading new binaries, computing SHA-256 checksums, and updating all pinned hashes in cli-checksums.sha256 and Dockerfile.
Use when the user wants to view, set, or troubleshoot CodeScene MCP configuration such as access tokens, on-prem URLs, default projects, or SSL certificates.
Scaffold a new MCP tool for the CodeScene MCP Server following the project's established patterns for directory structure, dependency injection, decorators, testing, and registration.
| name | guiding-refactoring-with-code-health |
| description | Use when refactoring unhealthy code and needing Code Health findings to choose small safe steps and verify improvement. |
Use Code Health as the control signal for refactoring. The agent should first understand why a file is hard to work with, establish a measurable baseline, then improve it in small structural steps and verify that each step helped. The goal is not just cleaner code, but code that is easier for both humans and agents to understand and modify safely.
Do not use this skill when the task is to rank project-wide priorities. Use prioritizing-technical-debt for that.
code_health_review: Detailed maintainability findings for a file.code_health_score: Numeric baseline and trend check across refactoring iterations.code_health_review on the target file.code_health_score so the refactoring starts from a measurable baseline.code_health_review to see whether the targeted structural problems were reduced.code_health_score as the compact checkpoint to confirm directional improvement across iterations.