Rootly Morning Brief
by @yanibu2777
Generate and deliver a Rootly morning incident digest for on-call operations. Use when the user asks for a daily Rootly briefing, incident summary, on-call s...
clawhub install rootly-morning-briefπ About This Skill
name: rootly-morning-brief description: Generate and deliver a Rootly morning incident digest for on-call operations. Use when the user asks for a daily Rootly briefing, incident summary, on-call snapshot, overdue action item report, or wants to schedule a cron-based morning ops update to Slack. metadata: { "openclaw": { "requires": { "env": ["ROOTLY_API_KEY"] }, "primaryEnv": "ROOTLY_API_KEY" } }
Rootly Morning Brief
Run scripts/rootly_morning_brief.py to print a short Rootly digest to stdout. OpenClaw cron --announce handles Slack delivery.
The output is phone-friendly by default: one line per item, Slack deep links for drill-down, and --max-items defaults to 3.
Required Inputs
ROOTLY_API_KEY: Rootly API key (or a readable secret file fallback)Optional Inputs
ROOTLY_BASE_URL (default https://api.rootly.com)ROOTLY_TIMEZONE (default America/Toronto)ROOTLY_INCLUDE_PRIVATE (true/false, default false)ROOTLY_API_KEY_FILE (path to a file containing only the API key)ROOTLY_BRIEF_LOG_LEVEL (WARNING default; set to INFO or DEBUG for troubleshooting)ROOTLY_MOCK_DATA_DIR (optional local mock data directory)Run Commands
Manual test:
python3 scripts/rootly_morning_brief.py
Include private incidents (opt-in):
python3 scripts/rootly_morning_brief.py --include-private
Run with local sandbox data (no Rootly account needed):
python3 scripts/rootly_morning_brief.py --mock-data-dir ./mock-data
Machine-readable output:
python3 scripts/rootly_morning_brief.py --json
Cron Setup (Daily 8:00 AM Toronto)
openclaw cron add \
--name "Rootly morning brief" \
--cron "0 8 * * *" \
--tz "America/Toronto" \
--session isolated \
--message "Use rootly-morning-brief. Run scripts/rootly_morning_brief.py and print the full digest." \
--announce
To pin delivery to a specific Slack channel, add:
--channel slack --to "channel:CXXXXXXX"Example stdout
*Rootly Morning Brief* β Sun Mar 15
At a glance: 2 active (1 SEV0/SEV1) Β· 1 resolved in 24h Β· 2 on-call now Β· 1 overdue*Active now*
β’ π¨ β [SEV0] Β· [OPEN] Β· started Sun 6:42 AM
β’ π§ β [SEV2] Β· [OPEN] Β· started Sun 5:25 AM
*On-call now*
β’ Nicole Bu β L1 primary
β’ Jordan Patel β L2 secondary
*Overdue actions*
β’ β οΈ β [P1] Β· due Sat 7:30 AM Β· Nicole Bu Β· SEC-742
*Resolved (24h)*
β’ β resolved Sun 12:02 AM
Agent Execution Rules
1. Always run scripts/rootly_morning_brief.py located in the rootly-morning-brief skill directory; do not reimplement the digest manually.
2. Return script stdout as-is for delivery; do not paraphrase or rewrite the section structure.
3. If --mock-data-dir is set, run entirely from local mock files.
4. If --mock-data-dir is not set, use ROOTLY_API_KEY, then ROOTLY_API_KEY_FILE, then standard OpenClaw secret-file paths.
5. Use timezone America/Toronto unless the user asks otherwise.
6. Default to public-only incidents.
7. Only include private incidents if the user explicitly opts in.
8. Keep output short and readable on a phone screen.
9. If one section has no data, include a clear "none" line instead of omitting the section.