No description
| .env | ||
| microsoft_analytics.py | ||
| README.md | ||
| run-analytics.sh | ||
| run.sh | ||
| run_analytics.sh | ||
| run_analytics_log.txt | ||
| SKILL.md | ||
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:
- Execute
./run_analytics.shin the workspace. - Wait for the script to finish.
- Read the output PNG file
microsoft_store_performance_usd.png. - 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.