Logo vun Melech Roi

Melech Roi

Communautéit
AdirD
melech-roi

Grade whether a change's complexity and blast radius are actually worth the benefit it delivers, using an itemized ROI receipt and rankings among solutions already raised. Use on an existing PR, a local diff, or an idea still being discussed before any code exists. Trigger on "is this worth it", "ROI on this fix", "are we overengineering this bugfix", "worth the blast radius", or when a small fix seems to be touching shared systems, adding state, or expanding scope out of proportion to what it fixes.

Iwwersiicht

EditeurAdirD
Repositoryagent-shell-hamelech
Skill-Nummmelech-roi
Stären
46
Forks
5
Matgeliwwert Fichieren
3
LizenzMIT
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.

  • 3 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 AdirD op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Melech Roi 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/AdirD/agent-shell-hamelech/tree/main/skills/melech-roi
  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/AdirD/agent-shell-hamelech.git /tmp/agent-shell-hamelech
mkdir -p .claude/skills
cp -r /tmp/agent-shell-hamelech/skills/melech-roi .claude/skills/melech-roi
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Melech Roi 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 Melech Roi automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Melech Roi 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.

ROI

The core question

The whole thing in one story:

Your tap drips. Fix A reroutes the pipes for the whole house so that tap stops dripping. Fix B replaces the washer in that one tap. Both fix the drip. Only one of them means every future plumber has to understand the whole house's new plumbing just to work on a different tap someday.

That's it. That's the entire skill. It just asks, every time:

Are we rerouting the house, or replacing the washer?

  • Replacing the washer — a local, contained fix at the exact leak.
  • Rerouting the house — a shared boundary, new persisted state, a new lifecycle, or broad blast radius, paid to fix one drip.

melech-roi exists to catch the second disguised as the first — on code that already exists or on an idea that hasn't been coded yet. It evaluates the solution in front of it; it does not design a replacement.

If the plumbing picture isn't landing for whoever you're talking to, four other everyday pictures for the same question (packing, renovation permits, toolbox, alterations) are in references/analogies.md.

What it judges

Benefit — how real and large is the drip: severity, reach (how many users/paths), frequency, durability of the fix, strategic value.

Burden — how much of the house does this reroute: shared boundaries touched, new persisted state or lifecycle, regression exposure, new concepts a future maintainer must learn, reversibility.

Verdict — does the burden match the benefit, or is the house being rerouted for one drip?

Receipt — where the solution earned and lost ROI: problem reach versus solution reach, value received, cost charged, and the largest charge.

Sources you can point it at

  • an existing PR (diff + description + discussion),
  • a local diff (staged/unstaged, branch vs base),
  • an idea or direction still only discussed in conversation — no diff exists yet, so flag confidence as lower and call assumptions out as assumptions.

Resolve the source from context. Ask only if genuinely ambiguous.

Workflow

  1. Name the drip. State the actual benefit being pursued in one line. If the benefit itself is unclear or unproven, mark confidence low and name the missing evidence. Do not silently invent benefit.
  2. Trace the touched surface. For code: shared modules, persisted state, public contracts, new dependencies, call sites, concepts. For an idea: what it would require touching once built.
  3. Compare reach using the same unit. Show who experiences the problem beside who must carry the solution: paths, callers, users, jobs, records, or another grounded unit. Use unknown rather than fake precision.
  4. Itemize the receipt. List concrete value received and permanent costs charged. Mark cost severity LOW, MEDIUM, or HIGH.
  5. Find the largest charge. State the single clearest source of disproportionality, or explain why the broad reach is justified.
  6. Grade the current solution. The score measures proportionality, not how close the developer came to an imaginary perfect implementation.
  7. Rank only existing candidates. If the PR or discussion already contains multiple concrete solutions, evaluate and rank those. Never invent an alternative to complete a ranking.
  8. Render the receipt. Use the visual contract and adapt the examples in references/output-examples.md.

Output shape

The default output is one itemized receipt:

  1. solution name;
  2. ROI score and letter grade;
  3. rank only when two or more solutions were already raised;
  4. problem-reach and solution-reach bars in a comparable unit;
  5. value received;
  6. cost charged with severity;
  7. the largest charge;
  8. a one-sentence verdict about the current solution.

The receipt diagnoses; it does not prescribe. Do not add a replacement design, an improvement plan, or a "do this instead" section.

Interpret grades consistently:

  • A (85–100): burden is clearly proportionate to the benefit.
  • B (70–84): worthwhile with real but bounded cost.
  • C (55–69): works, but has a meaningful reach or complexity mismatch.
  • D (40–54): burden exceeds the demonstrated benefit.
  • F (0–39): severely disproportionate or mostly unsupported.

Use + or − only to express a position near a grade boundary. A developer does not need to reach 100; the grade answers whether this solution is proportionate. The itemized charges explain why.

Read references/output-examples.md before rendering the result. It contains examples for disproportionate, justified, operationally costly, ranked, and low-confidence solutions.

Boundary with other skills

  • melech-distill-need — establishes whether the drip is real when the benefit itself is in doubt.
  • melech-8020 — designs a cheaper shape after melech-roi diagnoses a mismatch. melech-roi itself does not propose that shape.
  • melech-tidy — executes the adaptive diff reduction (purging dead residue, narrowing seam blast radius, and shaking prompt bloat) once melech-roi has graded the existing diff. melech-roi evaluates; melech-tidy changes.
  • melech-challenge — pressure-tests a whole direction with open questions. melech-roi asks one narrower question: is the touched surface proportionate to the benefit.

Typical chain: melech-distill-need → melech-roi → melech-8020 / melech-tidy.

Do / Don't

Do: Show "one submission path" beside "47 request paths," then itemize the shared middleware, persisted state, and cleanup lifecycle as charges.

Don't: Show only "ROI: 58%" with no receipt explaining where ROI was lost.

Do: "This bug happens at every entry point that submits data — a shared fix genuinely matches a shared benefit here. This is not overreach; proceed."

Don't: Force a poor grade onto a genuinely systemic fix just because it touches shared code.

Do: On a transcript idea, not yet coded: "Still a direction, not a diff — confidence is lower. The proposal's permanent shared-service cost is better evidenced than the number of workflows receiving its benefit."

Don't: Invent precise reach counts, candidate solutions, or a replacement design when the evidence does not contain them.

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 Melech Roi?

Grade whether a change's complexity and blast radius are actually worth the benefit it delivers, using an itemized ROI receipt and rankings among solutions already raised. Use on an existing PR, a local diff, or an idea still being discussed before any code exists. Trigger on "is this worth it", "ROI on this fix", "are we overengineering this bugfix", "worth the blast radius", or when a small fix seems to be touching shared systems, adding state, or expanding scope out of proportion to what it fixes.

Firwat Melech Roi op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Melech Roi 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 Melech Roi an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/AdirD/agent-shell-hamelech/tree/main/skills/melech-roi 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 Melech Roi 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 Melech Roi benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Melech Roi 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 Melech Roi gratis?

Jo. De Skill gëtt vum AdirD ënner der Lizenz MIT 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 👇