Coding Rules
Concrete clean-code ruleset: 2-param max, no error suppression, early returns, YAGNI.
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 14, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · 9a47277
Reviewing a deliberately messy 6-parameter function against the ruleset caught a silent catch(e){}, two undocumented magic numbers, and the 6 positional params a generic review glossed over, then produced a compliant object-param, early-return rewrite.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 9/10
- Docs & honesty 5/5
What Coding Rules does
Applies a specific, opinionated clean-code ruleset while writing, reviewing, or refactoring code: 0-2 function parameters (structured objects beyond that), an absolute rule against error suppression with layer-specific handling, YAGNI, early returns over deep nesting, and small single-responsibility functions. Includes a TypeScript-specific reference covering unknown+type guards, the satisfies operator, const assertions, and branded types. Triggers when writing functions, handling errors, refactoring, or reviewing code style.
How to install Coding Rules
git clone https://github.com/shinpr/agentic-code
cd agentic-code
mkdir -p ~/.claude/skills
cp -r .agents/skills/coding-rules ~/.claude/skills/coding-rules
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Coding Rules
-
/coding-rulesConcrete clean-code ruleset: 2-param max, no error suppression, early returns, YAGNI.
It also activates on plain-language prompts like these:
-
Refactor this function to use early returns instead of nesting -
Review this code against our clean-code ruleset -
Split this function's five parameters into a structured object
Frequently asked questions
- Is the Coding Rules skill free?
- Yes. The skill itself is free from shinpr/agentic-code. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Coding Rules work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 14, 2026. Verdict: Tested · Works. Reviewing a deliberately messy 6-parameter function against the ruleset caught a silent catch(e){}, two undocumented magic numbers, and the 6 positional params a generic review glossed over, then produced a compliant object-param, early-return rewrite.
- What is the Coding Rules SkillProof Score?
- 9.6/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 9/10, docs & honesty 5/5.
- How do I install Coding Rules?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Coding Rules with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.