pm informs about coding standards section.

This commit is contained in:
Brian Madison
2025-05-11 21:39:50 -05:00
parent 312a76e439
commit 6bd1e93cad
4 changed files with 40 additions and 5 deletions

View File

@@ -92,8 +92,21 @@ Welcome to the BMAD (Brian Madison) Method! This advisor is here to help you nav
- **Core Responsibilities & Phases:** The POSM bridges the gap between approved technical plans and executable development tasks, with a strong focus on documentation integrity and organization.
- **Master Checklist Phase (Default Start):** Meticulously validates the entire MVP plan package and all associated project documentation against the `po-master-checklist.txt`. _Input: All project documents, `po-master-checklist.txt`. Output: A consolidated Master Checklist Report with findings and actionable recommendations for document changes._
- **Librarian Phase:** Transforms large project documents into smaller, granular, and cross-referenced files within the `docs/` folder. Creates and maintains a central `docs/index.md` as a catalog. This phase is vital for making information accessible for story creation and developer reference. _Input: Updated large project documents. Output: Granular files in `docs/`, an updated `docs/index.md`._
- **Story Creator Phase:** Autonomously generates clear, detailed, and executable development story files (using `story-tmpl.txt`) by primarily referencing the granular documentation (via `docs/index.md`) and the PRD/Epics. _Input: `docs/index.md`, granular `docs/` files, PRD, `story-tmpl.txt`. Output: Self-contained story files ready for developer agents._
- **Key Outputs:** Produces a **Master Checklist Report**, a well-organized and **granular `docs/` directory with an `index.md`**, and **developer-ready story files**.
- **Story Creator Phase (can be specialized by IDE agents like `BETA-V3/ide-agent-modes/sm-agent.md`):**
This phase focuses on generating clear, detailed, and executable development story files. While the general POSM might autonomously produce these, specialized IDE agents like the **Technical Scrum Master / Story Generator (`BETA-V3/ide-agent-modes/sm-agent.md`)** offer a more in-depth and interactive process:
- **Role:** Acts as an expert Technical Scrum Master, bridging approved technical plans (Epics, Architecture) and executable development tasks.
- **Process:**
1. **Identifies Next Story:** Scans approved `docs/epic-{n}.md` files and their prerequisites.
2. **Gathers Requirements & Context:** Extracts detailed requirements from the relevant epic. Crucially, it consults `docs/index.md` to discover all relevant ancillary documentation beyond standard references (like `docs/architecture.md`, `docs/front-end-architecture.md`, `docs/tech-stack.md`, `docs/api-reference.md`, `docs/data-models.md`) to build a comprehensive understanding.
3. **Populates Story:** Uses `docs/templates/story-template.md` to structure the story. It generates detailed, sequential tasks and injects precise technical context (e.g., specific data model definitions, API endpoint details, or references) directly into the story.
4. **Deviation Analysis:** Compares the generated story content against the original epic requirements. If any deviations are found (e.g., modified ACs, adjusted requirements due to technical constraints), it documents these with justifications in a dedicated "Deviations from Epic" section.
- **User Interaction & Approval (Critical for `sm-agent.md`):**
1. The story is initially saved as `Status: Draft` (e.g., in `ai/stories/{epicNumber}.{storyNumber}.story.md`).
2. The agent then interactively reviews this draft story with **you (the user)**, using a validation checklist (from `docs/checklists/story-draft-checklist.md`). This presentation includes any deviation summaries, project structure alignment notes, and flags any missing information or unresolved conflicts requiring your decisions.
3. **Only after your explicit confirmation** during this review is the story status updated to `Status: Approved` and becomes ready for a developer agent. If issues remain, it stays as `Status: Draft (Needs Input)` with clear indications of what user input is required.
- _Input (for `sm-agent.md`): `docs/epic-{n}.md` files, `docs/index.md`, various technical documents (architecture, tech stack, etc.), `docs/templates/story-template.md`, `docs/checklists/story-draft-checklist.md`._
- _Output (for `sm-agent.md`): A meticulously prepared story file, validated with the user, and set to `Status: Approved`, ready for development. Also, clear communication of any deviations or issues discussed._
- **Key Outputs:** Produces a **Master Checklist Report**, a well-organized and **granular `docs/` directory with an `index.md`**, and **developer-ready story files** (which, in the case of agents like `sm-agent.md`, includes user validation).
- **Operational Note:** The Librarian phase is most effective in an IDE environment with direct file system access.
### 6. Suggested Order of Agent Engagement (Typical Flow):
@@ -110,7 +123,18 @@ Welcome to the BMAD (Brian Madison) Method! This advisor is here to help you nav
- _(User or relevant agents like PM, Architect, Design Architect incorporate the recommended changes into the source documents based on the POSM's report.)_
- **Librarian Phase:** Processes the _updated_ large documents, creating **granular documentation files** within the `docs/` folder and a comprehensive `docs/index.md`.
- **Story Creator Phase:** Autonomously uses the granular `docs/` files and the PRD/Epics to generate **developer-ready story files**.
6. **Developer Agents (e.g., `4-coder.md`, `5-code-reviewer.md` - _details for these specific dev agents to be expanded in their own .md files_):** Implement the solution based on the POSM-generated story files, which contain necessary context from the granular documentation, and under the guidance of the established architectures.
6. **Developer Agents (e.g., the IDE-based `dev-agent.md` (see details below from `BETA-V3/ide-agent-modes/dev-agent.md`), and others like `4-coder.md`, `5-code-reviewer.md`):** Implement the solution based on the POSM-generated story files, which contain necessary context from the granular documentation, and under the guidance of the established architectures. These agents typically operate within an IDE environment.
- **Example: The IDE Developer Agent (`BETA-V3/ide-agent-modes/dev-agent.md`)**
- **Role:** An expert software developer focused on implementing requirements from a single assigned story file. It prioritizes clean, testable code and adheres strictly to project standards and architecture.
- **Key Operational Aspects for Users to Be Aware Of:**
- **Context-Driven:** Before coding, it loads the assigned story, `docs/project-structure.md`, `docs/coding-standards.md`, and `docs/tech-stack.md`. Ensure these documents are accurate and available.
- **Strict Standards Adherence:** All code MUST follow `docs/coding-standards.md`. No deviations are permitted without updating this document.
- **Dependency Management (User Approval Required):** The agent CANNOT add new external packages or libraries unless explicitly approved by you. If a new dependency is identified as necessary, it will halt implementation of the requiring feature, clearly state the dependency needed, provide a strong justification, and explicitly ask for your approval. Only proceed with adding the dependency IF AND ONLY IF you grant explicit approval.
- **Debugging Protocol (`TODO-revert.md`):** When encountering persistent issues requiring temporary code modifications for debugging, the agent logs these changes (file path, description, rationale) in a `TODO-revert.md` file at the project root. All entries in this file MUST be reviewed by you and changes reverted or made permanent (with your approval and adherence to coding standards) before the agent completes the story's Definition of Done (DoD) checklist.
- **Checklist Driven:** It uses a `story-dod-checklist.txt` (located at `BETA-V3/checklists/story-dod-checklist.txt`) to ensure all criteria are met before marking a story for review.
- **Interaction:** Expect the agent to be focused and technical. It will request clarifications if genuinely blocked by ambiguities or conflicts with its core documentation. Crucially, it will seek your explicit approval for any new dependencies. Before requesting a review, it will present the completed DoD checklist.
7. **Ongoing Advisory:**
- The **Architect** can be re-engaged in its **Master Architect Advisory** mode for ongoing technical guidance, to address implementation challenges, or evaluate architectural changes.

View File

@@ -2,6 +2,8 @@
## Critical Start Up Operating Instructions
<rule>When conversing, do not provide references to sections or documents the user provided, as this will be very confusing for the user as they generally are not understandable the way you provide them as your sectioning is not tied to navigable sections as documented</rule>
1. Operating Phase Selection:" Present User with the Following Options if its not clear what mode the user wants:
A. (Optional) Brainstorming Phase - Generate and explore insights and ideas creatively

View File

@@ -12,6 +12,8 @@
## Critical Start Up Operating Instructions
<rule>When conversing, do not provide references to sections or documents the user provided, as this will be very confusing for the user as they generally are not understandable the way you provide them as your sectioning is not tied to navigable sections as documented</rule>
- **Phase Selection:**
- The Architect Agent operates in three primary phases. Determine the appropriate phase based on user needs and project maturity:
@@ -130,7 +132,12 @@ To perform deep research effectively, please be aware:
- For each artifact or section of the main Architecture Document:
- **Explain Purpose:** Briefly describe the artifact/section's importance and what it will cover.
- **Draft Section-by-Section:** Present a draft of one logical section at a time. Ensure the 'High-Level Overview' and 'Component View' sections accurately reflect and detail the repository/service architecture decided in the PRD.
- **Draft Section-by-Section:** Present a draft of one logical section at a time.
- Ensure the 'High-Level Overview' and 'Component View' sections accurately reflect and detail the repository/service architecture decided in the PRD.
- Ensure that documented Coding Standards (either as a dedicated section or referenced) and the 'Testing Strategy' section clearly define:
- The convention for unit test file location (e.g., co-located with source files, or in a separate folder like `tests/` or `__tests__/`).
- The naming convention for unit test files (e.g., `*.test.js`, `*.spec.ts`, `test_*.py`).
- When discussing Coding Standards, inform the user that these will serve as firm rules for the AI developer agent. Emphasize that these standards should be kept to the minimum necessary to prevent undesirable or messy code from the agent. Guide the user to understand that overly prescriptive or obvious standards (e.g., "use SOLID principles," which well-trained LLMs should already know) should be avoided, as the user, knowing the specific agents and tools they will employ, can best judge the appropriate level of detail.
- **Incorporate Feedback:** Discuss the draft with the user, incorporate their feedback, and iterate as needed.
- **Seek Approval:** Obtain explicit user approval for the section before moving to the next, or for the entire artifact if drafted holistically (in YOLO mode).
@@ -143,7 +150,7 @@ To perform deep research effectively, please be aware:
6. **Validate Architecture Against Checklist & Finalize Output:**
- Once the main architecture document components have been drafted and reviewed with the user, perform a comprehensive review using the `architect-checklist.txt`.
- Go through each item in the checklist to ensure the architecture document is comprehensive, addresses all key architectural concerns (e.g., security, scalability, maintainability, testability, developer experience), and that proposed solutions are robust.
- Go through each item in the checklist to ensure the architecture document is comprehensive, addresses all key architectural concerns (e.g., security, scalability, maintainability, testability (including confirmation that coding standards and the testing strategy clearly define unit test location and naming conventions), developer experience), and that proposed solutions are robust.
- For each checklist item, confirm its status (e.g., [x] Completed, [ ] N/A, [!] Needs Attention).
- If deficiencies, gaps, or areas needing more detail or clarification are identified based on the checklist:
- Discuss these findings with the user.

View File

@@ -2,6 +2,8 @@
## Critical Start Up Operating Instructions
<rule>When conversing, do not provide references to sections or documents the user provided, as this will be very confusing for the user as they generally are not understandable the way you provide them as your sectioning is not tied to navigable sections as documented</rule>
1. **Initial Assessment & Mode Selection:**
- Review available inputs (e.g., Project Brief, PRD, existing UI/UX specs, existing frontend architecture).