context-layer-dreaming

Synthesizes recent organizational activity into a durable, sourced context wiki.

713|118|Updated Aug 11, 2020
One-click install
npx skills add https://github.com/PostHog/posthog-foss --skill context-layer-dreaming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-layer-dreaming
Source: https://github.com/PostHog/posthog-foss/tree/main/products/context_layer/skills/context-layer-dreaming
Command: npx skills add https://github.com/PostHog/posthog-foss --skill context-layer-dreaming

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organizational knowledge from completed tasks, merged pull requests, and team conversations is lost or scattered across tools, leaving agents and teams without durable, sourced context for decisions and priorities.

Core Features & Use Cases

  • Incremental context synthesis: Scans recent activity windows (Spaces channels, completed tasks, merged PRs, loop runs, event definitions) and promotes only facts that pass a strict admission test into the wiki.
  • Sourced wiki maintenance: Updates owning pages under org/, areas/, decisions/, and project Spaces with sources, review_after dates, and explicit **Disagreement:** markers for unresolved conflicts.
  • Wiki health feedback: Records wiki-miss: lines for context gaps or misleading pages, feeding the health check and server-side improvements.
  • Use Case: Run a nightly dream to distill the day's completed engineering work into durable decisions and ownership facts, then lint and publish a run summary.

Quick Start

Run a context-layer dream over the last day of organizational activity and update the wiki with any durable sourced facts.

Frequently Asked Questions about context-layer-dreaming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a context-layer dream to update the organizational wiki?

Create a dated dream directory, read AGENTS.md and recent merge commits, then scan activity windows from Spaces, completed tasks, merged PRs, and loop runs. Promote only facts passing the admission test, commit changes under org/, areas/, decisions/, and Spaces, then run scripts/lint and scripts/publish.

What kinds of facts qualify for the context wiki admission test?

A fact qualifies only if it changes a durable fact, decision, priority, ownership, reusable definition, constraint, or an evidenced recurring pattern. Routine task completions, transient failures, raw transcripts, and single-source speculation are rejected.

Which files can the dream process edit in the context wiki?

Only content pages under org/, areas/, decisions/, and existing project Spaces pages may be edited. AGENTS.md, CLAUDE.md, all index.md files, and everything in scripts/ are server-owned and must never be modified.

How does the dream handle incomplete activity windows or source failures?

It paginates sources up to 100 items per scope, respects recovery and incremental cutoffs, and records the oldest covered item, unreviewed sources, and remaining cursors in the run summary. Unavailable sources are logged as limitations, not treated as empty.

What happens when a new fact contradicts existing wiki content?

A contradiction is grounds to reject the candidate or record an explicit **Disagreement:** marker on the owning page. The skill never silently overwrites existing claims and preserves unresolved conflicts with sources.