principle-redesign-from-first-principles

principle-redesign-from-first-principles is a skill for Claude Code, Cursor from backnotprop/pstack. It costs 21 tokens per session (149 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 CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also shipped in a Cursor plugin.

Part of the pstack plugin — 61 skills, 2 agents shipped together

Good fit 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.

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

pstack is a collection of plain Agent Skills and engineering principles that guide AI-assisted software development across coding agents such as Claude Code, Codex, Pi, Cursor, and OpenCode. It is for developers who want reusable practices for tasks including testing, technical writing, debugging, review, and coordinating agent work. The catalogue entries are the project's skills, agents, and plugin.

backnotprop/pstack · 2,652 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 backnotprop/pstack --skill principle-redesign-from-first-principles
Clone the repo
git clone --depth 1 https://github.com/backnotprop/pstack

Made for: Claude Code, Cursor.

Or install pstack, the plugin that ships this one along with the rest of its 61 skills, 2 agents.

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/github.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/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/backnotprop/pstack/principle-redesign-from-first-principles"><img src="https://agentmods.dev/badge/skills/backnotprop/pstack/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 149 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 89% 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.1 $0.00021 $0.00149
Opus 5.5 $0.00008 $0.00060
Sonnet 5.5 $0.00004 $0.00030
Haiku 4.5 $0.00002 $0.00015

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

This is a copy

89% identical to principle-redesign-from-first-principles — 2 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 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 170e0a658783
  2. 1mo ago Changed a1c7fd0a96b4
  3. 1mo 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 (2,652 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 149 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to principle-redesign-from-first-principles, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

create-glyph

Create R-based pictogram glyphs for skill, agent, or team icons in the visualization layer. Covers concept sketching, ggplot2 layer composition using the primitives library, color strategy, registration in the appropriate glyph mapping file and manifest, rendering via the build pipeline, and visual verification of the…

pjt222/agent-almanac · 106 tokens

design-cli-output

Design terminal output for a CLI tool with chalk colors, Unicode glyphs, multiple verbosity levels (human, verbose, quiet, JSON), and consistent voice rules. Covers color palette selection, status indicator design, reporter function architecture, ceremony/narrative output variants, and cross-terminal compatibility.…

pjt222/agent-almanac · 96 tokens

create-2d-composition

Compose 2D graphics programmatically using SVG generation, diagram layout algorithms, image compositing, and batch processing workflows. Use when generating diagrams, flowcharts, or infographics programmatically, creating reproducible scientific figures, automating production of badges or visual assets, building…

pjt222/agent-almanac · 77 tokens

create-3d-scene

Set up a Blender scene programmatically via Python (bpy) with objects, materials, lighting, camera, and environment configuration. Use when creating reproducible 3D visualization scenes, automating product or architectural rendering setup, generating multiple scene variations programmatically, building template scenes…

pjt222/agent-almanac · 77 tokens

design-shiny-ui

Design Shiny application UIs using bslib for theming, layoutcolumns for responsive grids, value boxes, cards, and custom CSS/SCSS. Covers page layouts, accessibility, and brand consistency. Use when building a new Shiny app UI from scratch, modernizing an existing app from fluidPage to bslib, applying brand theming…

pjt222/agent-almanac · 96 tokens

audit-icon-pipeline

Detect missing glyphs, icons, and HD variants by comparing registries against glyph mapping files, icon directories, and manifests. Reports gaps for skills, agents, and teams across all palettes.

pjt222/agent-almanac · 43 tokens