principle-redesign-from-first-principles

principle-redesign-from-first-principles is a skill for Claude Code from michael-denyer/pstack-claude. It costs 21 tokens per session (148 once invoked), scanned A, original, MIT.

A design method for adding a new requirement by reconsidering the whole design as if that requirement had existed from the beginning.

In plain words
What is it for?
Use it when changing an existing system, feature, or architecture. It helps update affected types, references, documentation, examples, and rationale consistently.
Why use it?
It avoids awkward patches that leave old assumptions scattered through the code, documentation, and examples.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the pstack plugin — 69 skills, 4 agents, 1 hook shipped together

Good fit Use it when changing an existing system, feature, or architecture. It helps update affected types, references, documentation, examples, and rationale consistently.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michael-denyer/pstack-claude/principle-redesign-from-first-principles
About the project

pstack-claude is a set of opinionated coding-agent skills and workflows ported from Cursor to Claude Code, Codex, Pi, and other agent harnesses. It guides agents toward concise, simple, and verified code by routing goals to suitable workflows and supporting subagent tools. The catalogue entries are the project's skills, agents, hook, and plugin implementations for these agent environments.

michael-denyer/pstack-claude · 3,344 stars · on GitHub

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 michael-denyer/pstack-claude --skill principle-redesign-from-first-principles
Clone the repo
git clone --depth 1 https://github.com/michael-denyer/pstack-claude

Made for: Claude Code.

Or install pstack, the plugin that ships this one along with the rest of its 69 skills, 4 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/michael-denyer/pstack-claude/principle-redesign-from-first-principles/github.svg)](https://agentmods.dev/skills/michael-denyer/pstack-claude/principle-redesign-from-first-principles)
Your own site
<a href="https://agentmods.dev/skills/michael-denyer/pstack-claude/principle-redesign-from-first-principles"><img src="https://agentmods.dev/badge/skills/michael-denyer/pstack-claude/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/michael-denyer/pstack-claude/principle-redesign-from-first-principles"><img src="https://agentmods.dev/badge/skills/michael-denyer/pstack-claude/principle-redesign-from-first-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 148 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. Third-party audits
  • Socket pass 13 Oct 2026
  • Snyk pass 13 Oct 2026
How audits are shown
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.00021 $0.00148
Opus 5.5 $0.00008 $0.00059
Sonnet 5.5 $0.00004 $0.00030
Haiku 4.5 $0.00002 $0.00015

Measured 11d ago against content hash e54d6d205206, 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 11d 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

Copies of this mod

6 near-identical copies found in the catalogue:

plugins/pstack/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 a foundational assumption from the start.

  • Read all affected files and understand the current design
  • 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 whole redesign, 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. 11d ago Changed · -22 tokens per session e54d6d205206
  2. 1mo ago Changed 418ec688036d
  3. 1mo ago First seen · 17 lines · 43 tokens per session scan A 8f500a2a89af

Subscribe to this mod's changes

principle-redesign-from-first-principles is a skill published in the GitHub repository michael-denyer/pstack-claude (3,344 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 148 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

brand-landingpage

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established…

wshobson/agents · 112 tokens

wcag-audit-patterns

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.

wshobson/agents · 45 tokens

ln-13-interaction-design-builder

Designs user flows, interaction states and mockups for a defined product scope; does not implement UI code.

levnikolaevich/claude-code-skills · 30 tokens

design-inventory

Use to run the Claude Design to ClosedLoop pipeline against the current web-ui. Stage A inventories a design export zip into schema-validated findings (typed design units - screens, regions like nav bars, standalone components like a chat dialog; UX and behavioral changes; Storybook component reuse mapping; token…

closedloop-ai/claude-plugins · 173 tokens

software-ui-ux-design

Designs and audits UI/UX systems with usability and accessibility requirements. Use when shaping flows, design systems, interaction patterns, or WCAG-aware product behavior.

vasilyu1983/AI-Agents-public · 38 tokens

prism-component

Implement a reusable, accessible, typed component from a design spec. Use when asked to "create a component", "build a widget", "implement this design", or "reusable UI element".

tonone-ai/tonone · 43 tokens