Agent skill · Audited from source
ai-code-quality-skill
skill · lkdx0220/ai-code-quality-skillNOASSERTION licenceAudited 12 Oct 2026 · source 4d22f60b71ed
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…
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
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
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | WARN | 3 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (3)
MEDIUMHard-coded secretssecret.private_key · tests/test_redact.py:43
text = "…"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWCode injectioncode.eval_exec · tests/test_parsers.py:21
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
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
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 .
git clone https://github.com/lkdx0220/ai-code-quality-skill git -C ai-code-quality-skill checkout 4d22f60b71ed
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
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
| Codex | Mentioned in its text, not tested | Skills for Codex · About Codex |
| Cursor | Mentioned in its text, not tested | Skills for Cursor · About Cursor |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4d22f60b71ed
README badge
For maintainers · shows the latest audit
[](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.
Similar skills
All coding & review skills →jnMetaCode/superpowers-zh
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
jnMetaCode/superpowers-zh
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
jnMetaCode/superpowers-zh
中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。
jnMetaCode/superpowers-zh
国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。
jnMetaCode/superpowers-zh
当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用
jnMetaCode/superpowers-zh
当你要在当前会话里亲自担任实现者执行一份实现计划时使用——你的人类伙伴选择了内联执行,或者没有可用的子智能体工具
Add this badge to your README
[](https://modelsatlas.com/skills/lkdx0220/ai-code-quality-skill/)
<a href="https://modelsatlas.com/skills/lkdx0220/ai-code-quality-skill/"><img src="https://modelsatlas.com/skills/lkdx0220/ai-code-quality-skill/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about ai-code-quality-skill
What does the ai-code-quality-skill skill do?
Is ai-code-quality-skill safe to install?
What can ai-code-quality-skill access on my machine?
Which assistants does ai-code-quality-skill work with?
How current is this page?
Sources
- github.com/lkdx0220/ai-code-quality-skill — the audited source at commit 4d22f60b71ed and every finding aboveObserved · 12 Oct 2026
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.
- What does the ai-code-quality-skill skill do?
- Is ai-code-quality-skill safe to install?
- What can ai-code-quality-skill access on my machine?