mattrguerra/meridian-skillsmainPrivate on GitHub, published here in full

SUBAGENTS.md.tmpl

2.2 KB94 lines

skills/cowork-project-architect/templates/SUBAGENTS.md.tmpl

  1. ---
  2. type: subagents
  3. scope: project-root
  4. tags:
  5. - claude
  6. - subagents
  7. - reference
  8. created: [YYYY-MM-DD]
  9. updated: [YYYY-MM-DD]
  10. ---
  11. <!--
  12. SUBAGENTS.md: Sub-agent definitions for this project.
  13. Only generate this file if the project actually uses sub-agents.
  14. Most small/medium projects don't need them.
  15. Sub-agents are warranted when:
  16. - Tasks split cleanly into specialist roles
  17. - The project benefits from forced separation of concerns (e.g., a hygiene
  18. step that strips bias from prompts before they hit a research agent)
  19. - The project runs long agentic loops where a sub-agent prevents context bloat
  20. -->
  21. # [PROJECT NAME]: Sub-agents
  22. This project uses [N] sub-agents. Dispatch them per the rules below.
  23. ## When to use a sub-agent vs. doing it inline
  24. [2-3 sentences on the principle for this project. E.g., "Use a sub-agent when the task requires a clean context (no prior conversation bias), or when the task will produce >2k tokens of intermediate work that doesn't need to live in the main thread."]
  25. ---
  26. ## [SUBAGENT-NAME]
  27. **Role:** [One sentence. What this agent does and nothing else.]
  28. **Model:** [Opus / Sonnet / Haiku], because [why]. See [[MODEL_GUIDE]] for project-wide model rules.
  29. **When to dispatch:**
  30. - [Trigger condition]
  31. - [Trigger condition]
  32. **Do NOT dispatch when:**
  33. - [Anti-trigger]
  34. **Prompt structure:**
  35. ```
  36. [Required opening: role statement, scope]
  37. [Required context: what the agent needs to know]
  38. Task: [The specific task being delegated]
  39. Constraints:
  40. - [Constraint]
  41. - [Constraint]
  42. Return format:
  43. [Exact format the agent should respond in]
  44. ```
  45. **Returns:** [What the calling context should expect to receive. Format and shape.]
  46. **Example dispatch:**
  47. > [A real-shaped invocation showing what calling this agent looks like in practice.]
  48. ---
  49. ## [SUBAGENT-NAME]
  50. [Same structure as above.]
  51. ---
  52. ## Sub-agent chain patterns
  53. <!-- If sub-agents are commonly chained, document the pattern here. -->
  54. ### Pattern: [NAME]
  55. **Sequence:** [Agent A] → [Agent B] → [Agent C]
  56. **When:** [Trigger for this whole chain]
  57. **Hand-off rules:**
  58. - [Agent A] returns [X]; [Agent B] consumes [X] as [Y]
  59. - [Agent B] returns [Z]; [Agent C] consumes [Z]
  60. **Failure modes to watch for:**
  61. - [What goes wrong and how to detect it]