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.
npx skills add atretyak1985/swarmery --skill code-qualitygit clone --depth 1 https://github.com/atretyak1985/swarmeryWrote 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.
[](https://agentmods.dev/skills/atretyak1985/swarmery/code-quality)<a href="https://agentmods.dev/skills/atretyak1985/swarmery/code-quality"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/code-quality/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.
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/code-quality"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00054 | $0.00948 |
| Opus 5.5 | $0.00022 | $0.00379 |
| Sonnet 5.5 | $0.00011 | $0.00190 |
| Haiku 4.5 | $0.00005 | $0.00095 |
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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
Score TypeScript or Python source on structural quality: function length,
nesting depth, cyclomatic complexity, duplication, code smells, and
project-specific anti-patterns. Every finding cites file:line; every category
gets a 0–100 score. Audit only — this skill never edits code.
"Does this follow our conventions?" → code-standards, which owns any-type
detection, naming, and imports. "Is this too long or too deeply nested?" → here.
Rules (never violate)
- Never edit source — findings and scores only; fixes go to
@implementation-agent. - Every finding carries a
file:linecitation and a severity (Error / Warning). - Apply one threshold set per file — TypeScript thresholds never judge Python.
- Never grep for
anyor missing types; that iscode-standards' scope. - Skip generated, migration, and vendored files; blank and comment-only lines never count toward function length.
- Emit the machine-readable
QUALITY-SCORE:header as the report's first line.
Resources
- Read
resources/audit-procedure.mdbefore auditing: the threshold table, the 9-step procedure, the project-specific check list, the scoring formula, the self-check, escalation triggers, and failure modes. - Read
resources/report-format.mdwhen writing the report: the output template plus two worked examples (a TypeScript route handler, a Python device module).
How to use
What it does
Audits TypeScript or Python source for structural problems — functions that grew too long, blocks nested too deep, duplicated code, project anti-patterns — and returns a 0–100 score per category with every finding cited and a suggested fix. "This file feels messy" becomes a list you can act on.
When to use it
- A file or module needs checking for function length, complexity, or nesting.
- A pull request needs a structural quality assessment before review.
- A periodic quality audit of a repo or module is due.
- You just refactored and want proof the metrics improved.
What ships with it
2 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.
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.
- 3mo ago First seen · 99 lines · 54 tokens per session scan A 671012874d8a
code-quality is a skill published in the GitHub repository atretyak1985/swarmery (9 stars, last pushed today), licensed Apache-2.0. It adds 54 tokens to every session and 948 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.
code-quality compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-qualityatretyak1985/swarmery | Skill | 9 | today | Apache-2.0 | A | 54 | Claude Code |
| honeacostanzo/quickstop | Skill | 46 | 5mo ago | MIT | A | 17 | Claude Code |
| code-standardsmastra-ai/mastra | Skill | 30k | today | none | A | 15 | Claude Code, Codex |
| agent-architecture-analysttravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 13 | Claude Code |
| auditdarkroomengineering/cc-settings | Skill | 56 | today | MIT | A | 93 | Claude Code, Codex |
| review-prFlorianBruniaux/claude-code-plugins | Skill | 48 | 4d ago | MIT | A | 45 | Claude Code |
| code-review-scopeeric-tramel/moraine | Skill | 122 | 27d ago | Apache-2.0 | A | 48 | Codex |