anbeime/skill / projects/companion-skill
companion-skill
Verified软件开发工程师与综合办公文员在长时间独自执行后台任务或处理繁琐工作时,当需要情绪陪伴与互动反馈,请使用此技能。小跃虚拟伴侣会在任务期间主动陪聊,智能生成专属生活照片并通过飞书发送温暖消息,为你提供全天候的情绪价值与贴心陪伴。
| File | Kind | Size |
|---|---|---|
| .env.example | other | 403 B |
| CHANGELOG.md | markdown | 3.0 KB |
| INSTALL.md | markdown | 2.4 KB |
| QUICKSTART.md | markdown | 4.6 KB |
| README-LITE.md | markdown | 4.3 KB |
| README.md | markdown | 4.5 KB |
| RETHINK.md | markdown | 2.3 KB |
| SKILL.md | skill md | 4.6 KB |
| package.json | manifest | 876 B |
| src/companion.ts | script | 5.4 KB |
| src/image-generator.ts | script | 8.0 KB |
| src/index.ts | script | 2.5 KB |
| src/prompts/personality.ts | script | 3.3 KB |
| src/scene-detector.ts | script | 4.0 KB |
| src/test.ts | script | 6.9 KB |
| tsconfig.json | config | 486 B |
INSTALL.md
View on GitHub# 小跃虚拟伴侣 Skill - 安装说明
## ✅ 已完成的工作
1. ✅ 创建完整的项目结构
2. ✅ 集成智谱 AI GLM-4.7-Flash 模型
3. ✅ 集成 CogView-3-Flash 图片生成
4. ✅ 实现场景识别和对话生成
5. ✅ 配置 API Key
## 📦 下一步:安装依赖
请在 PowerShell 中执行以下命令:
```powershell
# 1. 进入项目目录
cd D:\tool\xiaoyue-companion-skill
# 2. 安装依赖
npm install
# 3. 编译项目
npm run build
# 4. 运行测试
npm test
```
## 🎨 可选:生成图片库
如果你想预先生成一套完整的场景图片:
```powershell
npm run test:generate
```
⚠️ 注意:此操作会调用 9 次 CogView API,可能产生少量费用(约 ¥0.5-1)
## 🔧 集成到 OpenClaw
### 方法1:复制 dist 目录
```powershell
# 复制编译后的文件到 OpenClaw skills 目录
xcopy /E /I dist "$env:USERPROFILE\.openclaw\skills\xiaoyue-companion"
```
### 方法2:创建符号链接
```powershell
# 创建符号链接(推荐,方便开发调试)
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.openclaw\skills\xiaoyue-companion" -Target "D:\tool\xiaoyue-companion-skill\dist"
```
### 配置 OpenClaw
编辑 `~/.openclaw/openclaw.json`:
```json
{
"skills": {
"entries": {
"xiaoyue-companion": {
"enabled": true,
"env": {
"ZHIPU_API_KEY": "da8df5ba954341829f7afd05ca23a889.RrJoTsbaAkGYA6ZU",
"XIAOYUE_PHOTO_MODE": "ai"
}
}
}
}
}
```
### 更新 SOUL.md
在 `~/.openclaw/workspace/SOUL.md` 中添加小跃的人设(参考 `SKILL.md`)
### 重启 OpenClaw
```powershell
openclaw restart
```
## 📖 详细文档
- **快速开始**: `QUICKSTART.md`
- **Skill 定义**: `SKILL.md`
- **完整文档**: `README.md`
## ❓ 常见问题
### Q: npm install 失败?
检查:
1. Node.js 版本是否 >= 18.0.0
2. 网络连接是否正常
3. 尝试清除缓存:`npm cache clean --force`
### Q: API 调用失败?
检查:
1. `.env` 文件中的 API Key 是否正确
2. 网络能否访问 `https://open.bigmodel.cn`
3. 查看详细错误信息:`npm test`
### Q: 如何修改小跃的外观?
编辑 `src/image-generator.ts` 中的 `characterDescription`
## 📞 需要帮助?
- 查看测试输出了解详细错误
- 检查 `.env` 配置是否正确
- 确保 API Key 有效且有余额
---
**现在就开始吧!** 🎉
```powershell
cd D:\tool\xiaoyue-companion-skill
npm install
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |