backfill SKILL.md skillA

backfill from scaccogatto/okf-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add scaccogatto/okf-skills/backfill@git:20260928.8e31878

Pins git:20260928.8e31878 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
scaccogatto/okf-skills
Path
skills/backfill/SKILL.md
Versions recorded
7
Latest version
git:20260928.8e31878, committed Sep 28, 2026
First version recorded
Sep 3, 2026
Size
17,052 bytes
Repository stars
422
License
MIT

Reconstruct an OKF bundle by event-sourcing a repository's history (git log and Claude session transcripts). Use when creating an `.okf/` bundle for an existing repository that predates this skill, or when resuming an interrupted backfill session. Triggers on: "reconstruct the OKF bundle", "backfill the knowledge bundle", "event-source the history".

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Reconstruct an OKF bundle from history

This skill replays a repository's decision-making history (git commits and
Claude session transcripts) to rebuild its OKF knowledge bundle as if the
[okf](/okf) skill's Stop hook had been active from the start.

The extraction layer is **deterministic** (same repo → byte-identical events);
the replay layer is an LLM loop, **replayable and auditable but not
byte-identical** (timestamps, summaries change per run). See the event schema
(§1) and skip rules (§3).

## 1. Event schema

Git commits and session turns become events (JSONL, one per line, sorted by
timestamp then source):

```json
{"id":"git:<sha>","source":"git","ts":"<ISO8601 Z>","sha":"...","author":"...","subject":"...","body":"...","files":[{"path":"...","add":N,"del":N}]}
{"id":"session:<file>:<lineno>","source":"session","ts":"<ISO8601 Z>","user":"...","outcome":"...","title":"...","branch":"...","skip":"..."}
```

- **Git events** come from `git log --first-parent --numstat`.
- **Session events** pair each user message with the **last** assistant text
  block of that turn (the wrap-up), extracted from
  `~/.claude/projects/<repo-slug>/*.jsonl` and worktree subdirs.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add scaccogatto/okf-skills/backfill@sha256:b34ce8740f3ff55f

The line at the top of this page pins the label git:20260928.8e31878, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_44sxj45pw4ojpijl.svg)](https://markdownregistry.com/a/art_44sxj45pw4ojpijl)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Sep 3, 2026 and Sep 28, 2026, about one every 4 days.

versioncommittedcommitsizeaudit
git:20260928.8e31878 latest2026-09-28 8e31878 17,052 BA view · diff
git:20260921.ada4fc42026-09-21 ada4fc4 16,809 BA view · diff
git:20260905.d8393f32026-09-05 d8393f3 14,817 BA view · diff
git:20260905.0e9ef2c2026-09-05 0e9ef2c 14,817 BA view · diff
git:20260905.3a8bf1e2026-09-05 3a8bf1e 14,815 BA view · diff
git:20260905.37ecf142026-09-05 37ecf14 13,912 BA view · diff
git:20260903.2b913942026-09-03 2b91394 10,577 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (17052 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

scaccogatto/okf-skills · 422 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_44sxj45pw4ojpijl
GET https://markdownregistry.com/api/v1/resolve?ref=scaccogatto/okf-skills/backfill
GET https://markdownregistry.com/api/v1/blob/b34ce8740f3ff55f55af713ed350aa595aa94dbe716e25af328cbe6e5917bd8a

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from scaccogatto/okf-skills

okf SKILL.md skill
scaccogatto/okf-skills · skills/okf/SKILL.md · Author, maintain, and consume Open Knowledge Format (OKF) knowledge bundles — portable markdown + YAML frontmatter that…
git:20260928.8e31878 · audit A · 422 stars
validate SKILL.md skill
scaccogatto/okf-skills · skills/validate/SKILL.md · Check that an Open Knowledge Format (OKF) bundle is conformant with the v0.2 spec (§11). Use when asked to validate…
git:20260901.0ace7f7 · audit A · 422 stars
visualize SKILL.md skill
scaccogatto/okf-skills · skills/visualize/SKILL.md · Render an Open Knowledge Format (OKF) bundle as a single self-contained, interactive HTML graph (viz.html) — concepts…
git:20260921.17fd600 · audit A · 422 stars

Every file in scaccogatto/okf-skills

Browse by kind, by grade A, or by owner.