strata:consolidate

strata:consolidate is a skill for Claude Code from gideondk/strata. It costs 95 tokens per session (523 once invoked), scanned A, original, MPL-2.0.

A cleanup command that promotes lasting notes from old branch-specific pull-request folders into shared lessons. It first shows a dry run and can then apply the changes.

In plain words
What is it for?
Use it after several pull requests are merged or during regular maintenance to move durable decisions, handoffs, and review notes into long-term storage.
Why use it?
It keeps useful knowledge after pull requests are merged without leaving it buried in outdated branch folders.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the strata plugin — 24 skills, 2 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it after several pull requests are merged or during regular maintenance…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add gideondk/strata
Claude Code
/plugin install strata

Made for: Claude Code.

Or install strata, the plugin that ships this one along with the rest of its 24 skills, 2 agents, 5 hooks, 1 MCP server.

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 strata:consolidate

README.md
[![agentmods](https://agentmods.dev/badge/skills/gideondk/strata/consolidate.svg)](https://agentmods.dev/skills/gideondk/strata/consolidate)
Your own site
<a href="https://agentmods.dev/skills/gideondk/strata/consolidate"><img src="https://agentmods.dev/badge/skills/gideondk/strata/consolidate.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 523 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.
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.00095 $0.00523
Opus 5 $0.00048 $0.00262
Sonnet 5 $0.00019 $0.00105
Haiku 4.5 $0.00010 $0.00052

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

Security

Grade A, and why

strata: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 6d 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.

skills/consolidate/SKILL.md · 60 lines

What it actually says

strata:consolidate

The "graduate durable content out of pr-context" step. Branch dirs that Have aged past a threshold are scanned for notes worth keeping; those Get moved to lessons/ with a consolidated_from: breadcrumb.

What gets promoted

A pr-context note is promoted when:

  1. Its branch dir is older than --age-days (default 60)
  2. Its kind: frontmatter is one of handoff, decision-draft, review

Other kinds (session, investigation) stay branch-scoped, they're Transient. Use /strata:archive to retire the whole branch dir when the PR merged.

How

# Dry-run (default)
"${CLAUDE_PLUGIN_ROOT}/bin/strata" consolidate

# With a different age threshold
"${CLAUDE_PLUGIN_ROOT}/bin/strata" consolidate --age-days 30

# Perform
"${CLAUDE_PLUGIN_ROOT}/bin/strata" consolidate --apply

What it does

For each promoted note:

  1. Computes lessons/YYYY-MM-DD-<topic>.md as the target
  2. Copies the frontmatter forward, adds consolidated_from: (audit) + consolidated_at: (date)
  3. Deletes the source from pr-context
  4. Refreshes the FTS index

When to use

  • After a wave of PR merges, run dry-run to see what's accumulated
  • Monthly hygiene, alongside /strata:review
  • Before /strata:archive on an old branch — consolidate first, then archive what remains

Don't do

  • Don't run on a branch you're still actively working on
  • Don't promote session or investigation notes — they're inherently branch-scoped and become noise in lessons/. The script already filters these.
  • Don't auto-invoke. This is a maintenance action — user-initiated.
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. 6d ago First seen · 60 lines · 95 tokens per session scan A e6f0e42cadec

Subscribe to this mod's changes

strata:consolidate is a skill published in the GitHub repository gideondk/strata (5 stars, last pushed 1mo ago), licensed MPL-2.0. It adds 95 tokens to every session and 523 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

my-wiki

Manage local OKF-compatible Markdown My Wiki vaults with an AI agent. Use for capturing webpages, PDFs, Office documents, notes, images, folders, and ZIP bundles as References; maintaining Reference-to-Concept evidence links; searching or answering from a vault; checking or repairing vault health; switching among…

NimaChu/my-wiki · 78 tokens

kb

Set up, evolve, or operate a hraness/kb local-first Markdown knowledge base for coding-agent memory. Use when a user asks to design KB conventions or a recurring KB ritual; search or query a KB or Obsidian vault; load or recover repository context, plans, decisions, concepts, backlinks, semantic search, or Git…

hraness/kb · 155 tokens

mneme-search

Use when the user asks a factual question whose answer might live in the vault. Invokes mnemesearch. Production mnemesearch is FTS5 BM25. The experimental feature-hashed lexical-vector backend is not wired into MCP. KG enrichment is gated to summarize or timeline when full-profile graph state is active.

OnourImpram/mneme · 69 tokens

mneme-prime

Use when the user starts a new task that may have prior vault context worth surfacing. Invokes the mnemeprime MCP tool to build a token-budgeted preamble of recent sessions and topic matches.

OnourImpram/mneme · 46 tokens

memory-forest

Build, validate, index, and query a private local Memory Forest with provenance-aware layers, pointer-first search, and validated root-first retrieval. Use when creating a new forest, checking an existing forest's structure, building its local SQLite index, or retrieving bounded memory trails without exposing full…

hyungchulc/memory-forest · 65 tokens

brain

Orient in the user's big-brain second brain and work brain-aware for the rest of the session. Use when the user types /brain, or asks "what am I working on", "what's on my plate", "catch me up", "what's overdue", or at the start of a session about ongoing work. Loads the vault overview, reports it in one screen, and…

jzhao234/big-brain · 87 tokens