clawsights

📁 clawsights/clawsights 📅 Feb 10, 2026
8
总安装量
8
周安装量
#35744
全站排名
安装命令
npx skills add https://github.com/clawsights/clawsights --skill clawsights

Agent 安装分布

claude-code 8
mcpjam 1
kilo 1
junie 1
windsurf 1
zencoder 1

Skill 文档

Clawsights — Upload Your Claude Code Stats

Before starting, create a task list with these items so the user can see progress:

  1. Get GitHub identity
  2. Generate insights report
  3. Read and preview report
  4. Confirm upload
  5. Upload to Clawsights
  6. Show results

Mark each task as in_progress when you start it and completed when done. Follow these steps exactly:

Step 1: Get GitHub Identity

Tell the user: “I’ll grab your GitHub identity so Clawsights can create your profile at clawsights.com/{handle}.”

Run these commands to get the user’s GitHub handle and auth token:

gh api user --jq '.login'
gh auth token

If gh is not installed or the user is not logged in, tell them:

Store the handle and token for later use. Do not show the token to the user.

Step 2: Run /insights

Run the /insights skill to generate a fresh report. Wait for it to complete fully.

Step 3: Read the Report

Read the file at ~/.claude/usage-data/report.html.

Also extract the subtitle line for the preview. It looks like:

<p class="subtitle">38,539 messages across 4769 sessions | 2025-12-19 to 2026-02-09</p>

Step 4: Show Preview and Confirm

Display a preview of what will appear on their profile. Extract these from the report HTML and show them:

=== Clawsights Upload Preview ===
GitHub: @{handle}
Date range: {date_from} to {date_to}

Messages:      {totalMessages}
Sessions:      {totalSessions}
Lines Changed: +{linesAdded} / -{linesRemoved}
Msgs/Day:      {msgsPerDay}

This will be publicly visible at clawsights.com/{handle}
Your full insights report will be embedded on your profile page.

Omit any section that has no data. Then use the AskUserQuestion tool to ask:

Question: “Ready to upload?”

  • Options:
    • “Upload” — Upload stats to clawsights.com
    • “Cancel” — Don’t upload anything

If they choose Cancel, stop here.

Step 5: Upload

First, determine the upload URL. Run this command and use the output as the base URL:

echo ${CLAWSIGHTS_URL:-https://clawsights.com}

Then make a POST request using that base URL:

curl -s -X POST BASE_URL/api/upload \
  -H "Content-Type: application/json" \
  -d "{\"github_token\": \"TOKEN_HERE\", \"report_html\": $(cat ~/.claude/usage-data/report.html | jq -Rs .)}"

Replace BASE_URL with the output from the echo command above. Replace TOKEN_HERE with the actual token from Step 1.

Step 6: Show Result

Parse the JSON response and display:

Uploaded! View your profile: https://clawsights.com/{handle}
Leaderboard rank: #{rank} out of {total_users} users

If the upload fails, show the error message from the response.