agentsclimarketplace

Engineering philosophy

Skill swell-agents/coding-skills/skills/engineering-philosophy

Canonical Anthropic Agent Skills for software engineering — TDD, code review, architecture, GitHub-issues PM, plus per-language conventions for Python, Go, Solidity, shell.

Install
npx -y skills add swell-agents/coding-skills --skill engineering-philosophy

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Apply KISS, YAGNI, DRY, SOLID, fail-fast, be-brief on every code decision.

SKILL.md

4.2 KB, as published. Nobody here has run it

Principles

  • Architecture — Class responsibilities defined in the project's architecture map (often docs/architecture.md).
  • KISS — Simple solutions over complex ones.
  • YAGNI — Build only what's needed now. Less code is better.
  • Write Less - If you can avoid writing the code or the comment, don't. A comment earns its place only when it says what the code cannot: a why, an invariant, a magic-number derivation, never a restatement. Default every comment to one line. Multi-line is allowed ONLY for a byte-layout, a derivation, or a non-obvious why that needs the room. This covers every comment, source, config, and CI YAML alike; before committing, re-read each comment you added and cut it to one line or delete it.
  • DRY — Single source of truth. Never copy-paste. Reuse spans the repo: prefer an existing sibling idiom over a second variant.
  • OOP — Follow OOP approach and best practices.
  • SOLID — Enforce Single Responsibility; keep the others in mind when possible.
  • No Magic — Make everything explicit. No hidden behaviour or implicit transformations.
  • No Number Without Measurement — Performance figures in docs (gas, latency, throughput, proof sizes) MUST come from a real measurement: a test run, a profile, a fixture, or an upstream spec citation. Author-quoted "approximately X" without a source is a future-self trap; either remove the number or measure it first. Same for scaling claims ("supports 10k concurrent users"): unmeasured is hope, not fact.
  • Small Steps — Minimal changes, commit often.
  • Stay In Scope - Change only what the task requires. Don't fix, reformat, or rename unrelated code you happen to read, even when it looks wrong: note it and leave it. Off-task diffs are harder to review and revert; genuine cleanups earn their own PR.
  • Specs Lead, Code Follows - The spec, plan, and interface contracts are the source of truth; code conforms to them, not the reverse. When your code contradicts the spec (shape doesn't fit, an Open/TBD item blocks you, a requirement looks wrong), stop and surface it for a human instead of rewriting the spec to match. Retro-fitting the spec destroys the audit trail and closes coordination points left open on purpose.
  • Use Libraries — Prefer established libraries (ORMs, validators, parsers) over reimplementing features. Check the ecosystem before writing custom code.
  • Backwards Compatibility — Don't keep code for backwards-compatibility purposes.
  • CI — Automate all possible quality checks.
  • Investigate, Don't Mask — When a check fails or unexpected behaviour occurs, investigate the root cause instead of adding defensive code to mask the symptom.
  • Fail Fast — Detect and surface errors immediately at the point of failure. Use assertions, strict validation, and early returns.
  • Be Brief — Imperative output. No preamble, no recap, no restating the task back. Compress response prose, never operational checklists: keep every named rule, severity word, sub-check, and category from the active skill verbatim — cut the explanation around them, not the rule itself. Applies to chat replies, commit messages, PR bodies, review findings, and any other text the agent emits.

Application

These principles are judgement weights, not rules. When two principles conflict, this skill defers to the workflow skill driving the task:

  • During designing-architecture: KISS, YAGNI, Use Libraries, and No Magic dominate. Reject premature abstractions and speculative configurability.
  • During reviewing-changes: SOLID, DRY, Investigate-Don't-Mask, Fail Fast, and Stay In Scope dominate. Flag defensive try/except that hides root causes; flag duplication; flag oversized classes; flag edits to files outside the change's stated scope.
  • During running-tdd-cycles: Small Steps, Stay In Scope, and Fail Fast dominate. One requirement per red-green-refactor; one logical change per commit; touch only the files that requirement needs.

When a user proposes a change that violates one of these principles, name the principle and explain the consequence — don't just refuse.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.