feat: add Kotlin Multiplatform (KMP) integration skill#240
Merged
Conversation
Adds a docs-only integration variant for the PostHog Kotlin Multiplatform SDK (posthog-kmp), mirroring the existing docs-only mobile entries (Flutter, Elixir, Go): - context/skills/integration/config.yaml: new `kmp` variant (docs-only, tags [kmp, kotlin, multiplatform, mobile], docs from /docs/libraries/kmp) - context/skills/integration/description-kmp-docs-only.md: KMP-specific docs-only description template - context/commandments.yaml: `kmp` framework guidelines (commonMain install, com.posthog.kmp package, PostHog.setup with per-platform PostHogContext, native-wrapper behavior, Maven Central versioning) Build generates `integration-kmp` skill (SKILL.md + fetched /docs/libraries/kmp reference + embedded commandments); `npm run build` and `npm test` (107) pass. This provides the KMP context the wizard fetches at runtime, unblocking PostHog/wizard#906. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
ioannisj
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Kotlin Multiplatform (KMP) support to the context mill so the PostHog wizard can fetch KMP integration context at runtime.
Why
The wizard's KMP support (PostHog/wizard#906) is gated on a context-mill release that includes KMP — the wizard pulls its per-framework skills from context-mill releases. This PR adds that KMP skill.
Changes
Mirrors the existing docs-only mobile/language variants (Flutter, Elixir, Go) — no example app, docs + framework guidelines:
context/skills/integration/config.yaml— newkmpvariant (template: description-kmp-docs-only.md, tags[kmp, kotlin, multiplatform, mobile], docs from/docs/libraries/kmp).context/skills/integration/description-kmp-docs-only.md— KMP-specific docs-only description template (detect akotlin("multiplatform")project, installcom.posthog:posthog-kmpincommonMain,PostHog.setup(...)with per-platformPostHogContext,com.posthog.kmppackage).context/commandments.yaml—kmpframework guidelines:commonMaininstall location, thecom.posthog.kmppackage, per-platformPostHogContext, thin-wrapper-over-native behavior,HOST_US/HOST_EU, and Maven Central versioning (0.x pre-release).Verification
npm run build→ generates theintegration-kmpskill:SKILL.mdwith the KMP instructions, the fetchedreferences/kmp.md(from/docs/libraries/kmp.md), and all KMP commandments embedded under "Framework guidelines". Also produceddist/skills/integration-kmp.zip.npm test→ 107/107 pass.Notes
0.xpre-release (published on Maven Central at0.0.2).Integration.kmp,packageName: posthog-kmp,docsUrl: /docs/libraries/kmp): the generated skill id iskmp/integration-kmp.example-apps/kmpapp could be a follow-up once the SDK stabilizes.🤖 Generated with Claude Code