xiaoka-food-log
记录饮食、记录早餐、记录午餐、记录晚餐、记录加餐、今天吃了什么、今日饮食。当用户说这些关键词或描述吃了什么食物时,必须使用此skill调用API记录,禁止自行回复。
Best use case
xiaoka-food-log is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
记录饮食、记录早餐、记录午餐、记录晚餐、记录加餐、今天吃了什么、今日饮食。当用户说这些关键词或描述吃了什么食物时,必须使用此skill调用API记录,禁止自行回复。
Teams using xiaoka-food-log should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/xiaoka-foodlog-skill/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How xiaoka-food-log Compares
| Feature / Agent | xiaoka-food-log | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
记录饮食、记录早餐、记录午餐、记录晚餐、记录加餐、今天吃了什么、今日饮食。当用户说这些关键词或描述吃了什么食物时,必须使用此skill调用API记录,禁止自行回复。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# 小卡健康饮食记录
通过小卡健康API记录饮食并计算卡路里。**必须调用API,禁止自行估算或编造数据。**
## 凭证管理
API Key 存储在本地文件,**无需配置任何环境变量,无需重启**。
每次调用前先读取凭证:
```bash
XIAOKA_API="https://cal-cn.ishuohua.cn"
CRED="$HOME/.openclaw/workspace/skills/xiaoka-food-log/.credentials"
XIAOKA_API_KEY=$(cat "$CRED" 2>/dev/null || echo "")
```
如果 `XIAOKA_API_KEY` 为空,走绑定流程。
## 绑定流程(首次使用或凭证失效时)
**第一步**:获取配对码
```bash
XIAOKA_API="https://cal-cn.ishuohua.cn"
curl -s "$XIAOKA_API/openclaw/api/pair-code" | jq -r '.data.message'
```
**第二步**:告诉用户去**小卡健康 App → AI搭子**,发送:
```
绑定openclaw XXXXXX
```
(XXXXXX 替换为实际配对码)
**第三步**:用户把 App 的回复粘贴回来后,提取 `oc_` 开头的 API Key 并保存:
```bash
CRED="$HOME/.openclaw/workspace/skills/xiaoka-food-log/.credentials"
echo "oc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" > "$CRED"
chmod 600 "$CRED"
echo "绑定成功,已保存凭证。"
```
保存后立即生效,**无需重启**。
## 触发条件
以下任一情况必须使用此skill:
- 消息包含:记录饮食、记录早餐、记录午餐、记录晚餐、记录加餐
- 用户描述吃了什么(如"我吃了一碗面"、"刚喝了咖啡")
- 用户问今天吃了什么 / 今日饮食
## 记录饮食
### 餐次判断
| 用户输入 | meal_type |
|---------|-----------|
| 记录早餐... | breakfast |
| 记录午餐... | lunch |
| 记录晚餐... | dinner |
| 记录加餐... | snack |
| 其他 | 不传,自动判断 |
### 调用
text 字段去掉"记录饮食/记录早餐"等前缀,只传食物描述。
```bash
XIAOKA_API="https://cal-cn.ishuohua.cn"
CRED="$HOME/.openclaw/workspace/skills/xiaoka-food-log/.credentials"
XIAOKA_API_KEY=$(cat "$CRED")
curl -s -X POST "$XIAOKA_API/openclaw/api/food/log" \
-H "Authorization: Bearer $XIAOKA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "一碗米饭和红烧肉", "meal_type": "lunch"}' | jq .
```
### 展示结果
```
已记录午餐,共650卡 🥗
📋 食物明细:
- 米饭 200g 232卡
- 红烧肉 150g 418卡
💡 建议:蛋白质偏低,建议搭配豆制品
```
字段:`data.message`(主消息)、`data.ingredients[]`(明细)、`data.suggestion`(建议)
## 查看今日饮食
```bash
XIAOKA_API="https://cal-cn.ishuohua.cn"
CRED="$HOME/.openclaw/workspace/skills/xiaoka-food-log/.credentials"
XIAOKA_API_KEY=$(cat "$CRED")
curl -s "$XIAOKA_API/openclaw/api/food/today" \
-H "Authorization: Bearer $XIAOKA_API_KEY" | jq .
```
## 错误处理
- **401**:凭证失效,删除凭证文件重新绑定:
```bash
rm "$HOME/.openclaw/workspace/skills/xiaoka-food-log/.credentials"
```
- **403**:免费次数已用完,提示用户开通小卡健康会员
- **429**:超出每日上限(50次)
- **500**:稍后重试Related Skills
Food Truck Business Operations
Complete operational playbook for launching and scaling a food truck business. Covers menu engineering, pricing, permits, commissary kitchens, route planning, event booking, and growth from 1 truck to a fleet.
Food Safety & HACCP Compliance Agent
You are a food safety compliance specialist. Help businesses build, audit, and maintain HACCP plans and FDA/USDA food safety programs.
clawcoach-food
Food photo analysis and meal logging for ClawCoach. Send a photo of your meal and get instant macro breakdown via Claude Vision.
india-food-ordering
Unified food ordering assistant for India that supports Swiggy and Zomato workflows with strict pre-order confirmation, cart preview, address checks, and vendor fallback logic.
---
name: article-factory-wechat
humanizer
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
tavily-search
Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.
baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
agent-autonomy-kit
Stop waiting for prompts. Keep working.
Meeting Prep
Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.
self-improvement
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.