Skip to content

Anchor prompts/ gitignore rule to repo root to avoid colliding with packages/ai/prompts/ #20

@matthewod11-stack

Description

@matthewod11-stack

Description

The root .gitignore rule prompts/ (intended for the personal/workflow prompts/ dir per CLAUDE.md) also matches packages/ai/prompts/. Existing prompt files were committed before the rule was added so they're tracked, but adding a new prompt file requires git add -f — discovered during the H-1/#18 follow-up when the docs/evals/h1-adversarial-2026-04-30-rerun.md commit needed -f for packages/ai/prompts/scoring-narrative.md (modification of a tracked file should not need -f either — gitignore is being over-eager).

Current State

  • .gitignore line 49: prompts/
  • 6 tracked files in packages/ai/prompts/ (scoring-narrative, scoring-signal-extract, intake-role-parse, intake-company-analyze, intake-config-generate, intake-success-profile)
  • Adding new prompts in this directory currently requires git add -f

Suggested Fix

  • Change line 49 in .gitignore from prompts/ to /prompts/ (anchor to repo root only)
  • Verify by running git check-ignore packages/ai/prompts/scoring-narrative.md — should output nothing (not ignored)
  • Verify by running git check-ignore prompts/overnight-agent.md (or similar root-level file) — should still match the rule
  • No changes to tracked files; confirm git status is clean afterward

Verification

  • pnpm build passes (no behavioral change expected)
  • pnpm test passes (no behavioral change expected)
  • pnpm typecheck clean
  • git check-ignore -v packages/ai/prompts/scoring-narrative.md outputs nothing
  • git ls-files packages/ai/prompts/ shows the same 6 files as before

Automation Hints

scope: .gitignore
do-not-touch: packages/, apps/, docs/, anything except .gitignore
approach: config-change
risk: low
max-files-changed: 1
blocked-by: none
bail-if: any check-ignore output unexpectedly changes for files outside packages/ai/prompts/

Priority

Low — workaround exists (git add -f), behavior is correct for tracked files. But every new prompt added by a contributor will hit this and require a Stack Overflow detour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtEligible for automated overnight fixing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions