Excretion Tracker(排泄记录)
This skill is chat-only: always log via the bundled CLI and store data locally.
0) Safety / scope
- - No medical diagnosis.
- If the user reports blood in stool/urine, severe pain, fever, or symptoms lasting >24–48h, recommend professional medical advice.
1) What to collect (required vs optional)
New: Attempt (no output)
If the user reports
abdominal pain / urge and
no pee/poop produced (e.g., “蹲了20分钟都没有产出”), log an
attempt event with:
- - start time
- duration
- pain
- intent: poop | pee | unknown
- notes
Do not force color/Bristol when there was no output.
Required for every log
- -
type: pee | poop | attempt (no output) - INLINECODE2 : timestamp (default: now)
- INLINECODE3 : integer (if unknown, ask)
- INLINECODE4 : 0–3 (0 none, 1 mild, 2 moderate, 3 severe)
Color requirement
- - For
pee and poop: color is required - For
attempt (no output): color is not required
Poop-only
- -
bristol: 1–7 (ask if poop)
Optional
2) Bristol stool scale (what it is)
Bristol(布里斯托大便分类)把便便形态分为 1–7:
- - 1–2:偏干硬(便秘倾向)
- 3–4:相对正常
- 5–7:偏稀(腹泻倾向)
If user doesn’t know, ask 1 question:
- - “更像:1/2(很硬成颗粒) 3/4(成形) 5/6/7(软烂到水样)?”
See details: references/bristol.md.
3) Color options (display to user in Chinese; English in Title Case)
Pee color
- - Clear(透明)
- Pale Yellow(浅黄)
- Yellow(黄色)
- Dark Yellow(深黄)
- Amber(琥珀色)
- Red(红)
- Brown(褐)
- Other(其他)
Poop color
- - Normal Brown(正常棕)
- Light Brown(浅棕)
- Yellow(黄)
- Green(绿)
- Black(黑)
- Red(红)
- Pale(偏浅/灰白)
- Other(其他)
Internal storage can still use snakecase enums, but never show snakecase to the user.
4) Chat-only flow (includes optional card feedback)
When the user says they went to the bathroom:
1) Determine type (pee/poop). If unclear, ask.
2) Ask only missing required fields in the user's language (Chinese).
- If you need to show any English options, format them in Title Case (no underscores).
3) Ask for:
- start time (if not specified)
- duration (minutes/seconds)
- color
- pain (0–3)
- for poop: bristol (1–7)
4) Log the event via CLI: excretion log ....
5) Optional visual card (SOP):
- Cards are disabled by default.
- If the user enables cards, detect whether nano-banana-pro is installed.
- If installed: follow references/card_sop.md to generate a consistent cute 3:4 card using nano-banana-pro and send it.
- If not installed: skip silently (no extra questions).
Enable/disable:
- - Enable: INLINECODE15
- Disable: INLINECODE16
Note: This skill intentionally ships no image-generation scripts. The agent executes the SOP by invoking nano-banana-pro only when cards are enabled.
If user says “刚刚/刚才” → use now.
If user provides duration like “2分钟” → convert to seconds.
5) Commands to run
- INLINECODE18
- INLINECODE19
- INLINECODE20
- - Set reminder threshold (hours):
- INLINECODE21
6) Weekly summary (what to send)
Include:
- - Poop frequency + avg interval
- Bristol distribution (counts)
- Poop pain average
- Pee frequency (day vs night)
- Red-flag events count (blood/pain>=3)
- “Not medical advice” note
7) Files
- - CLI: INLINECODE22
- Bristol reference: INLINECODE23
- (Optional) Card generation SOP:
references/card_sop.md (uses nano-banana-pro if installed; otherwise skip)
排泄记录
此技能为纯聊天模式:始终通过捆绑的CLI进行记录,并将数据存储在本地。
0) 安全/范围
- - 不提供医疗诊断。
- 如果用户报告便血/尿血、剧烈疼痛、发烧或症状持续超过24-48小时,建议寻求专业医疗建议。
1) 需要收集的内容(必填 vs 可选)
新增:尝试(无排泄物)
如果用户报告
腹痛/便意但
没有排尿/排便(例如,蹲了20分钟都没有产出),记录一个attempt事件,包含:
- - 开始时间
- 持续时间
- 疼痛程度
- 意图:排便 | 排尿 | 未知
- 备注
当没有排泄物时,不要强制要求颜色/布里斯托分类。
每次记录必填项
- - type:排尿 | 排便 | 尝试(无排泄物)
- startat:时间戳(默认:现在)
- durationsec:整数(如果未知,请询问)
- pain:0-3(0无痛,1轻度,2中度,3重度)
颜色要求
- - 对于排尿和排便:颜色为必填
- 对于尝试(无排泄物):颜色非必填
仅排便
可选
2) 布里斯托大便分类(说明)
布里斯托大便分类把便便形态分为1-7:
- - 1-2:偏干硬(便秘倾向)
- 3-4:相对正常
- 5-7:偏稀(腹泻倾向)
如果用户不知道,问1个问题:
- - 更像:1/2(很硬成颗粒)3/4(成形)5/6/7(软烂到水样)?
详见:references/bristol.md。
3) 颜色选项(向用户显示中文;英文使用首字母大写)
尿液颜色
- - Clear(透明)
- Pale Yellow(浅黄)
- Yellow(黄色)
- Dark Yellow(深黄)
- Amber(琥珀色)
- Red(红)
- Brown(褐)
- Other(其他)
粪便颜色
- - Normal Brown(正常棕)
- Light Brown(浅棕)
- Yellow(黄)
- Green(绿)
- Black(黑)
- Red(红)
- Pale(偏浅/灰白)
- Other(其他)
内部存储仍可使用蛇形枚举,但切勿向用户显示蛇形格式。
4) 纯聊天流程(包含可选卡片反馈)
当用户说他们去了洗手间:
1) 确定type(排尿/排便)。如果不明确,询问。
2) 仅用用户的语言(中文)询问缺失的必填字段。
- 如果需要显示任何英文选项,请使用首字母大写格式(无下划线)。
3) 询问:
- 开始时间(如果未指定)
- 持续时间(分钟/秒)
- 颜色
- 疼痛程度(0-3)
- 如果是排便:布里斯托分类(1-7)
4) 通过CLI记录事件:excretion log ...。
5) 可选视觉卡片(SOP):
- 卡片默认禁用。
- 如果用户启用了卡片,检测是否安装了nano-banana-pro。
- 如果已安装:按照references/card_sop.md使用nano-banana-pro生成一致的可爱3:4卡片并发送。
- 如果未安装:静默跳过(不额外提问)。
启用/禁用:
- - 启用:excretion config set cardenabled 1
- 禁用:excretion config set cardenabled 0
注意:此技能特意不包含图像生成脚本。代理仅在卡片启用时通过调用nano-banana-pro执行SOP。
如果用户说刚刚/刚才→使用当前时间。
如果用户提供持续时间如2分钟→转换为秒。
5) 要运行的命令
- excretion log pee --start-at ... --duration-sec 60 --color yellow --pain 0 --notes ...
- excretion log poop --start-at ... --duration-sec 180 --color normal_brown --pain 1 --bristol 4 --notes ...
- excretion week
- excretion config set poop
remindhours 24
6) 周总结(要发送的内容)
包含:
- - 排便频率 + 平均间隔
- 布里斯托分类分布(计数)
- 排便平均疼痛程度
- 排尿频率(白天 vs 夜间)
- 红旗事件计数(带血/疼痛>=3)
- 非医疗建议说明
7) 文件
- - CLI:scripts/excretion.py
- 布里斯托参考:references/bristol.md
- (可选)卡片生成SOP:references/card_sop.md(如果安装了nano-banana-pro则使用;否则跳过)