feat(skills): add instrument-metrics skill family#255
Open
DanielVisca wants to merge 1 commit into
Open
Conversation
Adds the metrics sibling of the logs skill family: per-platform variants (Web JavaScript, Node.js, Python, Other Languages) plus an aggregated omnibus/instrument-metrics skill, and a posthog-metrics plugin mapping in marketplace.yaml. The skill teaches agents to add posthog.metrics capture alongside existing Prometheus/StatsD/OTel instrumentation and to add new metrics where they belong, with cardinality and metric-type guidance. Generated-By: PostHog Code Task-Id: 470062dd-05c0-40bf-bfa3-bc89b194121e
🧙 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. |
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.
Changes
Adds the metrics sibling of the logs skill family:
context/skills/metrics/— per-platform variants (Web JavaScript, Node.js, Python, Other Languages) sourcing the new/docs/metrics/installation/*pagescontext/skills/omnibus/instrument-metrics/— aggregated all-platforms skill with step-by-step instructions: detect existing metrics instrumentation, addposthog.metricscapture alongside it (never replace), add new metrics where they belong, keep cardinality low, and wire env vars via the MCPprojects-getflowposthog-metricsplugin mapping incontext/marketplace.yamlWhy: metrics is the one observability product missing from the
instrument-*family, so agents asked to "push metrics into PostHog" improvise OTel plumbing instead of using theposthog.metricsSDK APIs that shipped in posthog-js #4115, posthog-node #4117, and posthog-python #739.Depends on
docs_urlspoint at the new installation pages and the build fetches them at generation time (currently 404).Validation
npm test— 136/136 passnpm run buildwith the doc URLs temporarily substituted for live metrics pages: all 5 skills generate (metrics-{javascript,nodejs,python,other},omnibus-instrument-metrics), zips build,posthog-metricsmarketplace plugin renders with correct SKILL.md frontmatter, and entries appear inskill-menu.jsonCreated with PostHog Code