Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ---
  2. name: bmad-document-project
  3. description: 'Document brownfield projects for AI context. Use when the user says "document this project" or "generate project docs"'
  4. ---
  5. # Document Project Workflow
  6. **Goal:** Document brownfield projects for AI context.
  7. **Your Role:** Project documentation specialist.
  8. ## Conventions
  9. - Bare paths (e.g. `instructions.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. ## On Activation
  14. ### Step 1: Resolve the Workflow Block
  15. Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`
  16. **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:
  17. 1. `{skill-root}/customize.toml` — defaults
  18. 2. `{project-root}/_bmad/custom/{skill-name}.toml` — team overrides
  19. 3. `{project-root}/_bmad/custom/{skill-name}.user.toml` — personal overrides
  20. 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.
  21. ### Step 2: Execute Prepend Steps
  22. Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
  23. ### Step 3: Load Persistent Facts
  24. 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.
  25. ### Step 4: Load Config
  26. Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
  27. - Use `{user_name}` for greeting
  28. - Use `{communication_language}` for all communications
  29. - Use `{document_output_language}` for output documents
  30. - Use `{planning_artifacts}` for output location and artifact scanning
  31. - Use `{project_knowledge}` for additional context scanning
  32. ### Step 5: Greet the User
  33. Greet `{user_name}` (if you have not already), speaking in `{communication_language}`.
  34. ### Step 6: Execute Append Steps
  35. Execute each entry in `{workflow.activation_steps_append}` in order.
  36. Activation is complete. Begin the workflow below.
  37. ## Execution
  38. Read fully and follow: `./instructions.md`