Skip to content
Back to skills

Codehealth Mcp

ASecurity

Code health assessment qua CodeScene MCP — đánh giá structural maintainability, detect regression trước commit/PR. Score 1-10, tích hợp Claude Code.

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
ai-agentsbash

Works with

  • claude code
  • mcp

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add yanacuti1121/Yana-AI --skill codehealth-mcp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codehealth Mcp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codehealth Mcp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yanacuti1121-codehealth-mcp/badge)](https://www.skillsdirectory.com/skills/yanacuti1121-codehealth-mcp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codehealth-mcp
description: "Code health assessment qua CodeScene MCP — đánh giá structural maintainability, detect regression trước commit/PR. Score 1-10, tích hợp Claude Code."
origin: ECC
user-invocable: true
---

# CodeHealth MCP — Structural Maintainability Assessment

Tích hợp CodeScene vào Claude Code để đánh giá code health trước khi sửa/commit.

## Setup

```bash
# Set access token
export CS_ACCESS_TOKEN=your-codescene-token

# Thêm vào mcp-configs/mcp-servers.json
{
  "codescene": {
    "command": "npx",
    "args": ["@codescene/codehealth-mcp"],
    "env": { "CS_ACCESS_TOKEN": "${CS_ACCESS_TOKEN}" }
  }
}
```

**Không cần credentials trong repo.** Token chỉ qua env var.

## 4 tools có sẵn

| Tool | Dùng khi |
|------|---------|
| `code_health_review` | Trước khi sửa code — xem baseline |
| `code_health_score` | Sau khi sửa — detect regression |
| `pre_commit_code_health_safeguard` | Trước khi commit — block nếu score giảm |
| `analyze_change_set` | Trước khi mở PR — assess toàn branch |

## Score scale (1–10)

| Score | Màu | Ý nghĩa |
|-------|-----|---------|
| 9.0–10.0 | 🟢 Green | Healthy — safe to extend |
| 4.0–8.9 | 🟡 Yellow | Tech debt — tránh refactor lớn |
| 1.0–3.9 | 🔴 Red | Severe debt — giới hạn scope |

## Workflow chuẩn

```
1. code_health_review    # Xem baseline trước khi sửa
2. Sửa code (targeted)
3. code_health_score     # Check sau khi sửa
4. Lặp lại cho đến khi score không giảm
5. pre_commit_code_health_safeguard  # Trước commit
6. analyze_change_set    # Trước khi mở PR
```

**Không mark "done" nếu score regression.**

## Khi MCP không khả dụng

Skip check và tiếp tục — chỉ cần human approval tường minh.

## Source

`@codescene/codehealth-mcp` · https://codescene.com

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.