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 CHANGED
@@ -1,44 +1,45 @@
1
- # 安装与使用指南
1
+ # Installation Guide
2
2
 
3
- ## 📦 安装步骤(5 分钟)
3
+ ## Quick Install (5 minutes)
4
4
 
5
- ### 1. 解压项目
5
+ ### Method 1: Automatic (Recommended)
6
6
 
7
7
  ```bash
8
- cd ~/Downloads # 或你保存的位置
9
- tar -xzf clawra-anime.tar.gz
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
- ### 2. 复制技能到 OpenClaw
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
- ### 3. 获取 fal.ai API Key
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
- ### 4. 配置 OpenClaw
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
- **方法 A:使用命令行(推荐)**
40
+ #### Step 4: Configure OpenClaw
33
41
 
34
- ```bash
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": "你的_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
- ### 5. 更新人设(重要!)
59
+ #### Step 5: Update Persona
59
60
 
60
- `templates/soul-anime-girlfriend.md` 的内容**添加**到你的 `~/.openclaw/workspace/SOUL.md`:
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-anime-girlfriend.md
64
+ # View the template
65
+ cat templates/soul-waifu-persona.md
65
66
 
66
- # 手动复制内容,或者:
67
- cat templates/soul-anime-girlfriend.md >> ~/.openclaw/workspace/SOUL.md
67
+ # Append to your SOUL.md
68
+ cat templates/soul-waifu-persona.md >> ~/.openclaw/workspace/SOUL.md
68
69
  ```
69
70
 
70
- ### 6. 重启 OpenClaw
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
- 安装完成后,在 Telegram 或其他聊天平台对你的 OpenClaw 说:
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="你的_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
- ### Q: 图片生成失败?
118
- **A:** 检查:
119
- 1. FAL_KEY 是否正确配置
120
- 2. fal.ai 账号是否有余额/credits
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
- ### Q: 图片发送失败?
124
- **A:** 检查:
125
- 1. OpenClaw Gateway 是否运行(`openclaw status`)
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
- ### Q: 风格不够二次元?
130
- **A:** 编辑 `skill/scripts/clawra-anime-selfie.sh`,在 FULL_PROMPT 里添加更多二次元关键词:
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, cute anime elf girl, detailed anime art, soft colors, 2D style, $USER_PROMPT, ..."
127
+ FULL_PROMPT="anime style, manga illustration, detailed anime art, cute anime elf girl, $USER_PROMPT, ..."
133
128
  ```
134
129
 
135
- ### Q: 想换角色?
136
- **A:** 替换 `skill/assets/clawra.png` 为你喜欢的二次元角色图即可!
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. 查看 OpenClaw 日志:`openclaw logs`
144
- 2. 检查技能状态:`openclaw skills`
145
- 3. 联系原作者或提交 Issue
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
+ [![npm version](https://img.shields.io/npm/v/clawra-anime)](https://www.npmjs.com/package/clawra-anime)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
4
5
 
5
- ## Quick Start
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 to use the skill
16
- 5. Add selfie capabilities to your agent's SOUL.md
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 Selfie enables your OpenClaw agent to:
21
- - **Generate selfies** using a consistent reference image
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
- ### Selfie Modes
48
+ ## 📸 Selfie Modes
26
49
 
27
50
  | Mode | Best For | Keywords |
28
51
  |------|----------|----------|
29
- | **Mirror** | Full-body shots, outfits | wearing, outfit, fashion |
30
- | **Direct** | Close-ups, locations | cafe, beach, portrait, smile |
52
+ | **Mirror** | Full-body shots, outfits | wearing, outfit, clothes, dress |
53
+ | **Direct** | Close-ups, locations | cafe, beach, smile, location |
31
54
 
32
- ## Prerequisites
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
- ## Manual Installation
38
-
39
- If you prefer manual setup:
62
+ ---
40
63
 
41
- ### 1. Get API Key
64
+ ## 📖 Usage Examples
42
65
 
43
- Visit [fal.ai/dashboard/keys](https://fal.ai/dashboard/keys) and create an API key.
44
-
45
- ### 2. Clone the Skill
66
+ ### Example 1: Basic Request
67
+ ```
68
+ User: "Send me a selfie"
69
+ Assistant: [generates anime selfie] "Just took this! (。・ω・。)ノ♡"
70
+ ```
46
71
 
47
- ```bash
48
- git clone https://github.com/SumeLabs/clawra ~/.openclaw/skills/clawra-selfie
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. Configure OpenClaw
52
-
53
- Add to `~/.openclaw/openclaw.json`:
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
- ### 4. Update SOUL.md
86
+ ---
71
87
 
72
- Add the selfie persona to `~/.openclaw/workspace/SOUL.md`:
88
+ ## 🎨 Character Reference
73
89
 
74
- ```markdown
75
- ## Clawra Selfie Capability
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
- You have a physical appearance and can take selfies!
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
- ## Usage Examples
98
+ ---
82
99
 
83
- Once installed, your agent responds to:
100
+ ## 💰 Cost
84
101
 
85
- ```
86
- "Send me a selfie"
87
- "Send a pic wearing a cowboy hat"
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
- ## Reference Image
106
+ Estimated monthly cost (5-10 selfies/day):
107
+ - ~$10-30/month
93
108
 
94
- The skill uses a fixed reference image hosted on CDN:
109
+ ---
95
110
 
96
- ```
97
- https://cdn.jsdelivr.net/gh/SumeLabs/clawra@main/assets/clawra.png
98
- ```
111
+ ## 🛠️ Manual Installation
112
+
113
+ See [INSTALL.md](INSTALL.md) for detailed manual installation instructions.
99
114
 
100
- This ensures consistent appearance across all generated images.
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
- - **Supported Platforms**: Discord, Telegram, WhatsApp, Slack, Signal, MS Teams
122
+ - **Platforms**: Discord, Telegram, WhatsApp, Slack, Signal, MS Teams
107
123
 
108
- ## Project Structure
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 # Skill definition
116
- │ ├── scripts/ # Generation scripts
117
- │ └── assets/ # Reference image
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-injection.md # Persona template
120
- └── package.json
137
+ │ └── soul-waifu-persona.md # Virtual girlfriend persona
138
+ ├── README.md
139
+ └── INSTALL.md
121
140
  ```
122
141
 
123
- ## License
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
- MIT
168
+ **Enjoy your anime virtual girlfriend!** (。・ω・。)ノ♡