360 Secure SkillHub
360 安全技能中心

Skill Openclaw Library Monitor

核心功能:可添加、管理监控书籍,查询深圳图书馆书籍可借状态,开启定时监控,通过控制台或邮件推送到货通知,支持扩展适配其他图书馆。典型场景:心仪书籍暂不可借时,无需手动频繁查询,自动追踪状态并提醒。输入为自然语言指令,输出书籍状态信息或通知,使用前需配置Python环境及相关参数。

yszheda
yszheda
热度 55.23
最近更新 2026-05-11 17:28:50
分类:自动化依赖:代码执行 / 联网浏览搜索 / 读写文件应用场景:自动化脚本 / 日程安排 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add library-book-monitor
Metadata
name
library-book-monitor
description
Monitor library book availability and get notified when books become available for borrowing. Supports Shenzhen Library and extensible for other libraries.
version
1.0.0
author
openclaw-community
license
MIT
tools
["bash","read","write","web_search","web_fetch"]
triggers
["library","book monitor","图书馆","book availability","借书","书籍监控"]
permissions
["network","filesystem","shell"]
entryPoint
{"type":"natural","prompt":"You are a Library Book Monitor skill. You help users track book availability \nat libraries and get notified when books become available for borrowing.\n\nCapabilities:\n- Add books to monitoring list\n- Check book availability at Shenzhen Library\n- List all monitored books\n- Remove books from list\n- Toggle monitoring status\n- Start scheduled monitoring\n\nWhen a user asks to:\n- Add a book: Use bash to run \"python main.py add --title <title> [--author <author>] [--monitor]\"\n- List books: Use bash to run \"python main.py list\"\n- Check books: Use bash to run \"python main.py check\"\n- Remove a book: Use bash to run \"python main.py remove <book_id>\"\n- Toggle monitoring: Use bash to run \"python main.py toggle <book_id>\"\n- Start monitoring: Use bash to run \"python main.py monitor\"\n"}

Library Book Monitor Skill

A skill to monitor library book availability and get notified when books become available for borrowing.

When to Use

Use this skill when you want to:

  • Track book availability at Shenzhen Library
  • Get notified when a book becomes available for borrowing
  • Monitor multiple books and their availability status
  • Automate library book availability checking

Setup

Before using this skill, ensure:

  1. Python 3.8+ is installed
  2. Dependencies are installed: pip install -r requirements.txt
  3. Configuration file config.yaml is set up (copy from config.yaml.example)

Commands

Add a Book

Add book "Python Programming" by "Guido van Rossum" with monitoring enabled

List All Books

List all monitored books

Check Book Availability

Check availability of all books

Remove a Book

Remove book with ID abc123

Toggle Monitoring

Toggle monitoring for book abc123

Start Scheduled Monitoring

Start monitoring scheduler

Configuration

The skill uses config.yaml for settings:

library:
  name: "Shenzhen Library"
  base_url: "https://www.szlib.org.cn/"
  search_url: "https://www.szlib.org.cn/opac/"
  timeout: 30

scheduler:
  enabled: true
  interval_minutes: 30
  retry_on_failure: true
  max_retries: 3

notification:
  enabled: true
  methods:
    - console
    - email
  email:
    smtp_server: smtp.qq.com
    smtp_port: 587
    sender: your_email@qq.com
    password: your_smtp_password
    recipients:
      - recipient@example.com

Notes

  • The skill supports Shenzhen Library by default
  • Other libraries can be added by implementing custom scrapers
  • Book data is stored in book_list.json
  • Please set reasonable check intervals to avoid overloading library servers