360 Secure SkillHub
360 安全技能中心

ZenQuote

通过 bash 脚本调用 ZenQuotes.io 免费 API,提供今日名言、随机名言、多条名言和名言图片,并可用 setup 命令为指定会话创建每天 9:00 的定时推送;输出带引用来源标注,依赖 curl 与 jq。

分类:生活
chrisluo5311
chrisluo5311
热度 25.77
最近更新 2026-05-11 17:45:30

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add chrisluo5311/zenquote
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
zenquote
description
Daily inspirational quotes from ZenQuotes.io. Get daily wisdom, random quotes, quote images. Supports automated daily delivery via cron scheduling.

ZenQuote - Daily Inspirational Quotes

Overview

ZenQuote skill fetches inspirational quotes from ZenQuotes.io API and delivers them to users. All features use the free API tier.

Features

  • ✅ Daily quote (today)
  • ✅ Random quote (random)
  • ✅ Multiple quotes (quotes)
  • ✅ Quote images (image)
  • ✅ Automated daily delivery (setup)

API Limits: 5 requests per 30 seconds. Attribution required.

Dependencies

This skill requires the following system tools:

  • curl - For HTTP requests to ZenQuotes API
  • jq - For JSON parsing

These are usually pre-installed on most Linux/macOS systems.

Quick Start

Get Today's Quote

bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh today

Get Random Quote

bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh random

Setup Daily Morning Quote (9:00 AM)

bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh setup <chat_id>

User Commands

  • /zenQuote or /zenQuote today - Today's inspirational quote
  • /zenQuote random - Random quote
  • /zenQuote quotes - Get 5 quotes
  • /zenQuote image - Get and send quote image
  • /zenQuote setup - Configure daily delivery (text or image)

Image Command Handling

When user requests /zenQuote image, execute:

bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh image

The script will download the image and output:

{"image_path": "/tmp/zenquote_image.jpg", "caption": "Provided by ZenQuotes API https://zenquotes.io/"}

AI must then send the image using the message tool with the provided caption. No additional text should be added.

Daily Cron Setup

To automatically send a quote every morning at 9:00 AM:

Daily Text Quote (default)

bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh setup <chat_id> text [account_id]

Daily Image Quote

bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh setup <chat_id> image [account_id]

This creates a cron job that runs daily at 9:00 AM.

Examples

Natural Language Usage

  • "Give me today's quote"
  • "Show me a random inspirational quote"
  • "Send me the quote of the day"
  • "Setup daily quotes for me"

Command Examples

# Today's quote
bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh today

# Random quote
bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh random

# 3 quotes
bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh quotes 3

# Get quote image URL
bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh image

# Setup daily delivery
bash ~/.openclaw/skills/zenquote/scripts/zenquote.sh setup <chat_id> text

API Response Format

[
  {
    "q": "Quality means doing it right when no one is looking.",
    "a": "Henry Ford",
    "h": "<blockquote>\"Quality means doing it right when no one is looking.\" — <footer>Henry Ford</footer></blockquote>"
  }
]

Attribution (Required)

⚠️ When using the free API, you MUST include the following attribution:

Inspirational quotes provided by ZenQuotes API

Markdown format:

Inspirational quotes provided by [ZenQuotes API](https://zenquotes.io/)

HTML format:

Inspirational quotes provided by <a href="https://zenquotes.io/" target="_blank">ZenQuotes API</a>

This skill automatically includes attribution in all outputs.

API Limits

Feature Limit
Requests 5 per 30 seconds
Endpoints today, random, quotes, image

Installation

# Install from GitHub
git clone https://github.com/chrisluo5311/zenquote-skill.git

# Or install via OpenClaw
openclaw skills install zenquote

External API

This skill uses the ZenQuotes.io API:

License

MIT

Author

Created for OpenClaw AI Assistant