placing-product-frontend-code
Skill by PostHog
Decides whether a frontend file belongs in products/<name>/frontend/ or frontend/src/scenes/<name>/ in the PostHog repository. Built for developers adding scenes, components, or logic for a product.
Install placing-product-frontend-code
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/.agents/skills/placing-product-frontend-code ~/.claude/skills/placing-product-frontend-codeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install placing-product-frontend-code in Claude Code
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/.agents/skills/placing-product-frontend-code ~/.gemini/antigravity-cli/skills/placing-product-frontend-codeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install placing-product-frontend-code in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill helps developers decide which frontend tree a file belongs in for a PostHog product. A product's UI should go in products/<name>/frontend/, not frontend/src/scenes/<name>/. The skill explains the rules for common situations, such as a product with UI in both trees, a new product directory, or an app-level scene like settings or billing.
The skill also explains why the directory split is a real boundary. Merge-queue lanes are assigned by path, so changes under frontend/ affect more lanes than changes confined to a product folder. A bundled read-only script, scene_product_split.py, counts hand-written .ts and .tsx files on each side for one directory or for every scene with a product counterpart. It skips generated/ files.
Written from the project's SKILL.md and checked against it.
What it can do
- Placement rulesGives a decision table for where a new frontend file belongs, based on the state of each product's directories.
- scene_product_split.pyReports hand-written .ts and .tsx file counts on each side for one scene directory or for all of them.
- Merge-queue lane explanationExplains how path-based merge-queue lanes make frontend changes serialize against other frontend PRs.
- Dependency graph findingDescribes a measurement showing that a static import graph cannot replace the path signal for lane assignment.
What you need
- Python 3
- A checkout of the PostHog repository
Try asking
- Where should I add a new component for the data-warehouse product?
- Run the scene split report for the data-warehouse scene directory.
- Show how far each product's frontend move has gone, most migrated first.
Good to know
- The script is advisory and read-only.
- Deciding if a new directory is a product or an app-level scene is a judgment call the script does not make.
- Migrating a scene wholesale reports every merge-queue target once, a one-time cost.
- A dependency graph was measured not to narrow lanes, so only moving files narrows them.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/placing-product-frontend-code/SKILL.md, .agents/skills/placing-product-frontend-code/scripts/scene_product_split.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
scripts/scene_product_split.py5 KB
Alternatives to placing-product-frontend-code
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
placing-product-frontend-code: common questions
Where does PostHog product frontend code go?
Product UI belongs in products/<name>/frontend/. Scenes under frontend/src/scenes/ are for app-level screens such as settings, onboarding, and billing.
Why does the frontend folder choice affect CI?
The merge-queue lane script assigns lanes by path. A change anywhere under frontend/ reports fe:core and every fe:product target, while a change inside one product's frontend folder reports one target.
Does the script change any files?
No. The source describes scene_product_split.py as advisory and read-only, with no baseline and no exit code to satisfy.
How do I install placing-product-frontend-code?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is placing-product-frontend-code free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is placing-product-frontend-code safe to use?
It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to placing-product-frontend-code?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
