engineering-principles

engineering-principles is a skill for Claude Code from Ozzeron/prompt-pack. It costs 77 tokens per session (2,266 once invoked), scanned A, original, MIT.

A set of coding standards for writing production software that avoids repeated code, keeps parts modular, uses types, and stays maintainable. It applies across coding skills that create or modify production code.

In plain words
What is it for?
Use it whenever production code is written or changed, especially when deciding whether to reuse, extend, combine, extract, or create a new piece of code.
Why use it?
It gives the agent shared rules for making code easier to read, reuse, test, and change. It also sets size limits intended to keep functions and interface components manageable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Part of the minimal plugin — 4 skills shipped together , and of nextjs, backend, supabase, fullstack, all-skills

Good fit Use it whenever production code is written or changed, especially when deciding whether to reuse, extend, combine, extract, or create a new piece of code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ozzeron/prompt-pack/engineering-principles
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ozzeron/prompt-pack --skill engineering-principles
Clone the repo
git clone --depth 1 https://github.com/Ozzeron/prompt-pack

Made for: Claude Code.

Or install minimal, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for engineering-principles

README.md
[![agentmods](https://agentmods.dev/badge/skills/ozzeron/prompt-pack/engineering-principles/github.svg)](https://agentmods.dev/skills/ozzeron/prompt-pack/engineering-principles)
Your own site
<a href="https://agentmods.dev/skills/ozzeron/prompt-pack/engineering-principles"><img src="https://agentmods.dev/badge/skills/ozzeron/prompt-pack/engineering-principles/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for engineering-principles

Your own site · 80×15
<a href="https://agentmods.dev/skills/ozzeron/prompt-pack/engineering-principles"><img src="https://agentmods.dev/badge/skills/ozzeron/prompt-pack/engineering-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,266 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.02266
Opus 5.5 $0.00031 $0.00906
Sonnet 5.5 $0.00015 $0.00453
Haiku 4.5 $0.00008 $0.00227

Measured 1mo ago against content hash fc80f1784a4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

engineering-principles scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

prompts/meta/engineering-principles/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Engineering Principles

The non-negotiable rules every coding skill in this pack must follow. AI agents tend to emit code as if there is no tomorrow: duplicate components, monolithic files, fresh abstractions instead of reuse, no types, no structure. This document exists to stop that.

Every architecture, review, and interface skill inherits these rules. Specific roles add detail on top, but never relax them.

When to use

Always, whenever you write or modify production code. This is a cross-cutting concern.

1. DRY — reuse before creating

Delegated to the dedicated meta skill: meta/reuse-before-create.

That skill is the single source of truth for the reuse-vs-create decision: the strict ordering (reuse → extend → compose → extract → create new), the mandatory one-line justification when creating, the per-artifact-type search strategies, and the "don't trust names alone" rule.

Do not duplicate that logic in this skill or any other. Inherit it, follow it.

2. File and function size

Code is read more than written. Optimise for the next reader.

Unit Soft limit Hard limit
Function 40 lines 80 lines
React component 150 lines 250 lines
File 250 lines 400 lines
Class 200 lines 350 lines

When you approach the soft limit, split. Hitting the hard limit without splitting is a code smell to flag in review.

Splitting strategies:

  • Extract sub-components for distinct UI regions
  • Pull pure helpers into the same folder, import locally
  • Move types to a types.ts next to the file
  • Group related functions into a class or module if they share state

3. Single responsibility

A function, component, hook, or module does one thing. If you can't describe what it does in a single sentence without "and", split it.

Common violations:

  • A component that fetches data, renders UI, and handles navigation — split into hook + UI
  • A util that validates AND transforms — make two functions
  • A "manager" class with 12 methods — likely 3 modules pretending to be one

Read the full file on GitHub · 194 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +2 lines · +49 tokens per session fc80f1784a4f
  2. 1mo ago First seen · 192 lines · 28 tokens per session scan A d018adc95a7c

Subscribe to this mod's changes

engineering-principles is a skill published in the GitHub repository Ozzeron/prompt-pack (8 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 2,266 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

go-testing

Trigger: Go tests, go test coverage, Bubbletea teatest, golden files. Apply focused Go testing patterns.

Gentleman-Programming/gentle-ai · 26 tokens

ijfw-workflow

Use when the user says: 'build', 'create', 'plan', 'new project', 'brainstorm', 'design', 'UI', 'website', 'dashboard', 'app', 'help me build', 'launch', 'book', 'campaign', or anything project-level. Skill body decides Quick vs Deep path.

FerroxLabs/ijfw · 70 tokens

ijfw-plan

Use when the user says 'plan this', 'plan it', 'make a plan', 'let's plan', 'draft a plan', 'how should we tackle this', 'break this down', or invokes '/ijfw-plan'. Produces a falsifiable PLAN.md (software, book, campaign, design, research) with task breakdown, dependency wave-table, and success criteria — gated by…

FerroxLabs/ijfw · 95 tokens

ijfw-writing-skills

Authoring discipline for new IJFW skills. Use when creating a new skill, writing a skill, making a skill that does X, or asked to add a skill. Trigger: create a new skill, write a skill, new skill, make me a skill, skill that does, /ijfw-writing-skills.

FerroxLabs/ijfw · 69 tokens