From codescene
Use when a user asks what to test first based on CodeScene findings, especially for high-risk hotspots or pull-request change sets.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codescene:risk-based-testing-with-code-healthThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the goal is to turn CodeScene risk signals into practical testing priorities.
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):
npx claudepluginhub codescene-oss/codescene-mcp-server --plugin codesceneIdentifies riskiest codebase files using git churn analysis, complexity metrics, coupling, and lenskit risk scores for technical debt hotspots.
Proactively hunts for bugs by analyzing codebase risk (complexity, coverage, structure), then spawns investigators that write reproducing tests to validate suspected bugs. Advisory only — produces findings and tickets, no fixes.
Prioritizes technical debt using CodeScene data by ranking hotspots, goals, and file metrics into an actionable improvement plan.