Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

principle-redesign-from-first-principles — Claude Code skill

A skill that makes the agent rebuild an existing design as if the new requirement had been there from day one. Use it when a change ripples through types, docs, and examples.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add backnotprop/pstack --skill principle-redesign-from-first-principles -a claude-code
Open on GitHub

What principle-redesign-from-first-principles does

The skill triggers when you integrate a new requirement into an existing design. Instead of bolting a patch onto the current structure, the agent reads all affected files, understands the design, and asks: if we were writing this from scratch with the new requirement, what would we build?

Then the change propagates through every reference: types, documentation, examples, rationale sections. The agent thinks through the whole redesign first, but ships it incrementally. The method preserves option value when existing designs absorb new requirements.

It ships as a single SKILL.md file and installs via npx skills add. Model invocation is disabled, so the agent applies it only when the task genuinely calls for restructuring, not for small fixes.

What it helps with

  • stop the agent from patching over an existing design
  • propagate a change through types, docs, and examples
  • preserve option value when new requirements land
  • plan the full redesign but deliver it incrementally

Example prompts for the agent

  • Apply the redesign from first principles principle to this change
  • Rebuild this module as if the new requirement had been there from the start
  • Read the affected files and restructure the design instead of patching it

How to install principle-redesign-from-first-principles

1Skills CLI (Vercel)

npx skills add backnotprop/pstack --skill principle-redesign-from-first-principles -a claude-code

2Manually: put the files in place

~/.claude/skills/principle-redesign-from-first-principles/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/principle-redesign-from-first-principles/

From the same set5

The whole set →

Similar

swiftui-view-refactor official OpenAI Refactors SwiftUI view files into clean, testable structures with dedicated subview types and proper Observation ownership. CX Codex GP ChatGPT 113installs narrow-react-prop-types humanlayer A skill that cuts React component prop types back to the contract your live code actually uses, then makes stories and tests match it instead of weakening it. Claude Code CX Codex Cursor +1 1,200installs software-design-philosophy wondelai A design-review skill that rates module depth, information leakage and comment quality, then names the fix for each failed check. Claude Code CX Codex Cursor +1 6,100installs improve-codebase-architecture Matt Pocock This skill scans a codebase for architectural friction, then builds a visual HTML report with refactoring candidates. Use it before a deeper architecture review. Claude Code 1,163,035installs tdd Matt Pocock Guides the red-green TDD loop: ensures tests are written first, keep them at public interfaces, and avoid coupling to implementation details. Claude Code 1,141,062installs triage Matt Pocock This skill moves issues and external PRs through triage states, verification, and agent briefs. It fits maintainers managing an issue queue. Claude Code 990,453installs codebase-design Matt Pocock This skill helps design modules with small interfaces and hidden complexity. Use it when refactoring code, choosing a seam, or making tests easier to write. Claude Code 850,344installs code-review Matt Pocock Reviews changes from a chosen reference point against repository standards and the originating spec. Use it for a branch, PR, or work in progress. Claude Code 789,521installs

Questions about principle-redesign-from-first-principles

How do I install principle-redesign-from-first-principles in Claude Code?

Run npx skills add backnotprop/pstack --skill principle-redesign-from-first-principles -a claude-code. The skill lands in ~/.claude/skills/principle-redesign-from-first-principles/SKILL.md.

What does principle-redesign-from-first-principles do?

It makes the agent redesign an existing design from scratch when a new requirement arrives, as if that requirement had been a foundational assumption. The change propagates through types, docs, examples, and rationale sections.

How is this different from regular refactoring?

Refactoring cleans code without changing behavior. Here the new requirement changes the design itself, so the agent first plans the entire redesign, then delivers it incrementally.

Source text

SKILL.md · MIT
---
name: principle-redesign-from-first-principles
description: "Apply when integrating a new requirement into an existing design."
disable-model-invocation: true
---

# 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.

© backnotprop · MIT · backnotprop/pstack

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor