Share your OpenClaw use case to clawusecase.com. Analyzes your recent work and creates a submission for the community.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install share-usecase或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install share-usecase⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/share-usecase/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: share_usecase description: "Share your OpenClaw use case to clawusecase.com. Analyzes your recent work and creates a submission for the community." author: "Rex 🐧" version: "2.0.1" ---
This skill helps you share your OpenClaw use cases to clawusecase.com.
Trigger this skill when the user wants to share a use case they've built with OpenClaw. They might say:
Important: When users choose to get credit via OAuth, automatically poll for their connection completion. Don't make them tell you they've connected - detect it automatically and proceed with submission.
Implementation requirement: You MUST actively monitor the polling loop and send an immediate message when connection is detected. Do not run polling silently in the background - check results frequently and respond the moment you see a successful credential. The user should see "✅ Connected as @username!" within seconds of completing OAuth, without having to ask.
When the user triggers /share_usecase, start with a friendly greeting:
🐧 Share Your Use Case
Hey! clawusecase.com is a community showcase where OpenClaw users share what they've built to inspire others.
Let me look at what you've been working on and draft a use case for you...
Look back at the conversation history (last 50-100 messages or past few hours) to understand what the user built. Look for:
Create a well-structured use case with these fields:
Required:
title (50-100 chars) - Clear, descriptive title of what was builthook (100-200 chars) - One-sentence summary that grabs attentionproblem (200-500 chars) - What problem this solvessolution (300-800 chars) - How it works, what was builtcategory - One of: "Productivity", "Development", "Business/SaaS", "Home Automation", "Social/Content", "Data & Analytics", "Fun"skills (array) - Tools/technologies used (e.g., ["GitHub", "Stripe", "Resend"])Optional:
requirements - What you need to use this (API keys, accounts, etc.)Before finalizing, normalize tool names using normalize-tools.js:
node normalize-tools.js "github,stripe api,resend email"
This ensures consistent naming (e.g., "github" → "GitHub", "stripe api" → "Stripe").
Present the generated use case to the user in a clean format:
📋 Use Case Draft
Title: Email notifications for Pro subscriptions
Hook: Sends welcome emails automatically when users upgrade
Problem: No email notifications when users subscribe to Pro plan
Solution: Built Resend integration with React Email templates, hooked into Stripe webhooks for subscription events
Category: Business/SaaS
Tools: GitHub, Stripe, Resend
Requirements: Resend account, Stripe webhooks configured
Would you like to:
- Submit as-is
- Edit any fields
- Cancel
If they want to edit, iterate until they're happy.
Once they approve the content, ask about attribution:
Would you like to be credited for this submission?
Options:
1. ✅ Yes, credit me (connect Twitter or GitHub)
2. 🎭 No, submit anonymously
If you choose credit, you'll get a link on the live use case and build your profile in the community!
If they choose credit:
Generate OAuth links and send them:
Great! Connect your account to get credit:
🐦 X (Twitter): [init Twitter OAuth and get URL]
😺 GitHub: [init GitHub OAuth and get URL]
Click one of the links above to authenticate. I'll detect when you're connected and submit automatically!
Auto-detect connection:
⚠️ CRITICAL: You MUST actively monitor and respond to polling results in real-time. Do NOT run polling in the background and wait for system messages. Check the process output directly and respond immediately.
Immediately after sending OAuth links, start polling and watch for completion:
Recommended approach:
cd /path/to/skill
for i in {1..24}; do
# Try to get credential
RESULT=$(node get-credential.js --token [oauth_token] 2>&1)
if echo "$RESULT" | grep -q '"username"'; then
# SUCCESS! Parse the credential
USERNAME=$(echo "$RESULT" | grep -o '"username":"[^"]*"' | cut -d'"' -f4)
PLATFORM=$(echo "$RESULT" | grep -o '"platform":"[^"]*"' | cut -d'"' -f4)
# IMMEDIATELY notify user (don't wait for background processes!)
# Send this message RIGHT NOW before continuing
echo "User should see: ✅ Connected as @$USERNAME!"
# Store the full credential for submission
CREDENTIAL="$RESULT"
break
fi
# Not ready yet, wait 5 seconds
if [ $i -lt 24 ]; then
sleep 5
fi
done
# After loop, check if we got a credential
if [ -z "$CREDENTIAL" ]; then
echo "Timeout - credential not received within 2 minutes"
fi
Critical implementation notes:
exec(..., background: true) for polling - you won't see results in timeExample flow:
If timeout (2 minutes):
⏰ Still waiting for your connection. Take your time - I'll keep checking for another 2 minutes!
Then continue polling for another 24 attempts.
If they choose anonymous:
Proceed with anonymous submission (no author info).
Use submit.js to POST to the API:
With attribution:
node submit.js \
--title "Email notifications for Pro subscriptions" \
--hook "Sends welcome emails automatically when users upgrade" \
--problem "No email notifications when users subscribe to Pro plan" \
--solution "Built Resend integration with React Email templates..." \
--category "Business/SaaS" \
--skills "GitHub,Stripe,Resend" \
--requirements "Resend account, Stripe webhooks configured" \
--author-username "josephliow" \
--author-handle "josephliow" \
--author-platform "twitter" \
--author-link "https://twitter.com/josephliow"
Anonymous:
node submit.js \
--title "Email notifications for Pro subscriptions" \
--hook "Sends welcome emails automatically when users upgrade" \
--problem "No email notifications when users subscribe to Pro plan" \
--solution "Built Resend integration with React Email templates..." \
--category "Business/SaaS" \
--skills "GitHub,Stripe,Resend" \
--requirements "Resend account, Stripe webhooks configured" \
--anonymous
If successful, share the link with the user:
✅ Use case submitted successfully!
View it here: https://clawusecase.com/cases/email-notifications-for-pro-subscriptions
Thanks for sharing with the community! 🎉
If you get a 429 error:
⏰ You've hit the submission limit (10 per day).
Try again tomorrow or contact support if you need to submit more.
If fields are invalid (title too short, solution too brief):
❌ Submission failed: Title must be at least 20 characters
...安装 Share use case 后,可以对 AI 说这些话来触发它
Help me get started with Share use case
Explains what Share use case does, walks through the setup, and runs a quick demo based on your current project
Use Share use case to share your OpenClaw use case to clawusecase
Invokes Share use case with the right parameters and returns the result directly in the conversation
What can I do with Share use case in my ai agent & automation workflow?
Lists the top use cases for Share use case, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/share-usecase/ 目录(个人级,所有项目可用),或 .claude/skills/share-usecase/(项目级)。重启 AI 客户端后,用 /share-usecase 主动调用,或让 AI 根据上下文自动发现并使用。
Share use case 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Share use case 可免费安装使用。请查阅仓库了解许可证信息。
Share your OpenClaw use case to clawusecase.com. Analyzes your recent work and creates a submission for the community.
Share use case 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Share use case
Identifies repetitive steps in your workflow and sets up Share use case to handle them automatically