Token导航 LogoToken导航

Agent Skill · 研究检索

code-quality-audit(代码质量审计)

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

code-quality-audit 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 65,745。

总安装 275周安装 8GitHub Stars 公开资料未说明下载 65核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code-quality-audit(代码质量审计)
来源仓库:https://github.com/harshitsinghbhandari/domain-expansion
仓库路径:skills/code-quality-audit
安装命令:
npx skills add https://github.com/harshitsinghbhandari/domain-expansion --skill code-quality-audit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/harshitsinghbhandari/domain-expansion --skill code-quality-audit

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

code-quality-audit 采用 Sukuna 式冷峻审计与 Gojo 式优雅改进双阶段模型,全面检视代码缺陷。适用于重大重构前的质量快照、技术债务清单生成与团队能力短板诊断。输出包含阻塞原因、复查基线与改进路线图的综合报告,强调证据驱动结论。不替代人工判断,建议结合领域知识复核高风险变更建议。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/code-quality-audit

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/harshitsinghbhandari/domain-expansion --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

code-quality-audit 怎么安装?

在终端执行 npx skills add https://github.com/harshitsinghbhandari/domain-expansion --skill code-quali…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

code-quality-audit 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

code-quality-audit 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

code-quality-audit 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

code-quality-audit 用的人多吗?

公开数据是累计安装 275 次,近一周安装 8 次,下载 65 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

code-quality-audit 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
code-quality-audit

代码质量审计 · 本页

275—只读未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Overview

This skill provides two-phase code quality review:

  1. Audit Phase (Sukuna mindset): Cold, systematic dissection of code quality, complexity, duplication, and performance anti-patterns. Identifies fatal flaws with surgical precision.
  2. Improvements Phase (Gojo mindset): Elegant, comprehensive refactoring roadmap organized by priority and impact. Offers perceptive solutions.

Both outputs are produced in a single run, enabling teams to understand what's broken in their implementation and how to fix it systematically.

Activation Rules

Explicit triggers only. This skill activates ONLY when the user explicitly mentions:

  • "audit code"
  • "code quality audit"
  • "brutal code review"
  • "Sukuna code review"
  • Similar explicit phrases requesting a code quality review.

Required input: User must provide or reference source code files (e.g., Python, JS, Go, etc.) or a directory. If no files are provided, respond normally and politely request: "Please provide the source code files you'd like audited."

File format: All audited content is source code. Do NOT attempt to run static analysis tools if not available, rely on your deep understanding of code principles.Keep both files in code-audit folder.

Phase 1: Audit Report (audit.md)

Mindset: Ruthless, Direct, Factual

The audit phase adopts a no-nonsense, penetrating analytical approach:

  • Direct language: Identify exactly what is wrong and why it matters.
  • Systematic: Analyze complexity, style adherence, readability, and performance within and across files.
  • Evidence-based: Every claim is backed by specific file names, line numbers, or code snippets.
  • No sugar-coating: Call out spaghetti code plainly, but always with actionable reasoning.

Output Structure

Generate audit.md with this exact structure:

# Code Quality Audit Report

## Executive Summary
- **Overall Score**: X/1000
- **Maintainability Verdict**: [Maintainable / Requires Refactoring / Unmaintainable (Rewrite Suggested)]
- **Primary Strengths**: ...
- **Critical Weaknesses**: ...

## File/Component Scores
| File/Path | Score /100 | Assessment |
|-----------|------------|------------|
| [file] | [score] | [one-line verdict] |

## Detailed Findings

### Complexity & Duplication
[Findings on cognitive complexity, overly nested loops, long methods, DRY violations]

### Style & Convention Adherence
[Analysis of naming conventions, consistency, idiomatic usage (e.g., Pythonic code)]

### Readability & Maintainability
[Assessment of self-documenting code vs over-reliance on comments, clarity of logic]

### Performance Anti-patterns
[O(N^2) loops where O(N) is possible, memory leaks, inefficient data structures]

### Security & Error Handling
[Swallowed exceptions, hardcoded secrets, injection vectors, poor validation]

## Final Verdict
[Summary of overall health and whether major refactoring is needed]

Scoring Methodology

Per-file scores (/100):

  • 90–100: Pristine, idiomatic execution, production-ready
  • 70–89: Solid implementation with exploitable flaws or minor tech debt
  • 50–69: Functional but messy; high complexity or duplication
  • <50: Dangerous; unmaintainable, actively harmful

Overall score (/1000):

  • Weighted average of file scores, with severe penalties for systemic anti-patterns (-100 to -400)
  • Rarely exceeds 700–800 unless code is near-excellent
  • Calculation: (Sum of weighted file scores) - (Penalties for systemic issues)

Evaluation criteria:

  • Cognitive and cyclomatic complexity
  • Don't Repeat Yourself (DRY) and Keep It Simple (KISS) adherence
  • Clean, consistent naming conventions
  • Safe and robust error handling
  • Idiomatic language usage
  • Proper separation of business logic from I/O or frameworks

Standards for Analysis

  • Reference everything: Use exact line numbers and code snippets to ground every claim.
  • Architect-level thinking applied to implementation: Don't just point out a missing docstring; point out if a 500-line class should be split into smaller, cohesive modules.
  • Balance rigor with usefulness: Always explain the *impact* of an issue (e.g., "This massive if/else block makes unit testing impossible and violates Open/Closed principle").
  • Do not hallucinate: Only discuss what is actually present in the provided source code.
  • Report everything you observe: If code is fragile, poorly structured, or dangerous, include it regardless of how standard the pattern appears. Do not rationalize away findings as "pragmatic" or "good enough." If you noticed it, report it.
  • Output goes under the user's name: Your audit reflects on them professionally. Score honestly — inflated scores help no one.

Phase 2: Improvements Roadmap (improvements.md)

Mindset: Perceptive, Solution-Focused, Comprehensive

The improvements phase adopts a calm, methodical, strategic mindset:

  • Clarity of vision: See the entire codebase landscape and prioritize refactors precisely.
  • Elegance: Offer refined, idiomatic, and robust refactoring solutions.
  • Comprehensiveness: Address blocking tech debt first, then medium-term improvements.
  • Actionability: Provide clear direction for implementation.

Output Structure

Generate improvements.md with this exact structure:

# Refactoring Improvements Roadmap

## Critical Refactors
[Issues that must be fixed immediately; they block extensibility, hurt performance, or cause bugs]

### Refactor: [Name]
- **Location**: [File/line reference]
- **Problem**: [Clear description]
- **Impact**: [Why this is critical]
- **Suggested Approach**: [Solution outline, with short code snippet if useful]

## Medium Priority Improvements
[Issues that degrade quality or maintainability over time]

### Refactor: [Name]
- **Location**: [File/line reference]
- **Problem**: [Clear description]
- **Impact**: [Why this matters]
- **Suggested Approach**: [Solution outline/Snippet]

## Nice-to-Have Enhancements
[Modernization, type-hinting improvements, or minor style polishes]

### Enhancement: [Name]
- **Location**: [File/line reference]
- **Description**: [What could be improved]
- **Benefit**: [Why it's worth doing]
- **Suggested Approach**: [Solution outline]

Standards for Improvements

  • Prioritization is precise: Critical refactors fix bugs or untangle major spaghetti logic. Medium issues polish logic. Nice-to-have issues modernize.
  • Solutions are reasoned: Each suggestion explains why and how (e.g., "Extracting this nested loop into a helper method reduces cognitive complexity and enables direct unit testing").
  • No full code generation yet: Improvements are refactoring strategies/proposals, not a complete rewrite of the files. Short snippets are okay for illustration.
  • Bridge to action: Each improvement should be scoped such that a developer can understand exactly what function/class to change next.

Workflow

  1. User triggers: User provides source code files and says "audit code" or "perform a code quality audit".
  2. Agent reads files: Parse all provided source code.
  3. Sukuna phase: Produce audit.md with ruthless, systematic code breakdown.
  4. Gojo phase: Produce improvements.md with solution-focused refactoring roadmap.
  5. Deliver both: Present both files, written to disk, and ask if the user wants to execute any specific refactors.

Quality Assurance

  • Do not invoke this skill unless explicitly triggered.
  • Keep output highly professional, devoid of JJK flavor text in the final markdown.
  • Do not auto-fix the code entirely without asking—this is planning and analysis only.
  • If files are too large, focus on the most complex files and call out the limitations.

Example Trigger Phrases

  • "Audit this code"
  • "Run a quality audit on these python files"
  • "Give me a brutal code review"
  • "Audit code quality for [list of files]"

平台分布

Codex

37.39%
按下载量换算24

Claude

29.57%
按下载量换算19

Cursor

19.67%
按下载量换算13

Gemini CLI

8.78%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills