Skillquality 0.56

checking-code-quality

Checks code quality metrics including complexity, duplication, naming conventions, and function length. Use when running quality gates, reviewing code smells, or checking lint rules. Automatically triggered on complex modules or post-refactor.

Price
free
Protocol
skill
Verified
no

What it does

代码质量校验关卡

命令

node scripts/quality_checker.js <路径>
node scripts/quality_checker.js <路径> -v      # 详细
node scripts/quality_checker.js <路径> --json  # JSON

检测指标

指标阈值超标处置
圈复杂度<=10拆分函数
函数长度<=50 行提取子函数
文件长度<=500 行拆分模块
参数数量<=5封装对象
嵌套深度<=4早返回/提取
行长度<=120换行

代码异味

异味严重度处置
重复代码 >10 行High提取公共函数
参数 >5 个Medium封装参数对象
魔法数字Medium提取常量
死代码/注释代码块Low删除

说明:bin/ 下带 Node shebang 的 CLI 入口文件按命令编排层处理,不参与文件长度阈值;其业务逻辑仍应优先下沉到 bin/lib/

命名规范

类名 PascalCase | 函数 snake_case/camelCase | 常量 UPPER_SNAKE | 变量 snake_case/camelCase

重构范式

# 深嵌套 → 早返回
def process(data):
    if not c1: return
    if not c2: return
    # 主逻辑

# 重复 → 提取
def common(): ...
def f1(): common()
def f2(): common()

触发条件

复杂模块 | 重构完成 | 提交前。报告以 quality_checker.js 实际输出为准。

Capabilities

skillsource-telagodskill-checking-code-qualitytopic-agent-skillstopic-ai-agenttopic-ai-assistanttopic-ai-personalitytopic-blue-teamtopic-character-cardtopic-claude-codetopic-clitopic-codextopic-codex-clitopic-configurationtopic-developer-tools

Install

Quality

0.56/ 1.00

deterministic score 0.56 from registry signals: · indexed on github topic:agent-skills · 211 github stars · SKILL.md body (942 chars)

Provenance

Indexed fromgithub
Enriched2026-05-18 18:55:05Z · deterministic:skill-github:v1 · v1
First seen2026-05-16
Last seen2026-05-18

Agent access