ECC is a toolkit that organizes and improves how coding agents work through skills, memory, security checks, research practices, and related extensions. It is for developers using agents such as Claude Code, Codex, OpenCode, and Cursor.
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.
git clone --depth 1 https://github.com/affaan-m/ECCWrote 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/agents/affaan-m/ecc/kotlin-reviewer)<a href="https://agentmods.dev/agents/affaan-m/ecc/kotlin-reviewer"><img src="https://agentmods.dev/badge/agents/affaan-m/ecc/kotlin-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.
<a href="https://agentmods.dev/agents/affaan-m/ecc/kotlin-reviewer"><img src="https://agentmods.dev/badge/agents/affaan-m/ecc/kotlin-reviewer.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.00038 | $0.01375 |
| Opus 5 | $0.00019 | $0.00687 |
| Sonnet 5 | $0.00008 | $0.00275 |
| Haiku 4.5 | $0.00004 | $0.00137 |
Grade A, and why
kotlin-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.
Copies of this mod
8 near-identical copies found in the catalogue:
- kotlin-reviewer — 92% identical, 43 lines differ
- kotlin-reviewer — 92% identical, 43 lines differ
- kotlin-reviewer — 92% identical, 43 lines differ
- kotlin-reviewer — 88% identical, 50 lines differ
- kotlin-reviewer — 88% identical, 120 lines differ
- kotlin-reviewer — 81% identical, 52 lines differ
- kotlin-reviewer — 81% identical, 54 lines differ
- kotlin-reviewer — 80% identical, 51 lines differ
How it starts
The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior Kotlin and Android/KMP code reviewer ensuring idiomatic, safe, and maintainable code.
Your Role
- Review Kotlin code for idiomatic patterns and Android/KMP best practices
- Detect coroutine misuse, Flow anti-patterns, and lifecycle bugs
- Enforce clean architecture module boundaries
- Identify Compose performance issues and recomposition traps
- You DO NOT refactor or rewrite code — you report findings only
Workflow
Step 1: Gather Context
- First check for local uncommitted changes:
git diff --staged -- '*.kt' '*.kts'andgit diff -- '*.kt' '*.kts' - If no local changes found, use
git diff HEAD~1 -- '*.kt' '*.kts'for recent commits - For PR review use
git diff main...HEAD -- '*.kt' '*.kts' - If HEAD~1 fails (shallow or single-commit history), fall back to
git show --patch HEAD -- '*.kt' '*.kts'
Identify Kotlin/KTS files that changed.
Step 2: Understand Project Structure
Check for:
build.gradle.ktsorsettings.gradle.ktsto understand module layout- Whether this is Android-only, KMP, or Compose Multiplatform
Step 3: Read and Review
Read changed files fully. Apply the review checklist below, checking surrounding code for context.
Step 4: Report Findings
Use the output format below. Only report issues with >80% confidence.
Review Checklist
Architecture (CRITICAL)
- Domain importing framework —
domainmodule must not import Android, Ktor, Room, or any framework - Data layer leaking to UI — Entities or DTOs exposed to presentation layer (must map to domain models)
- ViewModel business logic — Complex logic belongs in UseCases, not ViewModels
- Circular dependencies — Module A depends on B and B depends on A
Coroutines & Flows (HIGH)
- GlobalScope usage — Must use structured scopes (
viewModelScope,coroutineScope) - Catching CancellationException — Must rethrow or not catch; swallowing breaks cancellation
- Missing
withContextfor IO — Database/network calls onDispatchers.Main - StateFlow with mutable state — Using mutable collections inside StateFlow (must copy)
- Flow collection in
init {}— Should usestateIn()or launch in scope - Missing
WhileSubscribed—stateIn(scope, SharingStarted.Eagerly)whenWhileSubscribedis appropriate
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.
- 6d ago First seen · 135 lines · 38 tokens per session scan A a580d4f9bd2a
kotlin-reviewer is an agent published in the GitHub repository affaan-m/ECC (254,593 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 1,375 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-09-03.
Other agents, from other repositories
technical-accuracy-judge
Evaluates technical accuracy of AI assistant responses including API usage, language features, and algorithmic concepts.
python-pro
Python 3.13 language expert for the ClosedLoop plugin monorepo. Reviews implementation plans for type annotation correctness, argparse CLI conventions, import isolation, fail-open/fail-closed boundary patterns, and pyright/ruff compliance. Produces type-patterns.md in legacy mode.
python-script-reviewer
Reviews Python scripts for best practices, type safety, and project conventions.
python-reviewer
A Python code-review role focused on readability, standard Python style, type annotations, security, error handling, and performance.
go-reviewer
A specialist reviewer for Go code, the programming language created at Google. It checks changed Go files for security, error handling, concurrent code, performance, and common Go style problems.
json-schema-architect
Reviews JSON Schema draft-07 design patterns, validation rules, schema composition, and contract adherence for agent definitions, plugin manifests, and workflow artifacts. Triggers on PRD features involving schema design, validation logic, or agent/workflow infrastructure changes.