name: add-domain description: Create a new health domain. Triggers on "add domain", "new domain", "create domain for", "I want to track", or any request to add a new health tracking area.
Add Domain
Create a new health domain from template with AI-suggested structure.
Workflow
digraph domain {
"Get domain name" -> "Quick research";
"Quick research" -> "Create domain from template";
"Create domain from template" -> "Update domains README";
"Update domains README" -> "Update connections";
"Update connections" -> "Update CLAUDE.md";
"Update CLAUDE.md" -> "Summary";
}
1. Get Domain Name
If user provided an argument → use it. Otherwise → ask: "What domain do you want to add?"
Normalize the name:
- Lowercase, hyphenated for folder name:
blood-sugar,mental-health - Title case for display: "Blood Sugar", "Mental Health"
2. Quick Research
Do a brief research to understand what should be tracked:
perplexity_ask: "Key metrics, protocols, and tracking approaches for [domain] in health optimization"- Use the result to suggest relevant sections and metrics
3. Create Domain
Copy domains/TEMPLATE.md to domains/[name]/README.md
Fill in:
- Domain Name — proper title
- Why It Matters — evidence-based importance based on research + user's condition
- Current Status — empty table, ready for data
- Suggested metrics — based on research, added to the metrics table as examples
- Connections — suggest connections to existing domains based on the connections map
4. Update domains/README.md
Add the new domain to the "Your Domains" table:
- Domain name with link
- Status: ⭐ (new)
- Key Metric: —
- Last Updated: today's date
5. Update Connections
Check docs/context/connections.md:
- Suggest connections to existing domains
- Add them to the connection table
- Update the connection map if it exists
For each suggested connection, update BOTH sides:
- New domain's Connections section
- Existing domain's Connections section
- connections.md
6. Update CLAUDE.md
Add the new domain to the domain loading table in CLAUDE.md so the AI knows to load it when the topic comes up.
7. Summary
Show:
Domain created: domains/[name]/README.md
Connections suggested:
- [name] ↔ [existing domain]: [mechanism]
- [name] ↔ [existing domain]: [mechanism]
Files updated:
- domains/README.md (added to table)
- docs/context/connections.md (new connections)
- CLAUDE.md (domain loading table)
Next: Add data to personalize this domain.
If user provided an argument
/add-domain sleep → create Sleep domain
/add-domain "blood sugar" → create Blood Sugar domain
/add-domain → ask what domain to add