# Principle redesign from first principles

> Principle redesign from first principles is an open-source agent skill for developer tools. Guides the agent to redesign existing code around a new requirement rather than patching. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/principle-redesign-from-first-principles
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** principle-redesign-from-first-principles
- **Collection:** https://github.com/michael-denyer/pstack-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill tells the agent to treat a new requirement as if it had been part of the design from the start, instead of attaching it to the current structure. Before changing anything, the agent reads every affected file and works out how the existing design fits together, then asks what it would build from scratch with the requirement included.

The workflow then carries the change through every place it touches, including type definitions, documentation, examples and rationale sections, so the codebase stays internally consistent. The redesign is planned as a whole and then delivered in incremental steps.

The skill is a single instruction document with no scripts. It is written for Claude Code and runs only in the context of an integration or design-change task, so it needs no extra tools beyond what the agent already has.

## When your agent uses it

> Apply when integrating a new requirement into an existing design.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-redesign-from-first-principles)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/principle-redesign-from-first-principles)

## Features

- **Whole-design review:** Reads all affected files to understand the current design before proposing changes.
- **From-scratch framing:** Asks what the design would look like if the new requirement had been foundational.
- **Reference propagation:** Carries the change through types, docs, examples and rationale sections.
- **Incremental delivery:** Plans the full redesign first and then ships it in stages.

## Good for

- Add a new requirement to an existing module without piecemeal patches
- Update types and docs consistently after a design change
- Rework an architecture to accommodate a new feature
- Review how a change ripples through examples and rationale notes

## Install

### Claude Code

This skill ships in the `pstack` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude
```

Or copy only this skill to `~/.claude/skills/principle-redesign-from-first-principles`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/principle-redesign-from-first-principles &&
cp -R "$tmp/plugins/pstack/skills/principle-redesign-from-first-principles" ~/.claude/skills/principle-redesign-from-first-principles &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/principle-redesign-from-first-principles` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/principle-redesign-from-first-principles` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/principle-redesign-from-first-principles &&
cp -R "$tmp/plugins/pstack/skills/principle-redesign-from-first-principles" ~/.agents/skills/principle-redesign-from-first-principles &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/principle-redesign-from-first-principles` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/principle-redesign-from-first-principles` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/principle-redesign-from-first-principles &&
cp -R "$tmp/plugins/pstack/skills/principle-redesign-from-first-principles" ~/.cursor/skills/principle-redesign-from-first-principles &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/principle-redesign-from-first-principles` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/principle-redesign-from-first-principles
```

Or copy the folder to `~/.gemini/skills/principle-redesign-from-first-principles` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/principle-redesign-from-first-principles`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/principle-redesign-from-first-principles &&
cp -R "$tmp/plugins/pstack/skills/principle-redesign-from-first-principles" ~/.copilot/skills/principle-redesign-from-first-principles &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/principle-redesign-from-first-principles` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git
```

Then copy `pstack-claude/plugins/pstack/skills/principle-redesign-from-first-principles` into your agent's skills folder as `principle-redesign-from-first-principles`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Principle redesign from first principles trigger?

It is meant to apply when integrating a new requirement into an existing design.

### Does Principle redesign from first principles run any scripts or need extra tools?

No scripts are included, and no allowed tools are set in its configuration.

### Which clients can use Principle redesign from first principles?

It is published as a Claude Code plugin skill in the pstack-claude marketplace.

### How do I install Principle redesign from first principles in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/principle-redesign-from-first-principles to use it in all your projects, or to .claude/skills/principle-redesign-from-first-principles in one project. Or install the pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.

### Does Principle redesign from first principles run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Principle redesign from first principles?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Principle redesign from first principles?

The closest alternatives to Principle redesign from first principles are Principle subtract before you add, Principle laziness protocol, Principle exhaust the design space, Principle experience first and Refactor.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Principle subtract before you add](https://ai-powered.com/skills/principle-subtract-before-you-add): Principle subtract before you add is an open-source agent skill for developer tools.
- [Principle laziness protocol](https://ai-powered.com/skills/principle-laziness-protocol): Principle laziness protocol is an open-source agent skill for developer tools.
- [Principle exhaust the design space](https://ai-powered.com/skills/principle-exhaust-the-design-space): Principle exhaust the design space is an open-source agent skill for developer tools.
- [Principle experience first](https://ai-powered.com/skills/principle-experience-first): Principle experience first is an open-source agent skill for developer tools.
- [Refactor](https://ai-powered.com/skills/refactor): Refactor is an open-source agent skill for developer tools.
- [Principle foundational thinking](https://ai-powered.com/skills/principle-foundational-thinking): Principle foundational thinking is an open-source agent skill for developer tools.
- [Principle never block on the human](https://ai-powered.com/skills/principle-never-block-on-the-human): Principle never block on the human is an open-source agent skill for developer tools.
- [Architect](https://ai-powered.com/skills/architect-michael-denyer): Architect is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/principle-redesign-from-first-principles
