code-quality

A code-review workflow for finding quality issues, style violations, likely bugs, and code smells. A code smell is a pattern that may make code harder to maintain or more error-prone.

In plain words
What is it for?
It helps perform quick, thorough, or deep reviews of files or directories, including bug prediction, security checks, and gaps in test coverage.
Why use it?
It brings several review concerns together so developers can find structural and reliability problems in one pass.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/smart-ai-memory/attune-ai/code-quality
Any agent
npx skills add Smart-AI-Memory/attune-ai --skill code-quality
Clone the repo
git clone --depth 1 https://github.com/Smart-AI-Memory/attune-ai

Made for: Claude Code, Codex.

Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 610 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.00610
Opus 5 $0.00018 $0.00305
Sonnet 5 $0.00007 $0.00122
Haiku 4.5 $0.00004 $0.00061

Measured 3d ago against content hash 1a37ab6872e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/code-quality/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Quality

IMPORTANT: Start your response with a context preamble.

Call help_lookup(topic="code-quality", mode="preamble") and display the returned preamble text as a blockquote. Then tell the user they can say "tell me more" for a step-by-step guide, or answer the scoping questions below to proceed.

If the MCP call fails, fall back to:

Code Quality — Reviews your code for style issues, likely bugs, and structural problems in one pass.

Scoping

Before running, ask:

  1. Scope: "Which files or directory should I review?"
  2. Depth: "Quick scan, thorough, or deep review?"
    • Quick: code_review only
    • Thorough: code_review + bug_predict combined
    • Deep: deep_review (security + quality + test gaps)

Execution

Quick scan:

code_review(path="<user-specified path>")

Thorough analysis:

code_review(path="<user-specified path>")
bug_predict(path="<user-specified path>")

Merge and deduplicate results from both tools.

Deep review (multi-pass: security, quality, test gaps):

deep_review(path="<user-specified path>")

Output Format

Prefer the rich panel. If the tool response includes panel_html, pass it to mcp__visualize__show_widget — the universal report panel (title, score, findings/category sections; from attune.workflows.report_panel). It shows an explicit "did not complete" state on failure, never a false "clean". Fall back to the markdown below when the widget surface is unavailable.

## Code Quality Report

**Health:** X/100 | **Files:** Y | **Issues:** Z

### Issues by Category
| Category | Count | Severity |
|----------|-------|----------|
| Style | X | Low |
| Correctness | Y | High |
| Security | Z | Critical |
| Predicted Bugs | W | Medium |

### Details
| File | Line | Issue | Source |
|------|------|-------|--------|

### Predicted Bug Risks
| File | Pattern | Confidence |
|------|---------|------------|

Help

After presenting results, call:

help_lookup(topic="code-quality", mode="workflow_help")

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 100 lines · 36 tokens per session scan A 1a37ab6872e8

Subscribe to this mod's changes

code-quality is a skill published in the GitHub repository Smart-AI-Memory/attune-ai (10 stars, last pushed 3d ago), licensed Apache-2.0. It adds 36 tokens to every session and 610 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

beastmode

Multi-agent orchestration framework for high-intensity feature implementation. Routes work across model tiers: frontier models (Claude Fable, Kimi 3, Opus; Codex only when explicitly selected) own design, architecture, and review sign-off, while the pinned Luna Max economy lane handles implementation and mechanical…

lac5q/beastmode · 125 tokens

oma-scholar

Scholarly research companion using Knows sidecar spec (.knows.yaml). Generates, validates, reviews, queries, and compares structured research-paper sidecars, and fetches them from knows.academy. Use for academic literature search, survey synthesis, paper authoring assistance, and peer review with token-efficient…

first-fluke/oh-my-agent · 73 tokens

github

Interact with GitHub (issues, PRs, repos, releases) using the gh CLI. Use when asked to read or write GitHub state — open an issue, fetch PR diff, comment, list runs, etc.

Team-Commonly/commonly · 49 tokens

agentic-workflow-designer

Conversational skill that interviews users to design new agentic workflows.

bradygaster/squad · 19 tokens

creating-skills

Guide for creating Claude Code skills following Anthropic's official best practices. Use when user wants to create a new skill, build a skill, write SKILL.md, update an existing skill, or needs skill creation guidelines. Provides structure, frontmatter fields, naming conventions, and new features like dynamic context…

redai-infra/Relax · 70 tokens

task-planning

计算任务 gap 并产出下一步可执行子任务 List[TaskSpec];gap 已闭返回空数组。对齐案例剧本 gwqie46v7hzr1w6h(存储行业尽调)确定式分解。.

inclusionAI/Avernet · 58 tokens