Files
state-hub/scripts/project_claude_md.template
tegwick 196e6c5aed feat(register): modular @-import CLAUDE.md structure (ops-bridge pattern)
Replaces the monolithic project_claude_md.template with a directory of
7 focused rule files in scripts/project_rules/. register_project.sh now
generates .claude/rules/*.md + a thin CLAUDE.md index of @-imports,
matching the pattern established in ops-bridge.

Template files:
  claude-md.template          — 9-line @-import index
  repo-identity.template      — purpose, domain, slug, topic ID (machine-gen)
  session-protocol.template   — orient/inbox/workplans/brief/close (machine-gen)
  first-session.template      — bootstrap flow; delete once past FSP
  workplan-convention.template— prefix, location; delegates to global CLAUDE.md
  stack-and-commands.template — language/deps/commands (stub, manual)
  architecture.template       — design overview (stub, manual)
  repo-boundary.template      — what this repo does NOT own (stub, manual)

register_project.sh changes:
  - Generates .claude/rules/ from templates with variable substitution
  - Writes thin CLAUDE.md if none exists; appends suggestion comment if one does
  - Step 7: auto-registers this machine's local path via POST /repos/{slug}/paths/
  - project_claude_md.template deprecated to a redirect notice

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 18:35:02 +01:00

17 lines
894 B
Plaintext

# DEPRECATED — see project_rules/
This file was the monolithic CLAUDE.md template. It has been replaced by the
modular @-import structure in `scripts/project_rules/`.
`register_project.sh` now generates:
- `CLAUDE.md` — thin @-import index (9 lines)
- `.claude/rules/repo-identity.md` — purpose, domain, slug, topic ID
- `.claude/rules/session-protocol.md`— orient → inbox → workplans → brief
- `.claude/rules/first-session.md` — bootstrap flow (delete once past FSP)
- `.claude/rules/workplan-convention.md` — prefix, location, delegates to global
- `.claude/rules/stack-and-commands.md` — language, deps, dev commands (stub)
- `.claude/rules/architecture.md` — design overview (stub)
- `.claude/rules/repo-boundary.md` — what this repo does NOT own (stub)
See `ops-bridge/.claude/` for a complete reference example.