Download for MacApple silicon, macOS 14+
Skill

clean-code

@incubyte Updated 2026-10-16

This skill should be used when writing, reviewing, or refactoring code. Contains SRP, DRY, YAGNI, naming, error handling, dependency direction, and Kent Beck's four rules of simple design.

Install

With your agent

Install OMGSkills skill "incubyte/ai-plugins:bee/skills/clean-code" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/incubyte/ai-plugins /tmp/ai-plugins && ln -s /tmp/ai-plugins/bee/skills/clean-code ~/.claude/skills/clean-code

From README

Clean Code Principles These principles apply to ALL code Bee produces, evaluates, or cleans up — regardless of architecture pattern, language, or framework. They are non-negotiable defaults. The target project's CLAUDE.md may add project-specific conventions on top of these. YAGNI — You Aren't Gonna Need It Don't build what nothing asks for. Before writing any code, abstraction, or interface, ask: does a test or acceptance criterion require this RIGHT NOW? One implementation? Skip the interface. Extract the interface when a second implementation actually arrives. No test demands it? Don't build it. "Might need it someday" is not a reason. Unused parameters, empty extension points, commented-out feature flags — all YAGNI violations. Remove them. DRY — Don't Repeat Yourself Every piece of knowledge should have a single, authoritative representation. Extract on the third occurrence, not the second. Two similar blocks might be coincidence. Three means there's a pattern.