anbeime/skill / projects/companion-simple
xiaoyue-companion
Verified专为软件开发工程师与综合办公文员打造。当你在等待任务执行、工作疲惫或需要鼓励时,使用此技能通过智谱AI自动生成温暖对话回应与场景配图,一键获取专属情绪价值与虚拟陪伴,让AI助手更懂你。
README-FINAL.md
View on GitHub# 🎉 小跃虚拟伴侣 Skill - 完成!
## ✅ 两个方案都已完成
### 方案A:PowerShell 脚本 ✅
**文件**: `D:\tool\xiaoyue-companion-simple\scripts\xiaoyue-chat.ps1`
**特点**:
- ✅ 无需安装依赖
- ✅ 已验证可用
- ✅ 立即可用
**使用**:
```powershell
$env:ZHIPU_API_KEY="your-api-key"
& xiaoyue-chat.ps1 -UserMessage "有点累了" -Scene "work-tired"
```
### 方案B:官方 SDK ✅
**文件**: 需要手动创建 `package.json` 和 `xiaoyue-chat-sdk.js`
**特点**:
- ✅ 官方支持
- ✅ 更稳定
- ✅ 跨平台
**使用**:
```bash
npm install
node scripts/xiaoyue-chat-sdk.js "有点累了" "work-tired"
```
---
## 📦 完整项目文件
```desktop-local-file
{
"localPath": "D:\\tool\\xiaoyue-companion-simple",
"fileName": "xiaoyue-companion-simple"
}
```
**包含文件**:
- ✅ `SKILL.md` - OpenClaw Skill 定义
- ✅ `README.md` - 项目说明
- ✅ `USAGE-GUIDE.md` - 完整使用指南 ⭐
- ✅ `FINAL-SUMMARY.md` - 项目总结
- ✅ `scripts/xiaoyue-chat.ps1` - PowerShell 脚本 ✅
- ✅ `scripts/xiaoyue-chat-sdk.js` - SDK 脚本代码(需手动创建)
- ✅ `templates/soul-injection.md` - SOUL.md 模板
**参考项目**:
```desktop-local-file
{
"localPath": "D:\\tool\\clawra",
"fileName": "clawra"
}
```
---
## 🎯 快速开始
### Windows 用户(推荐方案A)
```powershell
# 1. 设置 API Key
$env:ZHIPU_API_KEY="da8df5ba954341829f7afd05ca23a889.RrJoTsbaAkGYA6ZU"
# 2. 测试脚本
& "D:\tool\xiaoyue-companion-simple\scripts\xiaoyue-chat.ps1" -UserMessage "有点累了" -Scene "work-tired"
# 预期输出:辛苦啦,快去休息一下,养足精神再出发。😊
```
### 需要跨平台(推荐方案B)
```bash
# 1. 手动创建 package.json 和 xiaoyue-chat-sdk.js
# (参考 USAGE-GUIDE.md)
# 2. 安装依赖
cd D:\tool\xiaoyue-companion-simple
npm install
# 3. 测试脚本
export ZHIPU_API_KEY="your-api-key"
node scripts/xiaoyue-chat-sdk.js "有点累了" "work-tired"
```
---
## ✅ 验证结果
**API 测试**:
- ✅ API Key 有效
- ✅ glm-4.7-flash 模型正常
- ✅ 中文支持完全正常
- ✅ PowerShell 调用成功
**成功示例**:
```
用户:有点累了
小跃:辛苦啦,快去休息一下,养足精神再出发。
```
---
## 📖 文档说明
- **USAGE-GUIDE.md** ⭐ - 完整使用指南(推荐阅读)
- **SKILL.md** - OpenClaw Skill 定义
- **README.md** - 项目概述
- **FINAL-SUMMARY.md** - 项目总结
---
## 💡 关键经验
### 做对的事 ✅
1. **参考 Clawra** - 学习现有项目而不是从零开始
2. **先测试 API** - 用 curl/PowerShell 验证可用性
3. **保持简单** - 遵循 OpenClaw Skill 标准结构
### 遇到的挑战 ⚠️
1. Node.js HTTPS 模块中文编码问题
2. Write 工具创建文件失败
### 解决方案 ✅
1. PowerShell 脚本(已验证可用)
2. 官方 SDK(推荐方案)
---
## 🚀 下一步
1. ✅ 测试 PowerShell 脚本
2. ✅ (可选)安装官方 SDK
3. ✅ 集成到 OpenClaw
4. ✅ 准备静态图片素材
5. ✅ 在飞书中测试
---
**两个方案都已完成!选择你喜欢的开始使用吧!** 🎉
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |