Logo di Self Review

Self Review

Community
hamr0
self-review

Verify what you delivered since the last self-review with real runs, and review its structure

Panoramica

Pubblicato dahamr0
Repositoryliteagents
Nome della skillself-review
Stelle
27
Fork
4
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da hamr0 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Self Review in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/hamr0/liteagents/tree/main/packages/ampcode/skills/self-review
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hamr0/liteagents.git /tmp/liteagents
mkdir -p .claude/skills
cp -r /tmp/liteagents/packages/ampcode/skills/self-review .claude/skills/self-review
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Self Review in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Self Review non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Self Review non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Answer "verify what you delivered, what did you gloss over, what did I miss?" about committed work since the last self-review, before /branch-review. The orchestrator resolves the range and hands off; a spawned worker tries to break it.

Guardrails

  • Spawn a worker, mid tier stated explicitly (omitted inherits the parent's, not the balanced one; not cheapest/fastest either — judgment degrades there; never a vendor model name — this spec names the tier, you translate it to whatever your spawn tool calls its mid tier), and hand it this file's path — a worker has no skill text of its own. No delegation, no sub-spawning — every command the worker cites is one it ran itself.
  • Ask and surface only. Never fixes anything. The user picks.

1. Orchestrator — resolve the range, then hand off

Dirty tree first: git status --porcelain prints any line → stop: the tree is dirty (list the paths), /self-review reviews commits not the working tree, commit then re-run. No worker spawned.

Hashes or a range given ($ARGUMENTS: one or more hashes, or <a>..<b>) → review exactly those commits, nothing else, on any branch: each hash via git show <sha>, a range via git log <a>..<b> and git diff <a>..<b>. Validate each hash, and both ends of a range, with git rev-parse --verify <x>^{commit}; reject anything starting with -. Hash/range mode never rewrites self-review-sha:.

Neither → on main/master, stop and ask for hashes or a range. Otherwise the bookmark is one line, self-review-sha:, in /branch-review's record (/self-review is its only writer):

grep '^self-review-sha:' .amp/remember/last-review.md || grep '^debrief-sha:' .amp/remember/last-review.md

No self-review-sha: line → the old debrief-sha: name, once (that is what the || does; the new name wins if both exist). Fails either check, starts with -, or the third exits 0 (an ancestor of main's merge-base is from an already-merged branch) → no bookmark:

git rev-parse --verify <sha>
git merge-base --is-ancestor <sha> HEAD
git merge-base --is-ancestor <sha> $(git merge-base main HEAD)

Valid (third command exits non-zero) → range <sha>..HEAD. No bookmark → whole branch, git merge-base main HEAD..HEAD. Range empty → "nothing new since the last self-review," stop, no worker spawned. Otherwise hand off — what was done, claims made (works / tested / done), files changed, the baseline suite totals if known, loose ends only you can know (a peer session not told, a silent open question, unshipped state) — and spawn one mid-tier worker.

2. Worker — try to break it, not confirm it

Real runs, not re-assertion, scoped to the range for cleanup/glossed/ underspecced — the regression check is always the FULL suite, never scoped:

  • Does it work? Run the thing/tests now; cite the command and numbers.
  • No regression? Run the FULL suite, cite totals vs. the handoff baseline — no run behind a claim counts as not checked.
  • Cleanup? Speculative code, an abstraction for one caller, redundant tests. Dead code — grep the symbol repo-wide before flagging. State ownership — two or more functions assigning the same field: name both writers with file:line, grep every assignment repo-wide, not just the diff; a write from a callback, thread or lifecycle event counts (one app writer racing a framework one is still two). Reuse — a new function, class, file or name duplicating an existing one: name the existing one. Changed lines that trace to no request. Complexity, naming, duplication only when material. Performance (N+1, blocking calls in hot paths, unbounded loops) only with evidence.
  • Glossed over? Tradeoffs not flagged, claims untested as shipped, the handoff's loose ends verified, not just repeated.
  • Underspecced? What should have been part of this and is missing.

Report opens with four lines, always filled (so "checked, found nothing" never looks like "skipped"); tag every item nit/change/idea:

works: <command> exit <code> <totals> | NOT RUN: <reason>
full-suite: <command> exit <code> <totals> vs before <totals | unknown> | NOT RUN: <reason>
underspecced: <N> items | none found: <what was checked, one phrase>
cleanup: <N> items | none found: <what was checked, one phrase>

The bar — Fix now and Later alike: every item needs one concrete failure sentence — specific input/state → what breaks. "Will mislead the next reader" is not one: no input, no state, no break named. Can't write it → drop it, count only (dropped: N). Carve-out: a Cleanup item may replace the failure sentence with the rule it breaks plus the file:line(s) that prove it; Cleanup items always go in Later, never Fix now, unless they do carry a real failure sentence. Each item is one kind, counted in one cap only. Max 5 failure-sentence items and max 5 Cleanup items, ranked, in two piles: Fix now (changes whether you ship) and Later.

3. Orchestrator — relay as-is, then ledger

"As-is": same items, order, piles, and the worker's four report lines (works:, full-suite:, underspecced:, cleanup:); each failure sentence and cited commands/numbers preserved; every relayed item keeps its tag (nit/change/idea) and its file:line. Reworded for the user's output style: fine. Added, dropped, merged, re-ranked, or weakened: not — your own recommendation is allowed only marked as yours, separate from the worker's items. When you relay the report, the orchestrator (worker's turn is over by then) appends every anchorable item, both piles, to .amp/remember/fix-ledger.md right away, /branch-review's format (header: its Ledger section), tagged nit/change/idea (Underspecced items → idea: missing, an option not debt), bullet text verbatim. Bullet shape:

- `path/file.js` · "verbatim snippet from the line" · what's wrong · failure scenario · YYYY-MM-DD @ <short sha> · nit

Stale header: if grep -F '`idea` =' .amp/remember/fix-ledger.md finds nothing, replace the header block with the current one from /branch-review's Ledger section; bullets are never touched. Then ask which, if any, to remove: no answer → they all stay; remove only on the user's explicit say-so naming the items. Items the user fixes now are not removed by hand — /refactor's revalidation drops them once the finding no longer holds. One path per bullet: anchor the first file, name the others in the scenario slot. One snippet per item (a second item on the same line anchors a different nearby line). A corrected file:line is noted as "corrected" in the relay. Dedupe with plain grep -F "<snippet>" .amp/remember/fix-ledger.md (never git grep — gitignored). Anchor rule: a verbatim snippet grep -F can find; missing (usually an idea) → anchor where it should go; no line to name → no ledger entry, report it as "your call" instead — the anchor rule wins over "every". Relay one line, filled (A + D + Y = N), so a dropped append shows: ledger: <N> items → <A> appended, <D> already there, <Y> your call

Last act (no-hash mode only; hash/range mode leaves the bookmark) — rewrite only the bookmark line, never another line in the file. Write it when you relay the report — it records what was checked and does not wait for the user's pick. It also drops any old debrief-sha: line:

F=.amp/remember/last-review.md
mkdir -p .amp/remember
touch "$F"
grep -vE '^(self-review|debrief)-sha:' "$F" > "$F.tmp"
echo "self-review-sha: <full HEAD sha>" >> "$F.tmp"
mv "$F.tmp" "$F"

Loop guard: re-run after fixes until zero Fix now remain — Later never counts; fixing a Later item anyway is new uncommitted work the next run checks like any other, not a re-run trigger. A third round with new Fix-now caused by the previous fix → stop: "redesign, don't patch again." Not a gate: /branch-review and /release don't require this to have run — close with "commit, then /branch-review," a sentence to say, never run.

Domande frequenti

Cosa fa la skill IA Self Review?

Verify what you delivered since the last self-review with real runs, and review its structure

Perché usare Self Review su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Self Review è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Self Review in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/hamr0/liteagents/tree/main/packages/ampcode/skills/self-review. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Self Review?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Self Review?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Self Review: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Self Review è gratuita?

Sì. È pubblicata su GitHub da hamr0 con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇