Xpersona
D

Daily Strava Roast

CLAWHUB · Unverified

Generate a playful or sharp daily roast of recent Strava activity. Use when asked to roast, recap, tease, or humorously summarize a Strava workout or a recen...

62
Rank
84
Safety
966
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 966 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17e3vv7j1w5r4v0jj07tss96x83m1h7:daily-strava-roast
  1. Install using `clawhub skill install s17e3vv7j1w5r4v0jj07tss96x83m1h7:daily-strava-roast` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/ranasalalali/daily-strava-roast before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ranasalalali-daily-strava-roast/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

149,738 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: daily-strava-roast
description: Generate a playful or sharp daily roast of recent Strava activity. Use when asked to roast, recap, tease, or humorously summarize a Strava workout or a recent day of training. Useful for scheduled daily activity roasts, playful fitness summaries, or lightly sarcastic post-workout commentary. Prefer the deterministic package/script for data prep and fallback; when running inside OpenClaw, use the connected/default runtime model only for the final paragraph if available, then fall back to the deterministic roast path on failure.
---

# Daily Strava Roast

Use this skill to turn recent Strava activity into a short roast-style summary.

## Default workflow

1. Use the deterministic implementation first to fetch and summarize activity.
2. If you are inside OpenClaw and want the V2 path, use the structured context/prompt output as model input for the **final paragraph only**.
3. If connected-model generation is unavailable or weak, fall back to the deterministic roast output.
4. Do not pretend the standalone Python package has a built-in OpenClaw connected-model API if it does not.

## What this skill does

This skill provides:
- deterministic Strava fetch + summary tooling
- adjustable tones and spice levels
- V1 roast fallback that is stable and testable
- V2 context/prompt building for better final-paragraph generation in the OpenClaw runtime

## Preferred commands

Use the packaged CLI for deterministic preparation and fallback:

```bash
uv run --project {baseDir} daily-strava-roast summary --json --pretty
uv run --project {baseDir} daily-strava-roast context --pretty
uv run --project {baseDir} daily-strava-roast prompt
uv run --project {baseDir} daily-strava-roast roast
```

Do not rely on the removed legacy script path. Use the packaged CLI commands only.

## Runtime guidance

When invoked inside OpenClaw for an actual roast reply:
- run deterministic preparation first
- use the connected/default runtime model only to write the final roast paragraph
- keep that paragraph to one short paragraph
- do not invent stats
- if generation fails, return the deterministic roast instead of erroring

### Runtime recipe

Use this sequence:

1. Build context JSON:

```bash
uv run --project {baseDir} daily-strava-roast context --pretty
```

2. Build the constrained prompt:

```bash
uv run --project {baseDir} daily-strava-roast prompt
```

3. Ask the connected/default OpenClaw runtime model to write the final paragraph from that prompt.
4. Before replying, sanity-check the generated paragraph:
   - exactly one paragraph
   - one or two sentences max unless unusually short
   - no bullet points
   - no invented stats
   - no stat dump; usually no more than two concrete metrics unless a third really earns its place
   - not generic AI filler
   - avoids banned phrases, stale identity/relationship jokes, pet phrases, and over-clever wording
   - avoids poetic or cosmic phrasing
   - tone matches requested spice/tone closely

README.md

# daily-strava-roast

[![CI](https://github.com/ranasalalali/daily-strava-roast/actions/workflows/ci.yml/badge.svg)](https://github.com/ranasalalali/daily-strava-roast/actions/workflows/ci.yml)

A portable AgentSkill and Python CLI for turning recent Strava activity into a funny daily roast.

## Overview

`daily-strava-roast` reads recent Strava activity and turns it into a short recap with adjustable sarcasm.

It is built for:
- playful workout summaries
- scheduled daily activity roasts
- post-workout recaps with personality
- configurable tone and spice level
- slightly unnecessary but highly respectable levels of sass

## Quick start

```bash
uv run --project . daily-strava-roast roast
uv run --project . daily-strava-roast roast --tone playful --spice 3
uv run --project . daily-strava-roast summary --json --pretty
```

## Strava auth behaviour

This CLI is designed to be hands-off after initial setup.

Canonical config locations:
- app credentials: `~/.openclaw/secure/strava_app.json`
- tokens: `~/.openclaw/workspace/agents/tars-fit/strava_tokens.json`

Expected behaviour:
- if the token file exists and includes a valid `refresh_token`, expired access tokens are refreshed automatically
- if the activity fetch still returns `401`, the CLI forces one refresh and retries once
- if there is no token file, invalid token JSON, or required token fields are missing, the CLI returns `status: initial_setup_required`
- if the token file exists but app credentials are missing/incomplete, the CLI returns `status: config_incomplete`
- if refresh still fails after setup exists, the CLI returns `status: reauth_required`

Operational guidance:
- prefer the secure JSON config over shell startup files or ad hoc sourced env vars
- treat `~/.openclaw/secure/strava_app.json` as the one canonical place for Strava app credentials
- both the packaged CLI and the legacy script should read from that secure config by default
- do not commit secrets or token files

That gives an agent a reliable machine-readable split between:
- **first-time setup needed**
- **app config incomplete**
- **manual reauthorisation needed**
- **temporary Strava/network failure**

## Why it exists

There are already serious Strava integration and coaching skills.

This project exists for a far nobler purpose: making your training log entertaining enough to deserve being read.

## One canonical repo, two interfaces

This repo serves both as:
- a **portable AgentSkill** via `SKILL.md`
- a **small Python CLI** via the packaged `daily-strava-roast` command

That keeps the implementation, local use, and eventual publication aligned in one place.

## Features

- fetch recent Strava activity from a token file
- automatically refresh expired Strava access tokens using the stored refresh token
- retry once after a Strava 401 before giving up
- return a clear `initial_setup_required` status when first-time Strava setup is missing or incomplete
- return a clear `reauth_required` status when manual reauth

_meta.json

{
  "ownerId": "kn7bt9dt5asfek77repfgbjcxh83ns6x",
  "slug": "daily-strava-roast",
  "version": "0.2.5",
  "publishedAt": 1776608308152
}

references/design.md

# Daily Strava Roast design notes

## Goal

Generate short, funny, human-readable commentary from recent Strava activity.

## Primary input

Recent Strava activity JSON fetched from the athlete activities endpoint.

Useful fields include:
- `name`
- `sport_type` or `type`
- `distance`
- `moving_time`
- `elapsed_time`
- `total_elevation_gain`
- `average_speed`
- `average_heartrate`
- `max_heartrate`
- `average_watts`
- `suffer_score`
- `kudos_count`
- `start_date_local`
- `trainer`
- `commute`

## Output style

Keep roasts short.

Good output traits:
- 1–4 lines
- playful, readable, and specific
- based on actual metrics, not random invented insults
- able to switch between dry/playful/savage/coach modes

## Failure cases

If there is no recent activity:
- do not invent one
- produce a short joke about rest day / inactivity / stealth mode

If data is sparse:
- roast gently and mention only what is known

## Scheduling intent

This skill should be usable by a scheduler later, so the roast output should be:
- concise
- deterministic enough to test
- still varied by tone and activity type

## Package vs runtime boundary

Keep this distinction explicit:
- the package/CLI owns deterministic fetch, local-day targeting, rollup, context, prompt prep, preview, and stable fallback roast generation
- the OpenClaw runtime can own connected/default-model generation for the final paragraph when available
- if the runtime generation path fails, use the deterministic roast rather than surfacing a brittle model error to the end user

## Security / publish hygiene

Do not publish or bundle:
- local token files
- local state snapshots unless intentionally sanitized
- virtualenv directories
- build artifacts from previous releases

The published skill should contain only the files needed for agent use, references, tests, and deterministic code paths.

Avoid adding optional local-exec helper paths to the published package unless they are truly required for the supported public workflow.

CHANGELOG.md

# Changelog

All notable changes to `daily-strava-roast` will be documented in this file.

## 0.2.5

- use richer recent-day roast memory so future roasts can reference streaks, recent load, and prior-day context more naturally
- persist structured roast history state instead of relying mostly on prior roast text
- improve prompt/context guidance to use recent training context when it actually sharpens the joke

## 0.2.4

- retire the legacy `scripts/strava_roast.py` path and standardize on the packaged CLI only
- make `~/.openclaw/secure/strava_app.json` the documented canonical source for Strava app credentials
- improve auth-state reporting for initial setup, config-incomplete, and reauth-required cases
- align TARS-Fit docs and runtime usage around the secure config flow

## 0.2.3

- sanitize activity names before they enter roast context/prompt construction
- treat activity titles as untrusted labels in the prompt instructions
- reduce indirect prompt-injection risk from externally sourced activity names

## 0.2.2

- remove the optional local generator subprocess path from the published package
- remove the `generate` CLI command and related test coverage
- tighten docs so the package remains clearly deterministic-first
- reduce scanner suspicion by removing unnecessary local-exec surface area

## 0.2.1

- document publish hygiene and clean ClawHub bundle expectations
- update README and V2 docs to reflect the shipped 0.2.x state
- clarify security/publish guidance for excluding local state, virtualenvs, build artifacts, and secrets

## 0.2.0

- merge the V2 branch into main
- add deterministic daily target-date selection so no-activity days roast correctly
- add structured V2 roast context and constrained prompt generation
- add lightweight roast memory hints for recent joke families, openings, and targets
- sharpen runtime prompt guidance for drier, meaner, less repetitive output
- clarify package-vs-runtime boundaries in the skill and V2 docs
- add focused regression coverage for prompt building, target-day behavior, generator behavior, and roast-memory hints

## 0.1.2

- improve inactivity roast logic with better gap-based judgment
- add lightweight roast memory to reduce repetition and notice short-term patterns
- add occasional heart-rate flavor to enrich some roasts
- improve roast phrasing, defaults, and no-activity narrative flow

## 0.1.1

- improve roast phrasing
- improve inactivity handling
- add lightweight roast memory foundations

## 0.1.0

- initial public release
- portable AgentSkill + CLI structure
- daily roll-up roast behavior
- tone and spice controls
- fixture-based smoke test and CI

Sponsored

Ads related to Daily Strava Roast and adjacent AI workflows.