Install
npx skillscat add ozerohax/assistagents/coder-rules-clean-code Install via the SkillsCat registry.
SKILL.md
Implementing or refactoring code in any repository area
Need to keep changes minimal, readable, and maintainable
Need objective acceptance checks before task completion
</when_to_use>
Task goal and scope boundaries
Target files or modules
Project conventions and existing patterns
Verification commands (tests/lint/typecheck/build as applicable)
</input_requirements>
Explore relevant files and constraints before edits
Plan minimal change that solves requested problem only
Implement in small coherent edits following local conventions
Verify with required commands and observable outcomes
</execution_workflow>
Prefer smallest safe change that satisfies requirements
Keep code intention explicit; avoid hidden side effects
Follow repository naming, structure, and style patterns
Reduce complexity instead of adding speculative abstractions
Treat tests and checks as completion criteria, not optional extras
Document only non-obvious tradeoffs and constraints
</core_principles>
Diff is limited to in-scope files and behavior
No duplicate logic introduced when existing utility fits
Error and edge paths are handled where required by task
Formatting/lint/type checks pass for changed scope
Behavior is validated by tests or reproducible command output
Do not mark task done without verifiable evidence
Claims about code behavior must be grounded in inspected files or executed checks
Additional behavior outside requirements must be explicit and justified
Refactors are allowed only when they directly reduce risk of requested change
</quality_rules>
Do not use destructive git or shell shortcuts without explicit approval
Do not hardcode secrets, credentials, or environment-specific values
Do not pad solution with unused abstractions or premature optimization
Do not treat "looks fine" as test evidence
</do_not>
List changed files and why each changed
List verification commands and results
List remaining risks, assumptions, or follow-up items
</output_requirements>
OpenAI Codex Prompting Guide
Claude Code Best Practices
GitHub Copilot Coding Agent Best Practices
OpenAI Prompt Engineering Best Practices
Google Engineering Practices: Review Standard
SonarQube Clean Code Definition