Skip to content

fix: resolve commandment contradictions, install/build edge cases - #277

Draft
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/mini-agent-remarks-2
Draft

fix: resolve commandment contradictions, install/build edge cases#277
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/mini-agent-remarks-2

Conversation

@posthog

@posthog posthog Bot commented Jul 24, 2026

Copy link
Copy Markdown

Summary

  • enableExceptionAutocapture (posthog-node-only) was bleeding into isomorphic-framework skills (Next.js, Nuxt, SvelteKit, Remix, TanStack Start) that also carry javascript_web, since commandments are flattened across tags with no scoping — agents occasionally tried it on the browser posthog-js client before self-correcting to capture_exceptions. Now the bullet names the client and contrasts it explicitly.
  • The generic python commandment ("always use the instance-based Posthog() client") directly contradicted the django, flask, and fastapi sections (and the real Django example app), which all correctly use module-level posthog.api_key init per PostHog's own docs. Now scoped to plain scripts/CLIs with no framework-specific pattern of their own.
  • install and build skill descriptions didn't cover two edge cases orchestrator runs kept flagging: multi-manifest monorepos (JS frontend + Python/PHP backend) and manifests with no build/typecheck/lint script (start-only Node projects).

Why

Triaged 365 new wizard: orchestrator remark events since the last cycle. Most were confirmations or wizard/infra-side issues (task-management tooling not offered to some task types, the PostHog MCP gateway being unreachable in some runs, a .ts env-writer bug) outside this repo's scope — left for separate follow-up. These three findings were the ones traceable to actual contradictions/gaps in this repo's content.

Test plan

  • npm test
  • npm run build (confirmed the rendered COMMANDMENTS.md for a Next.js and a Django skill reflect the fixes)

Created with PostHog Code

…e cases

Answers three recurring orchestrator remarks from the past cycle:

- javascript_node's `enableExceptionAutocapture` bullet was being merged into isomorphic-framework skills (Next.js, Nuxt, SvelteKit, Remix, TanStack Start) alongside javascript_web rules with no scoping, so error-tracking/review runs occasionally tried it on the browser posthog-js client (which has no such option) before self-correcting to `capture_exceptions`. Now scoped explicitly to the server-side posthog-node client.
- The generic `python` tag told every Python integration to use the instance-based `Posthog()` client, directly contradicting the `django`, `flask`, and `fastapi` sections (and the actual Django example app), which all correctly use module-level `posthog.api_key` init per PostHog's own docs. Now scoped to plain scripts/CLIs with no framework-specific pattern.
- `install` and `build` skills didn't cover two recurring edge cases agents kept flagging: multi-manifest monorepos (JS frontend + Python/PHP backend) and manifests with no build/typecheck/lint script at all (start-only Node projects).

Remaining themes from this cycle (task-management tooling not offered to several task types, the PostHog MCP gateway being unreachable in some runs, an environment writer corrupting `.ts` files) are wizard-side or infra issues outside this repo's scope and were left for separate follow-up.

`npm test` and `npm run build` pass.

---
*Created with [PostHog Code](https://posthog.com/code?ref=pr)*

Generated-By: PostHog Code
Task-Id: 4e596905-5f12-4c8b-b9bb-56a3a64bd534
@github-actions

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 mcp-analytics
  • /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 mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

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.

0 participants