verify-quality SKILL.md skillA
verify-quality from fengshao1227/ccg-workflow is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add fengshao1227/ccg-workflow/verify-quality@git:20260829.3eccf14Pins git:20260829.3eccf14 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- fengshao1227/ccg-workflow
- Path
dsh-ccg/skills/verify-quality/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260829.3eccf14, committed Aug 29, 2026
- Size
- 3,558 bytes
- Repository stars
- 5,957
- License
- MIT
代码质量校验关卡。检测复杂度、重复代码、命名规范、函数长度等质量指标。当用户提到代码质量、复杂度检查、代码异味、重构建议、lint检查、代码规范时使用。在复杂模块、重构完成时自动触发。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# ⚖ 校验关卡 · 代码质量 ## 核心原则 ``` 代码质量 = 可读性 + 可维护性 + 可测试性 劣质代码是技术债,技术债是道基裂痕 复杂度是 bug 的温床 ``` ## 自动检查 运行质量检查脚本(跨平台): ```bash # 在 skill 目录下运行 node scripts/quality_checker.js <扫描路径> node scripts/quality_checker.js <扫描路径> -v # 详细模式 node scripts/quality_checker.js <扫描路径> --json # JSON 输出 ``` ## 检测指标 ### 复杂度指标 | 指标 | 阈值 | 超标后果 | |------|------|----------| | **圈复杂度** | ≤ 10 | 🟠 警告,建议拆分 | | **函数长度** | ≤ 50 行 | 🟠 警告,建议拆分 | | **文件长度** | ≤ 500 行 | 🟡 提示,考虑拆分 | | **参数数量** | ≤ 5 | 🟠 警告,考虑封装 | | **嵌套深度** | ≤ 4 | 🟠 警告,建议重构 | | **行长度** | ≤ 120 | 🔵 提示 | ### 命名规范 | 类型 | 规范 | 示例 | |------|------|------| | **类名** | PascalCase | `UserService`, `HttpClient` | | **函数名** | snake_case | `get_user`, `process_data` | | **常量** | UPPER_SNAKE | `MAX_RETRY`, `DEFAULT_TIMEOUT` | | **变量** | snake_case | `user_id`, `total_count` | ### 代码异味 | 异味 | 说明 | 严重度 | |------|------|--------| | 重复代码 | 相似代码块 > 10 行 | 🟠 High | | 过长参数列表 | 参数 > 5 个 | 🟡 Medium | | 魔法数字 | 未命名的常量 | 🟡 Medium | | 死代码 | 未使用的函数/变量 | 🔵 Low | | 注释代码 | 被注释的代码块 | 🔵 Low | ## 自动触发时机 | 场景 | 触发条件 | |------|----------| | 复杂模块 | 代码行数 > 200 | | 重构完成 | 重构任务完成时 | | 代码审查 | PR/MR 审查时 | | 提交前 | 代码提交前检查 | ## 校验流程 ``` 1. 扫描代码文件 2. 计算复杂度指标 …
Read the whole file at its exact version.
How to install
mdr add fengshao1227/ccg-workflow/verify-quality@sha256:58bc95a2fe0a34d4The line at the top of this page pins the label git:20260829.3eccf14, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_hagtd2uoc6mgjub3)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 29, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3558 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
fengshao1227/ccg-workflow · 5,957 stars · license MIT · pushed 2026-11-02 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_hagtd2uoc6mgjub3 GET https://markdownregistry.com/api/v1/resolve?ref=fengshao1227/ccg-workflow/verify-quality GET https://markdownregistry.com/api/v1/blob/58bc95a2fe0a34d409e126e132c95ee595f75dab82d40ce0b1120fefb70a02fb
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from fengshao1227/ccg-workflow
Every file in fengshao1227/ccg-workflow