coding-principles

Enforces coding discipline for simple, correct, maintainable software.

4|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/thejordanleopold/claude-code-skills-distilled --skill coding-principles-thejordanleopold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-principles
Source: https://github.com/thejordanleopold/claude-code-skills-distilled/tree/main/coding-principles
Command: npx skills add https://github.com/thejordanleopold/claude-code-skills-distilled --skill coding-principles-thejordanleopold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing code that is maintainable and readable is hard; this guide provides a principled framework to keep decisions simple, correct, and durable.

Core Features & Use Cases

  • Simplicity-first approach to avoid premature optimization and over-abstraction.
  • Structured decision guidance for dependencies, refactoring, and incremental delivery.
  • Use cases include deciding when to abstract, when to refactor legacy code, and how to apply 12-factor principles in day-to-day coding.

Quick Start

Choose the simplest valid implementation that meets requirements and defer optional abstractions until they are proven necessary.

Frequently Asked Questions about coding-principles

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

FAQPage Schema
What is the best way to keep code maintainable and readable during feature planning?

The best way to keep code maintainable is choosing the simplest valid implementation that meets requirements and deferring optional abstractions until they are proven necessary. This simplicity-first approach avoids premature optimization and over-abstraction.

How do I safely refactor legacy code without introducing destructive changes?

To safely refactor legacy code, apply conservative refactoring with surgical changes rather than massive rewrites. This disciplined approach ensures destructive changes are handled safely while maintaining correctness throughout the incremental delivery process.

When do I need to apply 12-factor principles in day-to-day coding?

You need to apply 12-factor principles during feature planning and implementation to guide decisions on dependency management and incremental delivery. This discipline ensures code remains simple, correct, and durable across development cycles.

How do I decide when to abstract code or add new dependencies?

To decide when to abstract code, follow structured decision guidance that prioritizes simplicity and avoids premature optimization. Defer optional abstractions until they are proven necessary, and manage dependencies conservatively to maintain code durability.

Does this coding discipline work for complex architecture and refactoring scenarios?

This coding discipline works for complex architecture by enforcing day-to-day coding principles that keep code simple and correct. It provides structured decision guidance for refactoring, dependency management, and incremental delivery regardless of complexity.