feat: add standard context file templates

This commit is contained in:
2026-06-02 17:18:35 +01:00
parent 13f5e10f6f
commit 3ccdea330a
4 changed files with 177 additions and 19 deletions
+30
View File
@@ -36,3 +36,33 @@ def test_init_skips_existing_files(tmp_path: Path) -> None:
assert skipped == list(CONTEXT_FILES)
assert (tmp_path / "TASKS.md").read_text(encoding="utf-8") == "existing"
def test_required_context_templates_exist() -> None:
"""Ensure all six required standard context files are defined."""
required = [
"context/company-context.md",
"context/development-context.md",
"context/infrastructure-context.md",
"context/agent-guidelines.md",
"context/project-brief.md",
"context/architecture.md",
]
for rel_path in required:
assert rel_path in CONTEXT_FILES, f"Missing template: {rel_path}"
def test_required_templates_have_headings_and_guidance() -> None:
"""Each required context file must contain headings and placeholder guidance."""
required = [
"context/company-context.md",
"context/development-context.md",
"context/infrastructure-context.md",
"context/agent-guidelines.md",
"context/project-brief.md",
"context/architecture.md",
]
for rel_path in required:
content = CONTEXT_FILES[rel_path]
assert "# " in content, f"{rel_path} missing H1 heading"
assert "## " in content, f"{rel_path} missing H2 headings"