copying-endpoints-across-projects

copying-endpoints-across-projects is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 184 tokens per session (2,041 once invoked), scanned A, original, MIT.

A procedure for duplicating a PostHog endpoint, meaning a saved query exposed as a callable API route. It covers copying one to another project or giving it a new name in the same project.

In plain words
What is it for?
Use it to promote an endpoint from staging to production, replicate it across projects, or make a same-project duplicate.
Why use it?
PostHog has no built-in endpoint copy operation, so the endpoint's settings must be read and recreated in the correct project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to promote an endpoint from staging to production, replicate it across projects, or make a same-project duplicate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/copying-endpoints-across-projects
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill copying-endpoints-across-projects
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for copying-endpoints-across-projects

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/copying-endpoints-across-projects/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/copying-endpoints-across-projects)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/copying-endpoints-across-projects"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/copying-endpoints-across-projects/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for copying-endpoints-across-projects

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/copying-endpoints-across-projects"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/copying-endpoints-across-projects.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,041 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00184 $0.02041
Opus 5 $0.00092 $0.01020
Sonnet 5 $0.00037 $0.00408
Haiku 4.5 $0.00018 $0.00204

Measured 7d ago against content hash 651465c1e6dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

copying-endpoints-across-projects scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/endpoints/skills/copying-endpoints-across-projects/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Copying endpoints across projects

This skill duplicates a PostHog endpoint — a saved HogQL or insight query exposed as a callable API route — either into another project in the same organization, or under a new name in the same project.

The one thing to know first

There is no server-side endpoint copy operation. Feature flags have feature-flags-copy-flags-create and experiments have experiment-copy-to-project; endpoints have neither. Copying an endpoint means:

  1. Read the full source config with endpoint-get.
  2. Recreate it with endpoint-create (in the target project, or under a new name in the same project).

Both endpoint-get and endpoint-create operate only on the active MCP project — neither takes a project id. So a cross-project copy requires the active project to be switched between the read (source) and the write (target). Read the source first, capture the config, then switch to the target and create. If you cannot switch projects in this session, tell the user rather than creating the copy in the wrong project.

When to use this skill

  • "Copy this endpoint to another project", "duplicate this endpoint", "clone the endpoint"
  • "Promote the endpoint from staging to production" (projects-as-environments)
  • "Make a copy so I can iterate without touching the live one" (same-project duplicate under a new name)
  • Replicating an endpoint's query, variables, and freshness config in a different workspace

What this skill does not cover

  • Cross-organization copy. Endpoints (and their queries) can only be recreated in projects you have editor access to; there is no org-to-org path.
  • Editing versions of an existing endpoint — see managing-endpoint-versions.
  • Designing a new endpoint from scratch — see creating-an-endpoint (this skill assumes the source endpoint already exists and is configured correctly).
  • Bulk-copying every endpoint in a project. Copy one at a time; loop endpoints-get-all → per-endpoint copy if the user really wants all of them, and tell them you're doing so.

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 120 lines · 184 tokens per session scan A 651465c1e6dd

Subscribe to this mod's changes

copying-endpoints-across-projects is a skill published in the GitHub repository PostHog/posthog-foss (715 stars, last pushed today), licensed MIT. It adds 184 tokens to every session and 2,041 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

saga-orchestration

Implement saga patterns for distributed transactions and cross-aggregate workflows. Use this skill when implementing distributed transactions across microservices where 2PC is unavailable, designing compensating actions for failed order workflows that span inventory, payment, and shipping services, building…

wshobson/agents · 91 tokens

service-agentforce-channel-configure

Wires an existing, active Agentforce agent to a channel by resolving a fallback queue, setting up inbound routing (either PATCH SessionHandlerId on the MessagingChannel, or an inbound RoutingFlow for Voice/Email), and optionally configuring outbound escalation. Use when the user wants to add a channel to an existing…

forcedotcom/sf-skills · 211 tokens

platform-lightning-app-coordinate

Build complete Salesforce Lightning Experience applications from natural language descriptions. Use this skill when a user requests a "complete app", "Lightning app", "business solution", "management system", or describes a scenario requiring multiple interconnected Salesforce components (objects, fields, pages, tabs…

forcedotcom/sf-skills · 79 tokens

commerce-app-migrate

Migrate an Adobe Commerce App Builder project from the Integration Starter Kit or Checkout Starter Kit to the new App Management approach. Run from the root of the App Builder project to be migrated. Pass --auto to skip confirmation prompts (suitable for CI or batch use) — auto mode prints a summary of all Q&A…

adobe/skills · 130 tokens

full-stack-orchestration-full-stack-feature

Use when working with full stack orchestration full stack feature.

rmyndharis/antigravity-skills · 20 tokens

multi-platform-apps-multi-platform

Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies.

rmyndharis/antigravity-skills · 32 tokens