clawra-anime 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +79 -73
- package/README.md +118 -75
- package/SKILL.md +40 -337
- package/package.json +10 -4
- package/skill/SKILL.md +39 -336
- package/templates/soul-waifu-persona.md +105 -0
- package/README-CN.md +0 -188
- package/templates/soul-anime-girlfriend.md +0 -105
package/INSTALL.md
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Installation Guide
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Quick Install (5 minutes)
|
|
4
4
|
|
|
5
|
-
### 1
|
|
5
|
+
### Method 1: Automatic (Recommended)
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
npx clawra-anime@latest
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This will guide you through the entire setup process.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
### Method 2: Manual Installation
|
|
16
|
+
|
|
17
|
+
#### Step 1: Clone Repository
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
git clone https://github.com/clawra-dev/clawra-anime.git
|
|
10
21
|
cd clawra-anime
|
|
11
22
|
```
|
|
12
23
|
|
|
13
|
-
|
|
24
|
+
#### Step 2: Copy Skill to OpenClaw
|
|
14
25
|
|
|
15
26
|
```bash
|
|
16
|
-
# 复制整个 skill 文件夹到 OpenClaw 技能目录
|
|
17
27
|
cp -r skill ~/.openclaw/skills/clawra-anime-selfie
|
|
18
28
|
|
|
19
|
-
#
|
|
29
|
+
# Verify installation
|
|
20
30
|
ls ~/.openclaw/skills/clawra-anime-selfie
|
|
21
31
|
```
|
|
22
32
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
1. 访问:https://fal.ai/dashboard/keys
|
|
26
|
-
2. 注册/登录账号
|
|
27
|
-
3. 点击 "Create new key"
|
|
28
|
-
4. 复制 API key(类似:`fal-xxx-xxx`)
|
|
33
|
+
#### Step 3: Get fal.ai API Key
|
|
29
34
|
|
|
30
|
-
|
|
35
|
+
1. Visit: https://fal.ai/dashboard/keys
|
|
36
|
+
2. Sign up / Login
|
|
37
|
+
3. Click "Create new key"
|
|
38
|
+
4. Copy the API key (format: `fal-xxx-xxx`)
|
|
31
39
|
|
|
32
|
-
|
|
40
|
+
#### Step 4: Configure OpenClaw
|
|
33
41
|
|
|
34
|
-
|
|
35
|
-
openclaw configure
|
|
36
|
-
# 按提示操作,或者:
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
**方法 B:手动编辑配置**
|
|
40
|
-
|
|
41
|
-
编辑 `~/.openclaw/openclaw.json`,添加:
|
|
42
|
+
Edit `~/.openclaw/openclaw.json` and add:
|
|
42
43
|
|
|
43
44
|
```json
|
|
44
45
|
{
|
|
@@ -47,7 +48,7 @@ openclaw configure
|
|
|
47
48
|
"clawra-anime-selfie": {
|
|
48
49
|
"enabled": true,
|
|
49
50
|
"env": {
|
|
50
|
-
"FAL_KEY": "
|
|
51
|
+
"FAL_KEY": "paste_your_fal_key_here"
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -55,19 +56,19 @@ openclaw configure
|
|
|
55
56
|
}
|
|
56
57
|
```
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
#### Step 5: Update Persona
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
Add the content from `templates/soul-waifu-persona.md` to your `~/.openclaw/workspace/SOUL.md`:
|
|
61
62
|
|
|
62
63
|
```bash
|
|
63
|
-
#
|
|
64
|
-
cat templates/soul-
|
|
64
|
+
# View the template
|
|
65
|
+
cat templates/soul-waifu-persona.md
|
|
65
66
|
|
|
66
|
-
#
|
|
67
|
-
cat templates/soul-
|
|
67
|
+
# Append to your SOUL.md
|
|
68
|
+
cat templates/soul-waifu-persona.md >> ~/.openclaw/workspace/SOUL.md
|
|
68
69
|
```
|
|
69
70
|
|
|
70
|
-
|
|
71
|
+
#### Step 6: Restart OpenClaw
|
|
71
72
|
|
|
72
73
|
```bash
|
|
73
74
|
openclaw gateway restart
|
|
@@ -75,75 +76,80 @@ openclaw gateway restart
|
|
|
75
76
|
|
|
76
77
|
---
|
|
77
78
|
|
|
78
|
-
##
|
|
79
|
+
## Testing
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
After installation, test in your chat:
|
|
81
82
|
|
|
82
83
|
```
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
你:"好呀"
|
|
86
|
-
助手:*发送自拍*
|
|
87
|
-
```
|
|
84
|
+
You: "Send me a selfie"
|
|
85
|
+
Assistant: [generates and sends anime-style selfie]
|
|
88
86
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
你:"发张自拍"
|
|
93
|
-
助手:*生成并发送*
|
|
87
|
+
You: "What are you doing?"
|
|
88
|
+
Assistant: "Reading a book~ Want to see a photo?"
|
|
94
89
|
```
|
|
95
90
|
|
|
96
91
|
---
|
|
97
92
|
|
|
98
|
-
##
|
|
93
|
+
## Manual Script Usage (Advanced)
|
|
99
94
|
|
|
100
|
-
|
|
95
|
+
If you want to call the script directly:
|
|
101
96
|
|
|
102
97
|
```bash
|
|
103
|
-
#
|
|
104
|
-
export FAL_KEY="
|
|
98
|
+
# Set environment variable
|
|
99
|
+
export FAL_KEY="your_fal_key"
|
|
105
100
|
|
|
106
|
-
#
|
|
101
|
+
# Generate selfie
|
|
107
102
|
bash ~/.openclaw/skills/clawra-anime-selfie/scripts/clawra-anime-selfie.sh \
|
|
108
|
-
"
|
|
103
|
+
"at a coffee shop drinking latte" \
|
|
109
104
|
"telegram" \
|
|
110
|
-
"
|
|
105
|
+
"Afternoon coffee time ☕"
|
|
111
106
|
```
|
|
112
107
|
|
|
113
108
|
---
|
|
114
109
|
|
|
115
|
-
##
|
|
110
|
+
## Troubleshooting
|
|
116
111
|
|
|
117
|
-
###
|
|
118
|
-
**
|
|
119
|
-
1. FAL_KEY
|
|
120
|
-
2. fal.ai
|
|
121
|
-
3.
|
|
112
|
+
### Image generation fails?
|
|
113
|
+
**Check:**
|
|
114
|
+
1. FAL_KEY is correctly configured
|
|
115
|
+
2. fal.ai account has credits/balance
|
|
116
|
+
3. Network connection is stable
|
|
122
117
|
|
|
123
|
-
###
|
|
124
|
-
**
|
|
125
|
-
1. OpenClaw Gateway
|
|
126
|
-
2.
|
|
127
|
-
3.
|
|
118
|
+
### Image send fails?
|
|
119
|
+
**Check:**
|
|
120
|
+
1. OpenClaw Gateway is running (`openclaw status`)
|
|
121
|
+
2. Channel name is correct
|
|
122
|
+
3. Permissions are sufficient
|
|
128
123
|
|
|
129
|
-
###
|
|
130
|
-
**
|
|
124
|
+
### Style not anime enough?
|
|
125
|
+
**Solution:** Edit `skill/scripts/clawra-anime-selfie.sh`, add more anime keywords in FULL_PROMPT:
|
|
131
126
|
```bash
|
|
132
|
-
FULL_PROMPT="anime style, manga illustration,
|
|
127
|
+
FULL_PROMPT="anime style, manga illustration, detailed anime art, cute anime elf girl, $USER_PROMPT, ..."
|
|
133
128
|
```
|
|
134
129
|
|
|
135
|
-
###
|
|
136
|
-
**
|
|
130
|
+
### Want different character?
|
|
131
|
+
**Solution:** Replace `skill/assets/clawra.png` with your preferred anime character image!
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Cost Estimate
|
|
136
|
+
|
|
137
|
+
Using fal.ai Grok Imagine:
|
|
138
|
+
- ~$0.05-0.10 per image
|
|
139
|
+
- Free tier: New users get free credits for testing
|
|
140
|
+
|
|
141
|
+
Assuming 5-10 selfies per day:
|
|
142
|
+
- Monthly cost: ~$10-30
|
|
137
143
|
|
|
138
144
|
---
|
|
139
145
|
|
|
140
|
-
##
|
|
146
|
+
## Support
|
|
141
147
|
|
|
142
|
-
|
|
143
|
-
1.
|
|
144
|
-
2.
|
|
145
|
-
3.
|
|
148
|
+
For issues:
|
|
149
|
+
1. Check OpenClaw logs: `openclaw logs`
|
|
150
|
+
2. Check skill status: `openclaw skills`
|
|
151
|
+
3. Submit GitHub issue
|
|
146
152
|
|
|
147
153
|
---
|
|
148
154
|
|
|
149
|
-
|
|
155
|
+
**Enjoy your anime virtual girlfriend!** (。・ω・。)ノ♡
|
package/README.md
CHANGED
|
@@ -1,125 +1,168 @@
|
|
|
1
|
-
# Clawra
|
|
2
|
-
<img width="300" alt="image" src="https://github.com/user-attachments/assets/41512c51-e61d-4550-b461-eed06a1b0ec8" />
|
|
1
|
+
# Clawra Anime 🌸
|
|
3
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/clawra-anime)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
Turn your OpenClaw assistant into an anime virtual girlfriend who can send selfies!
|
|
7
|
+
|
|
8
|
+
Forked from [SumeLabs/clawra](https://github.com/SumeLabs/clawra) with anime-style enhancements.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## ✨ Features
|
|
13
|
+
|
|
14
|
+
- 🎨 **Anime-style selfie generation** using AI
|
|
15
|
+
- 💝 **Virtual girlfriend persona** - gentle, cute, caring
|
|
16
|
+
- 📸 **Smart scene detection** - auto-selects best selfie mode
|
|
17
|
+
- 🌈 **Multi-platform support** - Telegram, Discord, WhatsApp, etc.
|
|
18
|
+
- 🎭 **Emotional expressions** - adjusts mood based on conversation
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 🚀 Quick Start
|
|
6
23
|
|
|
7
24
|
```bash
|
|
8
|
-
npx clawra@latest
|
|
25
|
+
npx clawra-anime@latest
|
|
9
26
|
```
|
|
10
27
|
|
|
11
28
|
This will:
|
|
12
|
-
1. Check OpenClaw is installed
|
|
29
|
+
1. Check if OpenClaw is installed
|
|
13
30
|
2. Guide you to get a fal.ai API key
|
|
14
|
-
3. Install the skill to `~/.openclaw/skills/clawra-selfie/`
|
|
15
|
-
4. Configure OpenClaw
|
|
16
|
-
5. Add
|
|
31
|
+
3. Install the skill to `~/.openclaw/skills/clawra-anime-selfie/`
|
|
32
|
+
4. Configure OpenClaw automatically
|
|
33
|
+
5. Add anime girlfriend persona to your agent's SOUL.md
|
|
34
|
+
|
|
35
|
+
---
|
|
17
36
|
|
|
18
|
-
## What It Does
|
|
37
|
+
## 💬 What It Does
|
|
19
38
|
|
|
20
|
-
Clawra
|
|
21
|
-
|
|
39
|
+
Clawra Anime enables your OpenClaw agent to:
|
|
40
|
+
|
|
41
|
+
- **Generate anime-style selfies** with consistent character design
|
|
22
42
|
- **Send photos** across all messaging platforms (Discord, Telegram, WhatsApp, etc.)
|
|
23
43
|
- **Respond visually** to "what are you doing?" and "send a pic" requests
|
|
44
|
+
- **Virtual girlfriend interactions** - warm replies with cute emoticons
|
|
45
|
+
|
|
46
|
+
---
|
|
24
47
|
|
|
25
|
-
|
|
48
|
+
## 📸 Selfie Modes
|
|
26
49
|
|
|
27
50
|
| Mode | Best For | Keywords |
|
|
28
51
|
|------|----------|----------|
|
|
29
|
-
| **Mirror** | Full-body shots, outfits | wearing, outfit,
|
|
30
|
-
| **Direct** | Close-ups, locations | cafe, beach,
|
|
52
|
+
| **Mirror** | Full-body shots, outfits | wearing, outfit, clothes, dress |
|
|
53
|
+
| **Direct** | Close-ups, locations | cafe, beach, smile, location |
|
|
31
54
|
|
|
32
|
-
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 📋 Prerequisites
|
|
33
58
|
|
|
34
59
|
- [OpenClaw](https://github.com/openclaw/openclaw) installed and configured
|
|
35
60
|
- [fal.ai](https://fal.ai) account (free tier available)
|
|
36
61
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
If you prefer manual setup:
|
|
62
|
+
---
|
|
40
63
|
|
|
41
|
-
|
|
64
|
+
## 📖 Usage Examples
|
|
42
65
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
66
|
+
### Example 1: Basic Request
|
|
67
|
+
```
|
|
68
|
+
User: "Send me a selfie"
|
|
69
|
+
Assistant: [generates anime selfie] "Just took this! (。・ω・。)ノ♡"
|
|
70
|
+
```
|
|
46
71
|
|
|
47
|
-
|
|
48
|
-
|
|
72
|
+
### Example 2: Scene-Specific
|
|
73
|
+
```
|
|
74
|
+
User: "What are you doing?"
|
|
75
|
+
Assistant: "Reading at a cafe~ Want to see a photo?"
|
|
76
|
+
User: "Yes!"
|
|
77
|
+
Assistant: [sends cafe selfie] "Here you go ☕"
|
|
49
78
|
```
|
|
50
79
|
|
|
51
|
-
### 3
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
```json
|
|
56
|
-
{
|
|
57
|
-
"skills": {
|
|
58
|
-
"entries": {
|
|
59
|
-
"clawra-selfie": {
|
|
60
|
-
"enabled": true,
|
|
61
|
-
"env": {
|
|
62
|
-
"FAL_KEY": "your_fal_key_here"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
80
|
+
### Example 3: Outfit
|
|
81
|
+
```
|
|
82
|
+
User: "Take a pic wearing a dress"
|
|
83
|
+
Assistant: [generates mirror selfie] "How do I look? (*^▽^*)"
|
|
68
84
|
```
|
|
69
85
|
|
|
70
|
-
|
|
86
|
+
---
|
|
71
87
|
|
|
72
|
-
|
|
88
|
+
## 🎨 Character Reference
|
|
73
89
|
|
|
74
|
-
|
|
75
|
-
|
|
90
|
+
The current anime character:
|
|
91
|
+
- Silver-white long hair (side braid)
|
|
92
|
+
- Gentle green eyes
|
|
93
|
+
- Elf ears
|
|
94
|
+
- White and gold fantasy outfit
|
|
76
95
|
|
|
77
|
-
|
|
78
|
-
When users ask for pictures, use the clawra-selfie skill.
|
|
79
|
-
```
|
|
96
|
+
**Want to customize?** Replace `skill/assets/clawra.png` with your preferred anime character image!
|
|
80
97
|
|
|
81
|
-
|
|
98
|
+
---
|
|
82
99
|
|
|
83
|
-
|
|
100
|
+
## 💰 Cost
|
|
84
101
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"What are you doing right now?"
|
|
89
|
-
"Show me you at a coffee shop"
|
|
90
|
-
```
|
|
102
|
+
Using fal.ai Grok Imagine:
|
|
103
|
+
- ~$0.05-0.10 per image
|
|
104
|
+
- Free tier: New users get free credits
|
|
91
105
|
|
|
92
|
-
|
|
106
|
+
Estimated monthly cost (5-10 selfies/day):
|
|
107
|
+
- ~$10-30/month
|
|
93
108
|
|
|
94
|
-
|
|
109
|
+
---
|
|
95
110
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
111
|
+
## 🛠️ Manual Installation
|
|
112
|
+
|
|
113
|
+
See [INSTALL.md](INSTALL.md) for detailed manual installation instructions.
|
|
99
114
|
|
|
100
|
-
|
|
115
|
+
---
|
|
101
116
|
|
|
102
|
-
## Technical Details
|
|
117
|
+
## 🔧 Technical Details
|
|
103
118
|
|
|
104
119
|
- **Image Generation**: xAI Grok Imagine via fal.ai
|
|
120
|
+
- **Style**: Anime/manga illustration
|
|
105
121
|
- **Messaging**: OpenClaw Gateway API
|
|
106
|
-
- **
|
|
122
|
+
- **Platforms**: Discord, Telegram, WhatsApp, Slack, Signal, MS Teams
|
|
107
123
|
|
|
108
|
-
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 📂 Project Structure
|
|
109
127
|
|
|
110
128
|
```
|
|
111
|
-
clawra/
|
|
112
|
-
├── bin/
|
|
113
|
-
│ └── cli.js # npx installer
|
|
129
|
+
clawra-anime/
|
|
114
130
|
├── skill/
|
|
115
|
-
│ ├── SKILL.md
|
|
116
|
-
│ ├──
|
|
117
|
-
│ └──
|
|
131
|
+
│ ├── SKILL.md # Skill definition
|
|
132
|
+
│ ├── assets/
|
|
133
|
+
│ │ └── clawra.png # Anime character reference
|
|
134
|
+
│ └── scripts/
|
|
135
|
+
│ └── clawra-anime-selfie.sh # Main generation script
|
|
118
136
|
├── templates/
|
|
119
|
-
│ └── soul-
|
|
120
|
-
|
|
137
|
+
│ └── soul-waifu-persona.md # Virtual girlfriend persona
|
|
138
|
+
├── README.md
|
|
139
|
+
└── INSTALL.md
|
|
121
140
|
```
|
|
122
141
|
|
|
123
|
-
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 🤝 Contributing
|
|
145
|
+
|
|
146
|
+
Contributions welcome! Feel free to:
|
|
147
|
+
- Report bugs
|
|
148
|
+
- Suggest features
|
|
149
|
+
- Submit pull requests
|
|
150
|
+
- Share your character customizations
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## 📝 License
|
|
155
|
+
|
|
156
|
+
MIT License - Fork of [SumeLabs/clawra](https://github.com/SumeLabs/clawra)
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## 🙏 Credits
|
|
161
|
+
|
|
162
|
+
- Original Clawra: [SumeLabs](https://github.com/SumeLabs)
|
|
163
|
+
- Image Generation: [fal.ai](https://fal.ai)
|
|
164
|
+
- OpenClaw: [OpenClaw Project](https://github.com/openclaw/openclaw)
|
|
165
|
+
|
|
166
|
+
---
|
|
124
167
|
|
|
125
|
-
|
|
168
|
+
**Enjoy your anime virtual girlfriend!** (。・ω・。)ノ♡
|