Observability And Growth logo

Observability And Growth

Organization
heymegabyte
observability-and-growth

Full instrumentation from day one. PostHog consolidates product analytics + feature flags + error tracking (one platform, one bill). GA4 via GTM (14-step automation, custom dimensions over events, server-side tagging). Sentry (deep error tracking + performance). Stripe (webhook-first with idempotent processing). Listmonk on Coolify (newsletters via Amazon SES SMTP relay). PLG 7-layer framework. Programmatic SEO (5 page types). Incident auto-remediation via Sentry→Inngest pipeline. AI search (GEO) awareness. Local business conversions (phone_click, direction_click, form_submit, booking_click) with CRO patterns for both SaaS and local.

Overview

Publisherheymegabyte
Repositoryagent-skills
Skill nameobservability-and-growth
Stars
27
Forks
5
Bundled files
11
LicenseRutgers
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by heymegabyte on GitHub. Read the source before you install it.

Installation

Install the Observability And Growth AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/heymegabyte/agent-skills/tree/main/13-observability-and-growth
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/heymegabyte/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/13-observability-and-growth .claude/skills/observability-and-growth
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Observability And Growth in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Observability And Growth on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Observability And Growth is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

13 — Observability and Growth

Tiered PostHog+Sentry+GA4 stacks wired from day one; feature flags, PLG patterns, incident auto-remediation.

Instrumentation tiers

Per _kernel/standards.md#integrations:

  • Tier 1 (solo) — PostHog + Workers Tracing OTLP (2 vendors max, cookie-free, free tier covers <10k MAU)
  • Tier 2 (enterprise) — + Sentry @sentry/cloudflare v9 + GA4/GTM + Axiom
  • Tier 3 (LLM-heavy >10k calls/mo) — + AI Gateway

PostHog (Tier 1 cornerstone)

  • Snippet on every HTML page w/ persistence:'memory' (cookie-free); capture_pageview + capture_pageleave + autocapture:true
  • Unified platform: product analytics + feature flags + session replay + error tracking
  • CSP: script-src + connect-src for posthog domain
  • Per-feature event naming: <feature>:<action> (signup:complete, editor:save, share:copy)

Sentry (Tier 2)

  • @sentry/cloudflare v11 (stream trace lifecycle default since 11.0) + withSentry wrapper; project via mcp__sentry__create_project (org:megabyte-labs)
  • SENTRY_DSN via wrangler secret put
  • Pattern: withSentry(env => ({ dsn, tracesSampleRate: 1.0, sendDefaultPii: false }), worker)
  • Breadcrumbs before risky ops; capture exception w/ context tags (worker | route | userId)
  • Release tracking via SENTRY_RELEASE env; Workers Tracing handles I/O spans

Workers Tracing (Tier 1 + 2) / GA4 + GTM (Tier 2) / AI Gateway (Tier 3)

  • Workers Tracing: [observability] enabled = true in wrangler.jsonc — zero-config OTel I/O tracing; export to Axiom, Honeycomb, Grafana, Datadog via @opentelemetry/exporter-trace-otlp-http
  • GA4 + GTM: container snippet (head script + noscript iframe); CSP: googletagmanager.com + google-analytics.com + analytics.google.com + region1.google-analytics.com; server-side tagging for EU; custom dimensions over custom events
  • AI Gateway: env.AI.run() auto-routes; direct Anthropic: https://gateway.ai.cloudflare.com/v1/{account}/{gateway}/anthropic/v1/messages; caching + rate-limit + fallback + per-call logging

Stripe + Link (accept-money default, ALL flows — per rules/payments.md)

  • Accept default w/ Link ON everywhere (Payment Element / Checkout / Payment Links); Instant Bank Payments on high-ticket + donation flows
  • Webhook-first w/ idempotent processing (D1 dedupe table payment_events(event_id, source, processed_at) UNIQUE)
  • Stripe-Signature HMAC + 5-min replay window
  • Mint products + prices via MCP (idempotent via lookup_key); subscription state machine in D1
  • STRIPE_WEBHOOK_SECRET via POST /v1/webhook_endpoints

Square (on-request rail ONLY — per rules/payments.md)

  • Only when the prompt names Square: Web Payments SDK card form + Apple Pay + Google Pay + Cash App Pay
  • Square-Signature HMAC-SHA256 w/ 6-hr replay window; idempotency_key UUID per request (24-hr dedupe)
  • No 501(c)(3) discount exists (verified 2026-10) — custom rates only ≥$250K/yr

Listmonk (newsletter — self-hosted on Coolify)

  • Amazon SES SMTP relay (LISTMONK_FROM_EMAIL); listmonkSendTx(env, { templateAlias, ... }) via KV-cached alias→id map
  • Templates in emails/*.html synced via scripts/listmonk-sync.mjs
  • Auth: Authorization: token <user>:<key> (Listmonk 3.x API-user pattern)

PLG 7-Layer Framework

  1. Discovery — SEO + AI search + word-of-mouth + paid
  2. Sign-up — passwordless preferred (Clerk M2M JWT)
  3. Activation — first-value-in-X-min metric (aha moment per rules/feature-flags.md instrumentation)
  4. Engagement — DAU/MAU ratio, session depth
  5. Retention — D1/D7/D30 cohort
  6. Revenue — upgrade trigger, expansion
  7. Referral — viral coefficient, two-sided rewards

Programmatic SEO (5 page types)

  • /integrations/{tool} · /compare/{a}-vs-{b} · /for/{audience} · /templates/{type} · /{city}-{service}
  • Each: unique H1 + meta desc + 800+ unique words + 1 unique image + 3+ internal links + 1+ outbound citation. Cap 200 pages per axis.
  • Per rules/copy-writing.md § pSEO + rules/thin-source-amplification.md.

GEO / AI search

  • Quotable answer blocks 40-60 words (LLM citation magnet); FAQPage schema highest AI-citation rate (ChatGPT / Perplexity / Google AI Overviews)
  • JSON-LD facts MUST also appear as visible HTML body text; lead paragraphs answer query in <40 words
  • EEAT: author bio + Person schema + sameAs + dated revision + ownership statement
  • llms.txt at site root (DX-only, <0.3% adoption — not build gate)

Local-business conversions + CRO

Track per local-conversions.md: phone_click (tel:) · direction_click (Google Maps) · form_submit · booking_click (Calendly/Cal.com) · chat_click · review_click (Google Business/Yelp). Each fires PostHog + Sentry breadcrumb + (Tier 2) GA4 conversion event.

CRO: sticky CTA bar on mobile · scroll-progress bar (subtle) · exit-intent modal (cart/pricing only, not blogs) · social proof near every CTA · urgency without dark patterns ("3 spots left this week" if true) · trust strip above fold · single primary CTA per surface.

Incident auto-remediation

Sentry → Inngest pipeline: (1) Sentry webhook on event.alert.triggered → (2) Inngest dispatches incident-responder agent → (3) agent reads event, traces to source file, proposes fix, opens PR via gh MCP → (4) PR auto-merges if all CI gates pass per rules/ai-seniority.md.

See submodules: posthog, ga4-gtm, sentry, stripe-billing, square-payments, listmonk, plg-framework, programmatic-seo, incident-remediation, geo-ai-search, local-conversions.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Observability And Growth AI skill do?

Full instrumentation from day one. PostHog consolidates product analytics + feature flags + error tracking (one platform, one bill). GA4 via GTM (14-step automation, custom dimensions over events, server-side tagging). Sentry (deep error tracking + performance). Stripe (webhook-first with idempotent processing). Listmonk on Coolify (newsletters via Amazon SES SMTP relay). PLG 7-layer framework. Programmatic SEO (5 page types). Incident auto-remediation via Sentry→Inngest pipeline. AI search (GEO) awareness. Local business conversions (phone_click, direction_click, form_submit, booking_click...

Why use Observability And Growth on TypingMind?

Because you install it once and use it with any model. Observability And Growth is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Observability And Growth in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/heymegabyte/agent-skills/tree/main/13-observability-and-growth. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Observability And Growth?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Observability And Growth?

As many as you like. As long as a model supports skills, you can use Observability And Growth with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Observability And Growth AI skill free?

Yes. It is published on GitHub by heymegabyte under the Rutgers license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇