SuperAPI AI Directory

design-integrity

Coding & development

View repository

Updated 10-16 10:10

About this skill

Design Integrity

Brooks inspired design discipline: shape the design deliberately before implementation momentum hardens the wrong shape.

Operating Rules

  1. Treat the stated request as a starting point, not the whole problem.
  2. Preserve conceptual integrity: one clear model, consistent vocabulary, coherent boundaries, and predictable interfaces.
  3. Prefer a small coherent design over a broad design with divided concepts.
  4. Use the existing codebase as an exemplar source. Match its strongest local patterns unless they are part of the problem.
  5. Prototype only when uncertainty changes the decision. Throw the prototype away or clearly mark it as provisional.
  6. Ask for user input only when a decision depends on product intent, operational risk, or a tradeoff the codebase cannot reveal, and only after explaining the tradeoff in practical terms.

Workflow

  1. Frame the real design problem.

    Identify the user goal, the affected users or callers, the current system behavior, the desired behavior, and the reason the current shape is insufficient.

  1. Discover constraints.

    Look for invariants, existing contracts, data ownership, naming conventions, performance limits, security boundaries, migration cost, test seams, and deploy or rollback constraints.

  2. Define design success.

    State what must be true for the design to be good. Include coherence, simplicity, testability, maintainability, and user visible behavior where relevant.

  3. Search the design space.

    Produce at least two plausible solution shapes when the change affects architecture, data flow, public APIs, persistence, permissions, UI workflow, or cross module contracts. For each shape, state the central idea, what it simplifies, what it complicates, and how it fits or fights the existing system.

  4. Choose the smallest coherent shape.

    Select the design that best preserves conceptual integrity under the known constraints. Explain the decisive tradeoff in one short paragraph before coding when the work is substantial.

  5. Implement in the chosen shape.

    Keep names, boundaries, and data flow aligned with the chosen concept. Avoid adding side paths that solve local problems while weakening the central model.

  6. Validate the design.

    Run relevant tests or checks. Then review whether the implementation still has one clear idea, whether edge cases follow the same model, and whether future maintainers can predict where changes belong.

Review Checklist

Use this checklist before finalizing a design heavy change:

  1. The real problem is named.
  2. Hidden requirements and constraints were searched for.
  3. At least two alternatives were considered, or the change was small enough to justify skipping that step.
  4. Conceptual integrity: the design has a single central concept.
  5. Names match the concept.
  6. Change ownership: boundaries match ownership, so a change wants to live in exactly one place.
  7. Smallest coherent shape: the design is no larger than the problem requires.
  8. Tests or verification exercise the main contract.

Name the check as you apply it. "This keeps conceptual integrity but at the cost of change ownership — two modules would move together" is the kind of sentence that makes the tradeoff legible.

Output Contract

When using this skill for planning or review, return:

  1. design_problem: the real problem being solved.
  2. constraints: the important constraints and assumptions.
  3. alternatives: the viable solution shapes considered.
  4. recommendation: the selected shape and decisive tradeoff.
  5. conceptual_integrity_check: whether the result has one coherent model.
  6. validation: tests, checks, prototypes, or evidence used.

When using this skill while implementing, keep the final answer concise and include the design decision, files changed, and validation performed.

Gotchas

  1. Do not turn every small bug fix into an architecture exercise.
  2. Do not preserve existing patterns blindly when the request is about fixing a broken model.
  3. Do not confuse consistency with conceptual integrity. Repeating an old mistake consistently is still a design problem.