migrating-llm-gateway-callers
Skill by PostHog
Migrates an LLM caller from services/llm-gateway to PostHog/ai-gateway. It is for PostHog engineers adding or converting gateway callers, and it stops with a documented blocker when Go parity is missing.
Install migrating-llm-gateway-callers
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/.agents/skills/migrating-llm-gateway-callers ~/.claude/skills/migrating-llm-gateway-callersRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install migrating-llm-gateway-callers in Claude Code
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/.agents/skills/migrating-llm-gateway-callers ~/.gemini/antigravity-cli/skills/migrating-llm-gateway-callersAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install migrating-llm-gateway-callers in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through migrating an LLM caller from services/llm-gateway to PostHog/ai-gateway. It starts by inventorying the caller's contract, including credentials, spend owner, API shape, event attribution, timeouts and fallbacks. It then checks the parity record at services/llm-gateway/PARITY.md to decide whether the migration is supported.
When all required contracts are supported, the skill implements the migration, preferring shared client builders for Django callers. It updates tests and nearby docs, then runs narrow checks. If a parity gap applies, it stops, reports the exact blocker, and keeps the Python path. It is aimed at PostHog engineers working on gateway callers.
Written from the project's SKILL.md and checked against it.
What it can do
- Inventory the callerRecords the call site, credentials, spend owner, API shape, attribution and fallback behavior.
- Check parityMatches required contracts against the parity record and current code before migrating.
- Implement the migrationConverts the caller to the Go gateway using the smallest existing pattern that fits.
- Update tests and docsCovers base URL, headers, attribution, model and failure behavior in narrow tests.
- Verify and hand offRuns caller tests and summarizes the migrated contracts, fallback and any blocker.
What you need
- A phs_ or pha_ credential with llm_gateway:read
- Access to the ai-gateway feature flag for the paying team
- Access to the PostHog dashboard to create project secrets
- The services/llm-gateway parity record
Try asking
- Migrate the summarization caller in our Django app to the Go AI gateway.
- Check whether this gateway caller has Go parity before converting it.
- Update the tests after switching this caller's gateway URL and headers.
Good to know
- Stops and keeps the Python path when a Go parity gap applies.
- Keeps a Python fallback only when rollout needs one.
- Internal products need AI gateway team review before adding deployment variables or secrets.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/migrating-llm-gateway-callers/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
references/migration-examples.md7 KB
Alternatives to migrating-llm-gateway-callers
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
migrating-llm-gateway-callers: common questions
What does the skill do when Go parity is missing?
It stops the migration, reports the exact blocker, and keeps the Python path in place.
Which credential does the Go gateway need?
The source says a supported phs_ or pha_ credential with llm_gateway:read. Secret values are not asserted in tests.
Does a Python unbilled flag block migration?
Not by itself. It is not a blocker when an internal workload should debit a PostHog-owned team wallet and the Go credential resolves to that team.
How do I install migrating-llm-gateway-callers?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is migrating-llm-gateway-callers free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is migrating-llm-gateway-callers safe to use?
It scores 83 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to migrating-llm-gateway-callers?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
