code-quality-reviewer

code-quality-reviewer is an agent for Claude Code from aliyun/alibabacloud-agent-toolkit. It costs 58 tokens per session (854 once invoked), scanned A, original, Apache-2.0.

A review agent for checking the quality and security of Alibaba Cloud Terraform code. It evaluates how the files are organized, how resources are named, and whether the infrastructure follows common safety practices.

In plain words
What is it for?
Reviewing Terraform provider settings, variables, resource organization, security-group rules, encryption, access policies, version constraints, and repeated-resource patterns.
Why use it?
It identifies risky settings such as exposed secrets, overly open remote access, missing encryption, and excessive permissions before deployment. It also flags maintainability and structure problems.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the alibabacloud-spec-ops plugin — 6 skills, 2 agents shipped together

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 agents/aliyun/alibabacloud-agent-toolkit/code-quality-reviewer
Clone the repo
git clone --depth 1 https://github.com/aliyun/alibabacloud-agent-toolkit

Made for: Claude Code.

Or install alibabacloud-spec-ops, the plugin that ships this one along with the rest of its 6 skills, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-quality-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/aliyun/alibabacloud-agent-toolkit/code-quality-reviewer.svg)](https://agentmods.dev/agents/aliyun/alibabacloud-agent-toolkit/code-quality-reviewer)
Your own site
<a href="https://agentmods.dev/agents/aliyun/alibabacloud-agent-toolkit/code-quality-reviewer"><img src="https://agentmods.dev/badge/agents/aliyun/alibabacloud-agent-toolkit/code-quality-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 854 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.1 $0.00058 $0.00854
Opus 5 $0.00029 $0.00427
Sonnet 5 $0.00012 $0.00171
Haiku 4.5 $0.00006 $0.00085

Measured 6d ago against content hash 0682f5a7a0ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

code-quality-reviewer 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 6d 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.

plugins/alibabacloud-spec-ops/agents/code-quality-reviewer.md · 113 lines

How it starts

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

Code Quality Reviewer

You are a code quality reviewer for Alibaba Cloud Terraform code. Your job is to evaluate the code against Terraform best practices, security standards, and maintainability requirements.

Your Task

Given:

  • Generated Terraform code (.tf files) targeting the alicloud provider

You must evaluate the code quality and report issues categorized by severity.

Review Categories

Security (Critical — auto-FAIL if any found)

  • No hardcoded credentials or secrets (API keys, passwords, tokens)
  • Sensitive variables use sensitive = true
  • No overly permissive security group rules (0.0.0.0/0 for SSH port 22 or RDP port 3389)
  • Encryption enabled where supported (disk encryption, RDS TDE, OSS SSE)
  • Least-privilege RAM policies (no * actions on * resources)
  • No public access unless explicitly required and justified
  • No plaintext secrets in variable defaults

Structure (Important)

  • Provider version pinned with >= constraint
  • Required Terraform version specified (required_version)
  • Logical file organization (main.tf, variables.tf, outputs.tf, data.tf, locals.tf)
  • No circular dependencies
  • Appropriate use of count/for_each for repetitive resources
  • Data sources used for dynamic values (zones, images, instance types)

Naming (Important)

  • Consistent snake_case resource names
  • Descriptive variable names with description field
  • Consistent naming pattern across all resources (e.g., ${var.project}-${var.env}-*)
  • Output values have description field
  • Resource names are meaningful (not resource1, temp, etc.)

Best Practices (Moderate)

  • All resources tagged with common tags (Project, Environment, ManagedBy)
  • Variables have sensible defaults where appropriate
  • locals block used for computed/repeated expressions
  • Outputs defined for important values (IDs, IPs, endpoints, connection strings)
  • No deprecated resource attributes or argument names
  • Comments explain non-obvious decisions

Maintainability (Moderate)

Read the full file on GitHub · 113 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. 6d ago First seen · 113 lines · 58 tokens per session scan A 0682f5a7a0ec

Subscribe to this mod's changes

code-quality-reviewer is an agent published in the GitHub repository aliyun/alibabacloud-agent-toolkit (21 stars, last pushed 5d ago), licensed Apache-2.0. It adds 58 tokens to every session and 854 once invoked, about $0.0003 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-30.

Related

Other agents, from other repositories

legal-risk-review

Reviewer-class. Read-only review of what other departments commit to — contract terms, privacy and data handling, risk acceptance, and compliance findings. Holds no write surface. Its findings are not overrulable by the department under review.

cbrock84/headcount · 50 tokens

legal-risk

Legal & Risk (CLO/CCO). Owns plugins/legal-risk/ and nothing else. Delegate work in this department's remit here.

cbrock84/headcount · 32 tokens

compliance-checker

Enforces brand compliance rules — banned phrases, required disclaimers, image rules, data claim verification, and platform-specific restrictions.

indranilbanerjee/socialforge · 30 tokens

compliance-auditor

Expert compliance auditor specializing in regulatory frameworks, data privacy laws, and security standards. Masters GDPR, HIPAA, PCI DSS, SOC 2, and ISO certifications with focus on automated compliance validation and continuous monitoring.

NickCrew/Claude-Cortex · 52 tokens

deployment-engineer

Configure and optimize deployment pipelines, container packaging, and release automation. Ensures resilient rollouts, observability, and compliance across environments. Engage when establishing or upgrading delivery infrastructure.

NickCrew/Claude-Cortex · 39 tokens

leave-tracker

Weekly agent that monitors open employee statutory leave with hard legal deadlines — statutory maternity, paternity, adoption, shared parental, and parental bereavement leave under ERA 1996 and the associated Regulations; long-term sickness with reasonable-adjustments obligations under EqA 2010 — and fires…

uk-agents/uk-legal-plugins · 130 tokens