agentleFS
PostHogKnown publisherPostHog/posthog-foss/.agents/skills/organizing-conversations-code/SKILL.md

organizing-conversations-code

Skill721 starsChanged 57 days agoMITView on GitHub

File layout for the conversations product. Use when adding, moving, renaming, or reviewing files under products/conversations/ — especially frontend components, scenes, helpers, and tests. Conversations React components live in their own folder under products/conversations/frontend/components/, never as loose files in components/ or at the frontend root. Expand this skill as more conversations layout rules land.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every React component lives in its own folder under products/conversations/frontend/components/.

    line 26
  2. Distinctive:

    Import the file, not the folder:

    line 34
  3. Very specific:

    Put a component at products/conversations/frontend/ (the product frontend root)

    line 44
  4. Very specific:

    Add an index.ts barrel so callers can import the folder

    line 45
  5. Distinctive:

    When you move a component, git mv, point every consumer at the new path, and delete the old one.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Organizing conversations code

Conversations-specific layout. Repo-wide UI rules still apply — read writing-ui-components for one-component-per-file, no barrels, and import sweeps. This skill owns where in conversations a file goes.

Use this skill when

  • Creating, moving, or renaming a file under products/conversations/
  • Adding a React component, helper, or test to conversations frontend
  • Reviewing a conversations diff that adds files

Components

Every React component lives in its own folder under products/conversations/frontend/components/. The file is named after the export.

products/conversations/frontend/components/<Name>/<Name>.tsx
products/conversations/frontend/components/<Name>/<Name>.test.tsx   # colocated

Import the file, not the folder:

import { SlaDisplay } from '../../components/SlaDisplay/SlaDisplay'
import { SlaDisplay } from 'products/conversations/frontend/components/SlaDisplay/SlaDisplay'

Do not:

  • Drop a component as a loose file in frontend/components/
  • Put a component at products/conversations/frontend/ (the product frontend root)
  • Add an index.ts barrel so callers can import the folder

A helper that returns props or data — not markup — is not a component. Keep it next to the feature or at products/conversations/frontend/<name>.ts(x) (see clearFilterButtonProps.tsx).

When you move a component, git mv, point every consumer at the new path, and delete the old one. No re-export shim.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.