Skip to content

Add remediate-3000 and cross-sell-3000 skills#176

Open
landon-posthog wants to merge 5 commits into
mainfrom
add-remediate-and-cross-sell-skills
Open

Add remediate-3000 and cross-sell-3000 skills#176
landon-posthog wants to merge 5 commits into
mainfrom
add-remediate-and-cross-sell-skills

Conversation

@landon-posthog

Copy link
Copy Markdown

Summary

Two new stepwise skills that extend the audit-3000 family from "find problems" into "fix them" and "grow adoption":

  • remediate-3000 — the write-side companion to audit-3000. Parses the posthog-audit-report.md that audit-3000 produces into a classified remediation plan, then applies the safe fixes directly to project source: dependency bumps, identity fixes, PII removal, duplicate-event removal, event-name alignment, init-config additions, and instrumentation gap fills. Verifies every fix against a baseline recorded before any edit. Never mutates PostHog state or git — PostHog-side changes (insight edits, flag disabling) are rendered as copy-paste prompts in the report.

  • cross-sell-3000 — code-grounded product expansion. Scans the codebase to detect which PostHog products fit (greenfield adoption, competitor cross-sell, coverage gaps), proposes and prioritizes them by fit/value/effort, plans each implementation, and scaffolds the viable ones with build verification. Reads the code, not a CRM — every proposal cites file:line evidence. Reuses audit-3000's per-product detection map so classification stays consistent.

Together with audit-3000 they form a three-skill story: audit → remediate → cross-sell.

Conventions followed

  • Stepwise reference chains (references/N-*.md with per-file next_step frontmatter; terminal step next_step: null).
  • docs-only config.yaml with description.md as the SKILL.md template.
  • [STATUS] / [ABORT] line conventions and {references} / {commandments} placeholders.
  • Each skill writes exactly one report file at the project root and cleans up its /tmp/ intermediates.
  • Each ships a BUILD_NOTES.md documenting design decisions, how to build/run, and open TODOs.

Verification

  • node scripts/build.js builds both skills cleanly; the packaged zips have intact chains (preamble + continuation links on every non-terminal step, neither on the terminal step).
  • npm test green (60/60).
  • remediate-3000 validated end-to-end via a real wizard run against a demo project (8 fixes verified, 2 failed-with-reason, typecheck green).

Notes for review

  • Both skills edit project source (that's their job) but never run git mutations and only add official PostHog packages — the operator reviews the diff and commits.
  • cross-sell-3000 requires no prior audit run; it detects opportunities itself.

🤖 Generated with Claude Code

Two new stepwise skills that extend the audit-3000 family:

- remediate-3000: write-side companion to audit-3000. Parses
  posthog-audit-report.md into a classified plan and applies the safe
  fixes to project source (dep bumps, identity fixes, PII removal,
  duplicate-event removal, event-name alignment, init config,
  instrumentation gaps), verifying against a pre-edit baseline. Never
  mutates PostHog state or git; renders PostHog-side changes as
  copy-paste prompts.

- cross-sell-3000: code-grounded product expansion. Scans the codebase
  to detect which PostHog products fit (greenfield, competitor
  cross-sell, coverage gaps), proposes and prioritizes them, plans each
  implementation, and scaffolds the viable ones with build verification.

Both follow the existing stepwise conventions (per-file next_step,
docs-only config, [STATUS]/[ABORT] lines) and write a single report
file at the project root.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@landon-posthog landon-posthog requested a review from edwinyjlim June 8, 2026 14:25
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

🧙 Wizard CI

Run 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:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci error-tracking-upload-source-maps
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci error-tracking-upload-source-maps/android
  • /wizard-ci error-tracking-upload-source-maps/flutter
  • /wizard-ci error-tracking-upload-source-maps/ios
  • /wizard-ci error-tracking-upload-source-maps/next
  • /wizard-ci error-tracking-upload-source-maps/next-no-posthog
  • /wizard-ci error-tracking-upload-source-maps/node-raw
  • /wizard-ci error-tracking-upload-source-maps/node-rollup
  • /wizard-ci error-tracking-upload-source-maps/node-rollup-typescript-plugin
  • /wizard-ci error-tracking-upload-source-maps/node-webpack
  • /wizard-ci error-tracking-upload-source-maps/nuxt-3-6
  • /wizard-ci error-tracking-upload-source-maps/nuxt-4-3
  • /wizard-ci error-tracking-upload-source-maps/react-native
  • /wizard-ci error-tracking-upload-source-maps/react-vite
  • /wizard-ci error-tracking-upload-source-maps/rust
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

gewenyu99 and others added 4 commits June 9, 2026 10:28
…mple cap

- Step 1 detect: all 8 detectors in one message (no serial batches), Explore/haiku, hard-capped greps/turns
- Step 4 plan: fan out one sonnet subagent per item; orchestrator no longer pre-reads evidence
- Step 5 scaffold: pin sonnet; single illustrative example per product, not full coverage
- Step 6 verify: fan out read-only spot-checks on haiku when >2 items
- Step 7 report: map-reduce per-item sections on haiku; short report, one line per item
- Models capped at sonnet, never opus

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Minimal docs-only skill: read a bundled PostHog feature-flags guide and generate a task list. Variants: best-practices, cleaning-up-stale-flags, cutting-costs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
An interrupted run leaves /tmp plan/opportunities/env files behind (Step 7 cleanup only runs on success), and the next run reuses them — short-circuiting Steps 3-4 on stale data. Step 1 now wipes them before detection.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add an explicit instruction (and a Task list section in the remediate-3000/cross-sell-3000 style) to form a plan and call TaskCreate immediately after reading the bundled guide, before scanning the project, then refine with TaskUpdate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@landon-posthog

Copy link
Copy Markdown
Author

@gewenyu99, you good for me to merge these?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants