Effect Ledger logo

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

Overview

Publisherjmagly
Repositoryaiwg
Skill nameeffect-ledger
Stars
225
Forks
34
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by jmagly on GitHub. Read the source before you install it.

Installation

Install the Effect Ledger AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/effect-ledger
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Effect Ledger in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Effect Ledger on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Effect Ledger is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Frequently asked questions

What does the Effect Ledger AI skill do?

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

Why use Effect Ledger on TypingMind?

Because you install it once and use it with any model. Effect Ledger is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Effect Ledger in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/effect-ledger. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Effect Ledger?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Effect Ledger?

As many as you like. As long as a model supports skills, you can use Effect Ledger with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Effect Ledger AI skill free?

Yes. It is published on GitHub by jmagly under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇