No description
Find a file
2026-04-03 15:13:27 +09:00
.env firstcommit 2026-04-03 15:13:27 +09:00
microsoft_analytics.py firstcommit 2026-04-03 15:13:27 +09:00
README.md firstcommit 2026-04-03 15:13:27 +09:00
run-analytics.sh firstcommit 2026-04-03 15:13:27 +09:00
run.sh firstcommit 2026-04-03 15:13:27 +09:00
run_analytics.sh firstcommit 2026-04-03 15:13:27 +09:00
run_analytics_log.txt firstcommit 2026-04-03 15:13:27 +09:00
SKILL.md firstcommit 2026-04-03 15:13:27 +09:00

Skill: run-analytics

Description

This skill runs the run_analytics.sh script to collect Microsoft Store analytics data, generate a chart, and post the chart image to a specified Slack channel.

The script expects a .env file in the workspace root containing Microsoft API credentials and app IDs. The resulting PNG file microsoft_store_performance_usd.png is uploaded to Slack via the message tool.

Usage

{
  "command": "run-analytics",
  "args": {
    "channel": "<slack-channel-id>"
  }
}

Note: The Slack channel ID must be a valid ID; it should not be the name. If omitted, the skill will fail.

Implementation

The skill performs the following steps:

  1. Execute ./run_analytics.sh in the workspace.
  2. Wait for the script to finish.
  3. Read the output PNG file microsoft_store_performance_usd.png.
  4. Upload the image to the specified Slack channel.

The skill assumes the script will exit with status 0 on success.

Example

$ openclaw run-analytics --channel "C0APT9433LG"

This will run the analytics and post the chart to channel C0APT9433LG.