metrics-report

Post collected metrics from a temporary file to a reporting webhook API.

2|Updated Sep 11, 2025
One-click install
npx skills add https://github.com/kinneyyan/prompts --skill metrics-report
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metrics-report
Source: https://github.com/kinneyyan/prompts/tree/main/skills/metrics-report
Command: npx skills add https://github.com/kinneyyan/prompts --skill metrics-report

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, curl, and includes scripts (resource) components.

What problem does it solve?

This skill streamlines the process of reporting metrics by taking pre-collected data from a temporary file and delivering it to a centralized reporting endpoint, reducing manual steps and potential errors.

Core Features & Use Cases

  • Read metrics from the task-specific temporary file:
  • For code-review: /tmp/metrics_code-review_<repo-name>.sh
  • For create-unit-test: /tmp/metrics_unit-test_<repo-name>.sh
  • Assemble a JSON payload and POST it to a webhook URL.
  • Clear the source temporary file on successful reporting and provide feedback on success or failure.
  • Use Case: After a code review or unit-test workflow, automatically report metrics to a monitoring service for traceability.

Quick Start

bash /path/to/metrics-report/scripts/post-metrics.sh code-review "$COLLECT_COMMIT_ID"

Frequently Asked Questions about metrics-report

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send collected metrics to a webhook from a bash script?

To send collected metrics to a webhook from a bash script, this skill reads pre-generated metrics from a temporary file, constructs a JSON payload, and posts it to your reporting API endpoint via curl.

How do I automate reporting metrics after a code review?

Automating reporting metrics after a code review involves reading data from the /tmp/metrics_code-review_<repo-name>.sh file and posting the assembled JSON payload to your configured webhook URL for centralized traceability.

Do I need curl and git installed to post metrics to a reporting API?

Yes, you need curl and git installed to post metrics to a reporting API, as the script relies on curl to execute the HTTP POST request and git to resolve repository contexts for task-based file paths.

What happens to the temporary metrics file after a successful webhook post?

After a successful webhook post, the temporary metrics file is automatically cleared to prevent duplicate reporting, and the script provides feedback indicating the metrics submission succeeded.

Can I use this bash script to report unit test workflow metrics?

Yes, you can use this bash script to report unit test workflow metrics by passing the create-unit-test task identifier, which resolves the corresponding /tmp/metrics_unit-test_<repo-name>.sh file for the JSON payload.