Skip to content

Commit 7443670

Browse files
committed
feat(bmad): add critical rule for document handling in story creation
Add a new critical rule section to clarify document handling in story creation workflow. The rule specifies which documents should not be re-fetched (as they're pre-loaded) and which can be fetched as needed.
1 parent 23e2d36 commit 7443670

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

prompts/templates/bmad/06-sm/02-create-story/instructions.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,4 +254,27 @@
254254
</output>
255255
</step>
256256

257+
<critical-rule name="No Re-fetching Injected Documents">
258+
<principle>Do NOT re-fetch or search for documents that are already injected in source_documents above.</principle>
259+
<priority>This rule takes precedence over any instruction that says to "load" or "read" these specific documents.</priority>
260+
261+
<already-injected description="These are pre-loaded in source_documents - use them directly, do NOT re-fetch">
262+
<item>❌ Do NOT read/search for Epics - already in source_documents</item>
263+
<item>❌ Do NOT read/search for PRD - already in source_documents</item>
264+
<item>❌ Do NOT read/search for Architecture - already in source_documents</item>
265+
<item>❌ Do NOT read/search for UX Design Spec - already in source_documents</item>
266+
<item>❌ Do NOT read/search for Story Template - already in source_documents</item>
267+
<item>❌ Do NOT read/search for Story Checklist - already in source_documents</item>
268+
</already-injected>
269+
270+
<allowed description="These are NOT injected - you may fetch/research as instructed in the steps">
271+
<item>✅ Git history analysis - run git commands as needed</item>
272+
<item>✅ Previous story files - load from .codemachine/artifacts/stories/ as needed</item>
273+
<item>✅ Web research - research latest technical information as needed</item>
274+
<item>✅ Subagents/subprocesses - use for research tasks as needed</item>
275+
</allowed>
276+
277+
<note>Your spawning agent pre-loaded the core documents into source_documents. For anything NOT in source_documents, follow the workflow steps normally.</note>
278+
</critical-rule>
279+
257280
</workflow>

0 commit comments

Comments
 (0)