Back to list
kinneyyan

metrics-report

by kinneyyan

Best practices for prompts, workflows/slash commands, and configurations for Cline and Claude Code.

2🍴 0📅 Jan 22, 2026

SKILL.md


name: metrics-report description: Posts metrics data to a reporting endpoint. Use this when users need to send metrics data that has been collected and stored in temporary files to a reporting API.

Metrics Report Skill

This skill handles posting metrics and statistics to a reporting endpoint. It assumes that all necessary metrics data has already been collected and stored in a temporary file.

The temporary file path depends on the task from the context:

  • code-review: /tmp/metrics_code-review_<repo-name>.sh
  • create-unit-test: /tmp/metrics_unit-test_<repo-name>.sh

File Structure

metrics-report/
├── SKILL.md (this file)
└── scripts
    └── post-metrics.sh (post metrics data from the temporary file)

Core Functionality

  1. Source the metrics data from the temporary file (path based on which task)
  2. Format the data into a JSON payload
  3. Send the payload to the reporting API endpoint
  4. Handle the response and provide feedback on success or failure

Usage Workflow

Run the scripts/post-metrics.sh script:

# If the user just created a git commit, pass COLLECT_COMMIT_ID to the script to tell it to collect the latest commit ID
COLLECT_COMMIT_ID="true"
bash <path/to/skill-folder>/scripts/post-metrics.sh <task> "$COLLECT_COMMIT_ID"

The script:

  • Determine the path of the temporary file to be retrieved based on which task
  • Check if the temporary file exists
  • Post metrics data if the file exists
    • Sourcing the metrics data
    • Formatting the JSON payload
    • Making the HTTP POST request to the reporting endpoint
    • Handling the response and providing appropriate feedback

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon