Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
hylarucoder avatar

Hai Razor

  • 6 installs
  • 277 repo stars
  • Updated June 11, 2026
  • hylarucoder/hai-stack

Audits whether each requirement, field, state, module, layer, or abstraction deserves to exist and returns a Keep/Merge/Defer/Delete/Replace verdict per concept.

About

Applies Occam's razor to a PRD, architecture, workflow, or data model, classifying every concept with evidence and a cut/proof list. A developer uses it to trim over-engineering, fake requirements, and premature abstractions.

  • Keep/Merge/Defer/Delete/Replace/Prove-first classification
  • Gives the strongest survival argument for anything cut

Hai Razor by the numbers

  • 6 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #2,291 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/hylarucoder/hai-stack --skill hai-razor

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs6
repo stars277
Last updatedJune 11, 2026
Repositoryhylarucoder/hai-stack

What it does

Audits whether each requirement, field, state, module, layer, or abstraction deserves to exist and returns a Keep/Merge/Defer/Delete/Replace verdict per concept.

Files

SKILL.mdMarkdownGitHub ↗

Hai Razor

For Chinese readers, see SKILL.zh_CN.md. The English SKILL.md is the execution source of truth.

Overview

Audit the existence of product requirements, workflow steps, data fields, states, modules, layers, abstractions, service boundaries, and design choices, then classify each as Keep/Merge/Defer/Delete/Replace/Prove-first with evidence. The goal is not a smaller system — see Core Principle for the bar a concept must clear.

Core Principle

Every concept must earn its existence.

A thing deserves to exist only when removing it would break a real goal, erase a real distinction, hide an important risk, or push unavoidable complexity onto a worse owner. If a concept survives only because of habit, fear, symmetry, imagined future needs, or aesthetic completeness, cut it, merge it, defer it, or demand proof. Cutting real distinctions, safety, observability, permissions, migration paths, or a deep module that hides genuine complexity is not simplification — it is damage.

Razor Targets

Audit anything that claims a separate existence. The existence question is the lens for each type.

TargetExistence question
RequirementWhat user, business, operator, or maintainer pain proves this is needed?
Workflow stepWhat decision, transformation, or risk does this step own?
RoleWhat capability or responsibility is unique to this actor?
FieldWhat behavior, decision, audit, or invariant depends on this data?
StateWhat transition, permission, recovery path, or user meaning requires this state?
ModuleWhat complexity does this module hide from callers?
LayerWhat boundary does this layer protect, translate, or stabilize?
AbstractionWhat family of variation exists now, and what must callers no longer know?
RuleWhat failure, conflict, or decision would become ambiguous without it?

Classify Each Concept

After running the deletion test and finding the hidden owner (Workflow steps 4-5), assign every concept exactly one verdict.

DecisionUse when
KeepIt carries irreducible responsibility, protects correctness, hides real complexity, or preserves a needed distinction.
MergeIt has some value, but not enough independent meaning to justify its own name, module, field, state, or step.
DeferIt may become necessary, but current evidence is too weak and adding it now creates ballast.
DeleteIt does not protect a goal, invariant, decision, or meaningful distinction.
ReplaceThe responsibility is real, but the current shape is the wrong owner, boundary, name, or mechanism.
Prove firstThe concept may be necessary, but evidence is missing and the cost or risk is nontrivial.

Workflow

1. Name the chain being cut. State the scope (PRD section, feature flow, data model, module boundary, architecture chain, or implementation plan), the current goal it claims to serve, and list every concept asking for independent existence.

2. Gather evidence before judgment. Review the PRDs, docs, code, schemas, traces, tests, metrics, user flows, support cases, or decision records that bear on each concept. Separate evidence from inference — if a claim is plausible but unproven, label it an assumption or "prove first." Prefer concrete evidence about current behavior over imagined future extensibility. Every keep/cut/merge/defer/replace verdict needs a reason grounded in evidence, or an explicit statement that evidence is missing.

3. Map the current chain when the cut is structural. If the recommendation changes a substantial workflow, process, module chain, state machine, service boundary, or architecture flow, include before/after Mermaid diagrams — because a structural cut silently relocates responsibility, and a reviewer needs to see who now owns it. The before diagram shows existing actors, modules, steps, state/data flow, and where complexity currently lives; the after diagram shows what is deleted, merged, deferred, or moved, and who absorbs the rest. Skip diagrams only for small local audits where a table is clearer than a flow map.

4. Run the deletion test. For each concept ask: if this disappears, what concretely breaks? Distinguish "something feels less complete" from "a user goal, invariant, operation, safety property, or decision fails." If nothing breaks, the concept is suspect.

5. Find the hidden owner. If the concept is removed, who must absorb its responsibility? If it moves to a worse place, the concept may deserve to stay. If an existing concept can absorb it with less cognitive load, merge it.

6. Classify each concept using the decision table above. Give every concept exactly one verdict with its reason.

7. Protect necessary complexity. Explicitly name what should not be cut: complexity that prevents invalid states, secures trust boundaries, supports recovery, improves observability, or hides implementation behind a deep interface.

8. Attack the remaining design. Ask how future builders would reintroduce the deleted concept, and whether the cut creates hidden coupling, vague ownership, migration risk, or unclear acceptance. Add a guardrail: naming, test, doc boundary, acceptance criterion, architecture note, or follow-up proof.

9. Emit an HTML artifact for full audits. Path: /tmp/hai-razor-<slug>/index.html. After the Markdown answer, write a restrained, scannable report covering the verdict, evidence, before/after diagrams, Razor Map, cut/merge list, preserved complexity, risks, guardrails, and next steps. Skip it for a small local audit where HTML adds more ceremony than value, and say why. When one is written, return its absolute path.

Output

Read references/output-template.md before finalizing. The answer must contain, at minimum:

  • A razor verdict for the reviewed scope, the stated razor principle used, and an explicit

not-audited scope (to prevent mis-cutting).

  • An evidence table, or a clear statement that evidence is missing.
  • A classification table mapping each concept to Keep / Merge / Defer / Delete / Replace / Prove

first, with the strongest survival argument for anything cut.

  • The complexity that must be preserved.
  • A concrete cut list or prove-first list, plus risks and guardrails.

For full audits, also produce the HTML report per Workflow step 9. Before/after Mermaid diagrams are required whenever the recommendation changes a substantial workflow, process, module chain, state machine, service boundary, or architecture flow.

Use a different skill when

  • The target is a requirement document or product scope — use hai-prd.
  • The target is module boundaries, dependency direction, or abstraction depth — use hai-architecture.
  • The question is whether the whole idea is worth doing at all — use hai-idea.
  • The user wants the cuts turned into an execution plan — use hai-goal.

Common Mistakes

  • Cutting a concept because it is large, not because it is unnecessary.
  • Treating "future extensibility" as evidence without naming the expected variation.
  • Replacing a visible concept with a hidden convention and calling that simplification.
  • Keeping a concept only because it has a name, a file, a meeting, or an owner.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.