/codescene:safeguarding-ai-generated-codefrom codescene
Gates AI-generated code with Code Health reviews before commit, handoff, or pull request to catch maintainability regressions.
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 Code Health safeguards before declaring AI-touched code ready. The goal is to catch maintainability regressions early and prevent agents from normalizing technical debt.
Do not use this skill for broad refactoring discovery or project-level prioritization.
code_health_review: Review each AI-modified file immediately after the change.pre_commit_code_health_safeguard: Check staged or modified files before commit.analyze_change_set: Check a branch or PR-style change set against a base ref.code_health_review on that file.pre_commit_code_health_safeguard before commit-oriented recommendations as a broader gate across staged or modified files.analyze_change_set before PR-oriented recommendations as a final branch-level gate.code_health_review and keep iterating until the issue is removed or the user explicitly accepts the risk.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-health, quality-gate, ai-code-review, pre-commit, pull-request
npx claudepluginhub codescene-oss/codehealth-mcp --plugin codescene9 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.Other plugins' skills for the same job