principle-redesign-from-first-principles

principle-redesign-from-first-principles is a skill for Claude Code, Codex from backnotprop/pstack. It costs 43 tokens per session (189 once invoked), scanned A, a copy of principle-redesign-from-first-principles, MIT.

A design method for adding a new requirement as if it had been part of the system from the beginning. It considers the whole design instead of attaching a narrow patch to the existing version.

In plain words
What is it for?
Use it when integrating a significant new requirement into an existing design. It helps review affected files and update all related code, documentation, examples, and reasoning.
Why use it?
Bolting on a requirement can leave inconsistent types, documentation, examples, and behavior. Redesigning around the requirement keeps the result coherent and preserves future choices.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/backnotprop/pstack/principle-redesign-from-first-principles
Any agent
npx skills add backnotprop/pstack --skill principle-redesign-from-first-principles
Clone the repo
git clone --depth 1 https://github.com/backnotprop/pstack

Made for: Claude Code, Codex.

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/backnotprop/pstack/principle-redesign-from-first-principles.svg)](https://agentmods.dev/skills/backnotprop/pstack/principle-redesign-from-first-principles)
Your own site
<a href="https://agentmods.dev/skills/backnotprop/pstack/principle-redesign-from-first-principles"><img src="https://agentmods.dev/badge/skills/backnotprop/pstack/principle-redesign-from-first-principles.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00043 $0.00189
Opus 5 $0.00022 $0.00095
Sonnet 5 $0.00009 $0.00038
Haiku 4.5 $0.00004 $0.00019

Measured 5d ago against content hash 9ae97b35d633, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

Origin

This is a copy

100% identical to principle-redesign-from-first-principles — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/principle-redesign-from-first-principles/SKILL.md · 17 lines

What it actually says

Redesign From First Principles

When integrating a change, don't bolt it onto the existing design. Redesign as if the requirement had been there from the start. The result should look like what we would have built if we'd known on day one.

  • Read all affected files and understand the current design holistically
  • Ask: "if we were writing this from scratch with this new requirement, what would we build?"
  • Propagate the change through every reference: types, docs, examples, rationale sections
  • Think about the redesign holistically, then deliver it incrementally

This is the method for preserving option value when integrating changes into an existing design.

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. 5d ago First seen · 17 lines · 43 tokens per session scan A 9ae97b35d633

Subscribe to this mod's changes

principle-redesign-from-first-principles is a skill published in the GitHub repository backnotprop/pstack (193 stars, last pushed 16d ago), licensed MIT. It adds 43 tokens to every session and 189 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to principle-redesign-from-first-principles, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories