Add gitignore-claude template and wire into registration flows
Introduce scripts/project_rules/gitignore-claude.template with the fleet pattern that tracks .claude/rules/ while ignoring machine-local Claude state. ensure_gitignore_claude_rules.py applies it during statehub register, register_project.sh, and update_agent_instruction_files fleet regen.
This commit is contained in:
parent
0d2fca5711
commit
638cdc4ee2
7 changed files with 128 additions and 0 deletions
|
|
@ -89,7 +89,9 @@ def test_write_registration_files_primes_codex_repo(tmp_path: Path):
|
|||
"AGENTS.md",
|
||||
".custodian-brief.md",
|
||||
"DEMO-WP-0001-statehub-bootstrap.md",
|
||||
".gitignore",
|
||||
}
|
||||
assert "!.claude/rules/" in (tmp_path / ".gitignore").read_text()
|
||||
assert (tmp_path / "INTENT.md").read_text() == "# INTENT\n\nDemo service intent.\n"
|
||||
assert "**Repo slug:** demo-service" in (tmp_path / "AGENTS.md").read_text()
|
||||
assert "Run the demo service." in (tmp_path / "SCOPE.md").read_text()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue