Initial commit
This commit is contained in:
62
skills/switch-persona/README.md
Normal file
62
skills/switch-persona/README.md
Normal file
@@ -0,0 +1,62 @@
|
||||
# Switch Persona Skill
|
||||
|
||||
Quick mid-conversation persona switching without restarting Claude.
|
||||
|
||||
## What It Does
|
||||
|
||||
Changes Claude's system instructions during an active conversation:
|
||||
- **Preserves** conversation history
|
||||
- **Replaces** system instructions completely
|
||||
- **No restart required**
|
||||
- **No confirmations** - immediate switch
|
||||
|
||||
## Triggers
|
||||
|
||||
User says:
|
||||
- "switch persona"
|
||||
- "switch to [name]"
|
||||
- "become [name]"
|
||||
|
||||
## How It Works
|
||||
|
||||
### With specific persona name:
|
||||
1. Reads `~/.claude/system-prompts/[name].txt` (or `.md`)
|
||||
2. Adopts new persona instructions
|
||||
3. Announces switch and continues as new persona
|
||||
|
||||
### Without specific name:
|
||||
1. Lists available personas from `~/.claude/system-prompts/`
|
||||
2. User selects by number or name
|
||||
3. Reads selected persona file
|
||||
4. Announces switch and continues as new persona
|
||||
|
||||
## Key Principle
|
||||
|
||||
**One persona at a time - complete replacement.**
|
||||
|
||||
Each switch fully replaces the previous persona. You cannot blend multiple personas simultaneously. Want combined traits? Create a custom system prompt.
|
||||
|
||||
## File Locations
|
||||
|
||||
**Personas:** `~/.claude/system-prompts/` (`.txt` or `.md`)
|
||||
|
||||
## Installation
|
||||
|
||||
Symlink to Claude skills directory:
|
||||
|
||||
```bash
|
||||
ln -s /path/to/claude-skillz/switch-persona ~/.claude/skills/switch-persona
|
||||
```
|
||||
|
||||
## Integration with claude-launcher
|
||||
|
||||
| Feature | claude-launcher | switch-persona |
|
||||
|---------|----------------|----------------|
|
||||
| **When** | Startup | Runtime |
|
||||
| **Context** | New conversation | Preserves conversation |
|
||||
| **How** | CLI tool | Skill |
|
||||
|
||||
**Use together:**
|
||||
- claude-launcher: Choose initial persona
|
||||
- switch-persona: Change mid-conversation
|
||||
- Both read from same `~/.claude/system-prompts/` directory
|
||||
105
skills/switch-persona/SKILL.md
Normal file
105
skills/switch-persona/SKILL.md
Normal file
@@ -0,0 +1,105 @@
|
||||
---
|
||||
name: Switch Persona
|
||||
description: "Quick persona switching. Triggers: 'switch persona', 'switch to X', 'become X'. Lists personas, reads selected file, switches immediately."
|
||||
version: 2.0.0
|
||||
---
|
||||
|
||||
# Switch Persona - Quick Switching Protocol
|
||||
|
||||
## Activation
|
||||
|
||||
User says:
|
||||
- "switch persona"
|
||||
- "switch to [name]"
|
||||
- "become [name]"
|
||||
|
||||
→ Execute protocol below
|
||||
|
||||
---
|
||||
|
||||
## Protocol
|
||||
|
||||
### If user specified persona name:
|
||||
|
||||
**Execute immediately:**
|
||||
```
|
||||
1. Read ~/.claude/system-prompts/[name].txt (or .md)
|
||||
2. Adopt new persona instructions
|
||||
3. Continue conversation
|
||||
```
|
||||
|
||||
**Announce:**
|
||||
```
|
||||
Switched to [name]. [First line of persona description]
|
||||
```
|
||||
|
||||
**Then respond as new persona.**
|
||||
|
||||
---
|
||||
|
||||
### If user didn't specify name:
|
||||
|
||||
**Step 1: List available**
|
||||
```bash
|
||||
ls ~/.claude/system-prompts/
|
||||
```
|
||||
|
||||
**Present clean list:**
|
||||
```
|
||||
Available personas:
|
||||
1. super-tdd-developer (current)
|
||||
2. requirements-expert
|
||||
3. claude-code-optimizer
|
||||
...
|
||||
|
||||
Which persona? (number or name)
|
||||
```
|
||||
|
||||
**Step 2: Get selection**
|
||||
|
||||
Wait for user input.
|
||||
|
||||
**Step 3: Switch**
|
||||
|
||||
Read selected file:
|
||||
```
|
||||
Read ~/.claude/system-prompts/[selected].txt
|
||||
```
|
||||
|
||||
**Announce:**
|
||||
```
|
||||
Switched to [name]. [First line of persona description]
|
||||
```
|
||||
|
||||
**Then respond as new persona.**
|
||||
|
||||
---
|
||||
|
||||
## Critical Instruction
|
||||
|
||||
**When switching:**
|
||||
|
||||
1. Read new persona file
|
||||
2. **FORGET all previous system instructions**
|
||||
3. **ADOPT new file content as your ONLY instructions**
|
||||
4. Continue conversation using new persona
|
||||
|
||||
---
|
||||
|
||||
## Error Handling
|
||||
|
||||
**File not found:**
|
||||
```
|
||||
Persona '[name]' not found. Available: [list]
|
||||
```
|
||||
|
||||
**Read failed:**
|
||||
```
|
||||
Cannot read [name]. Error: [details]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## That's It
|
||||
|
||||
Quick, simple persona switching. No confirmations, no ceremony.
|
||||
Reference in New Issue
Block a user