posthog-desktop
БесплатноБез исполняемых скриптовНе проверенScopes work to the desktop app at products/desktop — a nested standalone pnpm/turbo/Biome workspace imported from the now-archived PostHog/code repo, with…
от PostHog★ 41 278 звёзд на GitHubОб этом скилле
Working in products/desktop
products/desktop/ is the PostHog desktop app (Electron + agent framework), imported from the
now-archived PostHog/code repo and kept as a nested standalone workspace: own
pnpm-workspace.yaml, own lockfile, own Biome config, Node 22. It is excluded from the root
pnpm-workspace.yaml, from ruff/mypy, from root Jest, from oxlint/oxfmt, from stylelint and
from pytest. posthog/posthog is the only source of truth: PRs, CI and publishing all happen
here, never in PostHog/code.
Read products/desktop/AGENTS.md before writing code
in this tree. It is the source of truth for architecture, layer boundaries, DI, and style.
This skill only covers the scoping contract around it.
Scope contract
Default: everything you read, edit, run and test lives under products/desktop/. Run all
commands with that as cwd. Do not go fishing in frontend/, posthog/, or other products/*
for patterns — the desktop tree has its own, and copying monorepo idioms in is a defect.
Step outside only when one of these is true:
- The user explicitly tells you to.
- A backend API the app calls needs to change. The client is
packages/api-client/; the endpoints it hits live in the Django monorepo (see below). - Desktop CI / config that lives at the root by design. The list is fixed:
.github/workflows/desktop-*.yml,.github/actions/desktop-*/,.github/scripts/desktop/, and the exclusion entries inpnpm-workspace.yaml,pyproject.toml,pytest.ini,package.json(lint:css),frontend/jest.config.ts,.dockerignore,.oxlintrc.json,.oxfmtrc.json,.config/.markdownlint-cli2.jsonc,.github/workflows/ci-{frontend,storybook}.yml,.depot/workflows/ci-backend.yml. Touch these only to keep an exclusion correct; say so when you do. - The agent runtime changes.
@posthog/agent,agent-contracts,enricher,gitandharnesslive in a sibling workspace atpackages/agent/(same toolchain, own lockfile), because cloud sandboxes boot the agent without the desktop app. Work there, then runpnpm build:agentfromproducts/desktop/so desktop's turbo cache sees the change.
Anything else outside the tree: stop and ask.
Toolchain — root CLAUDE.md does not apply here
| Root monorepo says | In products/desktop use |
|---|---|
ruff / mypy / pytest |
nothing — no Python app code here |
oxlint + Oxfmt, pnpm --filter=@posthog/frontend fix |
pnpm lint (Biome check --write), pnpm format |
Jest, hogli test |
Vitest (pnpm test), Playwright (pnpm test:e2e) |
pnpm --filter=@posthog/frontend typescript:check |
pnpm typecheck (turbo, all packages) |
Kea logics, typegen:write |
Zustand stores + InversifyJS services; no kea, no typegen |
LemonUI in frontend/ and products/*/frontend/ |
@posthog/quill + Tailwind + Radix Themes |
hogli build:openapi → generated frontend types |
packages/api-client/src/generated.ts (hand-maintained here) |
| 4-space / repo Prettier habits | Biome, 2-space, double quotes |
Commands (from products/desktop/): pnpm install, pnpm dev, pnpm build, pnpm typecheck,
pnpm lint, pnpm test, pnpm test:e2e, pnpm --filter <pkg> <task>,
node scripts/check-host-boundaries.mjs.
Never run root-level pnpm install expecting it to cover desktop, and never let a desktop
dependency change alter the root lockfile — the root install must stay byte-identical.
Cross-boundary: the Django API
packages/api-client/ calls monorepo endpoints — tasks (/api/projects/:id/tasks/...),
signals, agent applications, environments/MCP installations, /api/users/. When a change needs
the backend:
- Read the Django side to get the contract right; that is in scope without asking.
- Editing it is a separate, monorepo-side change: root CLAUDE.md rules apply again
(
/improving-drf-endpoints,/django-migrations, serializerhelp_text,hogli build:openapi). - Keep the two sides in one PR only if they must ship together; otherwise land the backend first.
- Wiring the app at a local Django instance (OAuth app, RSA keys, flags) is
products/desktop/docs/LOCAL-DEVELOPMENT.md.
Provenance
The tree was imported from the standalone PostHog/code repo, which is now archived. There is
no resync process: the monorepo copy is the only maintained one, and fixes land here like any
other monorepo change. product.yaml declares ownership (team-posthog-code) for reviewer
auto-assignment and Slack routi
Установить posthog-desktop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл posthog-desktop?
Scopes work to the desktop app at products/desktop — a nested standalone pnpm/turbo/Biome workspace imported from the now-archived PostHog/code repo, with posthog/posthog the only source of truth for PRs, CI and publishing, and not part of the root frontend or Django build. Use when the user says /posthog-desktop, or works on the Electron desktop app, apps/code, apps/web, packages/core, packages/ui, packages/workspace-server, @posthog/api-client, @posthog/agent, or the agent framework. Pins the working directory to products/desktop, swaps in that tree's toolchain and conventions in place of the monorepo's, and defines the few paths outside the tree that may be touched (Django APIs the app calls, desktop-* CI at the root).
Как установить скилл posthog-desktop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл posthog-desktop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic