adding-inbound-webhooks
Skill by PostHog
Guides PostHog engineers through adding inbound webhook endpoints and consumers. It covers provider packages under posthog/ingress/, consumer declarations, and migrating hand-rolled HMAC verifiers flagged by semgrep.
Install adding-inbound-webhooks
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/adding-inbound-webhooks ~/.claude/skills/adding-inbound-webhooksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install adding-inbound-webhooks 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/adding-inbound-webhooks ~/.gemini/antigravity-cli/skills/adding-inbound-webhooksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install adding-inbound-webhooks in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The adding-inbound-webhooks skill is a PostHog guide for adding webhook endpoints that third parties send events to. It separates two jobs: adding a consumer in a product's webhook_consumers.py file, and adding a provider under posthog/ingress/ wired with build_webhook_view(). It also covers migrating hand-rolled HMAC verifiers that the inbound-webhooks-go-through-ingress semgrep rule flags.
It lists rules that are easy to get wrong, such as treating a consumer name as a fixed dedup cache key, declaring event types on the provider app, and keeping modules cheap to import. It describes how to choose a verification scheme among HMAC SHA-256, SNS signature and bearer JWT, and how to check changes with semgrep. It is written for PostHog engineers working in the PostHog codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Add a consumerDeclare a WebhookConsumer for an existing provider endpoint in a product's webhook_consumers.py.
- Add a providerCreate a posthog/ingress/<provider>/ package with its specs, a WebhookProvider and a builder.
- Migrate a hand-rolled verifierReplace a hand-written HMAC check that the inbound-webhooks-go-through-ingress semgrep rule flags.
- Pick a verification schemeChoose between HmacSha256, SnsSignature and BearerJwt for a provider's signed requests.
- Write provider testsExtend the product's webhook test module with signed request cases.
- Run semgrep checksRun semgrep --config .semgrep/rules/devex to verify the change.
What you need
- A checkout of the PostHog repository
- Semgrep, for the verify step
Try asking
- Add a webhook consumer for pull_request events from GitHub
- Migrate my hand-rolled HMAC webhook check to build_webhook_view()
- Which verification scheme fits a provider that signs requests with a JWT?
Good to know
- Written for the PostHog codebase and its directory layout.
- Ingress stores no delivery log and runs no queue, retry or dead letter of its own.
- Several steps depend on the repo's semgrep rules and import-linter contracts.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/adding-inbound-webhooks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to adding-inbound-webhooks
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
adding-inbound-webhooks: common questions
When should I add a consumer instead of a provider?
Add a consumer when the provider already has an endpoint listed in posthog/ingress/README.md. Add a provider when no endpoint exists or when the semgrep rule flags a hand-rolled verifier.
Can I rename a consumer after it ships?
The source says to treat the consumer name as fixed once shipped, because it is part of the dedup cache key and renaming it can cause a second run on redelivery.
Should a vendor SDK verifier be replaced?
No. The source says a verifier from the vendor's SDK or a maintained library stays as it is, and ingress wraps it at most.
How do I install adding-inbound-webhooks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is adding-inbound-webhooks free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is adding-inbound-webhooks safe to use?
It scores 81 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 adding-inbound-webhooks?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
