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
npx skills add PostHog/ai-plugin --skill context-layer-consolidation -a claude-codeWhat 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 --reportfindings. - 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-code2Manually: put the files in place
~/.claude/skills/context-layer-consolidation/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/context-layer-consolidation/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-consolidation -a codex2Manually: put the files in place
.agents/skills/context-layer-consolidation/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-consolidation -a cursor2Manually: put the files in place
.cursor/skills/context-layer-consolidation/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install PostHog/ai-plugin skills/context-layer-consolidation2Manually: put the files in place
.github/skills/context-layer-consolidation/SKILL.md1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-consolidation -a gemini-cli2Platform CLI
gemini skills install https://github.com/PostHog/ai-plugin --path skills/context-layer-consolidationManually: put the files in place
.devin/skills/context-layer-consolidation/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-consolidation -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.