consolidate

consolidate is a skill for Claude Code, Codex from tpierrain/kenjaku. It costs 164 tokens per session (3,299 once invoked), scanned A, original, Apache-2.0.

A workflow for turning raw captures such as meetings, daily logs, and transcripts into durable, linked pages about people, topics, or projects. It detects pages needing updates, drafts changes, and asks before writing them.

In plain words
What is it for?
Use it to create missing entity pages, refresh stale topic pages, and add backlinks that connect related notes.
Why use it?
It prevents important information from remaining buried in raw notes while keeping proposed edits reviewable and avoiding silent overwrites.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/consolidate-scan.mjs.

Good fit Use it to create missing entity pages, refresh stale topic pages, and add backlinks that connect related notes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/tpierrain/kenjaku
agentmods
npx agentmods add skills/tpierrain/kenjaku/consolidate

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for consolidate

README.md
[![agentmods](https://agentmods.dev/badge/skills/tpierrain/kenjaku/consolidate/github.svg)](https://agentmods.dev/skills/tpierrain/kenjaku/consolidate)
Your own site
<a href="https://agentmods.dev/skills/tpierrain/kenjaku/consolidate"><img src="https://agentmods.dev/badge/skills/tpierrain/kenjaku/consolidate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for consolidate

Your own site · 80×15
<a href="https://agentmods.dev/skills/tpierrain/kenjaku/consolidate"><img src="https://agentmods.dev/badge/skills/tpierrain/kenjaku/consolidate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00164 $0.03299
Opus 5 $0.00082 $0.01649
Sonnet 5 $0.00033 $0.00660
Haiku 4.5 $0.00016 $0.00330

Measured 9d ago against content hash c139e2ce8e05, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

consolidate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

engine-skills/consolidate/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

consolidate — promote raw captures into the durable wiki ("compile the notes")

A second brain accretes raw capture fast (meetings, daily logs, transcripts) but the higher-order pages — the person, the topic, the project — lag behind: a name gets mentioned ten times and still has no page, a topic page goes stale while fresher notes discuss it. This skill is the "compile" half of the Karpathy LLM-Wiki discipline (see ADR 0033): on demand, it promotes the substance of raw captures into the entity/topic pages and weaves the backlinks, so the wiki (and the RAG's neighbourhood signal) stays current.

Principle

One promise: turn what raw captures already say into durable, well-linked pages — proposed first, written only on yes.

  • Detection is deterministic (ADR 0009): a pure scanner lists exactly what needs consolidating.
  • The merge is judgment (LLM): parallel read-only sub-agents draft each page, never the main context (the sync-sources fan-out/fan-in shape, to avoid context rot).
  • The write is deterministic and confirmed (reuse Track B / /file-back): a new page goes through the builder (conformant by construction, refuses to overwrite); a living page gets a confirmed dated append. So consolidation never re-introduces the defects /lint reports.
  • Contradictions are flagged, never adjudicated silently (Track D): when a fresher capture CONFLICTS with a fact the page already states (not merely adds to it), the draft surfaces it as a ### contradictions entry and the human decides which truth stands. Consolidation folds in additively; it never overwrites a stated fact to resolve a conflict on its own.
  • Bounded, resumable (stateless), honest: a capture is a candidate purely because it is fresher than the page it feeds (or that page doesn't exist). Refresh a page and its updated: moves past the capture, so the candidate drops off on its own — no state file, nothing to seed or corrupt.

Procedure

1. Scan for candidates (deterministic)

From the brain folder:

node scripts/consolidate-scan.mjs
  • Exit 0 = nothing to consolidate (say so plainly, do not invent work).
  • Exit 1 = candidates found; the report has two sections. Read it verbatim.
    • New pages to create — an entity/person [[mentioned]] in captures but with no page yet, with the count of citing captures (its signal strength) and their paths.
    • Entity pages to refresh — a curated page a fresher capture has left behind, with the captures that overtook it.
  • To scan a different path: node scripts/consolidate-scan.mjs <vault-dir>.

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 190 lines · 164 tokens per session scan A c139e2ce8e05

Subscribe to this mod's changes

consolidate is a skill published in the GitHub repository tpierrain/kenjaku (80 stars, last pushed yesterday), licensed Apache-2.0. It adds 164 tokens to every session and 3,299 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

refresh-context

A context snapshot updater for Core Context.md, a summary file built from nine main system files and selected essays. It refreshes that summary when the underlying material changes or the snapshot is more than 30 days old.

johnfkoo951/cmds-llm-wiki · 51 tokens

obsidian-bases

Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.

AgriciDaniel/claude-obsidian · 69 tokens

wiki-fold

Create a bounded, extractive, structurally idempotent rollup of recent Obsidian wiki log entries, with dry-run preview by default and one optional transaction apply. Use for manual log compression without modifying child pages. Triggers: fold the log, run a fold, run wiki-fold, log rollup, roll up log entries, commit…

AgriciDaniel/claude-obsidian · 76 tokens

wiki-retrieve

Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta…

AgriciDaniel/claude-obsidian · 81 tokens

wiki-mode

Read or configure the vault filing methodology and suggest destinations for planned knowledge creation under Generic, LYT, PARA, or Zettelkasten. Use for wiki mode, methodology mode, what is my vault mode, set vault mode, switch to PARA, use LYT, Zettelkasten setup, change mode, configure mode, or methodology routing.…

AgriciDaniel/claude-obsidian · 83 tokens

yopedia

Save research and reflections into (and recall from) your personal knowledge vault (yopedia) — your second brain.

yologdev/yoyo-evolve · 25 tokens