Skip to main content
skill CX Codex

context-layer-consolidation — Claude Code skill: install

The context-layer-consolidation Claude Code skill keeps a context wiki coherent by working through a deterministic lint report queue. It handles the queue before dream publisher creates its branch and commit.

no license 148 installs ★ 101 updated 2026-10-24

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PostHog/ai-plugin --skill context-layer-consolidation -a claude-code
Open on GitHub

What context-layer-consolidation does

The skill runs scripts/lint --report and works through the findings in the mounted wiki. It removes claims without supporting sources, marks outdated priorities, and links decisions to their replacements. Similar pages are merged, with a wikilink left on the old subject.

Edits are limited to sourced Markdown under org/, areas/, decisions/, and existing Space pages. Repository instructions, generated indexes, and scripts/ stay untouched; structural failures go into the run summary for the server to fix. The summary also names every deletion, and dream publisher carries it into the commit message.

After editing, the skill runs scripts/lint again. Disagreements are resolved only when evidence supports a decision; otherwise, they remain explicit.

What it helps with

  • work through lint findings in a context wiki
  • link replaced decisions to their successors
  • merge similar pages while preserving a link from the old subject
  • split oversized pages and add sources

Example prompts for the agent

  • Clean up the context wiki using the scripts/lint --report findings.
  • Process the lint queue before dream publisher creates its branch.
  • Merge similar pages and keep a wikilink from the old subject.

How to install context-layer-consolidation

1Skills CLI (Vercel)

npx skills add PostHog/ai-plugin --skill context-layer-consolidation -a claude-code

2Manually: put the files in place

~/.claude/skills/context-layer-consolidation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/context-layer-consolidation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about context-layer-consolidation

How do I install context-layer-consolidation in Claude Code?

Run npx skills add PostHog/ai-plugin --skill context-layer-consolidation -a claude-code. The skill file is available at ~/.claude/skills/context-layer-consolidation/SKILL.md.

What does context-layer-consolidation do?

It processes the scripts/lint --report queue, updates sourced wiki content, then runs scripts/lint again.

Which files can context-layer-consolidation edit?

It edits sourced Markdown under org/, areas/, decisions/, and existing Space pages. Repository instructions, generated indexes, and scripts/ are left untouched.

Similar skills

SKILL.md skills catalog →
ktx-data-agent-context-layer reason-machines The ktx-data-agent-context-layer skill guides ktx setup so an AI agent can search warehouse context, metric definitions, and wiki knowledge, then use that context in data queries. CX Codex +1 158installs ktx-ai-data-agents-context-layer reason-machines The ktx-ai-data-agents-context-layer skill guides setup of ktx as a context layer for warehouse queries. It connects approved metrics, data structure, and business knowledge for AI agents. CX Codex +1 157installs ad-campaign-consolidation Maya-Beth Finotti ad-campaign-consolidation — a skill that turns a fragmented paid-ads account into a merge plan: what to combine, what to keep separate, and in what order. It plans, never executes. CX Codex +1 25,800installs reviewer-consolidation ArcheOne-AI reviewer-consolidation is a Claude Code prompt that checks proposed merges, removals, and rewrites of a robot agent’s memory entries. It returns a decision for each proposal and ends with a brief count and rationale. GP ChatGPT ★ 336repo stars curator-consolidation ArcheOne-AI The curator-consolidation prompt for Claude Code streamlines agent Task Memory entries during reflection phases. It merges duplicates, retires redundant entries, and fixes linting errors. GP ChatGPT ★ 336repo stars layer-pixel-art layerai layer-pixel-art — a skill for making pixel art with Layer: sprites, tiles, walk cycles, and packing frames into a sheet. Useful when output comes back blurry or off-grid. CX Codex +1 5,100installs

From the same set82

The whole set →
adding-warehouse-person-properties The adding-warehouse-person-properties Claude Code skill maps columns from a synced warehouse table to PostHog person or group properties. It activates for requests to add warehouse data to profiles or manage an existing mapping. CX Codex +1 148installs scanning-experiments-with-replay-vision The scanning-experiments-with-replay-vision skill for Claude Code sets up a PostHog Replay Vision scanner targeted at an experiment. It watches exposed user recordings and analyzes differences across test variants with an LLM. CX Codex +1 148installs creating-box-plot-insights The creating-box-plot-insights Claude Code skill builds box plot insights in PostHog from product analytics or SQL. It runs on requests to chart a numeric distribution, compare medians, or save an insight. CX Codex +1 148installs exploring-mcp-tool-original-user-motive The exploring-mcp-tool-original-user-motive Claude Code skill builds a taxonomy of the goals users had before reaching an MCP tool. It groups session openings and publishes the categories in a PostHog notebook. CX Codex +1 148installs building-react-quill-canvases building-react-quill-canvases — a Claude Code skill for building PostHog canvases with React and Quill. It activates when building-canvases routes a dashboard, form, or tool request to a React implementation. CX Codex +1 148installs context-layer-dreaming The context-layer-dreaming Claude Code skill turns recent organizational activity into lasting context wiki updates. It runs for nightly or incremental refreshes based on completed work and other activity. CX Codex +1 148installs validating-and-publishing-canvases The validating-and-publishing-canvases skill for Claude Code checks PostHog Canvas source projects and publishes them with version guards. It verifies declared capabilities and handles merge conflicts without data loss. CX Codex +1 148installs analyzing-task-runs analyzing-task-runs — a Claude Code skill that breaks down a completed task run from its log and records the activities. It starts when asked to analyze a run or review an attached log. CX Codex +1 148installs

Project sponsors

Companies that keep this analytics open