Skip to content
Back to skills

Engineering Principles

ASecurity

Use when writing, designing, refactoring or extending code: where logic belongs, how much abstraction is enough, module and interface structure, error handling, validation at boundaries, naming, what a test should prove. Triggers on "how should I structure this", "is this too complex", "should I abstract this". Not for checking a finished diff before a PR (use reviewing-code). Not for deep SOLID, TDD or DDD (use solid-principles, test-driven-development, domain-driven-design). Not for choosin...

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 13, 2026
developmentjavascripttypescriptpythonrustgojavashellsqldockerrefactoring

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add joeblackwaslike/agent-skills --skill engineering-principles --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Engineering Principles?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Engineering Principles
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joeblackwaslike-engineering-principles/badge)](https://www.skillsdirectory.com/skills/joeblackwaslike-engineering-principles)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: engineering-principles
description: >-
  Use when writing, designing, refactoring or extending code: where logic
  belongs, how much abstraction is enough, module and interface structure,
  error handling, validation at boundaries, naming, what a test should prove.
  Triggers on "how should I structure this", "is this too complex", "should I
  abstract this". Not for checking a finished diff before a PR (use
  reviewing-code). Not for deep SOLID, TDD or DDD (use solid-principles,
  test-driven-development, domain-driven-design). Not for choosing or
  implementing a named pattern (use design-patterns). Not for system-level
  layering, CQRS, sagas, event-driven design or service splits (use code-architectures).
metadata:
  last_updated: "2026-11-11"
---

# Engineering Principles

A small set of principles covers most of what makes code good. Apply them while you write, in this order, because an early mistake is expensive to fix later:

1. **Scope.** Do what was asked and nothing more. KISS, YAGNI, DRY with the Rule of Three, Gall's Law (grow a working simple system, don't design a complex one). Delete before you add.
2. **Design.** Separate concerns, give each unit one reason to change, depend on abstractions at real seams, prefer composition, tell objects what to do instead of pulling their state apart (Law of Demeter, Tell Don't Ask), keep queries and commands separate.
3. **Correctness.** Parse at the boundary and trust the types inside, fail fast on every path, make illegal states unrepresentable, grant the least privilege, remember that any observable behavior becomes a contract (Hyrum's Law).
4. **Readability and tests.** Least astonishment, explicit over implicit, the idiom the language expects, and a test that fails when the behavior breaks.

Get scope and design right before polishing lines. Hand anything a rule can state (formatting, imports, types) to a tool, not to judgment.

## What to load

Open only what the task needs.

| You are... | Read |
|---|---|
| Deciding what to build, or how much | [principles.md](references/principles.md), "1. Simplicity and scope" |
| Structuring modules, classes, interfaces, dependencies | [principles.md](references/principles.md), "2. Design and structure" |
| Handling input, errors, concurrency, data models, permissions, performance | [principles.md](references/principles.md), "3. Correctness and safety" |
| Naming, clarity, idioms, writing tests | [principles.md](references/principles.md), "4. Readability and tests" |
| Writing Python, TypeScript or JavaScript, Rust, shell or SQL | [language-notes/index.md](references/language-notes/index.md), then the one file for that language |

The one-paragraph summaries at the top of `principles.md` ("Principles") are enough for a quick decision. Read the detailed section when the summary doesn't settle it.

## Related skills

- `solid-principles`: the full SRP/OCP/LSP/ISP/DIP treatment with bad-to-good examples.
- `test-driven-development`: the red-green-refactor discipline and test doubles.
- `domain-driven-design`: aggregates, value objects and bounded contexts.
- `code-architectures`: layering, CQRS, event sourcing, event-driven design and service boundaries.
- `senior-engineering-best-practices`: verifying docs before a workaround, root-cause discipline, blast radius, dependency judgment.
- `reviewing-code`: the process for checking a finished diff against these principles, with per-change-type playbooks (endpoints, migrations, auth, Dockerfiles and so on).
- `design-patterns`: the catalog of named patterns, with a reference per pattern. Use it once you have decided an abstraction is warranted.

Files in this skill

  • SKILL.md3.6 KB
  • references/language-notes/index.md2.6 KB
  • references/language-notes/python.md7.5 KB
  • references/language-notes/rust.md7.6 KB
  • references/language-notes/shell.md4 KB
  • references/language-notes/sql.md2.6 KB
  • references/language-notes/typescript.md8.4 KB
  • references/principles.md45.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.