Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

ai-code-quality-skill

skill · lkdx0220/ai-code-quality-skillNOASSERTION licenceAudited 12 Oct 2026 · source 4d22f60b71ed

★ 0pushed today
✓SAFEGrade B · 89/100 · 12 Oct 2026 · 4d22f60
0repo stars · whole lkdx0220/ai-code-quality-skill

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4d22f60b71ed and found no filesystem, network or shell access and a hard-coded secret (see the findings). What it does: INVOKE THIS SKILL when the user asks to 审查代码, 代码质量, 可维护性, AI 味, slop, 重构风险, 安全扫描, Sonar E 到 A, quality gate, ruff/mypy/radon/vulture/coverage, or before committing/refactoring a large change. Runs a unified local…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “ai-code-quality-skill (lkdx0220/ai-code-quality-skill)”. Retrieved 12 Oct 2026. https://modelsatlas.com/skills/lkdx0220/ai-code-quality-skill

Trust audit

Audit 0.4.1 · source read 12 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high1 medium2 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsFoundSee the findings; values are never shown

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeWARN3
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (3)

MEDIUMHard-coded secretssecret.private_key · tests/test_redact.py:43
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1
text = "…"
Why
No further detail recorded for this rule.
Fix
—
LOWCode injectioncode.eval_exec · tests/test_parsers.py:21
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
assert _safe_evidence("insecure_config_eval", "insecure_config", "eval(") == "eval("
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWInsecure cryptocrypto.weak_hash · src/ai_code_quality/schema.py:44
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return hashlib.sha1(raw.encode("utf-8")).hexdigest()
Why
No further detail recorded for this rule.
Fix
—

Audit 0.4.1 · source sha 4d22f60b71ed · 12 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • Publisherlkdx0220 GitHub userOwner of the repository this skill is read from
  • Source folderlkdx0220/ai-code-quality-skillThe exact folder we audited
  • LicenceNOASSERTIONAs the repository states it
  • Commit pinned for this verdict4d22f60b71edA new audit runs when the source changes
  • Repository statusNot archivedPushed today
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: INVOKE THIS SKILL when the user asks to 审查代码, 代码质量, 可维护性, AI 味, slop, 重构风险, 安全扫描, Sonar E 到 A, quality gate, ruff/mypy/radon/vulture/coverage, or before committing/refactoring a large change. Runs a unified local…

---
name: ai-code-quality
description: "INVOKE THIS SKILL when the user asks to 审查代码, 代码质量, 可维护性, AI 味, slop, 重构风险, 安全扫描, Sonar E 到 A, quality gate, ruff/mypy/radon/vulture/coverage, or before committing/refactoring a large change. Runs a unified local quality workflow: DeepSec L1/L2 + 可维护性工具链 + 基线对比 + 分批修复计划 + 复扫验收 + 质量门."
---

# ai-code-quality(cq)

统一本地代码质量工作流。核心入口是 `cq` CLI(独立安装,不属于 DSH),
本 skill 只定义"何时调、怎么调、如何汇报"——实现细节一律以 `cq --help` 和产物为准。

<when-to-use>
- 用户说"帮我看看这段代码能不能维护""AI 写的代码太乱了""审一下这个项目"
- 用户要代码质量评级、安全扫描、复杂度/死代码/覆盖率/类型检查
- 用户要修一轮大改动、做重构、提交前检查
- 用户要"从 E 修到 A"式的质量提升工作流
</when-to-use>

<when-not-to-use>
- 只讨论单一语法错误:直接修,不用跑全流程
- 用户只要 DeepSec 安全扫描:直接 `python -m deepsec shield scan`
- 用户只要某一个小工具的原始输出(如只跑 ruff):直接跑那个工具
</when-not-to-use>

<workflow>
1. 陌生环境先 `cq doctor --format json`;缺工具时把 install 命令原样转告用户,
   征得同意再安装(绝不静默 pip install)。deepsec 缺失可降级(安全维度无结论)。
2. `cq scan --project <路径>` 全量扫描,读 audits/<run_id>/summary.json 的 tools[]:
   任何 skipped/timeout/error 都不许当"通过"汇报。
3. `cq triage --run <run_id>` 看四维分布与修复批次,选最有效的 1-3 批。
4. 修之前 `cq baseline --run <run_id> --name baseline` 固化基线。
5. 修复:自动修复类用 `cq fix --run <id> --batch N --apply`(需用户显式批准);
   其余批次按 triage 指引人工修。一次只修一类,每批跑测试。
6. `cq scan` 复扫 → `cq diff --run <新run> --baseline baseline`(exit 1 = 有新增 blocker/high,
   必须处理)→ `cq gate --run <新run> --baseline baseline --target A` 验收。
7. 确认误报/用户说暂不修的 finding 用 `cq suppress`(必须带理由);
   大改/全量格式化后 id 失配时用 `cq suppress --reapply --run <新run>` 按签名对齐。
8. 汇报:diff 的数字(新增 X / 修复 Y / 仍存在 Z / 豁免 W)+ gate 各检查项状态 + 产物路径。

起步期覆盖率提示:默认阈值 80% 对测试刚起步的仓库必然红。让用户在仓库根放 `cq.toml`
设一个当前可达成的 `coverage_threshold`(如 40),配提升计划逐级上调——gate 红着才有意义。
</workflow>

<hard-rules>
- cq 默认只读;`cq fix --apply` 必须用户明确批准,apply 后必须跑测试,绝不自动 commit。
- 一次只修一类规则,每批必须跑测试。
- 工具缺失/超时 → skipped,不允许静默 pass。
- 不把密钥、token、.env 内容写进报告(cq 已统一脱敏)。
- DeepSec L3 / Spear / 外部 AI review 必须显式授权,本 skill 永不默认调用。
- suppression 必须写理由;不许为了让 gate 变绿而豁免真问题。
- 报告只回摘要和产物路径,不要把工具原始输出全贴回来。
- 汇报注明检测能力来自底层开源工具(ruff/mypy/radon/vulture/pytest/import-linter/DeepSec),cq 只做聚合编排。
</hard-rules>

## 环境引导(第一次使用必读)

cq 的能力来自 8 个外部工具,不一定已安装。`cq doctor` 会告诉你缺什么、装到哪。
安装知识只在 doctor 一处维护:不要凭记忆拼安装命令,一律以 doctor 输出为准。

**解释器陷阱(新机器必踩,先看这段再决定装不装)**:cq 装在 uv tool/pipx 隔离 venv 时,
`cq doctor` 默认只探 cq 自带解释器——系统 Python 里已装好的工具链它一开始看不见。
doctor/scan 已内置兜底:默认解释器缺核心工具时自动改用 PATH 上工具链全齐的系统 Python,
并在输出里给出固化命令。若要显式指定:

```bash
cq doctor --python <系统python.exe> --deepsec-home <DeepSec仓库路径>   # 显式探测
# 固化(任选其一):设 CQ_PYTHON / CQ_DEEPSEC_HOME 环境变量;仓库根 cq.toml;每次传 --python
```

**不要一看到"缺 5 个工具"就 pip install 重装一遍**——先确认是不是解释器指错了。
另外:工具报 error/timeout 时先查环境(临时目录/缓存不可写),cq 会把崩溃如实报 error
而非静默当 ok,受限环境配方见 README「受限环境怎么跑」。

详细说明见仓库 `agent-adapters/generic/PROMPT.md`(与本文件同步维护,以仓库版本为准)。

Excerpt, first 2,717 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit 4d22f60

Download folder ↗
uv tool install git+https://github.com/lkdx0220/ai-code-quality-skill
pip install -e .   # 开发态
pip install ruff mypy radon vulture pytest pytest-cov import-linter
pip install git+https://github.com/Unclecheng-li/DeepSec        # 形态一:pip 安装
git clone https://github.com/Unclecheng-li/DeepSec <任意路径>    # 形态二:源码 + 环境变量
uv tool install --editable .

Commands as the repository documents them: shown, never run by us. Our verdict covers commit 4d22f60b71ed only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
Claude CodeMentioned in its text, not testedSkills for Claude Code · About Claude Code
CodexMentioned in its text, not testedSkills for Codex · About Codex
CursorMentioned in its text, not testedSkills for Cursor · About Cursor
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source 4d22f60b71ed

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/lkdx0220/ai-code-quality-skill/badge.svg)](https://modelsatlas.com/skills/lkdx0220/ai-code-quality-skill/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Chinese Code Review✓SAFE

jnMetaCode/superpowers-zh

中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。

★ 8.3kGrade B
Chinese Commit Conventions✓SAFE

jnMetaCode/superpowers-zh

中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。

★ 8.3kGrade B
Chinese Documentation✓SAFE

jnMetaCode/superpowers-zh

中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。

★ 8.3kGrade B
Chinese Git Workflow✓SAFE

jnMetaCode/superpowers-zh

国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。

★ 8.3kGrade B
Dispatching Parallel Agents✓SAFE

jnMetaCode/superpowers-zh

当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用

★ 8.3kGrade B
Executing Plans✓SAFE

jnMetaCode/superpowers-zh

当你要在当前会话里亲自担任实现者执行一份实现计划时使用——你的人类伙伴选择了内联执行,或者没有可用的子智能体工具

★ 8.3kGrade B

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/lkdx0220/ai-code-quality-skill/badge.svg)](https://modelsatlas.com/skills/lkdx0220/ai-code-quality-skill/)

Questions about ai-code-quality-skill

What does the ai-code-quality-skill skill do?
AI Agent Skill + 本地 CLI(cq):把 ruff/mypy/radon/vulture/pytest/import-linter/DeepSec 聚合成一套代码质量工作流——扫描/归因/基线/分批修复/质量门,可装进 DSH/Claude Code/Codex/Cursor
Is ai-code-quality-skill safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can ai-code-quality-skill access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does ai-code-quality-skill work with?
Its documentation mentions claude-code, codex and cursor. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (4d22f60b71ed), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.