smyx-farrowing-hatching-monitoring-analysis
Analyzes agricultural video footage to identify key animal reproduction events.
Install
mkdir -p .claude/skills/smyx-farrowing-hatching-monitoring-analysis && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18761" && unzip -o skill.zip -d .claude/skills/smyx-farrowing-hatching-monitoring-analysis && rm skill.zipInstalls to .claude/skills/smyx-farrowing-hatching-monitoring-analysis
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Monitors farrowing and poultry hatching events from continuous videos of farrowing pens or hatching areas — detecting key milestones such as water breaking, straining, piglet delivery, egg pipping and chick emergence — and outputs real-time event reminders. | 识别母猪产仔、禽类孵化等关键繁殖事件,实时提醒。Key capabilities
- →Detect piglet delivery events like water breaking and straining
- →Identify poultry hatching events such as egg pipping and chick emergence
- →Output real-time event reminders for farrowing and hatching
- →Generate structured analysis reports with event types and timestamps
- →Query historical farrowing and hatching monitoring reports
- →Process continuous video streams from fixed cameras
How it works
The skill analyzes continuous video from fixed cameras in farrowing pens or hatching areas to detect key reproductive events like piglet birth or chick emergence. It then outputs real-time reminders and structured analysis reports.
Inputs & outputs
When to use smyx-farrowing-hatching-monitoring-analysis
- →Monitoring sow farrowing
- →Detecting egg hatching events
- →Reporting livestock reproduction milestones
About this skill
🐣 Farrowing & Hatching Monitoring | 产仔/孵化监控
识别母猪产仔、禽类孵化等关键繁殖事件,实时提醒。
关键繁殖事件监控中枢 · 产房/孵化区连续视频智能分析 · 破水/努责/仔猪出生 · 破壳/出雏 · 事件实时提醒 · 历史报告云端查询
🧭 技能概览 | Overview
| 模块 | 内容 |
|---|---|
| 🏷️ 技能名称 | 产仔/孵化监控 |
| 🎯 核心目标 | 基于产房或孵化区域固定摄像头的连续视频,检测母猪产仔事件(破水、努责、仔猪出生)或禽类孵化事件(破壳、出雏),输出事件识别结果及实时提醒 |
| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |
| 📝 输出能力 | 结构化分析报告、事件类型、事件时间点、涉事个体位置、事件优先级、实时提醒等级、报告链接 |
| 🏢 适用场景 | 规模化猪场母猪产房监控、家禽孵化车间/孵化器监控,提高仔猪、雏禽成活率 |
| 🧩 场景码 | SMYX_FARROWING_HATCHING_MONITORING_ANALYSIS |
🎬 技能演示 | Skill Demo
🤖 AI 角色 | AI Role
| 角色要点 | 说明 |
|---|---|
| 说明 1 | 你是一个专业的畜禽繁殖监控 AI。你的任务是分析产房或孵化区域固定摄像头的连续视频,检测母猪产仔事件(破水、努责、仔猪出生)或禽类孵化事件(破壳、出雏),输出事件识别结果及实时提醒。不要提供接产或孵化操作建议,仅基于视觉观察输出事件识别结果。 |
🎯 任务目标 | Goals
1. 🧩 技能用途
通过产房/孵化区域固定摄像头的连续视频,识别母猪产仔与家禽孵化过程中的关键节点事件,输出结构化的事件清单与实时提醒等级,为规模化养殖场的关键繁殖生产环节提供 24 小时视觉盯守能力。
2. 🛠️ 能力范围
| 序号 | 具体能力 |
|---|---|
| 1 | 母猪产房场景识别(母猪个体、限位栏、仔猪保育区) |
| 2 | 母猪破水事件识别(分娩前兆) |
| 3 | 母猪努责/宫缩姿态识别 |
| 4 | 仔猪出生事件识别(新仔猪出现与计数) |
| 5 | 家禽孵化区/孵化器/出雏区场景识别 |
| 6 | 蛋壳破壳事件识别(啄壳/破壳裂纹显现) |
| 7 | 出雏事件识别(雏禽完全脱壳出雏) |
| 8 | 事件时间点标注 + 实时提醒等级(一般 / 关注 / 紧急) |
3. ⚡ 触发条件
| 触发类型 | 触发规则 |
|---|---|
| ✅ 默认触发 | 当用户提供产房或孵化区域固定摄像头视频 URL 或文件需要繁殖事件监控时,默认触发本技能 |
| 🔎 明确分析意图 | 当用户明确提及产仔监控、母猪分娩、破水、努责、产仔提醒、孵化监控、破壳、出雏、雏禽出生等关键词,并且上传了图片或视频文件 |
| 📚 历史报告查询 | 当用户提及以下关键词时,自动触发历史报告查询功能:查看历史产仔孵化监控报告、历史繁殖事件报告、产仔孵化事件清单、查询繁殖事件记录、显示所有产仔孵化监控报告 |
4. 🤖 自动行为
| 自动行为 | 执行要求 |
|---|---|
| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件,则自动保存为本地文件 |
| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词,必须直接调用云端 API 查询,不得从本地记忆或人工汇总中获取 |
⚠️ 强制数据获取规则(次高优先级)
橙色强约束: 历史报告清单只允许从云端接口读取,不允许从本地记录、长期记忆或人工汇总中提取。
必须执行:
python -m scripts.smyx_farrowing_hatching_monitoring_analysis --list
| 类型 | 要求 |
|---|---|
| ✅ 必须 | 使用 python -m scripts.smyx_farrowing_hatching_monitoring_analysis --list 调用 API 查询云端的历史报告数据 |
| 🚫 严格禁止 | 从本地 memory 目录读取历史会话信息 |
| 🚫 严格禁止 | 手动汇总本地记录中的报告 |
| 🚫 严格禁止 | 从长期记忆中提取报告 |
| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据,然后以 Markdown 表格格式输出结果 |
📦 前置准备 | Requirements
依赖说明
scripts 脚本所需的依赖包及版本:
requests>=2.28.0
📷 采集要求 | Capture Requirements
| 序号 | 说明 |
|---|---|
| 1 | 固定摄像头正对产房限位栏或孵化区/出雏区,画面覆盖后躯、蛋盘等关键部位 |
| 2 | 拍摄距离建议 0.8m~2.5m,产道/蛋壳等关键区域清晰可见,避免大面积遮挡 |
| 3 | 光照条件稳定,夜间建议使用红外/低照度稳定光源,减少产房应激与孵化区温度扰动 |
| 4 | 视频建议连续拍摄,帧率不低于 10fps;单段建议 30 秒~30 分钟,便于捕捉短促关键事件 |
| 5 | 支持格式:jpg/png/jpeg 图片,及 mp4/avi/mov 视频;单文件不超过 10MB |
| 6 | 尽量减少人员穿越/清扫等剧烈画面变动,避免误判为繁殖事件 |
| 7 | 家禽孵化建议在出雏盘上方或斜上方架设摄像头,能清晰看到蛋壳表面变化与雏禽移动 |
🚀 操作步骤 | Workflow
🔐 用户身份处理(内部自动完成)
绿色安全原则: 用户身份参数由系统内部自动处理,不得向用户展示、询问或要求输入任何身份标识。
执行本技能分析或历史报告查询时,脚本会自动完成身份初始化:
| 场景 | 系统行为 |
|---|---|
| 上游系统有内部身份参数 | 由脚本静默接收并使用 |
| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |
| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |
| 对用户输出 | 只展示分析进度、分析结果和报告链接,不展示内部身份值 |
🔒 关键约束
| 禁止/要求 | 说明 |
|---|---|
| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |
| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |
| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |
| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联,用户只需表达"查看历史报告/报告清单"等意图 |
🧪 标准流程 | Standard Flow
| 步骤 | 阶段 | 执行动作 |
|---|---|---|
| 1 | 📥 准备产房/孵化区视频输入 | 提供本地文件路径或网络 URL;确保画面稳定、覆盖关键分娩/出雏区域 |
| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数;不在回复中展示内部身份值 |
| 3 | ⚙️ 执行产仔/孵化事件监控 | 调用 -m scripts.smyx_farrowing_hatching_monitoring_analysis 处理输入(必须在技能根目录下运行脚本) |
| 4 | 📊 查看分析结果 | 接收结构化分析报告,查看事件清单、事件时间点、实时提醒等级与报告链接 |
⚙️ 脚本参数说明
| 参数 | 含义 | 备注 |
|---|---|---|
--input | 本地产房/孵化区图像/视频文件路径 | 适用于本地文件分析 |
--url | 网络产房/孵化区图像/视频 URL 地址 | API 服务自动下载 |
--pet-type | 类别标识(畜禽场景保持 other) | 默认 other,按需填写 |
--list | 显示历史分析报告清单 | 可以输入起始日期参数过滤数据范围 |
--api-url | API 服务地址 | 可选,使用默认值 |
--detail | 输出详细程度 | basic / standard / json,默认 json |
--output | 结果输出文件路径 | 可选 |
🗂️ 资源索引 | Resource Index
| 资源类型 | 路径 | 用途 | 何时读取 |
|---|---|---|---|
| 🐍 必要脚本 | scripts/smyx_farrowing_hatching_monitoring_analysis.py | 调用 API 进行产仔/孵化事件监控或查询历史报告 | 执行分析或查询时使用 |
| ⚙️ 配置文件 | scripts/config.py | 场景码 SMYX_FARROWING_HATCHING_MONITORING_ANALYSIS、默认参数配置 | 需要确认默认配置时读取 |
| 📘 领域参考 | references/api_doc.md | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |
⚠️ 注意事项 | Notes
| 分类 | 注意事项 |
|---|---|
| 📚 文档读取 | 仅在需要时读取参考文档,保持上下文简洁 |
| 📁 格式支持 | 图片支持 jpg / png / jpeg;视频支持 mp4 / avi / mov;单文件最大 10MB |
| 🧑⚖️ 结果性质 | 事件识别结果仅供繁殖过程监控参考,本技能不提供接产或孵化操作建议 |
| 🚫 脚本限制 | 禁止临时生成脚本,只能使用技能本身的脚本 |
| 🌐 网络地址 | 传入的网络地址参数无需本地下载,默认为公网地址,API 服务会自动下载 |
| 📜 报告输出 | 显示历史分析报告清单时,从接口返回 JSON 数据中提取字段作为超链接地址,并自动转化为 Markdown 表格输出 |
🔒 隐私与数据安全声明 | Privacy & Data Security
| 序号 | 说明 |
|---|---|
| 1 | 仅采集与产仔/孵化事件监控直接相关的图像/视频数据,不采集与繁殖事件监控无关的敏感信息 |
| 2 | 内部身份参数由系统自动处理,不在任何输出、日志或报告中暴露 |
| 3 | 分析请求通过服务端 API 完成,网络传输遵循平台既有安全策略 |
| 4 | 历史报告仅当前身份可读,不做跨养殖场/跨用户汇总或共享 |
| 5 | 事件识别结果仅供参考,具体接产、辅助分娩、出雏处置等请遵循养殖场规程与专业兽医/繁殖技术人员意见 |
📜 历史报告清单输出规范 | Report List Format
当显示历史分析报告清单的时候,从接口返回 JSON 数据中提取字段作为超链接地址,且自动转化为如下 Markdown 表格格式输出。
📌 固定输出列
| 列名 | 生成规则 |
|---|---|
| 报告名称 | 使用 产仔孵化监控报告-{记录id} 形式拼接 |
| 事件类型 | 从接口返回数据中提取(破水 / 努责 / 仔猪出生 / 破壳 / 出雏) |
| 分析时间 | 从接口返回数据中提取 |
| 点击查看 | 使用 [🔗 查看报告]() 格式的超链接 |
🧾 表格输出示例
| 报告名称 | 事件类型 | 分析时间 | 点击查看 |
|---|---|---|---|
| 产仔孵化监控报告-20260703160500001 | 仔猪出生 | 2026-07-03 16:05:00 | 🔗 查看报告 |
🧰 使用示例 | Examples
🐷 分析本地母猪产房连续视频
python -m scripts.smyx_farrowing_hatching_monitoring_analysis --input /path/to/farrowing_pen.mp4
🐣 分析本地家禽孵化/出雏区视频
python -m scripts.smyx_farrowing_hatching_monitoring_analysis --input /path/to/hatching_zone.mp4
🌐 分析网络产房/孵化区视频
python -m scripts.smyx_farrowing_hatching_monitoring_analysis --url https://example.com/farrowing_hatching.mp4
📚 显示历史分析报告 / 显示分析报告清单列表 / 显示历史产仔孵化监控报告
自动触发关键词:查看历史产仔孵化监控报告、历史报告、产仔孵化事件清单等。
python -m scripts.smyx_farrowing_hatching_monitoring_analysis --list
🪶 输出精简报告
python -m scripts.smyx_farrowing_hatching_monitoring_analysis --input farrowing_pen.mp4 --detail basic
💾 保存结果到文件
python -m scripts.smyx_farrowing_hatching_monitoring_analysis --input hatching_zone.mp4 --output result.json
When not to use it
- →When the user needs operational advice for farrowing or hatching
- →When the input video is not from a fixed camera in a farrowing pen or hatching area
- →When the input file size exceeds 10MB
Limitations
- →Input files are limited to a maximum size of 10MB
- →The skill does not provide farrowing or hatching operation advice
- →The skill requires fixed camera footage with specific coverage and lighting conditions
How it compares
This skill provides automated 24-hour visual monitoring of reproductive events in livestock, unlike manual observation which requires constant human presence.
Compared to similar skills
smyx-farrowing-hatching-monitoring-analysis side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| smyx-farrowing-hatching-monitoring-analysis (this skill) | 0 | 20d | Review | Beginner |
| model-usage | 5 | 2mo | Review | Beginner |
| analytics-tracking | 7 | 6mo | No flags | Intermediate |
| splunk-analysis | 5 | 5mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
model-usage
openclaw
Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
analytics-tracking
davila7
When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," or "tracking plan." For A/B test measurement, see ab-test-setup.
splunk-analysis
incidentfox
Splunk log analysis using SPL (Search Processing Language). Use when investigating issues via Splunk logs, saved searches, or alerts.
tracking-crypto-derivatives
jeremylongshore
Track cryptocurrency futures, options, and perpetual swaps with funding rates, open interest, liquidations, and comprehensive derivatives market analysis. Use when monitoring derivatives markets, analyzing funding rates, tracking open interest, finding liquidation levels, or researching options flow. Trigger with phrases like "funding rate", "open interest", "perpetual swap", "futures basis", "liquidation levels", "options flow", "put call ratio", "derivatives analysis", or "BTC perps".
weights-and-biases
davila7
Track ML experiments with automatic logging, visualize training in real-time, optimize hyperparameters with sweeps, and manage model registry with W&B - collaborative MLOps platform
perf-analyzer
ComposioHQ
Use when synthesizing perf findings into evidence-backed recommendations and decisions.