principle-redesign-from-first-principles

Redesigns existing code as if new requirements were foundational assumptions from day one.

6.6k|542|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/cursor/plugins --skill principle-redesign-from-first-principles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: principle-redesign-from-first-principles
Source: https://github.com/cursor/plugins/tree/main/pstack/skills/principle-redesign-from-first-principles
Command: npx skills add https://github.com/cursor/plugins --skill principle-redesign-from-first-principles

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When new requirements are bolted onto an existing design, codebases accumulate awkward patches, inconsistent abstractions, and lost option value. This Skill guides the AI to redesign holistically, as if the new requirement had been present from the start.

Core Features & Use Cases

  • Holistic Design Review: Reads all affected files to understand the current design before proposing changes.
  • First-Principles Redesign: Asks what the system would look like if built from scratch with the new requirement in mind.
  • Complete Propagation: Updates every reference including types, docs, examples, and rationale sections.
  • Use Case: When adding multi-tenancy to an app originally designed for a single tenant, use this Skill to restructure the data model and APIs cleanly instead of layering tenant checks onto every query.

Quick Start

Ask the AI to integrate the new requirement by redesigning the affected module from first principles rather than patching it on.

Frequently Asked Questions about principle-redesign-from-first-principles

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a new requirement into an existing codebase cleanly?

Redesign as if the requirement had been a foundational assumption from day one rather than bolting it on. Read all affected files, imagine the from-scratch design, then propagate the change through every reference including types, docs, and examples.

What is redesign from first principles in software engineering?

It is a method where you ask what you would have built if the new requirement had been known on day one. The result preserves option value and avoids the patchwork that accumulates when changes are layered onto an existing design.

When should I redesign instead of patching existing code?

Redesign when a new requirement conflicts with core assumptions of the current design, such as adding multi-tenancy to a single-tenant system. Patching works for peripheral changes, but foundational shifts need holistic redesign.

Does first-principles redesign mean rewriting everything at once?

No. The method says to think about the redesign holistically but deliver it incrementally. You plan the ideal end state, then migrate toward it in manageable steps.

What are the limitations of the first-principles redesign approach?

It requires reading and understanding all affected files, which takes more upfront effort than a quick patch. For trivial or isolated changes, a full redesign may be unnecessary overhead.