skill-quality
/skill-quality
Use when the user asks to check, review, audit, fix bugs or improve code quality for an Agent Skill (SKILL.md) or the current project. Detect the languages and frameworks actually used — do not assume a stack — and when reviewing current work, limit the scan and the edits to the uncommitted change set. Also covers skill structure, dependency problems, SonarQube / SonarCloud issues and quality gates. 触发词:检查 skill、技能质量、代码质量、找 bug、 改 bug、当前改动、依赖分析、漏洞、SonarQube、质量门禁、代码审查。
- Author
- LoveMuZiLi ↗
- Repository
- skill-quality-mcp ↗
- Licence
- MIT
- Last repository change
- 06.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 06.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when the user asks to check, review, audit, fix bugs or improve code quality for an Agent Skill (SKILL.md) or the current project. Detect the languages and frameworks actually used — do not assume a stack — and when reviewing current work, limit the scan and the edits to the uncommitted change set. Also covers skill structure, dependency problems, SonarQube / SonarCloud issues and quality gates. 触发词:检查 skill、技能质量、代码质量、找 bug、 改 bug、当前改动、依赖分析、漏洞、SonarQube、质量门禁、代码审查。
Original author description
Use when the user asks to check, review, audit, fix bugs or improve code quality for an Agent Skill (SKILL.md) or the current project. Detect the languages and frameworks actually used — do not assume a stack — and when reviewing current work, limit the scan and the edits to the uncommitted change set. Also covers skill structure, dependency problems, SonarQube / SonarCloud issues and quality gates. 触发词:检查 skill、技能质量、代码质量、找 bug、 改 bug、当前改动、依赖分析、漏洞、SonarQube、质量门禁、代码审查。
How it works
- 选哪个工具
- 流程
- 读结果时注意
- SonarQube 配置
SKILL.md preview
--- name: skill-quality description: >- Use when the user asks to check, review, audit, fix bugs or improve code quality for an Agent Skill (SKILL.md) or the current project. Detect the languages and frameworks actually used — do not assume a stack — and when reviewing current work, limit the scan and the edits to the uncommitted change set. Also covers skill structure, dependency problems, SonarQube / SonarCloud issues and quality gates. 触发词:检查 skill、技能质量、代码质量、找 bug、 改 bug、当前改动、依赖分析、漏洞、SonarQube、质量门禁、代码审查。 --- # Skill Quality 本插件自带 `skill-quality` MCP 服务。检查技能或代码质量时调用它的工具,不要自己手写一遍检查逻辑。 ## 选哪个工具 | 用户想要 | 调用 | | --- | --- | | 一句话结论、完整报告 | `full_quality_report`(target 传技能名、技能目录或代码目录) | | 本机有哪些技能、有没有重名 | `list_skills` | | 只看某个技能的结构(frontmatter、失效链接、锚点、引用文件) | `inspect_skill` | | 依赖装没装、声明没声明、有没有已知漏洞 | `analyze_dependencies`(要查漏洞传 `check_vulnerabilities=true`,会联网查 OSV) | | 当前未提交改动里的 bug 和代码质量 | `code_quality_scan`(`scope=changed`,path 传项目根目录) | | 整个目录的 bug、安全问题、代码异味、复杂度、重复代码 | `code_quality_scan`(`scope=all`,默认) | | SonarQube 能不能连上 | `sonar_check_connection` | | SonarQube 里的问题、指标、质量门禁 | `sonar_issues`、`sonar_project_metrics` | | 扫描并上传到 SonarQube | `sonar_run_scan`(会在用户机器上跑扫描器,先征得同意) | ## 流程 用户要查或改的是**当前项目、这次改动、未提交代码**时,走「当前改动」。用户点名某个技能或某个目录做全面检查时,走「全面检查」。 ### 当前改动 1. 不要假设语言或框架。`path` 传工作区根目录的绝对路径,调用 `code_quality_scan`,`scope=changed`。还要依赖或技能结构时改用 `full_quality_report`,同样传 `scope=changed`。 2. 以报告里的「项目技术」和每个改动文件的语言为准。同一仓库可以混用多种技术,每个文件按它自己的语言和项目里已有的写法改。 3. 只改这次未提交的文件,并且只处理报告里列出来的问题(都落在改动行上)。同一文件里没改到的旧问题不要扩进去修,也不要改没动过的文件。 4. 报告里「本地规则未覆盖」的文件一样要处理:打开它们,修明确的 bug 和明显的质量问题,并尽量跑项目自己的检查命令(如 `cargo check`、`dotnet build`、`gradle check`、对应语言的 linter 或测试)。没有内置规则不等于可以跳过。 5. 确定的 Bug、漏洞,以及会让代码出错或难维护的问题,直接改。安全热点只提示,不改业务逻辑。升级依赖、大段重写先问用户。 6. 改完用同一个 `scope=changed` 再扫一遍,确认这次改动范围内的问题已经下去。 ### 全面检查 1. 先调用 `full_quality_report`(`scope=all`)。目标是技能时传技能名或技能目录的绝对路径;不确定名字先 `list_skills`。 2. 先向用户报结论(通过 / 有警告 / 未通过)和原因,再按 BLOCKER → CRITICAL → MAJOR 列要修的问题,每条带文件和行号。 3. 用户同意后再改代码;改完重跑同一个工具对比。 4. 安全热点(SECURITY_HOTSPOT)只提示人工确认,不擅自改业务逻辑。 5. 升级依赖、重写复杂函数这类有副作用的改动,先问用户。 ## 读结果时注意 - 默认返回简版:各类计数完整;问题只逐条列前 15 条(漏洞 → Bug → 安全热点 → 代码异味),其余按规则给出条数;末尾的“完整报告”是全部明细的文件路径。 - 要逐条修复时,用读文件工具按需读那个完整报告(可只读相关段落),不要反复传 `detail=true` 把全文拉进对话。 - `list_skills` 默认只列名称;找某个技能传 `query`,同名冲突(内容不同)才需要关注,镜像(同名同内容)无害。 - 报告里写“达到文件上限,后面的未扫描”时,结论只覆盖已扫描部分,要告诉用户。 - 本地扫描覆盖 Python、JavaScript / TypeScript(含 JSX / TSX、React)、Vue / Svelte 单文件组件、Java、Kotlin、Go、C#、PHP,以及 Spring `application.yml` / `.properties`、`appsettings.json`、MyBatis Mapper XML。`scope=changed` 时如果改动里还有别的语言,报告会点名文件;那些文件按该语言改,不能因为没有内置规则就跳过。 - 规则 ID 形如 `java:S2629`、`typescript:S6479`:前缀是语言,Sxxxx 近似对应 SonarQube 同名规则;`local:xxx` 是 SonarQube 没有或做法不同的补充规则(如 `local:mybatis-dollar`、`local:vue-v-html`)。这些都不是 SonarQube 官方结果,用户配置了 SonarQube 时以 SonarQube 为准。 - 项目里装了 ESLint(且有配置)、ruff、go 时会自动合并 ESLint / ruff / go vet 的结果,报告“外部检查器”一行写明用了哪些。 - 测试文件(`__tests__/`、`*.test.ts`、`*_test.go`、`src/test/`…)不报安全类问题、重复字符串和超长函数,也不计入重复率;带 sourcemap 的编译产物直接跳过。 - 评级口径同 SonarQube:可靠性、安全性看最严重的 Bug、漏洞;可维护性看技术债比例(A ≤5%、B ≤10%、C ≤20%、D ≤50%)。 - 依赖分析覆盖 Python、npm(含 monorepo / 路径别名)、Maven、Gradle、Go modules、Composer、NuGet;有锁文件或已安装时才能查 OSV 漏洞。 - 依赖表里“是(代码自加路径)”表示包装在代码自己往 `sys.path` 加的目录里,换机器会失效。 ## SonarQube 配置 在系统环境变量里设置后重启 Cursor / Codex: - `SONAR_HOST_URL`:如 `http://localhost:9000`;SonarCloud 用 `https://sonarcloud.io` - `SONAR_TOKEN`:SonarQube → My Account → Security 生成的令牌 - `SONAR_PROJECT_KEY`:默认项目 key(工具参数可覆盖) - `SONAR_ORGANIZATION`:只有 SonarCloud 需要 没配置时报告自动只用本地规则,不算错误。
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · LoveMuZiLi/skill-quality-mcp | 90 | MIT |
| edmundmiller/dotfiles | 100 | MIT |
Database snapshot: 13.11.2026 · package version 301374b8d1fe (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100sonarqube
Expert SonarQube code quality and security scanning covering Quality Gates, static analysis (SAST), and test coverage tracking. Use when configuring SonarQube/SonarCloud, measuring code debt, or enforcing quality gates. - 98sonarqube-mcp
Provides SonarQube and SonarCloud integration patterns via the Model Context Protocol (MCP) server. Enables quality gate monitoring, issue discovery and triaging, pre-push code analysis, and rule education directly in the agent workflow. Use when the user wants to check quality… - 100sonarqube
Operate SonarQube-enabled repositories through the SonarQube CLI (`sonar`): verify authentication, discover project keys, inspect project metadata, issues, measures, and quality gates, analyze changed code, scan secrets and dependency risks, call authenticated APIs, trigger… - 100xwiki-fix-sonarqube-issue
Find and fix open SonarCloud (SonarQube) issues in the current XWiki repo and open a PR. Use when asked to fix/clear/triage a SonarQube issue, reduce SonarCloud findings, or run a "fix one Sonar issue" pass. Per-rule fix correctness and drop conditions live in the OKF under… - 100sonarqube
SonarQube/SonarCloud integration for continuous code quality. Setup, configuration, quality gates, and CI/CD integration. USE WHEN: user mentions "SonarQube", "SonarCloud", "quality gates", asks about "code coverage", "technical debt", "code smells", "sonar-project.properties",… - 100sonarqube-code-quality-and-security
Guides deep, tool-specific configuration of SonarQube/SonarCloud for combined code quality and security analysis — quality gate design, pull request decoration, technical debt ratio and maintainability rating, security hotspot triage, and sonar-project.properties/scanner CI…