Runs linting, complexity analysis, duplication detection, and dead code identification. Detects project config, auto-selects appropriate tools, and formats findings into a GitHub issue.
Ships in dlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run code quality analysis against the current project and create a GitHub issue with findings.
Before running, read ../dlc/references/ISSUE-TEMPLATE.md now for the issue format, and read ../dlc/references/REPORT-FORMAT.md now for the findings data structure.
Scan for linting configuration and project type:
| Config File | Linter | Language |
|---|---|---|
.eslintrc* / eslint.config.* / biome.json | ESLint / Biome | JS/TS |
ruff.toml / pyproject.toml (with [tool.ruff]) | Ruff | Python |
.golangci.yml / .golangci.yaml | golangci-lint | Go |
clippy.toml / Cargo.toml | Clippy | Rust |
.rubocop.yml | RuboCop | Ruby |
Also check for formatter configs: .prettierrc*, .editorconfig, rustfmt.toml.
Run the detected linter with JSON/machine-readable output:
Select the tool based on availability (command -v), not exit codes — linters exit non-zero when issues are found, which is a valid result to capture.
# JS/TS — select by availability
if command -v eslint >/dev/null 2>&1; then
eslint . --format=json 2>/dev/null
elif command -v biome >/dev/null 2>&1; then
biome check . --reporter=json 2>/dev/null
fi
# Python — prefer Ruff, fall back to flake8
if command -v ruff >/dev/null 2>&1; then
ruff check . --output-format=json 2>/dev/null
elif command -v flake8 >/dev/null 2>&1; then
flake8 . --format=json 2>/dev/null
fi
# Go
command -v golangci-lint >/dev/null 2>&1 && golangci-lint run --out-format=json 2>/dev/null
# Rust
command -v cargo-clippy >/dev/null 2>&1 && cargo clippy --message-format=json 2>/dev/null
# JS/TS — eslint complexity rule or cr tool
eslint . --rule '{"complexity": ["warn", 10]}' --format=json 2>/dev/null
# Python
radon cc . --json --min=C 2>/dev/null
# General — if no tool available, use Claude analysis
# Look for functions > 50 lines, cyclomatic complexity > 10, deep nesting > 4 levels
# JS/TS
jscpd . --reporters=json 2>/dev/null
# General
# If no tool available, Claude analysis: search for repeated code blocks > 10 lines
# JS/TS — select by availability
if command -v knip >/dev/null 2>&1; then
knip --reporter=json 2>/dev/null
elif command -v ts-prune >/dev/null 2>&1; then
ts-prune 2>/dev/null
fi
# Python
command -v vulture >/dev/null 2>&1 && vulture . 2>/dev/null
If no dedicated quality tools are available, use the Explore agent to discover code quality hotspots across the codebase. Use repomix-explorer (if available) for large codebases to get a structural overview. Then use targeted Grep and Read for detailed analysis:
Map tool output to the findings format from REPORT-FORMAT.md.
Severity mapping (reinforced here for defense-in-depth):
| Finding Type | Severity |
|---|---|
| Error-level lint violation | High |
| Cyclomatic complexity > 20 | High |
| Warning-level lint violation | Medium |
| Cyclomatic complexity 10-20 | Medium |
| Duplication > 50 lines | Medium |
| Dead code / unused exports | Low |
| Style/formatting issues | Info |
Read ../dlc/references/ISSUE-TEMPLATE.md now and format the issue body exactly as specified.
Critical format rules (reinforced here):
[DLC] Quality: {summary of top finding}dlc-qualityAcquire BRANCH for the Scan Metadata table above — ISSUE-TEMPLATE.md's lifecycle acquires REPO itself. Then follow ISSUE-TEMPLATE.md's Issue Creation Command lifecycle exactly — substitute {skill-name} = quality, {Type} = Quality, {type} = quality, {additional-required-sections} = '## Raw Output':
BRANCH=$(git branch --show-current)
echo "BRANCH=$BRANCH" # ISSUE-TEMPLATE.md's Write step is a separate tool call and can't see this shell's variables
Quality check complete.
- Linter: {detected linter}
- Tools used: {list}
- Findings: {high} high, {medium} medium, {low} low
- Issue: #{number} ({url})
If no findings, skip issue creation and report: "No quality issues found."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ESLint, Biome, Ruff, golangci-lint, Knip, Python, TypeScript, JavaScript
linting, dead-code, code-complexity, duplication-detection, code-quality
/dlc:qualityfrom dlc
npx claudepluginhub rube-de/cc-skills --plugin dlc10 skills in this plugin
/babysitPR babysitter: monitors CI status, auto-rebases when behind, auto-fixes CI where possible, delegates review comment handling to dlc:pr-check, and re-requests review after fixes. Designed for /loop usage with Remote Control./dlcDev Life Cycle quality gates: run security scans, code quality checks, performance analysis, test coverage, and PR review compliance. Routes to domain-specific sub-skills or runs all checks in sequence./git-opsGit hygiene: clean up merged branches, prune stale remotes, and verify repository state./perfPerformance analysis: bundle size checks, profiling, benchmarks, and algorithmic complexity review. Identifies performance-sensitive areas and creates a structured GitHub issue./pr-checkPR review compliance: fetch review comments from an open PR, categorize as resolved/unresolved/dismissed, critically evaluate fixable items, implement approved fixes, and reply inline. Pass --unattended to halt on human-judgment items (emitted as Pending-Human) instead of prompting via AskUserQuestion./pr-validityPR validity analysis: fetch PR diff, extract new code additions, search existing codebase for duplicate or overlapping implementations, classify changes, and create a structured GitHub issue.Other plugins' skills for the same job