360 Secure SkillHub
360 安全技能中心

Dad Jokes

核心功能:识别用户各类求幽默的请求,从HuggingFace的shuttie/dadjokes数据集随机获取冷笑话,以铺垫+包袱的形式自然呈现,若获取失败则讲记忆中的笑话。典型场景:用户提出“讲个冷笑话”“我需要笑一下”等需求。输入为用户的幽默请求语句,输出为带简短轻松点评的完整冷笑话。

jonathandeamer
jonathandeamer
热度 72.11
最近更新 2026-05-11 17:31:20
分类:生活依赖:代码执行 / 纯提示词

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add dad-jokes
Metadata
name
dad-jokes
description
Tell dad jokes on demand by fetching a random joke from the shuttie/dadjokes HuggingFace dataset. Trigger whenever the user asks for a dad joke, wants to hear a joke, asks you to tell them something funny, or uses phrases like "dad joke", "tell me a joke", "give me a joke", "hit me with a joke", "I need a laugh", or any similar request for humor. Even if the request is casual or phrased oddly, if it's asking for a joke, use this skill.

When asked for a dad joke, run this Python one-liner in a bash tool call to fetch a single random joke from HuggingFace with minimal data transfer:

python3 -c "
import random, json
from urllib.request import urlopen
offset = random.randint(0, 51999)
url = f'https://datasets-server.huggingface.co/rows?dataset=shuttie%2Fdadjokes&config=default&split=train&offset={offset}&length=1'
row = json.loads(urlopen(url).read())['rows'][0]['row']
print(row['question'])
print('---')
print(row['response'])
"

Then present the joke naturally — the question is the setup and response is the punchline. Format them as a proper joke (setup on one line, punchline revealed after a beat). Feel free to add a groan emoji or light commentary, but keep it brief.

If the fetch fails (network error, etc.), apologize and tell a joke from memory instead.