analytics-report
Display command and skill usage analytics
Works with
---
name: analytics-report
description: Display command and skill usage analytics
license: MIT
---
# /analytics:report
Display usage analytics for commands and skills across all projects.
## Context
Check if analytics data exists:
```bash
if [[ -f ~/.claude-analytics/summary.json ]]; then
echo "Analytics available"
SUMMARY=$(cat ~/.claude-analytics/summary.json)
TOTAL=$(echo "$SUMMARY" | jq -r '.total_invocations // 0')
SINCE=$(echo "$SUMMARY" | jq -r '.tracking_since // "unknown"')
echo "Total invocations: $TOTAL"
echo "Tracking since: $SINCE"
else
echo "No analytics data found. Start using commands to collect data."
exit 0
fi
```
## Parameters
- `$ARGS` - Optional filter:
- Empty: Show all analytics
- `commands`: Show only commands
- `skills`: Show only skills
- `<name>`: Show specific command/skill details
## Execution
**Display analytics report:**
```bash
ANALYTICS_DIR="${HOME}/.claude-analytics"
SUMMARY_FILE="${ANALYTICS_DIR}/summary.json"
EVENTS_FILE="${ANALYTICS_DIR}/events.jsonl"
if [[ ! -f "${SUMMARY_FILE}" ]]; then
echo "π No analytics data yet"
echo ""
echo "Analytics will be collected automatically as you use commands and skills."
echo "Data is stored in: ${ANALYTICS_DIR}"
exit 0
fi
SUMMARY=$(cat "${SUMMARY_FILE}")
FILTER="${ARGS:-all}"
echo "π Command & Skill Analytics"
echo ""
# Header info
TOTAL=$(echo "$SUMMARY" | jq -r '.total_invocations')
SINCE=$(echo "$SUMMARY" | jq -r '.tracking_since')
echo "Total invocations: ${TOTAL}"
echo "Tracking since: ${SINCE}"
echo ""
# Top used items
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "Most Used"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
if [[ "${FILTER}" == "all" || "${FILTER}" == "commands" ]]; then
echo ""
echo "π Commands"
echo "$SUMMARY" | jq -r '
.items |
to_entries |
map(select(.value.type == "command")) |
sort_by(-.value.count) |
.[:10] |
.[] |
" \(.value.count | tostring | (. + " ")[:6]) \(.key) (\(.value.success)β \(.value.failure)β)"
'
fi
if [[ "${FILTER}" == "all" || "${FILTER}" == "skills" ]]; then
echo ""
echo "π― Skills"
echo "$SUMMARY" | jq -r '
.items |
to_entries |
map(select(.value.type == "skill")) |
sort_by(-.value.count) |
.[:10] |
.[] |
" \(.value.count | tostring | (. + " ")[:6]) \(.key) (\(.value.success)β \(.value.failure)β)"
'
fi
# Success rate
if [[ "${FILTER}" == "all" ]]; then
echo ""
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "Success Rates"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
TOTAL_SUCCESS=$(echo "$SUMMARY" | jq '[.items[].success] | add // 0')
TOTAL_FAILURE=$(echo "$SUMMARY" | jq '[.items[].failure] | add // 0')
TOTAL_OPS=$((TOTAL_SUCCESS + TOTAL_FAILURE))
if [[ $TOTAL_OPS -gt 0 ]]; then
SUCCESS_RATE=$(echo "scale=1; ${TOTAL_SUCCESS} * 100 / ${TOTAL_OPS}" | bc)
echo " Overall: ${SUCCESS_RATE}% (${TOTAL_SUCCESS}β ${TOTAL_FAILURE}β)"
fi
# Items with failures
echo ""
echo " Items with failures:"
echo "$SUMMARY" | jq -r '
.items |
to_entries |
map(select(.value.failure > 0)) |
sort_by(-.value.failure) |
.[:5] |
.[] |
" \(.key): \(.value.failure) failures"
' | while read -r line; do
if [[ -n "$line" ]]; then
echo "$line"
else
echo " None!"
fi
done
fi
# Recent activity
if [[ "${FILTER}" == "all" ]]; then
echo ""
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "Recent Activity (last 10)"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
if [[ -f "${EVENTS_FILE}" ]]; then
tail -10 "${EVENTS_FILE}" | jq -r '
"\(.timestamp | split("T")[0] + " " + (.timestamp | split("T")[1] | split(".")[0])) \(.name) " +
(if .success then "β" else "β" end)
'
fi
fi
# Specific item details
if [[ "${FILTER}" != "all" && "${FILTER}" != "commands" && "${FILTER}" != "skills" ]]; then
echo ""
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo "Details: ${FILTER}"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo "$SUMMARY" | jq -r \
--arg name "${FILTER}" \
'
if .items[$name] then
.items[$name] |
"Type: \(.type)\n" +
"Total uses: \(.count)\n" +
"Successful: \(.success)\n" +
"Failed: \(.failure)\n" +
"First used: \(.first_used)\n" +
"Last used: \(.last_used)"
else
"No data found for: " + $name
end
'
# Show recent invocations
if [[ -f "${EVENTS_FILE}" ]]; then
echo ""
echo "Recent invocations:"
grep "\"${FILTER}\"" "${EVENTS_FILE}" | tail -5 | jq -r '
" \(.timestamp) " +
(if .success then "β" else "β \(.error)" end)
'
fi
fi
echo ""
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo "π‘ Tips:"
echo " β’ /analytics:report commands - Show only commands"
echo " β’ /analytics:report skills - Show only skills"
echo " β’ /analytics:unused - Find never-used commands"
echo " β’ /analytics:clear - Reset analytics data"
```
## Post-actions
None.More SEO & Marketing skills
ai-video-generation
skills-101/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
skills-101/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image
ai-avatar-video
skills-101/superpowers
Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

