Baby Sleep State Monitoring Skill: Analysis and Daily Reports Using Surveillance Video

Introduction

Parents often encounter two types of needs in smart childcare scenarios: firstly, how the baby slept during the night and whether they woke up frequently; secondly, whether their sleep schedule has been stable over several consecutive days. Relying solely on manually reviewing entire segments of night vision footage is costly, and hand-written sleep diaries are prone to omissions. If you want an Agent to directly process baby room monitoring footage within a conversation, output readable sleep reports, and pull a list of historical reports from the cloud—rather than piecing them together from conversation memory—you can integrate the community Skill from SkillHub: “Baby Sleep State Monitoring Skill”.

Below is an introduction to its positioning, capabilities, and installation methods, along with reproducible script invocation examples.

What is this

Baby Sleep State Monitoring Skill is a lifestyle service Skill sourced from the SkillHub community (community). Its coordinate is @user_bb47e3e3/infant-sleep-monitoring-analysis, the current release version is 1.0.6, and it is maintained by the publisher user_bb47e3e3. The SkillHub page marks requires_api_key=false, meaning the installation does not require users to manually configure an API Key.

In a nutshell: Based on image or video input (including local files and network URLs), it identifies sleep states such as deep sleep, light sleep, wakefulness, and agitation. It calculates sleep duration and the number of awakenings, generates daily sleep reports and schedule analysis, and supports querying the list of historical monitoring reports from the cloud. The scenario code is INFANT_SLEEP_MONITORING; the analysis scenario code on the open platform side is OPEN_INFANT_SLEEP_MONITORING_ANALYSIS (see references/api_doc.md within the skill).

Official Access:

  • API Metadata Page: https://api.skillhub.cn/user_bb47e3e3/infant-sleep-monitoring-analysis
  • SkillHub Display Page: https://www.skillhub.cn/skills/user_bb47e3e3/infant-sleep-monitoring-analysis

(As of the data retrieval time, SkillHub showed a rating of 100000, 636 downloads, and 1 installation.)

Core Functions

The following capabilities are derived from the official introduction and the SKILL.md description within the skill package, and do not exceed the verified scope.

  1. Sleep State Classification: Distinguishes states such as deep sleep, light sleep, wakefulness, and agitation (the skill description also mentions refined monitoring of sleep cycles).
  2. Time and Count Statistics: Sleep duration statistics and awakening count statistics.
  3. Reports and Schedule Analysis: Generates structured sleep reports and routine analysis; output may include recognition results, suggestions, and report links.
  4. Historical Report Query: When a user expresses the intent to view historical sleep reports or a list of monitoring reports, the cloud interface must be called via script to list the reports; local memory or manual summarization must not be used as a substitute.
  5. Input Forms: Supports images, videos, local paths, and network URLs; triggered by default when the user uploads monitoring footage or explicitly requests sleep monitoring analysis.

Skill Demo Page (Official Link): https://lifeemergence.com/sample.html

Installation and Activation

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is already present:

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation documentation to perform a complete installation (including CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

See documentation: https://skillhub.cn/install/skillhub.md

2. Install this Skill to the current Agent’s skills directory

During installation, you must use --dir to point to the skills directory recognized by the current client; otherwise, it may default to ./skills/ where the Agent might not be able to load it. Common paths are as follows (also from official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Execute in the parent path of the target directory:

skillhub install @user_bb47e3e3/infant-sleep-monitoring-analysis --dir <your skills directory>

Alternatively, you can send the following prompt to an AI that supports Skill installation to complete the installation via the official process:

Please install `@user_bb47e3e3/infant-sleep-monitoring-analysis` according to https://skillhub.cn/install/skillhub.md.

3. Script Dependencies

The skill package requires at least the following on the Python side:

requests>=2.28.0

When analyzing or querying historical reports, the module scripts.infant_sleep_monitoring_analysis must be invoked under the skill root directory (see examples below).

Typical Usage

Conversation Side

Assuming the Agent has loaded this Skill, common usages include:

  1. Upload a night monitoring video of the baby room or provide an accessible public URL, asking the Agent to analyze sleep states and generate a report.
  2. Use expressions like “sleep report,” “schedule analysis,” or “baby sleep,” accompanied by materials fitting the scenario.
  3. When querying historical reports only, use keywords listed in the skill documentation (such as “view historical sleep reports,” “monitoring report list,” etc.); the Agent should execute --list to pull from the cloud and present it as a Markdown table, rather than reading from local memory.

User identity is automatically associated internally by the script; the skill explicitly requires not asking the user for or displaying internal identity identifiers.

Command Line Side (Skill Root Directory)

The following examples are from the “Usage Examples” in the skill’s SKILL.md; replace paths with actual files:

# Analyze local baby room monitoring video
python -m scripts.infant_sleep_monitoring_analysis --input /path/to/night_monitor.mp4

# Analyze network monitoring video (downloaded by API service, no need to save locally first)
python -m scripts.infant_sleep_monitoring_analysis --url https://example.com/night.mp4

# List cloud historical monitoring reports (can add date range filters, see --list description)
python -m scripts.infant_sleep_monitoring_analysis --list

# Concise output
python -m scripts.infant_sleep_monitoring_analysis --input night_monitor.mp4 --detail basic

# Write results to file
python -m scripts.infant_sleep_monitoring_analysis --input night_monitor.mp4 --output result.json

Meaning of main parameters (excerpted from SKILL.md):

Parameter Function
--input Local video path
--url Network video URL
--list Query historical report list
--detail Output detail level: basic / standard / json (default json)
--output Optional, write results to file
--api-url Optional, override default API service address

Backend interface paths are listed in references/api_doc.md, such as starting analysis, getting results, paginating historical reports, and report export; specific fields and error codes should be checked in that document or runtime error messages.

Scenarios and Notes

Who is it for

  • Families or care teams who have deployed fixed-camera monitoring in the baby room and can produce clear night vision footage.
  • Developers who want to chain “watch video → produce sleep report → query history” into a fixed workflow within Agents like Cursor, Claude Code, or Codex.

Capture and Format

  • Skill Suggestion: The camera should be fixed and cover the entire crib area; night vision/infrared should be functioning normally; minimize obstructions on the bed surface to ensure posture visibility.
  • Supported video formats: mp4 / avi / mov, max 10MB per file.
  • Network URLs must be publicly accessible addresses, downloaded and processed by the API service side.

Limitations and Compliance

  • Analysis depends on cloud APIs and the network; the historical list must go through python -m scripts.infant_sleep_monitoring_analysis --list; using local session memory to impersonate cloud data is prohibited.
  • Skill Note: Results are for parenting reference only and cannot replace professional medical advice; consult a pediatrician for sleep abnormalities.
  • Temporary alternative scripts are prohibited; use existing resources within the skill package such as scripts/infant_sleep_monitoring_analysis.py.

Conclusion

Baby Sleep State Monitoring Skill consolidates infant sleep state recognition, daily reports and schedule analysis, and cloud historical report queries into a single set of Skills and script entry points, making it suitable for incorporating care footage into an Agent’s reproducible workflow. For installation and coordinates, refer to SkillHub: https://www.skillhub.cn/skills/user_bb47e3e3/infant-sleep-monitoring-analysis

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye