Initial commit: last30days-kimi with kimi_search support

This commit is contained in:
Kimi Claw
2026-02-18 08:51:30 +08:00
commit 4d9d306cd2
4 changed files with 430 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
#!/bin/bash
# last30days-kimi - Research topics using kimi_search
# Simplified version that works without additional API keys
set -euo pipefail
# Get topic from arguments
TOPIC="${1:-}"
TOOL="${2:-}"
if [ -z "$TOPIC" ]; then
echo "Usage: /last30days-kimi [topic] [optional: for tool]"
echo "Example: /last30days-kimi prompting techniques for ChatGPT"
exit 1
fi
echo "🔍 Researching: $TOPIC"
echo "📅 Timeframe: Last 30 days"
echo ""
# Build search queries
REDDIT_QUERY="$TOPIC reddit discussions"
WEB_QUERY="$TOPIC trending 2026"
if [ -n "$TOOL" ]; then
REDDIT_QUERY="$TOPIC $TOOL reddit"
WEB_QUERY="$TOPIC $TOOL best practices"
fi
echo "📝 Search queries:"
echo " - Reddit: $REDDIT_QUERY"
echo " - Web: $WEB_QUERY"
echo ""
# Note: This is a template script
# In actual usage, Claude Code will use kimi_search tool directly
# based on the SKILL.md instructions
echo "✅ Skill template ready"
echo ""
echo "To use this skill:"
echo "1. Claude Code will read SKILL.md"
echo "2. It will use kimi_search with queries like:"
echo " kimi_search '$REDDIT_QUERY'"
echo " kimi_search '$WEB_QUERY'"
echo "3. Synthesize results and generate prompt"
echo ""
echo "Topic: $TOPIC"
[ -n "$TOOL" ] && echo "Tool: $TOOL"