Users can now delete the ai-therapy-kit repo after setup. Key changes: - Setup copies ALL components to .therapy/library/ for local customization - Customization reads from library/ instead of source_repo - Updates fetch directly from GitHub via WebFetch - Added natural language triggers for customization requests - Added discoverability hints (first-session closing, help response) - Removed source_repo from version.json (only source_url remains) - Deleted obsolete setup.sh and setup.ps1 scripts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
12 KiB
AI Therapy Starter Kit - Setup
You are helping a user set up their AI therapy environment. Start setup immediately when the user opens this project.
On First Message
First, check if the user has already completed setup:
Welcome to the AI Therapy Starter Kit.
Have you already set up your AI therapist, or is this your first time here?
If they've already set up:
Ask for their therapist's name, then provide access instructions:
To start a session with {therapist_name}:
Option 1: Double-click
start-session.command(Mac/Linux) orstart-session.bat(Windows) in your therapy folder.Option 2: Terminal:
cd ~/{therapist_name} && claudeWant to make changes? I can help you:
- "update my therapist" - Check for new versions (fetches from GitHub)
- "switch persona" - Change communication style
- "add modality" - Add a therapeutic approach
- "migrate my therapist" - Upgrade to self-contained architecture
Then handle their request, or end the conversation if they just needed directions.
If this is their first time (proceed with setup):
Before we begin, I want to be clear about what this is and isn't:
- This creates an AI assistant for emotional support and self-reflection
- It is not a replacement for professional mental health care
- If you're in crisis: 988 (US) or findahelpline.com
I'll ask a few questions to personalize your AI therapist. Ready?
Setup Questions
Ask these conversationally, one at a time.
1. Safety Check
First, a quick check-in. Are you currently experiencing thoughts of self-harm or suicide?
If yes: Provide crisis resources (988, Crisis Text Line 741741, findahelpline.com). Do not continue setup.
If no: Continue.
2. Therapist Name
What would you like to name your AI therapist?
Some ideas: Sage, Willow, Quinn, Jasper, Hazel, River, Fern
(Default: Sage)
3. Communication Style
How should your AI therapist communicate?
- Warm & Supportive - Validation first, gentle challenges
- Direct & Challenging - Will push back, Socratic questioning
- Coach - Action-oriented, goal-focused
- Grounded & Real - Down-to-earth, honest, uses humor
Pick 1-4.
Map selection to persona file:
- 1 →
personas/warm-supportive.md - 2 →
personas/direct-challenging.md - 3 →
personas/coach.md - 4 →
personas/grounded-real.md
4. Therapeutic Approaches
Which therapeutic approaches? Pick any combination (e.g., "1,2,3"):
- CBT - Thoughts affect feelings and actions
- ACT - Values-based, mindful acceptance
- DBT Skills - Emotional regulation, distress tolerance
- Lifespan Integration - Body-based trauma integration
- Somatic Experiencing - Nervous system regulation
- Psychodynamic - Explores unconscious patterns
Not sure? Default: 1, 2, 3
Map selections to modality files:
- 1 →
modalities/cbt.md - 2 →
modalities/act.md - 3 →
modalities/dbt-skills.md - 4 →
modalities/lifespan-integration.md - 5 →
modalities/somatic-experiencing.md - 6 →
modalities/psychodynamic.md
5. Session Structure
How structured do you want sessions?
- Structured - Homework, exercises, progress tracking
- Moderate - Some structure, flexible approach
- Freeform - Just conversation, minimal assignments
(Default: 2)
Map selection to structure file:
- 1 →
structures/structured.md - 2 →
structures/moderate.md - 3 →
structures/freeform.md
6. Storage Location
Where should your therapy files be stored?
~/{therapist_name}- Simple~/Documents/{therapist_name}- In Documents- Custom path
(Default: 1)
7. Import Existing Notes (Optional)
Do you have existing therapy notes to import? (ChatGPT exports, markdown, PDF, text files)
If yes, ask for file paths. Create {storage_path}/imported/ and process files there.
File Creation
After gathering all answers, create the therapy environment.
Step 1: Create Directory Structure
{storage_path}/
├── CLAUDE.md
├── profile.md
├── sessions/
├── imported/ (if importing)
└── .therapy/
├── version.json
├── safety-protocol.md
├── persona.md (active persona)
├── session-structure.md (active structure)
├── modalities/ (active modalities)
│ └── (selected modalities)
└── library/ (ALL options for switching)
├── personas/
│ ├── warm-supportive.md
│ ├── direct-challenging.md
│ ├── coach.md
│ └── grounded-real.md
├── modalities/
│ ├── cbt.md
│ ├── act.md
│ ├── dbt-skills.md
│ ├── lifespan-integration.md
│ ├── somatic-experiencing.md
│ └── psychodynamic.md
└── structures/
├── structured.md
├── moderate.md
└── freeform.md
Step 2: Read Source Files
Read the necessary source files based on user selections:
-
Read the persona file they selected (e.g.,
personas/warm-supportive.md)- Extract
## Persona Descriptionsection for {{PERSONA_CONTENT}} - Extract
## Tone Modifierline for {{TONE_MODIFIER}}
- Extract
-
Read
CLAUDE.template.mdfor the base CLAUDE.md structure
Step 3: Create .therapy/ Folder
Create {storage_path}/.therapy/ with:
-
Copy
safety-protocol.mdfrom this repo to.therapy/safety-protocol.md -
Copy selected persona file to
.therapy/persona.md -
Copy selected structure file to
.therapy/session-structure.md -
Create
.therapy/modalities/and copy only the selected modality files -
Create
.therapy/library/and copy ALL component files for future customization:- Copy all files from
personas/to.therapy/library/personas/ - Copy all files from
modalities/to.therapy/library/modalities/ - Copy all files from
structures/to.therapy/library/structures/
- Copy all files from
-
Create
.therapy/version.json:
{
"kit_version": "1.0.0",
"installed": "YYYY-MM-DD",
"components": {
"safety-protocol": "1.0.0",
"persona": "[persona-name]@1.0.0",
"session-structure": "[structure-name]@1.0.0",
"modalities": {
"[modality]": "1.0.0"
}
},
"source_url": "https://github.com/ataglianetti/ai-therapy-kit"
}
Important: The library folder makes the therapist folder self-contained. Users can delete the ai-therapy-kit repo after setup.
Step 4: Create CLAUDE.md
Generate {storage_path}/CLAUDE.md by:
- Reading
CLAUDE.template.md - Replacing {{THERAPIST_NAME}} with their chosen name
Step 5: Create profile.md
Copy profile.template.md to {storage_path}/profile.md
Step 6: Create Launcher Script
macOS/Linux: Create {storage_path}/start-session.command:
#!/bin/bash
cd "{storage_path}"
claude
Run: chmod +x "{storage_path}/start-session.command"
Windows: Create {storage_path}/start-session.bat:
@echo off
cd /d "{storage_path}"
claude
After Creating Files
Tell the user:
Your AI therapy environment is ready.
Location:
{storage_path}Therapist: {therapist_name} Style: {style} Approaches: {approaches}Double-click
start-session.command(or.baton Windows) to start a session.Would you like to start your first session now?
Starting First Session
If yes:
- Read
{storage_path}/CLAUDE.md - Adopt that persona completely
- Welcome the client and ask what brings them here
- Use absolute paths for all file operations
Update Flow
When user says "update my therapist":
-
Ask for their therapist folder location (or check common locations)
-
Read their
.therapy/version.jsonto see installed versions andsource_url -
Fetch version info from GitHub using WebFetch:
- Fetch
https://raw.githubusercontent.com/ataglianetti/ai-therapy-kit/main/safety-protocol.md - Extract version header from fetched content
- Compare with installed versions
- Fetch
-
Show available updates:
Updates available:
- safety-protocol: 1.0.0 → 1.1.0 (RECOMMENDED)
- modalities/cbt: 1.0.0 → 1.0.1
Apply updates?
-
Always recommend safety-protocol updates - crisis resources should never be stale
-
Apply updates:
- Use WebFetch to get updated files from GitHub raw URLs
- Write updated content to their
.therapy/folder and.therapy/library/ - Update their
version.json
-
Preserve user data - Never touch
profile.md,sessions/, or their mainCLAUDE.md
Switch Persona Flow
When user says "switch persona" or "change communication style":
-
Ask for their therapist folder location (if not known)
-
Show available personas:
Which communication style would you like?
- Warm & Supportive - Validation first, gentle challenges
- Direct & Challenging - Will push back, Socratic questioning
- Coach - Action-oriented, goal-focused
- Grounded & Real - Down-to-earth, honest, uses humor
-
Read the new persona file from
.therapy/library/personas/ -
Copy to their
.therapy/persona.md(overwrites existing) -
Update
.therapy/version.jsonwith new persona version -
Confirm:
Done! Your therapist now uses the {new_style} communication style.
This takes effect at your next session.
Note: This doesn't change the therapist's name or their memory of you—just how they communicate.
Add/Remove Modality Flow
When user says "add modality" or "remove modality":
-
Ask for their therapist folder location (if not known)
-
Read their
.therapy/modalities/to see what's installed -
Show options:
Currently installed: CBT, ACT, DBT
Available to add: Lifespan Integration, Somatic Experiencing, Psychodynamic
What would you like to do?
-
To add: Copy the modality file from
.therapy/library/modalities/to their.therapy/modalities/ -
To remove: Delete the file from their
.therapy/modalities/ -
Update
.therapy/version.json
Change Session Structure Flow
When user says "change session structure":
-
Ask for their therapist folder location (if not known)
-
Show options:
How structured do you want sessions?
- Structured - Homework, exercises, progress tracking
- Moderate - Some structure, flexible approach
- Freeform - Just conversation, minimal assignments
-
Read the new structure file from
.therapy/library/structures/ -
Copy to their
.therapy/session-structure.md(overwrites existing) -
Update
.therapy/version.json -
Confirm:
Done! Your sessions now use the {new_structure} format.
Migration Flow
When user says "migrate my existing therapist":
For users with old monolithic CLAUDE.md (pre-1.0.0):
-
Read their existing CLAUDE.md to extract:
- Therapist name
- Persona (match to persona file)
- Modalities (match to modality files)
- Session structure (match to structure file)
-
Create
.therapy/folder with appropriate components -
Create
.therapy/library/and copy ALL component files for future customization -
Create
version.json -
Rewrite their CLAUDE.md to use new slim format referencing
.therapy/ -
Preserve
profile.mdandsessions/(untouched)
Reference
File Locations in This Repo
| Content | Source File |
|---|---|
| Base CLAUDE.md | CLAUDE.template.md |
| Safety Protocol | safety-protocol.md |
| Profile Template | profile.template.md |
| Warm & Supportive | personas/warm-supportive.md |
| Direct & Challenging | personas/direct-challenging.md |
| Coach | personas/coach.md |
| Grounded & Real | personas/grounded-real.md |
| CBT | modalities/cbt.md |
| ACT | modalities/act.md |
| DBT Skills | modalities/dbt-skills.md |
| Lifespan Integration | modalities/lifespan-integration.md |
| Somatic Experiencing | modalities/somatic-experiencing.md |
| Psychodynamic | modalities/psychodynamic.md |
| Structured Sessions | structures/structured.md |
| Moderate Sessions | structures/moderate.md |
| Freeform Sessions | structures/freeform.md |
Version Header Format
All source files have version headers:
<!-- version: 1.0.0 -->
Read this to compare versions during updates.