code-standards

code-standards is a skill for Claude Code from atretyak1985/swarmery. It costs 49 tokens per session (958 once invoked), scanned A, original, Apache-2.0.

A read-only review of code against a project's conventions, including naming, imports, type safety, framework patterns, and deployment configuration practices.

In plain words
What is it for?
Use it for standards checks in TypeScript, Python, Next.js, and service configuration.
Why use it?
It finds convention violations with file-and-line references and suggested corrections, without changing the code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the core plugin — 37 skills, 8 commands, 13 agents shipped together

Good fit Use it for standards checks in TypeScript, Python, Next.js, and service configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atretyak1985/swarmery/code-standards
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.

Any agent
npx skills add atretyak1985/swarmery --skill code-standards
Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 13 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-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/atretyak1985/swarmery/code-standards/github.svg)](https://agentmods.dev/skills/atretyak1985/swarmery/code-standards)
Your own site
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/code-standards"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/code-standards/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-standards

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/code-standards"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/code-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00049 $0.00958
Opus 5.5 $0.00020 $0.00383
Sonnet 5.5 $0.00010 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured 26d ago against content hash 735e1b8be34f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-standards 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 26d 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/core/skills/code-standards/SKILL.md · 95 lines

How it starts

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

Purpose

Review code against the project's per-repository conventions and return a violation report with file:line citations, severities, and before/after fixes. Covers type safety (any detection, annotations), naming, Next.js 15 patterns, Python typing and async style, service-config hygiene, and 12-factor build-once/deploy-anywhere rules.

"Is this function too long or too complex?" → code-quality. "Does this use any, follow naming, or comply with framework patterns?" → here.

Rules (never violate)

  1. Review only — never fix in place; fixes go to @implementation-agent.
  2. Every violation cites file:line and carries a severity; Critical and High findings include before/after code.
  3. NEXT_PUBLIC_* is allowed in source, prohibited as a Docker --build-arg.
  4. Module-scope process.env.X is a violation; lazy access inside a function is not.
  5. Never emit length, nesting, or complexity findings — code-quality owns those.
  6. Close the report with the STANDARDS-VIOLATIONS: trailer; cap it at 300 lines.

Resources

  • Read resources/review-procedure.md before reviewing: the 8-step procedure, severity criteria, output template, self-check, escalation triggers, failure modes, and a worked example.
  • Read resources/checklists.md for the rule set matching repo_type — web app, device/edge, service config, and the 12-factor build rules.
  • Read resources/sandbox-preflight.md when the run edits files from a git worktree isolate: one operation per Bash call, and the checks to make before the first read or write.

How to use

What it does

Checks code against your conventions and hands back an actionable report: type safety including any types, naming, framework patterns, Python type hints and async style, service-config hygiene, and 12-factor build rules — each finding with a citation, a severity, and corrected code for the serious ones.

When to use it

  • TypeScript/Next.js code changed and wants a standards pass before merge.
  • Python device or edge code needs type hints and async patterns verified.
  • A service config changed and needs lint, version bump, and template guards checked.
  • A Dockerfile or CI pipeline changed and needs 12-factor compliance verified.

Read the full file on GitHub · 95 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 26d ago Changed · +3 lines 735e1b8be34f
  2. 1mo ago First seen · 92 lines · 49 tokens per session scan A 16b99087165a

Subscribe to this mod's changes

code-standards is a skill published in the GitHub repository atretyak1985/swarmery (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 958 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

Other skills, from other repositories

hone

Audit and improve an existing Quickstop plugin's quality against Claude Code plugin spec.

acostanzo/quickstop · 17 tokens

learn-from-sage

Detection-gap (miss) analysis for Code Review Sage. Learn from shipped fixes, acted-on human comments, and design outcomes to close reviewer blind spots. Inline during review stages a candidate; a human triggers a one-shot AI consolidation into the live ruleset.

kirodotdev/KiroCrew · 56 tokens

code-standards

Code quality standards and style guide for reviewing pull requests.

mastra-ai/mastra · 15 tokens

manage-pull-requests

Manage Harness Code pull requests via MCP. List, create, update, and merge PRs; add reviewers and submit review decisions (approve / request changes); post, update, and delete comments; read the discussion timeline; and check CI status. Use when asked to open a PR, merge a PR, approve a PR, leave a code review…

harness/harness-skills · 123 tokens

sonarqube-mcp

Provides SonarQube and SonarCloud integration patterns via the Model Context Protocol (MCP) server. Enables quality gate monitoring, issue discovery and triaging, pre-push code analysis, and rule education directly in the agent workflow. Use when the user wants to check quality gates, search for Sonar issues, analyze…

giuseppe-trisciuoglio/developer-kit · 127 tokens

audit

Repo audits, one mode or all (codebase, docs, process, perf, tests, threat-model, motion, SEO, debt). Triggers "audit the codebase", "full audit", "perf audit", "audit the tests", "threat model", "motion audit", "seo audit", "debt ledger".

darkroomengineering/cc-settings · 69 tokens