360 Secure SkillHub
360 安全技能中心

Cat Fact

该 Skill 通过 catfact.ninja 的公开 API 获取随机猫咪事实和猫咪品种列表,支持限制事实长度、按数量获取品种,并可输出 JSON 或用 jq 提取纯文本。依赖 curl 与 jq,无需 API Key,主要提供趣味知识检索和轻量级数据获取。

thesethrose
thesethrose
热度 97.14
最近更新 2026-05-11 15:48:49
分类:搜索依赖:代码执行 / 第三方 API

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add catfact
Metadata
name
Cat Fact
description
Random cat facts and breed information from catfact.ninja (free, no API key)
read_when
["Wanting random cat facts","Looking up cat breeds","Building fun bot responses"]
metadata
{"clawdbot":{"emoji":"🐱","requires":{"bins":["curl"]}}}

Cat Fact

Random cat facts from catfact.ninja (no API key required).

Usage

# Get a random cat fact
curl -s "https://catfact.ninja/fact"

# Get a random fact (short)
curl -s "https://catfact.ninja/fact?max_length=100"

# Get cat breeds
curl -s "https://catfact.ninja/breeds?limit=5"

Programmatic (JSON)

curl -s "https://catfact.ninja/fact" | jq '.fact'

One-liner examples

# Random fact
curl -s "https://catfact.ninja/fact" --header "Accept: application/json" | jq -r '.fact'

# Multiple facts
for i in {1..3}; do curl -s "https://catfact.ninja/fact" --header "Accept: application/json" | jq -r '.fact'; done

API Endpoints

Endpoint Description
GET /fact Random cat fact
GET /breeds List of cat breeds

Docs: https://catfact.ninja