coding

Enforce coding principles and patterns for clean, maintainable software.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/0r0loo/my-claude-code-toolkit --skill coding-0r0loo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding
Source: https://github.com/0r0loo/my-claude-code-toolkit/tree/main/.claude/skills/Coding
Command: npx skills add https://github.com/0r0loo/my-claude-code-toolkit --skill coding-0r0loo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of common coding principles and patterns to ensure code quality, maintainability, and adherence to best practices across all development tasks.

Core Features & Use Cases

  • Design Principles: Enforces SRP, low coupling, high cohesion, and DRY principles.
  • Coding Styles: Promotes early returns, declarative/functional programming, and immutability.
  • Naming Conventions: Guides clear and descriptive naming for variables, functions, and booleans.
  • Error Handling: Establishes robust error handling patterns, preserving original error context.
  • Code Quality Checklist: Provides a checklist for self-review and peer review.
  • Use Case: When implementing a new feature, consult this Skill to ensure your code adheres to established standards for readability, efficiency, and robustness, preventing common pitfalls.

Quick Start

Apply the coding skill's principles to refactor the provided JavaScript function for improved readability and maintainability.

Frequently Asked Questions about coding

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write clean and maintainable code that follows standard design principles?

To write clean and maintainable code, apply established design principles like the Single Responsibility Principle, low coupling, high cohesion, and DRY to ensure your software remains robust and readable across all development tasks.

What are the best practices for error handling to preserve original error context?

Error handling best practices require implementing robust patterns that preserve the original error context, preventing common pitfalls and ensuring your application fails gracefully without losing critical debugging information during execution.

How do I use early returns and declarative programming styles to improve code readability?

Early returns and declarative programming styles improve code readability by reducing nested conditional blocks and emphasizing what the code accomplishes, directly supporting immutability and functional programming standards for clearer logic flow.

What naming conventions should I use for variables, functions, and booleans?

Clear naming conventions for variables, functions, and booleans require using descriptive and specific terms that accurately reflect the data's purpose, ensuring your codebase remains self-documenting and highly maintainable for peer review.

Is there a code quality checklist for self-review and peer review before implementing a feature?

A comprehensive code quality checklist provides specific criteria for self-review and peer review, allowing developers to verify adherence to readability, efficiency, and robustness standards before finalizing a new feature implementation.

How do I refactor an existing function for improved readability and maintainability?

Refactoring for improved readability and maintainability involves applying principles like early returns, immutability, and the Single Responsibility Principle to simplify complex logic, reduce coupling, and eliminate redundant code blocks.