NutriSport: Agent for Claude Code

.claude/agents/clean-arch-reviewer.md

clean-arch-reviewer is an agent for Claude Code from satanyakiv/NutriSport. It costs 0 tokens per session (308 once invoked), scanned A, original, MIT.

A code reviewer for Kotlin projects that checks Gradle dependencies, imports, file sizes, function sizes, and Android architecture boundaries.

In plain words
What is it for?
Use it to review Kotlin multi-module projects for Clean Architecture violations, such as feature modules depending on each other or Firebase code outside the network module.
Why use it?
It finds code that crosses forbidden layers or exposes the wrong kinds of models and services, which can make a project harder to maintain.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is satanyakiv/NutriSport's own configuration. It tells Claude Code how to work on NutriSport itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything NutriSport configures →

Reuse

Borrowing it

Nothing to install: this file belongs to satanyakiv/NutriSport. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/satanyakiv/NutriSport/main/.claude/agents/clean-arch-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/satanyakiv/NutriSport

Made for: Claude Code.

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 clean-arch-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/satanyakiv/nutrisport/clean-arch-reviewer/github.svg)](https://agentmods.dev/agents/satanyakiv/nutrisport/clean-arch-reviewer)
Your own site
<a href="https://agentmods.dev/agents/satanyakiv/nutrisport/clean-arch-reviewer"><img src="https://agentmods.dev/badge/agents/satanyakiv/nutrisport/clean-arch-reviewer/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 clean-arch-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/satanyakiv/nutrisport/clean-arch-reviewer"><img src="https://agentmods.dev/badge/agents/satanyakiv/nutrisport/clean-arch-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 308 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.00000 $0.00308
Opus 5 $0.00000 $0.00154
Sonnet 5 $0.00000 $0.00062
Haiku 4.5 $0.00000 $0.00031

Measured 11d ago against content hash 25eccbaade28, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

clean-arch-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 11d 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.

.claude/agents/clean-arch-reviewer.md · 26 lines

What it actually says

Clean Architecture Reviewer

Review all build.gradle.kts files and imports for Clean Architecture violations.

Rules to Check

  1. Feature modules must only depend on :domain, :shared:utils, and :shared:ui — NEVER on each other
  2. :network must NOT depend on :shared:ui
  3. :domain must have ZERO project dependencies (pure domain)
  4. :shared:utils must have ZERO project dependencies
  5. :shared:ui must only depend on :domain and :shared:utils
  6. DTOs (*Dto) must not appear in imports outside :network module
  7. Domain models (no suffix) must not appear in Composable function parameters — use *Ui models
  8. Firebase imports must only appear in :network module
  9. Max 150 lines per file, max 20 lines per function
  10. ViewModel must NOT be injected inside Screen composable — should be in Route

Process

  1. Read all build.gradle.kts files — check implementation(project(...)) dependencies
  2. Grep for cross-layer import violations
  3. Grep for DTO/Firebase leaks outside :network
  4. Check file lengths with wc -l

Report violations with file paths and line numbers. Group by severity (Critical / Warning).

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. 11d ago First seen · 26 lines · 0 tokens per session scan A 25eccbaade28

Subscribe to this mod's changes

clean-arch-reviewer is an agent published in the GitHub repository satanyakiv/NutriSport (11 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 308 tokens. 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

kotlin-reviewer

Kotlin and Android/KMP code reviewer. Reviews Kotlin code for idiomatic patterns, coroutine safety, Compose best practices, clean architecture violations, and common Android pitfalls.

affaan-m/ECC · 38 tokens

swift-reviewer

Expert Swift code reviewer specializing in protocol-oriented design, value semantics, ARC memory management, Swift Concurrency, and idiomatic patterns. Use for all Swift code changes. MUST BE USED for Swift projects.

affaan-m/ECC · 44 tokens

swift-performance-analyzer

Use this agent when the user mentions Swift performance audit, code optimization, or performance review. Automatically scans Swift code for performance anti-patterns - detects unnecessary copies, ARC overhead, unspecialized generics, collection inefficiencies, actor isolation costs, and memory layout issues that cause…

CharlesWiltgen/Axiom · 230 tokens

concurrency-auditor

Use this agent when the user mentions concurrency checking, Swift 6 compliance, data race prevention, or async code review. Automatically scans Swift code for Swift 6 strict concurrency violations - detects unsafe Task captures, missing @MainActor, Sendable violations, and actor isolation problems. user: "Can you…

CharlesWiltgen/Axiom · 144 tokens

swift-reviewer

Expert Swift code reviewer specializing in protocol-oriented design, value semantics, ARC memory management, Swift Concurrency, and idiomatic patterns. Use for all Swift code changes. MUST BE USED for Swift projects.

mturac/everything-openai-codex · 44 tokens

kotlin-abi-review

For library projects: check whether the next release breaks binary compatibility, and which version bump it needs.

Heapy/kortex · 0 tokens