Skip to content
Back to skills

Principles

ASecurity

Index of curated, guardrailed engineering principles for coding, architecture, verification, delegation, and tooling. Read when designing, implementing, debugging, reviewing, or benchmarking; load only the matching leaf principle-* SKILL.md.

  • 25 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsrustdebuggingrefactoringgitapisecurity

Works with

  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add watt-mind/factory --skill principles --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Principles?

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

Security grade badge for Principles
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/watt-mind-principles/badge)](https://www.skillsdirectory.com/skills/watt-mind-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: principles
description: "Index of curated, guardrailed engineering principles for coding, architecture, verification, delegation, and tooling. Read when designing, implementing, debugging, reviewing, or benchmarking; load only the matching leaf principle-* SKILL.md."
---

# Engineering Principles

Read the matching leaf `SKILL.md` (`../<slug>/SKILL.md`) in full before applying a principle. Do not load all 19 into context at once.

**Precedence:** Repository `AGENTS.md` / Factory Floor rules (`Owned Paths`, `Never auto-merge`, `escalate_paths`, `Blocked` + `factory notify`, editorial publish gates, and data-honesty invariants) always take precedence over any principle below.

## Core & Design

- **`principle-laziness-protocol`** — Refactoring, sizing a diff, or tempted to add abstractions/layers. Consolidate decisions and minimize the diff without deleting required collateral or honest-gap metadata.
- **`principle-foundational-thinking`** — Before writing logic: choose core types, data structures, scaffold-vs-feature sequencing, and shared state ownership.
- **`principle-redesign-from-first-principles`** — Integrating a new requirement into an existing design. Redesign cleanly **inside `Owned Paths` and compatibility boundaries**; file `Triage` if it crosses them.
- **`principle-subtract-before-you-add`** — Sequencing an addition or refactor. Remove dead weight and redundant stubs first while preserving security/boundary guards and required schema fields.
- **`principle-minimize-reader-load`** — Reviewing or shaping code that is hard to trace. Collapse one-caller wrappers, shrink mutable scope, and reduce layers between question and answer.
- **`principle-experience-first`** — Product, UX, typography, or copy work. Render actual pixels, run ≥1 cold visual self-polish pass over rough first drafts, and surface 2–4 bounded screenshots by default without weakening tenant or security invariants.
- **`principle-build-the-lever`** — Any non-trivial or repeated work (migrations, bulk edits, checks). Build a rerunnable tool or script rather than doing it by hand.
- **`principle-exhaust-the-design-space`** — **Gated:** Net-new UI surfaces, material layout redesigns, greenfield architecture, or when explicitly requested (never routine bugfixes). Diverge into 2–3 distinct options, autonomously select and commit the winner, and record the rationale.

## Architecture

- **`principle-model-the-domain`** — Stateful logic, repeated shape assumptions, or scattered conditionals. Encode the domain in a state machine, typed model, table, or registry.
- **`principle-boundary-discipline`** — Validation, auth/JWT parsing, external HTML/API ingestion, or framework adapters. Guard at system boundaries; trust internal types and keep core logic pure.
- **`principle-type-system-discipline`** — Designing types or signatures. Make illegal states unrepresentable, brand semantic primitives, and exhaust variants.
- **`principle-make-operations-idempotent`** — Commands, scrapers, cron collectors, or lifecycle scripts. Converge to the same end state across partial runs, crashes, and retries.
- **`principle-separate-before-serializing-shared-state`** — Concurrent actors touching the same file, token, DB, or branch. Eliminate sharing first; serialize structurally only when a single writer is a real invariant.

## Verification

- **`principle-fix-root-causes`** — Debugging any failure. Trace the symptom back to the first place the system went wrong; a guard is a fix only when the state it handles is legitimate.
- **`principle-attack-the-premise`** — Two or more fixes sharing one premise have failed the same gate. Write the premise down and test it directly before writing another fix.
- **`principle-test-behavior-not-implementation`** — Writing or updating tests. Assert user-observable behavior so tests catch regressions and survive refactors (structural/AST checks remain valid when structure is the contract).
- **`principle-explain-the-number`** — Before trusting or reporting any benchmark, latency, cost figure, or eval score. Identify what limits it and rule out measurement confounds.

_(Note: direct artifact verification, context-window discipline, and verifiable unit sequencing are already enforced globally by `shared/floor.md` when present.)_

## Delegation & Meta

- **`principle-proceed-with-gates`** — Proceeds autonomously on reversible local work; **always stops** on human, editorial, security, `Never auto-merge`, `escalate_paths`, and data-honesty gates.
- **`principle-encode-lessons-in-structure`** — You catch yourself writing the same rule twice. Encode it as a lint, schema check, ratchet, or script with an actionable error message instead of more prose.

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 ai-agents →

Comments

Loading comments…

Newsletter

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