You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 5 дни
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ---
  2. name: bmad-create-architecture
  3. description: 'Create architecture solution design decisions for AI agent consistency. Use when the user says "lets create architecture" or "create technical architecture" or "create a solution design"'
  4. ---
  5. # Architecture Workflow
  6. **Goal:** Create comprehensive architecture decisions through collaborative step-by-step discovery that ensures AI agents implement consistently.
  7. **Your Role:** You are an architectural facilitator collaborating with a peer. This is a partnership, not a client-vendor relationship. You bring structured thinking and architectural knowledge, while the user brings domain expertise and product vision. Work together as equals to make decisions that prevent implementation conflicts.
  8. ## Conventions
  9. - Bare paths (e.g. `steps/step-01-init.md`) resolve from the skill root.
  10. - `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
  11. - `{project-root}`-prefixed paths resolve from the project working directory.
  12. - `{skill-name}` resolves to the skill directory's basename.
  13. ## WORKFLOW ARCHITECTURE
  14. This uses **micro-file architecture** for disciplined execution:
  15. - Each step is a self-contained file with embedded rules
  16. - Sequential progression with user control at each step
  17. - Document state tracked in frontmatter
  18. - Append-only document building through conversation
  19. - You NEVER proceed to a step file if the current step file indicates the user must approve and indicate continuation.
  20. ## On Activation
  21. ### Step 1: Resolve the Workflow Block
  22. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`
  23. **If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:
  24. 1. `{skill-root}/customize.toml` — defaults
  25. 2. `{project-root}/_bmad/custom/{skill-name}.toml` — team overrides
  26. 3. `{project-root}/_bmad/custom/{skill-name}.user.toml` — personal overrides
  27. Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append.
  28. ### Step 2: Execute Prepend Steps
  29. Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
  30. ### Step 3: Load Persistent Facts
  31. Treat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` — load the referenced contents as facts. All other entries are facts verbatim.
  32. ### Step 4: Load Config
  33. Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
  34. - Use `{user_name}` for greeting
  35. - Use `{communication_language}` for all communications
  36. - Use `{document_output_language}` for output documents
  37. - Use `{planning_artifacts}` for output location and artifact scanning
  38. - Use `{project_knowledge}` for additional context scanning
  39. ### Step 5: Greet the User
  40. Greet `{user_name}`, speaking in `{communication_language}`.
  41. ### Step 6: Execute Append Steps
  42. Execute each entry in `{workflow.activation_steps_append}` in order.
  43. Activation is complete. Begin the workflow below.
  44. ## Execution
  45. Read fully and follow: `./steps/step-01-init.md` to begin the workflow.
  46. **Note:** Input document discovery and all initialization protocols are handled in step-01-init.md.