/codescene:risk-based-testing-with-code-healthfrom codescene
Prioritizes testing based on CodeScene risk signals, focusing on high-risk hotspots and pull-request change sets.
Ships in codescene. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the goal is to turn CodeScene risk signals into practical testing priorities. The output should help testers and developers focus limited test time on the code most likely to produce defects.
The primary signal is always the current branch's change set — what has actually changed is more immediately actionable than historical hotspots. Hotspots provide background context and catch systemic risk, but they should not displace focus from files the branch has already touched.
Do not use this skill when the user only asks for conceptual definitions of Code Health.
Use explaining-code-health for fundamentals.
Do not use this skill when the user asks for quantified financial ROI of refactoring.
Use making-the-business-case-for-code-health for ROI framing.
project_id (CodeScene project identifier)base_ref (for change-set analysis, e.g. main or origin/main)git_repository_path (absolute local repository path)list_technical_debt_hotspots_for_project: Identify high-risk files using low Code Health and high historical churn.analyze_change_set: Evaluate immediate risk in the current branch vs target base.code_health_score: Inspect specific files in detail.code_ownership_for_path: Route high-risk areas to likely reviewers/domain experts.list_technical_debt_goals_for_project: Include existing debt goals when present.Analyse the current branch first
analyze_change_set against the target base ref. This is the primary source of truth.Add systemic context from hotspots
list_technical_debt_hotspots_for_project to surface high-churn, low-health files.code_health_score on specific candidates for more detail.Prioritize by combined risk
Translate technical areas into business context
Generate tester-ready scenarios
Route ownership for action
code_ownership_for_path for top 3 risky files/areas.Always return the following sections in order:
Top Risk Areas
Priority Test Charters
P0, P1, P2)Must-Pass Before Merge/Release
Ownership and Routing
Open Risks
list_technical_debt_hotspots_for_project before analyze_change_set and letting the longer list crowd out branch findings.If required setup is missing (for example, project not selected, invalid repo path, missing base ref):
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/configuring-codehealth-mcpUse when the user wants to view, set, or troubleshoot CodeHealth MCP configuration such as OAuth login, access tokens, account IDs, on-prem URLs, default projects, or SSL certificates./explaining-code-healthUse when a user asks what Code Health means, how to interpret scores, or why Code Health matters in daily development./guiding-refactoring-with-code-healthUse when refactoring unhealthy code and needing Code Health findings to choose small safe steps and verify improvement./installing-and-activating-codehealth-mcpUse when installing the CodeHealth MCP Server binary or package, registering it in an AI assistant, or copying agent guidance files into a repository./making-the-business-case-for-code-healthUse when a user asks for ROI, stakeholder justification, delivery impact, or defect-risk reduction from improving Code Health in a file./prioritizing-technical-debtUse when users with a CodeScene instance ask what to improve first across a project, which hotspots matter most, or how to rank refactoring candidates.npx claudepluginhub codescene-oss/codehealth-mcp --plugin codesceneOther plugins' skills for the same job