principle-redesign-from-first-principles

principle-redesign-from-first-principles is a skill for Claude Code from watt-mind/factory. It costs 40 tokens per session (203 once invoked), scanned A, original, Apache-2.0.

A design rule for reshaping an existing module as though a new requirement had been part of its original design. The change must stay within its assigned files and compatibility limits.

In plain words
What is it for?
Use it when a new requirement conflicts with an existing design, especially across modules, APIs, cached clients, database schemas, or scheduled jobs.
Why use it?
It avoids awkward patches while preventing unrelated refactors and breaking existing clients, databases, or scheduled jobs. Larger boundary changes are escalated instead of hidden in the current work.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the core plugin — 38 skills, 22 commands, 5 agents, 1 hook shipped together

Good fit Use it when a new requirement conflicts with an existing design, especially across modules, APIs, cached clients, database schemas, or scheduled jobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/watt-mind/factory/principle-redesign-from-first-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 watt-mind/factory --skill principle-redesign-from-first-principles
Clone the repo
git clone --depth 1 https://github.com/watt-mind/factory

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 38 skills, 22 commands, 5 agents, 1 hook.

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 principle-redesign-from-first-principles

README.md
[![agentmods](https://agentmods.dev/badge/skills/watt-mind/factory/principle-redesign-from-first-principles/github.svg)](https://agentmods.dev/skills/watt-mind/factory/principle-redesign-from-first-principles)
Your own site
<a href="https://agentmods.dev/skills/watt-mind/factory/principle-redesign-from-first-principles"><img src="https://agentmods.dev/badge/skills/watt-mind/factory/principle-redesign-from-first-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 principle-redesign-from-first-principles

Your own site · 80×15
<a href="https://agentmods.dev/skills/watt-mind/factory/principle-redesign-from-first-principles"><img src="https://agentmods.dev/badge/skills/watt-mind/factory/principle-redesign-from-first-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 203 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.00040 $0.00203
Opus 5.5 $0.00016 $0.00081
Sonnet 5.5 $0.00008 $0.00041
Haiku 4.5 $0.00004 $0.00020

Measured 14d ago against content hash 108d19e5b93f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

principle-redesign-from-first-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 14d 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.

plugins/core/skills/principle-redesign-from-first-principles/SKILL.md · 16 lines

What it actually says

Redesign from First Principles

When a new requirement looks awkward to bolt onto an existing module, ask how you would structure it if the requirement had been part of the design from day one—then refactor toward that clean shape.

Guardrails

  • Stay inside Owned Paths and compatibility boundaries. Never expand ticket scope or perform drive-by refactors across unrelated modules.
  • Respect external skew. Do not break active clients (such as cached add-ins) or live database/cron schemas in a single destructive wave.
  • Escalate cross-boundary redesigns. If the clean design requires altering files or contracts outside Owned Paths, file a Triage issue instead of expanding the current diff.
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. 14d ago First seen · 16 lines · 40 tokens per session scan A 108d19e5b93f

Subscribe to this mod's changes

principle-redesign-from-first-principles is a skill published in the GitHub repository watt-mind/factory (24 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 203 once invoked, about $0.0002 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-11-16.

Related

principle-redesign-from-first-principles compared with skills from other repositories

principle-redesign-from-first-principles next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
principle-redesign-from-first-principleswatt-mind/factorySkill24yesterdayApache-2.0A40Claude Code
go-add-entityJotJunior/cstkSkill24yesterdayMITA35Claude Code
go-add-consumerJotJunior/cstkSkill24yesterdayMITA19Claude Code
fleetq-connectescapeboy/agent-fleet-oSkill84todayAGPL-3.0A25Claude Code, Codex
laravel-plugin-discoveryjxoesneon/CielSkill11mo agoApache-2.0A40Claude Code, Codex
api_clientjxoesneon/CielSkill11mo agoApache-2.0A19Claude Code, Codex
User Managementsystempromptio/systemprompt-templateSkill30todaynoneA18Claude Code