본문으로 건너뛰기
cccskills
무료GitHub에 공개

code-quality

Code quality: cleanup, linting, formatting, quality gates.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(10)

  • SKILL.md6.0 KB
  • references/biome-rules-reference.md11.1 KB
  • references/cleanup-report-template.md3.1 KB
  • references/cleanup-scan-commands.md4.1 KB
  • references/code-cleanup.md11.7 KB
  • references/pyproject-template.toml15.4 KB
  • references/python-report-template.md3.1 KB
  • references/python-tool-commands.md4.4 KB
  • references/ruff-rules-reference.md10.0 KB
  • scripts/run_quality_gate.py2.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Code Quality

Four modes. Select by request signal:

SignalMode
Dead code, stale TODOs, unused imports, technical debtCleanup
Lint Python/JS/TS, run ruff, run biome, format codeLinting
Python quality checks, ruff+pytest+mypy+banditPython Quality Gate
Multi-language quality gate, general "quality check"Universal Quality Gate

Default: Python-specific requests run Python Quality Gate. General requests run Universal Quality Gate.


Mode A: Cleanup

Scan for 9 categories of technical debt: stale TODOs, unused imports, dead code, missing type hints, deprecated functions, naming inconsistencies, high complexity, duplicate code, missing docstrings. Follow references/code-cleanup.md for the full 3-phase workflow (SCOPE, SCAN, REPORT).

Key principles:

  • Read CLAUDE.md first for project conventions
  • Scan only what was requested; ask for a target rather than scanning everything
  • Exclude vendor/, node_modules/, .venv/, build/, dist/, generated/, .git/
  • Prioritize findings by impact/effort: Quick Wins (auto-fixable, <5 min) > Important (bugs, security) > Polish (style)
  • Apply auto-fixes only with explicit user permission; check first, fix, review diff, rerun checks

Mode B: Linting

Check or fix Python with Ruff and JavaScript/TypeScript with Biome. Read project instructions, pyproject.toml, and biome.json first; preserve configured rules.

TaskPythonJavaScript/TypeScript
Checkruff check .npx @biomejs/biome check src/
Format checkruff format --check .Included in Biome check
Fix lintruff check --fix .npx @biomejs/biome check --write src/
Formatruff format .npx @biomejs/biome format --write src/

Use project environment (./venv/bin/ruff). If configured, use make lint or make lint-fix. Check first; apply fixes only within requested scope. Review git diff, undo incorrect fixes, rerun checks. Do not change rules or install new tooling to get a pass.

Common fixes: F401 = remove/use import. I001 = sort imports. E501 = shorten lines. Biome noVar = use let/const. useConst = mark unchanged bindings.


Mode C: Python Quality Gate

Run checks in order. Read repository configuration first; project commands and thresholds override defaults.

Detect: Find pyproject.toml, setup.py, .python-version. Check tool availability: ruff and pytest required; mypy and bandit optional unless project requires them.

Execute:

OrderCommandCondition
1ruff check . --output-format=groupedRequired
2ruff format --check .Required
3mypy . --ignore-missing-imports --show-error-codesIf available
4pytest -v --tb=short --cov=src --cov-report=term-missingCoverage only when configured
5bandit -r src/ -ll --format=screenIf available

Run all checks even after one fails. Do not skip tests to get a pass.

Assess: Prioritize syntax/undefined errors, failing tests, security findings before style. Report per-tool status with actionable file:line diagnostics.

Fix: When authorized, run ruff check . --fix and ruff format ., review diff, rerun checks.


Mode D: Universal Quality Gate

Auto-detect languages and run configured checks. Read repository instructions first.

python3 ~/.claude/skills/code-quality/universal-quality-gate/scripts/run_quality_gate.py

Options: --staged (pre-commit), --lang python (single language), --fix (apply fixes), -v (verbose).

Language detection uses hooks/lib/language_registry.json:

LanguageMarkersTools
Pythonpyproject.toml, requirements.txtruff, mypy, bandit
Gogo.modgofmt, golangci-lint, go vet
JavaScriptpackage.jsoneslint, biome
TypeScripttsconfig.jsontsc, eslint, biome
RustCargo.tomlclippy, cargo fmt
Shell*.shshellcheck

A gate pass means required tools passed; it does not prove tests, builds, or business behavior passed.


Deep References

Load on demand when the signal matches.

SignalReferenceContent
Full cleanup workflow (9 categories)references/code-cleanup.md3-phase cleanup: SCOPE, SCAN, REPORT
Language-specific scan commandsreferences/cleanup-scan-commands.mdPer-language commands and expected output
Cleanup report formattingreferences/cleanup-report-template.mdStructured report template
Ruff rules, F401/E711/B006references/ruff-rules-reference.mdRuff rule reference by category
Biome rules, ESLint migrationreferences/biome-rules-reference.mdBiome rule reference by category
Python quality tool commandsreferences/python-tool-commands.mdDetailed tool command options
Python quality reportreferences/python-report-template.mdStructured report template
pyproject.toml templatereferences/pyproject-template.tomlTool configuration template

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

accounts

무료

Manage multiple Claude Code accounts: add, list, check, launch, and install shell aliases for 10+ isolated CLAUDE_CONFIG_DIR profiles.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

notque/vexjoy-agent4422026년 10월 17일 업데이트

Improve architecture across modules by deepening interfaces.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

notque/vexjoy-agent4422026년 10월 17일 업데이트

Assessment: read-only inspection, codebase overview, value analysis, health checks, ADR consultation, decision analysis, multi-perspective critique.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

notque/vexjoy-agent4422026년 10월 17일 업데이트

Background memory consolidation — overnight review, merge, and injection payload for memory files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

notque/vexjoy-agent4422026년 10월 17일 업데이트

Jev-driven browser automation: Jev picks operations, programs execute, a text model writes field values only when Jev cannot pick one from the goal.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

notque/vexjoy-agent4422026년 10월 17일 업데이트

Write, compose, integrate, and improve programs that call Jev, TypeSafe's System One judgment model.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

notque/vexjoy-agent4422026년 10월 17일 업데이트

notque의 스킬 모두 보기

이 스킬의 문제 신고