Logo vun Occam

Occam

Communautéit
somnus0x
occam

The simpler-thing test: before a fix ships, prove the smaller version doesn't work. Use when code feels overbuilt, when complexity needs challenging, or when asking 'is this necessary'.

Iwwersiicht

Editeursomnus0x
Repositoryagt-skill-pack
Skill-Nummoccam
Stären
74
Forks
17
Matgeliwwert Fichieren
2
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum somnus0x op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Occam an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/somnus0x/agt-skill-pack/tree/main/skills/occam
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/somnus0x/agt-skill-pack.git /tmp/agt-skill-pack
mkdir -p .claude/skills
cp -r /tmp/agt-skill-pack/skills/occam .claude/skills/occam
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Occam an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Occam automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Occam net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Occam — The Simpler-Thing Test

You proposed a fix. Before it ships, prove the smaller version doesn't work.

Why

AI coding tools are biased toward comprehensive solutions. You ask for a bug fix, you get a new service with 10 columns, 3 methods, and wiring at 12 call sites. The bug needed one database constraint.

Occam forces a checkpoint: show the minimum version, the proposed version, and the overbuilt version side by side. Then justify why you're not shipping the smallest one.

This is NOT a veto. Some complexity is correct. The point is to make the trade explicit before you commit.

When to use

Explicit

Say /occam or "is this necessary", "feels complex", "simpler", "why is this so much code", "in my head it's just X".

Auto-fire (add to your CLAUDE.md)

Tell your AI to fire Occam automatically before finalizing any plan that introduces:

  • A new database table or column whose only purpose is the current bug
  • A new service, module, or provider
  • A new helper class wrapping a single existing call
  • A new background worker, cron, or scheduled job
  • A new event type, queue, or pub/sub channel
  • A new feature flag with only one consumer
  • A function longer than ~60 lines that's mostly defensive branches
  • Any abstraction justified by "we might need this later"

Don't fire for: one-line fixes, renames, test additions, config changes, following an existing pattern, or when you've explicitly said "go ahead, full version."

The four questions

Run in order. Show your work.

1. Restate the user-visible bug in one sentence

What does the user see today that they shouldn't? If you can't say it in one sentence, the fix scope is too broad.

Example: "When a user submits a form once, two identical records appear."

2. What is the minimum change that closes that exact sentence?

Often: one DB constraint, one early-return, one config flip, one bug fix in a single function. Resist the urge to refactor surrounding code.

Example: "Add a UNIQUE constraint. INSERT-or-skip on every request. ~30 LOC, no new module."

3. What does the proposed (larger) version cover that the minimum doesn't?

List the extra failure modes. Be specific. "Future-proofing" is not a failure mode — name the actual scenario.

Example: "The proposed version adds: pod-crash recovery via lease reclaim, in-flight observability via status field, full audit trail with error reasons."

4. Are those extra failure modes actually present today?

For each extra failure mode:

  • Has it happened in the last 30 days?
  • What's the user-visible cost if it happens once?
  • Can it be added later without a rewrite?

If speculative OR cheap to lose once OR can be grown additively later → minimum wins. If happening NOW and costs real money/trust → larger version wins.

Output format

Three columns, then a verdict:

MinimumProposedCould go further
WhatThe 1-sentence fixThe version under reviewThe maximally-defensive version
LOCestimateestimateestimate
Coverswhich failure modes+ extra failure modes+ everything imaginable
Leaveswhat's unprotectedwhat's still unprotectednothing (in theory)
Verdict: <Minimum | Proposed | Further>

Reason: <one sentence tying the verdict to question 4>

If wrong: <what evidence would change this verdict>

The "if wrong" line is the most important part. It names the condition that would upgrade the verdict — so the decision is reversible without re-running the full audit.

When NOT to apply

  • Real-money paths with no rollback. Contract state, balance flows, anything irreversible → default to maximum defensive.
  • User explicitly named the failure mode. They said "I want crash recovery" — don't re-litigate.
  • Following a binding spec. If the spec mandates the larger version, don't undermine it.
  • One-shot operations. Migrations, backfill scripts — defensive correctness is cheap when the code runs once and gets deleted.

Add to your CLAUDE.md

markdown
### Occam checkpoint
Before finalizing any plan that introduces a new table, service, module, worker,
queue, feature flag, or abstraction — run the Occam audit:
1. Restate the bug in one sentence
2. Show the minimum fix
3. Show what the proposed version adds
4. Ask: are those extra failure modes real, today, in production?
Output: three-tier comparison + verdict + "if wrong" condition.

Output discipline

When invoked:

  1. The one-sentence bug restatement
  2. The three-column comparison
  3. The verdict + reason + "if wrong" condition
  4. Nothing else

Keep it short. The longer the audit, the more it becomes part of the complexity it's auditing.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Occam?

The simpler-thing test: before a fix ships, prove the smaller version doesn't work. Use when code feels overbuilt, when complexity needs challenging, or when asking 'is this necessary'.

Firwat Occam op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Occam besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Occam an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/somnus0x/agt-skill-pack/tree/main/skills/occam an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Occam benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Occam benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Occam domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Occam gratis?

Jo. De Skill gëtt vum somnus0x ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇