Skip to main content
skill CX Codex

copying-endpoints-across-projects — Claude Code skill

copying-endpoints-across-projects duplicates PostHog API endpoints across projects in the same organization or clones them under a new name. Useful for promoting HogQL endpoints between environments.

no license 183 installs ★ 101 updated 2026-10-24

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PostHog/ai-plugin --skill copying-endpoints-across-projects -a claude-code
Open on GitHub

What copying-endpoints-across-projects does

PostHog does not provide a native server-side endpoint cloning action. Moving an endpoint requires pulling its configuration through endpoint-get and recreating the route with endpoint-create.

Both MCP tools only touch the currently active project. The agent must switch active projects between the read and write stages. To avoid silent conflicts, it checks for existing names using endpoints-get-all and leaves materialization turned off (is_materialized: false) by default so fresh endpoints do not incur background computation fees.

The routine requires editor access in both workspaces within the same organization. Copying endpoints between distinct organizations is unsupported, and bulk-duplicating entire projects at once is excluded.

What it helps with

  • promote a PostHog API endpoint from staging to production
  • duplicate an endpoint under a new name for local query iteration
  • replicate HogQL queries and query variables into another project
  • validate the new endpoint payload with endpoint-run

Example prompts for the agent

  • Copy the retention_metric endpoint from staging to production
  • Duplicate the daily_active_users endpoint as daily_active_users_v2 in this project

How to install copying-endpoints-across-projects

1Skills CLI (Vercel)

npx skills add PostHog/ai-plugin --skill copying-endpoints-across-projects -a claude-code

2Manually: put the files in place

~/.claude/skills/copying-endpoints-across-projects/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/copying-endpoints-across-projects/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about copying-endpoints-across-projects

How to install copying-endpoints-across-projects in Claude Code?

Run npx skills add PostHog/ai-plugin --skill copying-endpoints-across-projects -a claude-code in your terminal.

What does copying-endpoints-across-projects do?

It reads an existing PostHog endpoint definition in one project and recreates it in another project or under an alternate name.

Why is materialization disabled on the duplicated endpoint?

Fresh copies have no verified traffic in the target project. Keeping is_materialized: false avoids unnecessary storage and compute costs until usage is confirmed.

Similar skills

All skills for Backend and APIs →

From the same set82

The whole set →
review-hog-authoring review-hog-authoring — a guide skill for writing custom PostHog Review pieces: extra PR perspectives, your own blind-spot sweep, and the bars that decide what gets published or fixed. CX Codex +1 187installs review-hog-perspective-contracts-security review-hog-perspective-contracts-security is a Claude Code skill that checks code changes for security flaws and API compatibility breaks. It reports contract and security findings during PR review. CX Codex +1 187installs review-hog-perspective-performance-reliability The review-hog-perspective-performance-reliability skill reviews code for performance and reliability concerns, from database access to error recovery. Use it when checking a change before it ships. CX Codex +1 187installs review-hog-perspective-logic-correctness review-hog-perspective-logic-correctness reviews one slice of a pull request for correctness: arithmetic, branches, data mapping, database queries. Useful when you want a focused second pass before merging. CX Codex +1 187installs signals-scout-conversations The signals-scout-conversations skill checks PostHog Conversations analytics for SLA breaches, slow first replies, and support-queue imbalances. Use it to spot operational changes across tickets. CX Codex +1 183installs setting-up-data-catalog setting-up-data-catalog fills a project's data catalog: canonical metric definitions, trust marks on warehouse tables, and reviewed join proposals. CX Codex +1 182installs signals-scout-tasks signals-scout-tasks — a scout skill for PostHog Tasks: it tracks how task runs get delivered and, on a slower pass, looks for the same request coming up again in tasks people wrote. CX Codex +1 179installs managing-streamlit-apps managing-streamlit-apps controls Streamlit apps in PostHog sandboxes using MCP tools, handling everything from provisioning to safe code patching. CX Codex +1 179installs

Project sponsors

Companies that keep this analytics open