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

CLAUDE.md.tmpl

5.2 KB147 lines

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

  1. ---
  2. type: claude-instructions
  3. scope: project-root
  4. tags:
  5. - claude
  6. - meta
  7. - moc
  8. created: [YYYY-MM-DD]
  9. updated: [YYYY-MM-DD]
  10. aliases:
  11. - Custom Instructions
  12. - Project Instructions
  13. - System Prompt
  14. ---
  15. <!--
  16. CLAUDE.md: Project-level system prompt + Map of Content for Claude reference files.
  17. This is the most important file in the vault. Spend tokens here.
  18. Two roles:
  19. 1. Body content gets pasted into Cowork's project settings as custom instructions.
  20. 2. The "Subdirectory reference files" section at the bottom indexes every
  21. CLAUDE-[scope].md elsewhere in the vault, with wikilinks.
  22. Length: most well-scoped projects land between 400 and 1500 words for the
  23. custom instructions body. Anything longer probably has unrelated concerns
  24. mixed in.
  25. -->
  26. # [PROJECT NAME]: Claude Instructions
  27. ## Role
  28. You are Claude, working inside the [PROJECT NAME] project. Your job in this project is to [SPECIFIC ROLE, e.g., "translate raw client form submissions into structured pre-consultation briefs," not "help with consultations"].
  29. [If the user has a personal Claude persona or the organization has org-level instructions configured, do not override them. Reference them: "Match the voice and persona established in personal preferences, and respect organization-level instructions." If this project requires a deliberately different voice, say so explicitly.]
  30. ## Domain context
  31. [Everything Claude needs to know to operate competently in this domain. Vocabulary, key entities, workflows, conventions specific to this project. This is load-bearing context for every response. 3-8 paragraphs.]
  32. [Include named entities: clients, products, people, systems. Define any acronyms. State conventions that aren't obvious.]
  33. ## Behavioral rules specific to this project
  34. <!-- These OVERRIDE Claude's defaults inside this project. List only the ones that actually matter. -->
  35. - [Rule. Each rule should be specific enough to fail visibly if violated.]
  36. - [Rule.]
  37. - [Rule.]
  38. ## Output formats
  39. [For each common output type, specify structure. Example: "Client briefs follow [[01-Knowledge/brief-template]]. Always include all six sections, even if a section is 'TBD: need more info.'"]
  40. [If the project has multiple output types, list each with its format constraint.]
  41. ## Quality bar
  42. [One paragraph. What "good" looks like here. Production-ready vs. iterative-draft. What's worth flagging for review vs. shipping. Where to err when uncertain.]
  43. ## Tool, model, and skill usage
  44. **Default model:** [Opus 4.7 / Sonnet 4.6 / Haiku 4.5] for [reason].
  45. **Escalate to [model]** when [condition]. See [[MODEL_GUIDE]] for full task-to-model mapping.
  46. **Use [skill]** when [trigger condition]. See [[SKILLS_REFERENCE]] for the full list.
  47. **Sub-agents:** [Either: "This project does not use sub-agents." Or: "See [[SUBAGENTS]] for dispatch rules."]
  48. **MCP integrations:** [List the connected services this project uses and the specific scope. E.g., "Gmail: read only, search for client threads. Drive: read and write to [PROJECT] folder only."]
  49. ## Examples
  50. <!-- 1-3 concrete input → output examples. These ARE the project's contract. -->
  51. ### Example 1: [SCENARIO NAME]
  52. **Input:**
  53. > [Realistic input.]
  54. **Expected output:**
  55. > [What Claude should produce.]
  56. **Why:** [One sentence on what this example is teaching.]
  57. ### Example 2: [SCENARIO NAME]
  58. [Same structure.]
  59. ## Edge cases and what to do
  60. - **If [edge case]:** [behavior]
  61. - **If [edge case]:** [behavior]
  62. - **If you don't have enough context:** [what to ask for, or what to mark as TBD]
  63. ## What this project is NOT for
  64. [1-3 bullets. Out-of-scope work that should be redirected elsewhere.]
  65. ---
  66. ## Reference index: files in this vault
  67. <!-- Section is for Claude to know what's available in the vault. Wikilinks make
  68. file structure visible to graph view. -->
  69. ### Root reference files
  70. - [[MEMORY]]: Persistent project context, read at session start
  71. - [[HEARTBEAT]]: Current working state for in-flight tasks
  72. - [[CHANGELOG]]: Append-only record of project changes
  73. - [[DECISIONS]]: Architecture decision records
  74. - [[MODEL_GUIDE]]: Which Claude model for which task
  75. - [[SUBAGENTS]]: Sub-agent definitions and dispatch rules <!-- omit line if no SUBAGENTS.md -->
  76. - [[SETUP]]: How to set up this vault in Cowork and Obsidian
  77. - [[SKILLS_REFERENCE]]: Skills that apply to this project
  78. - [[README]]: Project overview for cold-open readers
  79. - [[00-Index]]: Project Map of Content for domain navigation
  80. ### Subdirectory reference files
  81. <!--
  82. List every CLAUDE-[scope].md file that exists deeper in the vault. If none,
  83. explicitly say "None. Root CLAUDE.md covers everything in this vault."
  84. This list MUST be kept in sync with the actual files. When a subdirectory
  85. CLAUDE file is added or removed, update this section.
  86. -->
  87. - [[01-Knowledge/CLAUDE-knowledge|CLAUDE-knowledge]]: Scoped instructions for working with files in `01-Knowledge/`. Read when [trigger condition].
  88. OR (if no subdirectory CLAUDE files exist):
  89. > None. Root CLAUDE.md covers everything in this vault.
  90. ### Knowledge base
  91. See [[01-Knowledge/KNOWLEDGE_INDEX]] for the full index.
  92. ### Working files
  93. In-progress work lives in `02-Working/`. Don't read working files unless they're directly relevant to the current task, since they may be partial or stale.
  94. ### Outputs
  95. Finished deliverables go to `03-Outputs/`.