Skip to content

docs: add AGENTS.md and CLAUDE.md agent guardrails - #8

Draft
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/add-agent-guardrails
Draft

docs: add AGENTS.md and CLAUDE.md agent guardrails#8
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/add-agent-guardrails

Conversation

@posthog

@posthog posthog Bot commented Jul 26, 2026

Copy link
Copy Markdown

Summary

Creates AGENTS.md (concise) and CLAUDE.md (fuller) at the repo root — neither existed before. They encode the same ticket-hygiene rules and are kept in sync.

The rules:

  • Search existing Better Design tickets across both active and completed states before creating one.
  • Show the ticket inventory and pick an existing ticket at task start.
  • Reconcile against merged PRs/commits before reporting work complete.
  • Never mark a stale ticket Done without repo/PR evidence — BD-215 is documented as the first application of the rule.

Why

Agents kept spawning duplicate tickets and marking stale ones Done without evidence. This is internal maintainer hygiene for a solo-maintained shadcn design-system registry — no user-facing or production impact — so the guardrails live in the two files agents actually read.


Created with PostHog Desktop from this inbox report.

Add agent-instruction files at the repo root to stop coding agents from
creating duplicate tickets or leaving finished work stale.

Both files encode the same ticket-hygiene rules and are kept in sync:
search existing tickets across active and completed states before creating
one, pick an existing ticket at task start, reconcile against merged PRs and
commits before reporting work complete, and never mark a stale ticket Done
without repo/PR evidence. BD-215 is documented as the first application of
the rule.

Generated-By: PostHog Code
Task-Id: bb54298b-7717-4750-b821-4431f87c481d
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