Logo di Effect Ledger

Effect Ledger

Community
jmagly
effect-ledger

Record an effect, sign an effect, reconcile an effect or check "did this PR merge" through the signed AIWG effect ledger, using one aiwg effect command with scriptable exit codes

Panoramica

Autorejmagly
Repositoryaiwg
Nome della skilleffect-ledger
Stelle
225
Fork
34
File inclusi
Solo istruzioni
LicenzaMIT
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 jmagly su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Effect Ledger 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/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/effect-ledger
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova 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 nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jmagly/aiwg.git /tmp/aiwg
mkdir -p .claude/skills
cp -r /tmp/aiwg/agentic/code/addons/aiwg-utils/skills/effect-ledger .claude/skills/effect-ledger
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Effect Ledger 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 Effect Ledger 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 Effect Ledger 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à.

Effect Ledger

Record and reconcile side effects (tracker comments, PR merges, issue closes, git commits and tags, files, decision receipts) in the signed AIWG effect ledger with the aiwg effect CLI. The ledger proves what AIWG recorded and what a verifier observed. It never authorizes an effect and never replays one: an operator decision authorizes, the ledger proves.

Triggers

  • "record an effect" → aiwg effect record
  • "sign an effect" → aiwg effect record (signed intent and completed)
  • "reconcile effect" → aiwg effect reconcile
  • "did this PR merge" → aiwg effect reconcile --kind tracker.pr.merged, or aiwg effect probe --kind tracker.pr.merged --target gitea:owner/repo#34 when no merge intent was recorded (read-only, writes nothing)
  • "did we already post this comment" → aiwg effect lookup before posting
  • "verify the effect ledger" → aiwg effect verify (add --with-decisions <audit.jsonl> to check #1567 operator-decision links)
  • "the effect ledger lock is stuck" → aiwg effect recover-lock (operator only)

When to record

Record every externally visible effect that a retry or a crash could repeat: cycle and closing comments, merges, issue closes, tags, release files, and decision receipts. Do not record read-only queries.

Process

  1. Name the effect. Pick the kind and target, and the causal context that makes it unique. For a cycle comment: --kind tracker.comment --target gitea:owner/repo#12 --issue 12 --action cycle-comment --cycle 1. aiwg effect id <identity> prints the effect ID.

  2. Check before acting. Run aiwg effect lookup <identity>. Exit 0 means the effect is already present: do not repeat it. Exit 4 means an earlier attempt has no outcome: run aiwg effect reconcile first.

  3. Carry the ID into the target wherever the target allows it: a hidden <!-- aiwg-effect: <effect-id> --> line in a comment body, or an Effect-Id: <effect-id> git trailer. Verifiers use the marker to prove the effect happened.

  4. Perform the effect, then record and sign it in one call:

    bash
    aiwg effect record --kind tracker.comment --target gitea:owner/repo#12 \
      --issue 12 --action cycle-comment --cycle 1 --payload-file comment.md

    record writes the signed intent, runs the kind's verifier, and appends completed when the verifier reports present. Repeating it with the same payload exits 0 with "idempotent":true. Use --unverified only when no verifier can see the target, and say so in your report.

  5. Reconcile uncertain effects. aiwg effect reconcile <effect-id> (or the same identity flags) asks the verifier again and appends a reconciled record each time. For "did this PR merge", once the merge intent is recorded: aiwg effect reconcile --kind tracker.pr.merged --target gitea:owner/repo#34. Reconciling an effect with no recorded intent is a usage error (exit 2); record the intent first with aiwg effect intent or aiwg effect record, or use aiwg effect probe <identity> for an ad-hoc check that records nothing (same exit codes 0, 3 and 4).

  6. Link the authorizing decision when an operator approved the effect: --link operatorDecisionEventId=sha256:<hex> (and operatorDecisionRecordHash) on intent or record.

Exit codes

CodeMeaningWhat to do
0present or recordedContinue
3absentThe target does not show the effect. Do not assume it is safe to replay; follow the workflow's own policy
4unknownStop and escalate. Never replay on unknown
5conflictThe same effect ID was recorded with a different payload. Stop
6integrity failureThe ledger failed verification. Stop and report
2 / 1 / 7usage / internal / artifact root unavailableFix the command or the artifact root; nothing was written

Rules

  • Output is JSON by default and every document has a schema member; add --format text only for people.
  • Never pass raw bodies, secrets or tokens as flags. Payloads are digested from --payload-file or given as --payload-digest.
  • The ledger key lives in the host secret service. aiwg effect keys list shows key IDs and public keys only; keys init and keys rotate are operator actions.
  • aiwg effect recover-lock --lock <name> --authorize is an operator action. It refuses live, reused or unverifiable lock owners and records the recovery in the ledger. Never run it without the operator's explicit approval.

References

  • @$AIWG_ROOT/docs/contracts/effect-ledger.v1.md — contract, exit codes and verifier rules
  • @$AIWG_ROOT/docs/cli/reference.md — aiwg effect command reference

Domande frequenti

Cosa fa la skill IA Effect Ledger?

Record an effect, sign an effect, reconcile an effect or check "did this PR merge" through the signed AIWG effect ledger, using one aiwg effect command with scriptable exit codes

Perché usare Effect Ledger su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Effect Ledger è 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 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 Effect Ledger in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/effect-ledger. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Effect Ledger?

Qualsiasi modello che colleghi in 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 Effect Ledger?

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

La skill IA Effect Ledger è gratuita?

Sì. È pubblicata su GitHub da jmagly con licenza MIT. 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, modelli 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.

Vedi tutti

Crea subito la tua area di lavoro IA

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