Command Palette

Search for a command to run...

Назад к скиллам
скилл № 81043

qc

Use when the user asks about code quality gates, SonarQube, static analysis rules, ESLint policy, coverage thresholds, cyclomatic complexity, coding standards…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить qc в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Quality Control

Purpose

Enforce code quality standards through quality gates, static analysis, peer reviews, and quality metrics automation.

Agent Protocol

Trigger

Exact user phrases: "code quality", "quality gate", "static analysis", "coding standards", "peer review", "code coverage", "cyclomatic complexity", "lint rules", "technical debt", "quality metrics", "quality dashboard", "SonarQube", "ESLint", "quality checklist", "quality gate failing", "coverage threshold".

Input Context

Before activating, verify:

  • The language/stack is known (for tool selection).
  • The current quality tooling is known (linter, static analysis, coverage).
  • The threshold values are defined or need to be defined.

Output Artifact

No file output. This skill produces text guidance, quality gate configurations, or quality reports.

Response Format

Answer exactly:

Quality Report: {scope}

Gate Status: PASS / FAIL

Metric Threshold Actual Status
... ... ... ...

Violations

{list of violations with file:line}

Action Items

{list of required fixes}

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick. No explanations of why quality matters.

Completion Criteria

This skill is complete when:

  • Quality gates are defined with measurable thresholds for the specific stack.
  • Each violation is identified with file, line, and rule.
  • Actionable fixes are specified for each failing gate.
  • Technical debt items are prioritized by severity and effort.

Max Response Length

Quality report: 25 lines. Gate configuration: 20 lines.

Workflow

Step 1: Define Quality Gates

Metric Threshold Tool
Code coverage >= 80% (overall), >= 90% (new code) Istanbul, JaCoCo, cargo-tarpaulin
Cyclomatic complexity <= 10 per function ESLint complexity, Radon
Duplication < 3% SonarQube, PMD
Code smells 0 blocker/critical SonarQube, CodeClimate
Security hotspots 0 SonarQube, CodeQL
Test success rate 100% CI pipeline
Lint errors 0 ESLint, Ruff, golangci-lint
Dependency vulnerabilities 0 critical/high npm audit, cargo audit, govulncheck

Step 2: Quality Gate Configuration

gates:
  coverage:
    overall: 80
    new_code: 90
  complexity:
    max_per_function: 10
    max_per_file: 50
  duplication:
    max_percent: 3
  lint:
    errors: 0
    warnings: 100
security:
  critical: 0
  high: 0
  medium: 5

Step 3: Static Analysis Configuration per Stack

TypeScript / JavaScript:

{
  "extends": ["eslint:recommended", "plugin:@typescript-eslint/strict"],
  "rules": {
    "complexity": ["error", 10],
    "max-lines-per-function": ["warn", 50],
    "no-console": "error"
  }
}

Python:

[tool.ruff]
line-length = 100
select = ["E", "F", "I", "N", "W", "C90"]
[tool.ruff.mccabe]
max-complexity = 10

Go:

linters:
  enable:
    - errcheck
    - gosimple
    - govet
    - staticcheck
    - cyclop
    - dupl
linters-settings:
  cyclop:
    max-complexity: 10

Step 4: Peer Review Quality Checklist

Pre-Merge Checklist

  • Code compiles without errors
  • Lint passes (zero errors)
  • Tests pass (unit + integration)
  • Code coverage meets threshold
  • No FIXME or to-do comments without a ticket reference
  • No commented-out code
  • No secrets or credentials in code
  • Error handling covers all paths
  • Documentation updated (README, API docs, ADR)
  • Changelog entry added (if applicable)

Step 5: Technical Debt Management

Category Examples Action
P0 — Critical Security vulnerability, data corruption Fix immediately, stop the line
P1 — High Performance bottleneck, missing error handling Fix this sprint
P2 — Medium Code duplication, dead code Schedule within 2 sprints
P3 — Low Style inconsistencies, naming issues Fix opportunistically

Technical Debt Register

ID Area Issue Severity Effort Sprint
TD-01 PaymentService Cyclomatic complexity 24 High 3d Sprint 5
TD-02 UserModule 15% duplication in validators Medium 1d Sprint 6
TD-03 ApiClient No retry logic on 5xx Critical 0.5d Sprint 4

Step 6: CI Quality Automation

jobs:
  quality:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0   # full history for accurate new-code detection
      - uses: actions/setup-node@v4
      - run: npm ci
      - run: npm run lint
      - run: npm run test -- --coverage
      - run: npm audit --audit-level=high
      - uses: sonarsource/sonarqube-scan-action@v6   # pin the current major; check releases
        env:
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
          SONAR_HOST_URL: ${{ s
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/inspection-process.md
  • references/qc-advanced.md
  • references/qc-checklists.md
  • references/qc-fundamentals.md
  • references/qc-metrics-dashboard.md
  • references/qc-process-framework.md
  • references/quality-gates-matrix.md
  • references/technical-debt-register.md

FAQ

Что делает скилл qc?

Use when the user asks about code quality gates, SonarQube, static analysis rules, ESLint policy, coverage thresholds, cyclomatic complexity, coding standards or quality dashboards. Produces quality gate rules and enforcement in CI. Not for reviewing a specific diff (use code-review) or test planning (use qa).

Как установить скилл qc?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл qc запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить qc с