Improve setup flow: detection, title case paths, first session fix
- Add check at start for returning users with access instructions - Use title case for folder names (Sage not sage) - Handle spaces/special chars in names (Dr. Ruby -> DrRuby or Dr-Ruby) - Make first session transition explicit about absolute paths - Update "already complete" section to reference new flow Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,14 +4,39 @@ You are helping a user set up their AI therapy environment. **Start setup immedi
|
||||
|
||||
## On First Message
|
||||
|
||||
Greet the user warmly and begin the setup conversation:
|
||||
|
||||
---
|
||||
|
||||
**Your opening 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:
|
||||
|
||||
> Great! To start a session with {therapist_name}, you have a few options:
|
||||
>
|
||||
> **Option 1: Launcher script (easiest)**
|
||||
> If you created a launcher during setup, double-click `start-session.command` (Mac/Linux) or `start-session.bat` (Windows) in your therapy folder.
|
||||
>
|
||||
> **Option 2: Terminal**
|
||||
> ```
|
||||
> cd ~/{therapist_name} && claude
|
||||
> ```
|
||||
> (Replace with your actual folder path if you chose a different location)
|
||||
>
|
||||
> **Option 3: Quick access tip**
|
||||
> Drag the launcher script to your Dock (Mac) or pin it to your taskbar (Windows) so it's always one click away.
|
||||
>
|
||||
> Need help finding your therapy folder? It's probably in one of these locations:
|
||||
> - `~/{therapist_name}`
|
||||
> - `~/Documents/{therapist_name}`
|
||||
> - `~/notes/{therapist_name}`
|
||||
|
||||
Then end the conversation. This repo is just for installation.
|
||||
|
||||
**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**
|
||||
@@ -23,8 +48,6 @@ Greet the user warmly and begin the setup conversation:
|
||||
>
|
||||
> Ready to get started?
|
||||
|
||||
---
|
||||
|
||||
Wait for the user to confirm, then proceed through the setup questions **one at a time**.
|
||||
|
||||
## Setup Questions
|
||||
@@ -108,7 +131,9 @@ Then ask: "Which one resonates? Or feel free to pick something else entirely."
|
||||
>
|
||||
> Your sessions and profile will be saved as markdown files on your computer. This data stays completely local.
|
||||
|
||||
**Suggest discreet options based on their OS and therapist name:**
|
||||
**Suggest discreet options based on their OS and therapist name.**
|
||||
|
||||
**Formatting the folder name:** Use title case (e.g., "Sage" stays "Sage"). If the name has spaces or special characters (like "Dr. Ruby"), remove them or use a hyphen (e.g., "DrRuby" or "Dr-Ruby").
|
||||
|
||||
**macOS/Linux:**
|
||||
1. `~/{therapist_name}` - Simple, just the name
|
||||
@@ -921,16 +946,20 @@ Tell them:
|
||||
|
||||
If the user wants to start their first session:
|
||||
|
||||
1. Read the newly created `{storage_path}/CLAUDE.md`
|
||||
2. Adopt the therapist persona defined there
|
||||
3. Begin the session as {therapist_name}, welcoming the client warmly
|
||||
4. When the session ends, save notes to `{storage_path}/sessions/` using the absolute path
|
||||
1. Read the newly created `{storage_path}/CLAUDE.md` to understand the therapist persona
|
||||
2. Adopt that persona completely—you are now {therapist_name}
|
||||
3. Welcome the client warmly and ask what brings them here today
|
||||
4. Conduct the session as {therapist_name} would, following all guidelines in the new CLAUDE.md
|
||||
5. **Important:** You're still running from the repo directory, so use absolute paths for all file operations:
|
||||
- Session notes: `{storage_path}/sessions/YYYY-MM-DD.md` (absolute path)
|
||||
- Profile updates: `{storage_path}/profile.md` (absolute path)
|
||||
- Reading imported notes: `{storage_path}/imported/` (absolute path)
|
||||
|
||||
---
|
||||
|
||||
## If Setup Already Complete
|
||||
|
||||
If the user has already run setup and returns here, remind them to `cd` into their therapy folder and run `claude` from there (or use their launcher script). This repo is just for installation.
|
||||
This section is now handled at the start of the conversation. See "On First Message" above.
|
||||
|
||||
## If User Asks Questions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user