# 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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 148 installs · ★ 101 repo stars
- Author: PostHog
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/context-layer-dreaming/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/context-layer-dreaming

## What it does

The skill updates a mounted context wiki with durable facts drawn from recent organizational activity. It reviews Spaces channels, completed tasks, merged pull requests, finished loop runs, and new event or property definitions. Test, demo, abandoned, and unfinished tasks do not count as evidence of organizational decisions.

Before editing, it checks each candidate against the existing page and adds only facts that change durable context. Markdown edits are confined to `org/`, `areas/`, `decisions/`, and existing `projects/<project-id>/spaces/` pages. It must leave `AGENTS.md`, `CLAUDE.md`, indexes, and `scripts/` untouched. The setup requires a mounted wiki with `scripts/lint` and `scripts/publish`, plus access to the context layer API.

After validation, the skill writes a run summary to `/tmp/dream-summary.md` and starts publication. Only `publish: landed` confirms success; a nonzero exit means the publication failed.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/context-layer-dreaming/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/context-layer-dreaming/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/context-layer-dreaming/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/context-layer-dreaming/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/context-layer-dreaming
```

2. **Manually: put the files in place**
- File: `.github/skills/context-layer-dreaming/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/context-layer-dreaming
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/context-layer-dreaming/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/context-layer-dreaming/SKILL.md

## When to use it
- turn completed task outcomes into lasting wiki entries
- refresh context from activity in public Spaces channels
- filter out test and demo material
- find wiki gaps that blocked an agent

## Example prompts
- Run a nightly context wiki refresh from recent organizational activity.
- Update the context wiki from completed tasks and merged pull requests since the last run.
- Review recent task conversations for cases where the wiki failed to provide needed context.

## Similar
- [ktx-ai-data-agents-context-layer](https://affpapa.org/en/nevibecode/skills/ktx-ai-data-agents-context-layer.md) — skill · 157 installs
- [ktx-ai-data-context-layer](https://affpapa.org/en/nevibecode/skills/ktx-ai-data-context-layer.md) — skill · 141 installs
- [cargo-context](https://affpapa.org/en/nevibecode/skills/cargo-context.md) — skill · 11600 installs
- [context-builder](https://affpapa.org/en/nevibecode/skills/context-builder.md) — skill · ★ 8928 repo stars
- [Context — ctxt.io](https://affpapa.org/en/nevibecode/mcp/context-ctxtio.md) — MCP server · ★ 3 repo stars
- [revnu-growth-context](https://affpapa.org/en/nevibecode/skills/revnu-growth-context.md) — skill · 3400 installs

From the same set: [posthog/ai-plugin](https://affpapa.org/en/nevibecode/by/posthog/ai-plugin.md) — 82 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
