Chinese Joke API Skill for Openclaw

A specialized skill for AI agents to retrieve and process Chinese humor and short quotes from popular third-party APIs.

djttt
v1.0.0
Mar 14, 2026
0
961
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install chinese-joke-api

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install chinese-joke-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Chinese Joke API Skill?

The Chinese Joke API Skill provides a streamlined interface for AI agents to access a variety of Chinese-language humor and insightful short phrases. By leveraging external providers like Hitokoto and JokeAPI, this skill enables developers to inject personality and cultural nuance into their applications. It is designed to work seamlessly within the Openclaw Skills ecosystem, offering high compatibility for both shell environments and Python-based automation workflows.

This skill is particularly useful for developers building conversational agents, daily report generators, or social media bots that require a steady stream of engaging Chinese content. It abstracts the complexity of multiple API endpoints into simple, reusable patterns that prioritize ease of integration and rapid deployment.

Chinese Joke API Skill Use Cases

  • Injecting humor into daily automated developer reports or Slack/Discord notifications.
  • Enhancing AI chatbot interactions with authentic Chinese jokes and cultural quotes.
  • Building entertainment-focused Openclaw Skills that require structured humor data.
  • Testing API integration workflows with lightweight, real-world data sources.

How Chinese Joke API Skill Works

  1. The AI agent or script initiates a request to a specified humor endpoint (e.g., Hitokoto or JokeAPI).
  2. Optional parameters are passed, such as c=j for humor-specific categories or safe-mode for filtered content.
  3. The third-party server processes the request and returns a JSON payload containing the joke text and metadata.
  4. The skill parses the JSON response using Python or Bash processing tools (like jq or json.tool).
  5. The formatted humor content is then delivered to the end-user or passed to another step in the Openclaw Skills pipeline.

Chinese Joke API Skill Setup

To get started with this skill in your environment, you can use either Bash or Python. No API keys are required for basic access.

Bash Installation: Ensure you have curl and python3 (for JSON formatting) installed:

# Fetch a joke from Hitokoto
curl -s "https://v1.hitokoto.cn?c=j" | python3 -m json.tool

Python Installation: Install the requests library to handle HTTP calls:

pip install requests

Chinese Joke API Skill Data Schema & Taxonomy

The skill handles structured JSON data from multiple sources. Below is the typical schema returned by the primary providers:

Field Type Description
hitokoto String The main joke or quote text (Hitokoto API)
from String The source or author of the content
type String Format of the joke (single or two-part setup/delivery)
joke String The joke content (JokeAPI)
setup String The setup portion of a two-part joke
delivery String The punchline portion of a two-part joke

Chinese Joke API Skill Advanced Features

  • Multi-source fallback: Configure your Openclaw Skills to switch between Hitokoto and JokeAPI if one provider experiences downtime.
  • Category Filtering: Access specialized content types including Animation, Comics, and Original quotes using parameter flags.
  • Safe Mode Integration: Built-in support for safe-mode filtering to ensure content is appropriate for professional environments.
  • Custom Scripting: Ready-to-use Python functions with error handling and timeout configurations for production stability.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*