AGENT SKILL

principle-redesign-from-first-principles

Apply when integrating a new requirement into an existing design.

License 许可
MIT
最近更新
2026-11-08
Stars
★ 46
Forks
3

01 前言 Front Matter

name
principle-redesign-from-first-principles
description
Apply when integrating a new requirement into an existing design.
user-invocable
false

02 资源文件 1

03 SKILL.md 正文

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.

04 同仓库更多 Skills

minghinmatthewlam
minghinmatthewlam/agent-guards

teach

Build a working mental model of code: the components and how they interact, then the interfaces, schemas, and function signatures. Use when asked to teach or explain how code works, walk through an architecture, deep-dive a subsystem, or understand a change, including code outside the current repo. For a concept with no code, use pstack:teach.

★ 46
minghinmatthewlam
minghinmatthewlam/agent-guards

skills-audit

Audit agent skills for triggering quality, correctness, context efficiency, redundancy, structure, failure guidance, and coverage gaps. Use when the user asks to review, improve, compare, simplify, or evaluate skills in global, repo-local, Claude, Codex, or custom skill paths.

★ 46
minghinmatthewlam
minghinmatthewlam/agent-guards

repo-setup

Set up or refactor a repository so agents naturally follow its intended architecture and important mistakes fail mechanically. Use when the user invokes $repo-setup, asks to make a repo agent-friendly, or wants important repository rules enforced through structure, types, tooling, tests, or CI.

★ 46
minghinmatthewlam
minghinmatthewlam/agent-guards

record-screen

Record a small MP4 while demonstrating or verifying a UI change, then attach the video as proof. Linux cloud sessions record the private virtual display; macOS records only the app window under test. Use for any repo whenever a UI change is verified or demoed.

★ 46
minghinmatthewlam
minghinmatthewlam/agent-guards

ori-pr

Take an OpenRouterIncubator/ori or OpenRouterTeam/openrouter-web PR from ready to merged. Matthew runs /ori-pr once he has decided the PR is ready and understands the change. Asks perry for review once CI is green, handles perry's comments, and enqueues the merge once perry approves the head and CI is green, within quiet hours.

★ 46
minghinmatthewlam
minghinmatthewlam/agent-guards

new-task

Clarify a new task by stating the goal the agent believes the user wants, showing its current understanding, and asking only product-related or high-priority questions that could materially change the outcome. Use before planning or implementation when the task needs alignment.

★ 46