src/bmm-skills/2-plan-workflows/bmad-create-prd/steps-c/step-01-init.md
Progress: Step 1 of 11 - Next: Project Discovery
Initialize the PRD workflow by detecting continuation state, discovering input documents, and setting up the document structure for collaborative product requirement discovery.
{communication_language}First, check if the output document already exists:
Workflow State Detection:
{outputFile}If the document exists and has frontmatter with stepsCompleted BUT step-12-complete is NOT in the list, follow the Continuation Protocol since the document is incomplete:
Continuation Protocol:
./step-01b-continue.mdIf no document exists or no stepsCompleted in frontmatter:
Discover and load context documents using smart discovery. Documents can be in the following locations:
Also - when searching - documents can be a single markdown file, or a folder with an index and multiple files. For Example, if searching for *foo*.md and not found, also search for a folder called foo/index.md (which indicates sharded content)
Try to discover the following:
*brief*.md)/*research*.md){project_knowledge} or docs folder.)**/project-context.md)<critical>Confirm what you have found with the user, along with asking if the user wants to provide anything else. Only after this confirmation will you proceed to follow the loading rules</critical>
Loading Rules:
inputDocuments arrayDocument Setup:
../templates/prd-template.md to {outputFile}Setup Report to User:
"Welcome {{user_name}}! I've set up your PRD workspace for {{project_name}}.
Document Setup:
{outputFile} from templateInput Documents Discovered:
Files loaded: {list of specific file names or "No additional documents found"}
{if projectDocsCount > 0} š Note: This is a brownfield project. Your existing project documentation has been loaded. In the next step, I'll ask specifically about what new features or changes you want to add to your existing system. {/if}
Do you have any other documents you'd like me to include, or shall we continue to the next step?"
Display menu after setup report:
"[C] Continue - Save this and move to Project Discovery (Step 2 of 11)"
ONLY WHEN [C continue option] is selected and [frontmatter properly updated with this step added to stepsCompleted and documentCounts], will you then read fully and follow: ./step-02-discovery.md to begin project discovery.
inputDocumentsMaster Rule: Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.