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/GktuOktay/ai-skillsWrote 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/rules/gktuoktay/ai-skills/clean-code-reviewer)<a href="https://agentmods.dev/rules/gktuoktay/ai-skills/clean-code-reviewer"><img src="https://agentmods.dev/badge/rules/gktuoktay/ai-skills/clean-code-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/rules/gktuoktay/ai-skills/clean-code-reviewer"><img src="https://agentmods.dev/badge/rules/gktuoktay/ai-skills/clean-code-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.00000 | $0.00438 |
| Opus 5 | $0.00000 | $0.00219 |
| Sonnet 5 | $0.00000 | $0.00088 |
| Haiku 4.5 | $0.00000 | $0.00044 |
Grade A, and why
clean-code-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 5d 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.
What it actually says
Clean Code & Production-Grade Code Reviewer
This skill eliminates technical debt and maximizes maintainability, readability, type safety, and production-grade code quality through deep code reviews, Google engineering standards, and refactoring patterns.
🧹 Refactoring & Engineering Principles
1. SOLID & Clean Code Standards
- Single Responsibility (SRP): Split overloaded files/functions into modular components.
- DRY (Don't Repeat Yourself): Abstract duplicate code into reusable helpers or hooks.
- KISS & YAGNI: Avoid over-engineering; simplify overly complex abstractions.
2. Addy Osmani Production-Grade Standards
- Zero Implicit State Mutation: Never mutate global or private third-party state directly; keep mutations scoped and immutable.
- Strict Guard Clauses: Flatten nested
if/elseloops using early returns and validation gates. - Explicit Error Boundaries: Never swallow exceptions or return dummy fallbacks silently; handle errors gracefully or propagate.
- Type Safety Discipline: Remove all
anytypes; enforce strict TypeScript types and type guards.
3. Complexity Reduction & Naming
- Intent-Revealing Naming: Replace vague variables (
data,temp,x) with domain-specific names. - Memory & Resource Safety: Verify that all subscriptions, timers, and listeners have proper cleanup hooks.
Output Template
- 🔍 Code Review Findings: Code strengths, anti-patterns, and technical debt detected.
- 🔄 Refactoring Proposal (Before / After):
- Before: Problematic code.
- After: Refactored, production-ready Clean Code.
- ⚡ Impact & Benefits: Performance, readability, and maintenance advantages gained.
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.
- 5d ago First seen · 37 lines · 438 tokens per session scan A 7cb28fb141de
clean-code-reviewer is a cursor rule published in the GitHub repository GktuOktay/ai-skills (2 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 438 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-09-03.
Other cursor rules, from other repositories
javascript-typescript-code-quality-cursorrules-pro
Cursor rules for JavaScript and TypeScript development with code quality integration.
hatch3r-typescript-patterns
TypeScript and JavaScript typing mechanics — satisfies over as, discriminated unions, branded types, strict utility types, barrel exports, and import ordering.
javascript-typescript-code-quality-cursorrules-pro
Cursor rules for JavaScript and TypeScript development with code quality integration.
code-style-and-improvements
This rule focuses on code style, refactoring suggestions, and leveraging the latest ES and Node.js features for JavaScript, TypeScript, and Python files.
code-review-template
A code-review checklist for React Native and TypeScript projects. It covers side effects, project structure, type safety, style, state, navigation, and performance.
canonical__yypescript
TypeScript best practices with strict mode, type patterns, and modern conventions.