# validating-and-publishing-canvases

The validating-and-publishing-canvases skill for Claude Code checks PostHog Canvas source projects and publishes them with version guards. It verifies declared capabilities and handles merge conflicts without data loss.

- 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/validating-and-publishing-canvases/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/validating-and-publishing-canvases

## What it does

The skill inspects PostHog Canvas source trees before deployment to ensure clean builds. It tracks the `current_version_id` baseline and checks that platform dependencies remain untouched. Adding unauthorized npm packages immediately fails validation.

Runtime permissions require explicit registration under `capabilities`. The host enforces exact HTTPS origins, PostHog insight identifiers, capture events, and read-only connector tools. Any private hostnames or loopback targets like `localhost` trigger validation failures.

Publishing applies via ordered string replacements through `canvas-edit-create` or full project uploads. Server-side checks guard against race conditions, rejecting concurrent overwrites with a 409 conflict.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill validating-and-publishing-canvases -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill validating-and-publishing-canvases -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/validating-and-publishing-canvases/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill validating-and-publishing-canvases -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/validating-and-publishing-canvases
```

2. **Manually: put the files in place**
- File: `.github/skills/validating-and-publishing-canvases/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill validating-and-publishing-canvases -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/validating-and-publishing-canvases
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/validating-and-publishing-canvases/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill validating-and-publishing-canvases -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/validating-and-publishing-canvases/SKILL.md

## When to use it
- validate PostHog Canvas source files against platform requirements
- declare external HTTPS origins and PostHog API capabilities
- publish canvas updates via structured text operations
- resolve version conflict errors without overwriting changes

## Example prompts
- Validate the PostHog canvas project and inspect reported diagnostics
- Add external HTTPS origin to canvas capabilities and push the edit
- Resolve version conflict 409 for the current canvas publish

## Similar
- [marketplace-publishing](https://affpapa.org/en/nevibecode/skills/marketplace-publishing.md) — skill · 419 installs
- [instrument-feature-flags](https://affpapa.org/en/nevibecode/skills/instrument-feature-flags.md) — skill · 630 installs
- [site-reliability-engineer](https://affpapa.org/en/nevibecode/skills/site-reliability-engineer.md) — skill · 196 installs
- [deployment-validation](https://affpapa.org/en/nevibecode/plugins/deployment-validation.md) — plugin · ★ 42780 repo stars
- [media-publishing](https://affpapa.org/en/nevibecode/skills/media-publishing.md) — skill · 548 installs
- [tiktok-video-publishing](https://affpapa.org/en/nevibecode/skills/tiktok-video-publishing.md) — skill · 1200 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
