> **context-layer-consolidation** — skill 28 of 200 in [PostHog/skills](https://skillsdocs.com/PostHog/skills).
>
> Book (all skills, one file): https://skillsdocs.com/PostHog/skills.md
> Machine manifest: https://skillsdocs.com/PostHog/skills/.well-known/agent-skills/index.json
> Install the book: `npx skills add PostHog/skills`
> Upstream: https://github.com/PostHog/skills/blob/main/skills/omnibus/context-layer-consolidation/SKILL.md @ `main`
> Raw bytes, no header: https://raw.githubusercontent.com/PostHog/skills/main/skills/omnibus/context-layer-consolidation/SKILL.md
> Base for relative paths: https://raw.githubusercontent.com/PostHog/skills/main/skills/omnibus/context-layer-consolidation/
> Licence: MIT — https://spdx.org/licenses/MIT.html
>
> Content © its authors, served unmodified. Takedown: https://github.com/DreambaseAI/skillsdocs/issues/new?labels=takedown&title=Takedown+request

<!-- Verbatim upstream SKILL.md follows, YAML frontmatter included. -->

---
name: context-layer-consolidation
description: Keep the context wiki coherent using the deterministic lint report queue
---

# Context layer consolidation

Start with `scripts/lint --report`. Work the queue in the mounted wiki before the dream publisher creates its branch and commit.

Only edit sourced Markdown content under `org/`, `areas/`, `decisions/`, and existing Space pages. Never edit repository instructions, generated indexes, or `scripts/`; report structural failures in the run summary for the server to repair.

- Remove unsupported synthesis.
- Remove expired priorities unless historically significant; mark those `status: historical`.
- Mark replaced decisions `superseded` and link their replacement.
- Merge near-duplicates and leave a wikilink from the old subject.
- Resolve disagreements only with evidence; leave the rest explicit.
- Repair or intentionally retain ghost links, add sources, and split oversized pages.
- Name every deletion in the run summary. The dream publisher includes it in the commit message.

Keep this bounded and evidence-led. Run `scripts/lint` after editing.
