context-layer-dreaming — Claude Code skill: what it does and install
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.
no license 148 installs ★ 101 updated 2026-10-24
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a claude-codeWhat context-layer-dreaming 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.
What it helps with
- 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 for the agent
- 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.
How to install context-layer-dreaming
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a claude-code2Manually: put the files in place
~/.claude/skills/context-layer-dreaming/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/context-layer-dreaming/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a codex2Manually: put the files in place
.agents/skills/context-layer-dreaming/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a cursor2Manually: put the files in place
.cursor/skills/context-layer-dreaming/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install PostHog/ai-plugin skills/context-layer-dreaming2Manually: put the files in place
.github/skills/context-layer-dreaming/SKILL.md1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a gemini-cli2Platform CLI
gemini skills install https://github.com/PostHog/ai-plugin --path skills/context-layer-dreamingManually: put the files in place
.devin/skills/context-layer-dreaming/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill context-layer-dreaming -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-dreaming
How do I install context-layer-dreaming in Claude Code?
Run npx skills add PostHog/ai-plugin --skill context-layer-dreaming -a claude-code. The skill file is installed at ~/.claude/skills/context-layer-dreaming/SKILL.md.
What does context-layer-dreaming do?
It selects durable facts from recent organizational activity and uses them to update a mounted context wiki. It validates the edits and prepares a run summary before publishing.
What does context-layer-dreaming need to run?
It needs a mounted context wiki with scripts/lint and scripts/publish, access to activity sources, and the context layer API to send the changes.