Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计异常

quality-check质量检查

Agent Skill

quality-check 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

470

周安装

20

GitHub Stars

3

下载量

165
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/meriley/claude-code-skills --skill quality-check

简介

quality-check 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Quality Check Skill

⚠️ MANDATORY SKILL - AUTO-INVOKED BY SAFE-COMMIT

Purpose

Enforce code quality standards through automated linting, formatting, and static analysis. Ensures code meets project conventions before committing.

CRITICAL: This skill is automatically invoked by safe-commit. NEVER run linters manually.

🚫 COMMIT BLOCKING RULE - ZERO TOLERANCE

Commits are FORBIDDEN unless the LATEST quality check run shows ZERO issues.

This means:

  1. If quality check finds errors → FIX THEM
  2. After fixing → RERUN quality check (MANDATORY)
  3. If rerun finds errors → FIX AND RERUN AGAIN
  4. Repeat until clean pass
  5. Only after a clean pass may you proceed to commit

The last quality check output MUST show all checks passing. No exceptions.

CRITICAL: Full Repository Scope

All quality checks run on the ENTIRE repository:

  • ruff check. - ALL Python files
  • eslint. - ALL JS/TS files
  • golangci-lint run./... - ALL Go files

You MUST fix ALL issues found, not just those in files you modified. Whoever runs quality-check is responsible for fixing discovered issues.

🚫 NEVER DO THIS

  • ❌ Running eslint or npm run lint manually before commit
  • ❌ Running golangci-lint run manually before commit
  • ❌ Running flake8 or black manually before commit
  • ❌ Running linters outside of this skill during commit workflow

Let safe-commit invoke this skill automatically. Manual linting before commit is REDUNDANT and FORBIDDEN.


⚠️ SKILL GUARD - READ BEFORE RUNNING LINTERS MANUALLY

Before using Bash tool to run linters, answer these questions:

❓ Are you about to run npm run lint or eslint?

STOP. Are you doing this before commit? If YES, use safe-commit instead (it invokes this skill).

❓ Are you about to run golangci-lint run?

STOP. Are you doing this before commit? If YES, use safe-commit instead (it invokes this skill).

❓ Are you about to run flake8, black, or mypy?

STOP. Are you doing this before commit? If YES, use safe-commit instead (it invokes this skill).

❓ Are you about to run prettier --check or formatting tools?

STOP. Are you doing this before commit? If YES, use safe-commit instead (it invokes this skill).

❓ Are you checking code quality before committing?

STOP. Invoke safe-commit skill (it will invoke this skill automatically).

IF YOU RUN LINTERS MANUALLY BEFORE COMMIT, YOU ARE CREATING REDUNDANCY AND WASTING TIME.

When to run linters manually:

  • ✅ During development/refinement (not for commit)
  • ✅ When user explicitly requests quality check

When NOT to run linters manually:

  • ❌ Before commit (use safe-commit instead)
  • ❌ As part of commit workflow (use safe-commit instead)

Safe-commit invokes this skill automatically. Don't duplicate the work.


Philosophy

CRITICAL: Treat linter issues as syntax errors, not warnings.

  • All linter issues MUST be fixed before commit
  • No exceptions unless explicitly approved by user
  • Auto-fix when tools support it
  • Manual fix when auto-fix unavailable

⚠️ CRITICAL: Rerun Policy - ZERO TOLERANCE (All Languages)

Assuming fixes resolved all errors is FORBIDDEN.

This applies to ALL auto-fix operations in ANY language:

  • ESLint --fix, Prettier --write (Node.js/TypeScript)
  • gofmt -w, golangci-lint --fix (Go)
  • ruff --fix, ruff format, black, isort (Python)
  • cargo fmt, cargo clippy --fix (Rust)
  • spotless:apply (Java)

After ANY Fix (Auto or Manual):

  1. MUST rerun the same check to verify fix succeeded
  2. MUST NOT proceed until rerun passes
  3. MUST NOT assume any fix caught everything
  4. MUST repeat fix → rerun cycle until clean

The Fix-Rerun Loop (MANDATORY)

while (quality_check_has_errors) {
    fix_errors();           // Auto-fix or manual
    rerun_quality_check();  // ALWAYS rerun after fixing
}
// Only exit loop when rerun shows ZERO errors

Why This Matters

  • Auto-fix tools don't catch 100% of issues
  • Manual fixes can introduce new issues
  • Some fixes reveal previously hidden issues
  • Proceeding without verification can commit broken code
  • Commits with quality issues pollute the codebase

Example (WRONG) - Applies to ALL Languages

❌ Found 5 linting errors
❌ Running auto-fix...
❌ "Fixed! Proceeding to commit..."  ← FORBIDDEN - DID NOT RERUN

Example (ALSO WRONG) - Manual Fix Without Rerun

❌ Found 3 type errors
❌ [Manually fixed the code]
❌ "Fixed! Proceeding to commit..."  ← FORBIDDEN - DID NOT RERUN

Example (CORRECT) - Full Fix-Rerun Loop

✅ Found 5 linting errors
✅ Running auto-fix...
✅ Re-running lint check...          ← MANDATORY RERUN
✅ Found 1 remaining error (requires manual fix)
✅ [Fix manually]
✅ Re-running lint check...          ← MANDATORY RERUN AGAIN
✅ All checks pass. Safe to proceed.

Workflow (Quick Summary)

Core Steps

  1. Detect Languages: Check for package.json, go.mod, requirements.txt, Cargo.toml, etc.
  2. Run Standard Checks: Linting, formatting, type checking, static analysis (auto-fix when possible)
  3. Run Deep Audits: Language-specific skills (control-flow-check, type-safety-audit, n-plus-one-detection)
  4. Handle Results: Report pass/auto-fix/fail, provide specific error locations and fixes
  5. Verify Multi-Language: All languages must pass before commit

Language Support

  • Node.js/TypeScript: ESLint, Prettier, tsc, npm audit
  • Go: gofmt, go vet, golangci-lint, go mod tidy
  • Python: ruff (lint+format), mypy | fallback: black, flake8, isort
  • Rust: rustfmt, clippy
  • Java: Maven/Gradle spotless, checkstyle

For detailed language-specific commands and checks:

Read `~/.claude/skills/quality-check/references/LANGUAGE-CHECKS.md`

Use when: Need specific tool commands, troubleshooting linter issues, or setting up new language

For deep audit integration (control-flow, type-safety, N+1 detection):

Read `~/.claude/skills/quality-check/references/DEEP-AUDITS.md`

Use when: Running language-specific deep audits or integrating specialized checks

For result handling and reporting patterns:

Read `~/.claude/skills/quality-check/references/RESULT-HANDLING.md`

Use when: Formatting output, handling auto-fix scenarios, or reporting manual fix requirements


Integration with Other Skills

This skill is invoked by:

  • safe-commit - Before committing changes
  • create-pr - Before creating pull requests

Best Practices

  1. Run in parallel - Multiple languages? Check simultaneously
  2. Auto-fix first - Always attempt auto-fix before asking user
  3. Be specific - Show exact file, line, and error
  4. Suggest solutions - Don't just report errors, help fix them
  5. Verify fixes - Re-run checks after auto-fixing
  6. No skip option - Quality checks are mandatory

Tool Installation Detection

Before running tools, check if they're available:

# Example for Node.js:
if ! command -v eslint &> /dev/null; then
    echo "ESLint not found. Install with: npm install -D eslint"
    exit 1
fi

If tool missing:

  • Report missing tool
  • Provide installation command
  • Ask user to install or use project's package.json scripts

Configuration Detection

Check for project-specific configuration:

  • .eslintrc.js, .eslintrc.json (ESLint)
  • .prettierrc, prettier.config.js (Prettier)
  • .golangci.yml (golangci-lint)
  • pyproject.toml (Python tools)
  • .editorconfig (Cross-language)

Use project config when available, otherwise use sensible defaults.

Handling Make/NPM Scripts

If project has quality scripts in Makefile or package.json:

# Check for make target:
make lint
make fmt

# Check for npm script:
npm run lint
npm run format

Prefer project scripts over direct tool invocation when available.

Emergency Override

Only if user explicitly states "skip quality checks" or "I acknowledge quality issues":

  1. Document the override in output
  2. List specific issues being ignored
  3. Suggest creating follow-up ticket
  4. Proceed with commit

This should be RARE - quality checks exist for good reason.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.59%
按下载量换算59

Claude

28.38%
按下载量换算47

Cursor

19.48%
按下载量换算32

Gemini CLI

8.2%
按下载量换算14

安全审计

Gen Agent Trust Hub

未通过

Socket

未通过

Snyk

通过

权限和风险

只读

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills