Code Health MCP (CodeScene) — portable workflow
Real-time structural Code Health via CodeScene MCP — review before edits, verify score deltas after changes, gate commits and PRs. Use when reviewing code quality, refactoring, checking if AI changes degraded a file, or before commit/PR.
Use it only when the request supplies this domain, framework, data source or artifact; a shared keyword is not a match. Related skills, each for its own concern: bosskuai-conventional-commit-review, bosskuai-product-strategy, verification-before-completion, bosskuai-coding-best-practices, bosskuai-cybersecurity-risk, bosskuai-documentation-lookup, bosskuai-tdd-loop.
Workflow
Before you connect the MCP server to a private repo, check where it sends code. If code leaves the machine, get the user's approval first. The privacy links are in the Security and boundaries section of the source workflow.
Read the source workflow first, then work through these sections in order:
- Security and boundaries.
- How It Works.
- Connect the MCP server.
- Call standalone tools only.
- Interpret scores (1–10).
- Run the feedback loop.
- Resolve its
scripts/,references/,assets/and template paths againstreferences/upstream/, not the project root. Source skill names map through SOURCE.json (bossku skills show <id>). ECC slash commands, agent names and package-root paths are not installed: use what this host has, or say what is missing. - Check the CodeScene MCP server version installed, the tools it lists, and its latest stable release, checked live at work time, and the source prerequisites first. A documented command is an example, not permission to install packages, add an account, expose secrets, upload private content or change an external service.
- It can need a named provider, MCP server or API: check that it is available and in scope, report it when it is not, and never invent its output.
Done when
Apply the source “Security and boundaries”, “How It Works” guidance to the concrete request. Return the resulting code health mcp (codescene) artifact or diagnosis with source/command evidence for each conclusion.
- Compare scores only within one tool version. Record the score before and after a change, with the commit ID.
- Meet every check in the shared quality bar.
If an input, provider, runtime or authorisation is missing, stop that step, carry on with read-only analysis, and say exactly what is missing. A generated plan alone is not completion.
Adapted from the locally reviewed affaan-m/ECC snapshot: provenance and hashes in SOURCE.json, the original text and resources in references/upstream/ under its MIT licence. Copyright (c) 2026 Affaan Mustafa.