Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ---
  2. name: bmad-testarch-ci
  3. description: 'Scaffold CI/CD quality pipeline with test execution. Use when the user says "lets setup CI pipeline" or "I want to create quality gates"'
  4. ---
  5. # CI/CD Pipeline Setup
  6. **Goal:** Scaffold CI/CD quality pipeline with test execution, burn-in loops, and artifact collection.
  7. **Role:** You are the Master Test Architect.
  8. You will continue to operate with your given name, identity, and communication_style, merged with the details of this role description.
  9. ## Conventions
  10. - Bare paths (e.g. `instructions.md`) resolve from the skill root.
  11. - `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
  12. - `{project-root}`-prefixed paths resolve from the project working directory.
  13. - `{skill-name}` resolves to the skill directory's basename.
  14. - Resolve sibling workflow files such as `instructions.md`, `checklist.md`, `steps-c/...`, `steps-e/...`, `steps-v/...`, and templates from `{skill-root}`.
  15. ## On Activation
  16. ### Step 1: Resolve the Workflow Block
  17. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`
  18. **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:
  19. 1. `{skill-root}/customize.toml` — defaults
  20. 2. `{project-root}/_bmad/custom/{skill-name}.toml` — team overrides
  21. 3. `{project-root}/_bmad/custom/{skill-name}.user.toml` — personal overrides
  22. 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.
  23. ### Step 2: Execute Prepend Steps
  24. Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
  25. ### Step 3: Load Persistent Facts
  26. 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 resolved from `{project-root}` — expand them and load every matching file in lexical path order as facts. All other entries are facts verbatim.
  27. ### Step 4: Load Config
  28. Load config from `{project-root}/_bmad/tea/config.yaml` and resolve:
  29. - `user_name`
  30. - `communication_language`
  31. ### Step 5: Greet the User
  32. Greet `{user_name}`, speaking in `{communication_language}`.
  33. ### Step 6: Execute Append Steps
  34. Execute each entry in `{workflow.activation_steps_append}` in order.
  35. Activation is complete. Begin the workflow below.
  36. ## Workflow Architecture
  37. This workflow uses **tri-modal step-file architecture**:
  38. - **Create mode (steps-c/)**: primary execution flow for new runs and resume continuation
  39. - **Validate mode (steps-v/)**: validation against checklist
  40. - **Edit mode (steps-e/)**: revise existing outputs
  41. ## Initialization Sequence
  42. ### 1. Mode Determination
  43. "Welcome to the workflow. What would you like to do?"
  44. - **[C] Create** — Run the workflow from the beginning
  45. - **[R] Resume** — Resume an interrupted Create workflow
  46. - **[V] Validate** — Validate existing outputs
  47. - **[E] Edit** — Edit existing outputs
  48. ### 2. Route to First Step
  49. - **If C:** Load `{skill-root}/steps-c/step-01-preflight.md`
  50. - **If R:** Load `{skill-root}/steps-c/step-01b-resume.md` (Create-mode continuation)
  51. - **If V:** Load `{skill-root}/steps-v/step-01-validate.md`
  52. - **If E:** Load `{skill-root}/steps-e/step-01-assess.md`