/olko-skill-meta:shared-knowledge-artifactfrom olko-skill-meta
Build a shared, self-persisting knowledge ledger as a Claude Artifact, a private page that stores its own data, renders itself from that data, and saves new versions of itself, so several agents can read the same lessons before starting work and append to them afterwards. Use when the user wants agents to learn from each other, asks for a shared knowledge base, lessons-learned log, gotcha ledger, or cross-agent memory page they can hand to other sessions.
Ships in olko-skill-meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use a private Artifact page as an optional rendered and editing surface for an append-only knowledge ledger. Multiple agents (and the user) can read the lessons before starting work and append corrections afterwards. The Artifact is not universally authoritative: when a repository contains a Git-backed ledger, that repository ledger is the canonical record; the Artifact mirrors it and provides a convenient view or edit surface. Without a Git ledger, the published Artifact state is the durable record for that Artifact.
artifact-capabilities skill, mandatory before declaring capabilities or writing any window.claude.* code.artifact-design skill, which calibrates the design treatment.context-repo skill. That store holds the Git-backed ledger. If it comes back BLOCKED, or the user declines when that skill asks, publish the artifact anyway and skip the Git ledger, labelled NOT_MIRRORED: <reason> in the deliverable. The store must never block publishing.CLAUDE.md, any verification/preferences doc, agent memory), and read the current Git ledger directly when one exists (ledger.json at the root of a resolved store, or a repository ledger already in the checkout). Seed the ledger with real lessons already recorded there, 6-10 when that many exist, or all available real lessons if fewer than six are found. Skip any lesson already present in the store's ledger.json so a new page does not reseed what is already recorded there. No lorem, no invented examples: a ledger that opens with fake entries never gets used.#ledger-state is authoritative for that Artifact. Do not imply that it is shared with non-Claude agents unless it has been exported to a repository ledger.capabilities: {artifact: {}} at publish time.<script type="application/json" id="ledger-state">. That block is authoritative for the published Artifact version; the visible page is rendered from it at load. When a Git ledger exists, this page state remains a mirror and Git remains authoritative overall. Never serialize the live DOM to save.document.documentElement.outerHTML once at script start (pristine source, before any rendering), then on save splice the new JSON into that snapshot's #ledger-state block, prepend <!doctype html>, and call artifact.publish(doc).const artifact = await claude.use("artifact"); branch on null (this view cannot write) and render a read-only state instead of a broken control.conflict means someone published first and every view reloads to the winner: no retry, tell the person to re-add; not_granted / not_writer means read-only.</script when writing the JSON back, and escape every interpolated note field on render.The store holds the Git-backed ledger, so per "Authority and reconciliation" it is the canonical record and the page is the view onto it. After a successful publish performed by this skill (not a viewer's later edit on the page), extract the #ledger-state JSON from the published document and append any note it holds that the store does not, to the notes array of the store's root ledger.json, with a fresh id in the store's own sequence. One shared ledger, not one per artifact: never add a knowledge/<slug>/ tree beside it. Message chore(knowledge): append <n> notes from <slug> where <n> is the number actually appended. Follow the context-repo caller contract in full: take the lease, git pull --rebase, run the store's validator, one commit, never force, never edit or remove an existing note.
If the store did not resolve (BLOCKED or declined in the "Before writing any code" step), skip this section entirely and report NOT_MIRRORED with the reason; do not retry the resolution mid-run.
Limitation, stated plainly: notes added on the page by a viewer are not written through, because no agent is present when that happens. Those notes reach the ledger only on the next agent-driven publish, and until then they are not shared guidance. Say so on the page rather than letting a viewer assume their note is already canonical.
One fact per entry:
{"id":"n9","kind":"lesson|trap|pref","scope":"shell|review|github|...",
"title":"the rule in one line",
"body":"the concrete behaviour, specific enough to act on",
"why":"the failure that made this a rule",
"author":"model or agent name","date":"YYYY-MM-DD"}
Kinds: lesson = a habit that holds; trap = something that silently produces a wrong answer; pref = how the user wants the work done.
tabular-nums.Why: line. Kind tags use semantic colour (trap = critical, pref = warning, lesson = accent), separate from the page accent.all chip, with aria-pressed state.action: "read" as a rendered surface, then parse the #ledger-state JSON rather than scraping the DOM. In either case, append, don't rewrite, re-read before writing because another agent may have updated the source, and include the failure that caused each note. Include the schema snippet and the Git reconciliation rule.CLAUDE.md already says it, or a review bot already catches it, leave it out: a littered ledger is worse than a thin one.:root; redefined under @media (prefers-color-scheme: dark) guarded as :root:not([data-theme="light"]); redefined again under :root[data-theme="dark"]. Style everything through tokens and give body an explicit token background. No colour whose only definition sits inside a media or [data-theme] block.gap, not per-element margins. Wide content in its own overflow-x: auto container. Visible focus states. Respect prefers-reduced-motion.description and an emoji favicon, and keep both stable across redeploys.When an Artifact surface is requested, write the HTML to a file and publish it with the Artifact tool, then report:
action: "read" with that URL, and write by appending to notes and republishing with url set to that URL (a publish without url forks a separate artifact instead of updating this one);ledger.json at <sha>), or NOT_MIRRORED: <reason> if the store did not resolve.references/prompt.txt: hand it to another agent or session verbatim.url from any other conversation.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub oleg-koval/agent-skills --plugin olko-skill-meta12 skills in this plugin
/1password-agent-accessSet up scoped 1Password access for coding agents, copy approved credentials into an agent vault, or organize a personal vault with reversible tags. Use for repeated CLI approval prompts and agent credential setup; ordinary secret reads use the configured launcher./add-to-my-skillsCopy a newly created skill from another repo into this catalog, refresh the README and generated manifests, then commit and push the change. Use when the user wants to bring a skill they built elsewhere into this repository./agterm-teamCreate and coordinate Codex agents in project agterm workspaces, with readable session names, task handoffs, failure recovery, and lead-owned acceptance.Other plugins' skills for the same job