AGENT SKILL

principle-redesign-from-first-principles

Use when a new requirement has to fit into an existing design. Rework the design as though the requirement had been there from the beginning, and carry it into every type, doc, and example, instead of attaching it at the side.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 1.6k
Forks
491

01 前言 Front Matter

name
principle-redesign-from-first-principles
description
Use when a new requirement has to fit into an existing design. Rework the design as though the requirement had been there from the beginning, and carry it into every type, doc, and example, instead of attaching it at the side.
disable-model-invocation
true

03 SKILL.md 正文

Redesign from first principles

Rework the design so that a new requirement looks like it was there from day one. Bolting it onto the side of the existing structure is the failure this principle prevents.

When it applies

Fitting a new requirement into a design that already exists. Compare principle-attack-the-premise, which challenges a factual belief behind a string of failed fixes.

What to do

  1. Read every affected file and understand the current design before changing it.
  2. Ask what you would build from scratch if this requirement had been there on day one.
  3. Carry the change into everything that refers to the old design: types, documentation, examples, and the rationale sections explaining why the design looks the way it does.
  4. Plan the complete redesign, then deliver it in verifiable increments (principle-sequence-verifiable-units).

An example. A single-tenant agent platform gains a requirement for multi-tenancy. Bolting it on means adding a tenant_id parameter to the functions that happened to break, and every query that was missed becomes a cross-tenant data leak. Redesigning means asking how the system would look if tenants had existed from the start: a tenant is part of every request context, storage is scoped by tenant at the data access layer, and no query can be written without one. The second design makes the leak impossible to write. The first only makes it less common.

The failure it prevents

Features bolted on in ways that distort the design, and docs and examples that still describe the old world.

Done when

The design reads as if the requirement was always there.

Related: principle-foundational-thinking, principle-attack-the-premise, principle-sequence-verifiable-units.

04 同仓库更多 Skills

hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-review-with-annotations

Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-find-and-synthesize-context

Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-update-docs

Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-manage-records

Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-manage-interactive-html

Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-collaborate-threads

Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.

★ 1.6k