agentsclimarketplace

Sources ledger

Skill jperrello/C0BALT_CUT/.claude/skills/sources-ledger

Maintain work/sources.json — the registry of which source videos have been processed into shorts. Scans every work/<id>/ingest.json + the output/<slug>/ folder it produced, recording title, url, duration, the produced shorts (with grades/tiers), current disk footprint, and active|reaped status. Also mirrors a keyed per-source bd memory so future sessions recall what's already been clipped (and can re-ingest from the saved URL). Pure deterministic scan, idempotent, no Claude. The "memory" half of the disk-hygiene pair (reap-source is the "cleanup" half).From its SKILL.md

Install
npx -y skills add jperrello/C0BALT_CUT --skill sources-ledger

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.5 KB, 581 tokens by cl100k_base, as published. Nobody here has run it

sources-ledger

The registry of what's been clipped. Answers "have I already made shorts from this video?" and "where did a reaped source come from?" without decoding opaque work/<sha1> hashes.

Usage

sources-ledger.sh sync          # rebuild work/sources.json from work/ + output/
sources-ledger.sh record <id>   # upsert one source (pipeline end-of-run / reap)
sources-ledger.sh show          # print the registry

Output: work/sources.json

An array, newest-ingested first, one entry per source that has an ingest.json:

{
  "id": "ac3763ad4c",
  "slug": "we-broke-into-mrbeast-s-studio",
  "title": "We Broke Into MrBeast's Studio",
  "url": "https://www.youtube.com/watch?v=y8K6QazBqrY",
  "uploader": null,
  "duration_sec": 5726.174,
  "ingested": "2026-06-01",
  "shorts": [ { "name": "....mp4", "grade": 72, "tier": "GOLD", "path": "output/<slug>/....mp4" } ],
  "shorts_count": 3,
  "status": "active",
  "reaped": null,
  "work_bytes": 2782512345
}
  • slug is computed identically to start.sh (kebab of the source title, falling back to the work id) so it maps work/<id>output/<slug>/.
  • status is reaped once source.mp4 is gone or a .reaped marker exists (written by reap-source); otherwise active.
  • shorts reads each delivered output/<slug>/*.mp4 and its co-located *.grade.json.

bd memory

record also upserts a keyed memory (--key source-<id>) summarizing the source + how to re-ingest, best-effort (skipped if bd is absent). Keyed, so re-runs update in place rather than duplicating.

Where it runs

  • Pipeline end-of-runstart.sh calls sources-ledger.sh record <id> after a source's shorts are saved, so the registry is always current.
  • reap-source calls record <id> after reaping to flip statusreaped, then a final sync.
  • Standalonesync backfills the whole registry from existing work/ dirs.

What ships with it: 2 files

5.8 KB alongside SKILL.md, 2 of them executable

Gives 0 of the 12 instructions most finance skills give in 581 tokens

Counted across 469 of the 469 authors here whose files we hold, read 2026-08-07

  • Extract date vendor amount and descriptionin 15 of 469, across 3 files
  • Scan folder for invoice filesin 14 of 469, across 2 files
  • Rename files to standard formatin 14 of 469, across 2 files
  • Show organization plan before movingin 14 of 469, across 2 files
  • Generate summary CSVin 14 of 469, across 2 files
  • Organize files by categoryin 13 of 469, across 1 file
  • Preserve original filesin 13 of 469, across 1 file
  • Flag files missing critical infoin 13 of 469, across 1 file
  • Produce the requested output filein 9 of 469, across 4 files
  • Build best, base, and worst case scenariosin 9 of 469, across 5 files
  • Implement backoff if rate limit errors occurin 8 of 469, across 3 files
  • Determine the weighted average cost of capitalin 8 of 469, across 4 files

Said here and by no other author read

  • run sync to rebuild the registry
  • run record to upsert one source
  • run show to print the registry
  • compute slug from source title
  • read co-located grade json for shorts
  • upsert keyed bd memory for source

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.