coding

Enforce coding conventions and constraints across the codebase.

5|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/roby2358/skills --skill coding-roby2358
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding
Source: https://github.com/roby2358/skills/tree/main/coding
Command: npx skills add https://github.com/roby2358/skills --skill coding-roby2358

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The conventions provide a centralized set of coding rules to improve readability, reduce duplication, and guide developers when writing, modifying, or refactoring code and when building MCP servers in this project.

Core Features & Use Cases

  • Code structure: Clear, reusable components with minimal nesting.
  • Guard clauses: Prefer early exits to reduce complexity.
  • Parameter rules: No default values or optional parameters; explicit interfaces.
  • Testing guidance: Unit tests reside in the test directory and are designed to be reusable.

Quick Start

Follow these conventions when starting or updating any codebase to ensure predictable, robust software.

Frequently Asked Questions about coding

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

FAQPage Schema
How do I enforce coding conventions for refactoring and building MCP servers?

Coding conventions for refactoring are enforced by prohibiting default parameter values and optional parameters, requiring explicit interfaces. This reduces complexity and guides developers to create clear, reusable components with minimal nesting.

Why use guard clauses instead of nested conditionals for code quality?

Guard clauses reduce code complexity by enforcing early exits over deep nesting. This practice creates clear, reusable components and ensures predictable, robust software during code modifications.

Do I need unit tests in a specific directory to ensure code maintainability?

Yes, unit tests must reside in the test directory to ensure reuse and maintainability. This centralized testing guidance validates code structure and enforces project constraints during feature implementation.

Can I use default or optional parameter values when implementing features?

No, default and optional parameter values are prohibited when implementing features. The conventions specify explicit interfaces with no optional parameters to improve readability and reduce duplication.

What is the best way to reduce code duplication when modifying a codebase?

To reduce code duplication, enforce centralized coding rules that mandate minimal nesting, guard clauses, and explicit parameters. This approach guides developers to create reusable components during codebase modifications.