@@ -135,29 +135,26 @@ def test_build_sdd_prompt_working_dir_in_prompt():
135135
136136
137137def test_build_sdd_prompt_contains_agent_file_instructions ():
138- """Prompt instructs Claude to write all three .agent/<Type>/<BranchSlug>/ files ."""
138+ """Prompt instructs Claude to load the sdd skill file ."""
139139 prompt = _build_sdd_prompt (
140140 arg = "Some task" ,
141141 working_dir = Path ("/repo" ),
142142 protected_branches = ["main" ],
143143 is_url = False ,
144144 )
145- assert ".agent/<Type>/<BranchSlug>/planning.md" in prompt
146- assert ".agent/<Type>/<BranchSlug>/files.md" in prompt
147- assert ".agent/<Type>/<BranchSlug>/approach.md" in prompt
145+ assert "SKILL: Load `.claude/skills/sdd.md`" in prompt
148146
149147
150148def test_build_sdd_prompt_restrictions_present ():
151- """Prompt must explicitly forbid modifying source files, opening PRs, running tests ."""
149+ """Prompt must include protected branches and working directory ."""
152150 prompt = _build_sdd_prompt (
153151 arg = "Some task" ,
154152 working_dir = Path ("/repo" ),
155153 protected_branches = ["main" ],
156154 is_url = False ,
157155 )
158- assert "DO NOT modify any existing source file" in prompt
159- assert "DO NOT open a Pull Request" in prompt
160- assert "DO NOT run tests" in prompt
156+ assert "Protected branches" in prompt
157+ assert "/repo" in prompt
161158
162159
163160# ---------------------------------------------------------------------------
0 commit comments