
Principle redesign from first principles
Guides the agent to redesign existing code around a new requirement rather than patching
Principle redesign from first principles is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5.1K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Principle redesign from first principles
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (792 bytes) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the pstack plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claudeOr copy only this skill to ~/.claude/skills/principle-redesign-from-first-principles:
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.
Copy the skill folder to ~/.agents/skills/principle-redesign-from-first-principles to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/principle-redesign-from-first-principles to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/principle-redesign-from-first-principlesOr copy the folder to ~/.gemini/skills/principle-redesign-from-first-principles yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/principle-redesign-from-first-principles:
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.
Get the folder:
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.gitThen 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.
What it does
- 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
Principle redesign from first principles 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.
More from michael-denyer/pstack-claude

Makes the agent read pstack's poteto-mode skill first and follow its routing
- Open source
- 5.1K GitHub stars
- Developer tools

Has the agent restate your goals and the problem you're solving in its own words
- Open source
- 5.1K GitHub stars
- Productivity

Prototype 2-3 competing designs and compare them before committing to one
- Open source
- 5.1K GitHub stars
- Developer tools

Sketches types, signatures and module layout before the agent writes code
- Open source
- 5.1K GitHub stars
- Developer tools

Runs parallel candidate attempts at a task, then merges the best parts into one artifact
- Open source
- 5.1K GitHub stars
- Developer tools

Drafts a personal working-style skill from your past agent conversations
- Open source
- 5.1K GitHub stars
- Developer tools

