strava-webhooks

strava-webhooks is a skill for Claude Code, Codex from hookdeck/webhook-skills. It costs 64 tokens per session (1,871 once invoked), scanned A, a copy of adyen-webhooks, MIT.

A guide for connecting Strava push notifications to an application. Strava is a fitness platform, and its webhook events report changes such as new, updated, or deleted activities and athlete access.

In plain words
What is it for?
Use it to create or debug Strava push subscriptions, complete the validation handshake, process activity events, or detect athlete deauthorization.
Why use it?
It explains the one-time callback check needed to activate a subscription and the fact that individual event requests are not cryptographically signed.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hookdeck/webhook-skills/strava-webhooks
Any agent
npx skills add hookdeck/webhook-skills --skill strava-webhooks
Clone the repo
git clone --depth 1 https://github.com/hookdeck/webhook-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin strava-webhooks/plugin install strava-webhooks after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for strava-webhooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/hookdeck/webhook-skills/strava-webhooks.svg)](https://agentmods.dev/skills/hookdeck/webhook-skills/strava-webhooks)
Your own site
<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/strava-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/strava-webhooks.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 77% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00064 $0.01871
Opus 5 $0.00032 $0.00936
Sonnet 5 $0.00013 $0.00374
Haiku 4.5 $0.00006 $0.00187

Measured yesterday against content hash 6f975c6b6100, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

strava-webhooks scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 7 executable files (examples/express/src/index.js, examples/express/test/webhook.test.js, examples/fastapi/main.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://www.strava.com/api/v3/push_subscriptions \
Origin

This is a copy

77% identical to adyen-webhooks — 202 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/strava-webhooks/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Strava Webhooks

When to Use This Skill

  • How do I receive Strava webhooks?
  • How do I set up a Strava push subscription?
  • How do I implement the Strava subscription validation (GET hub.challenge) handshake?
  • Why is my Strava subscription creation failing / callback validation failing?
  • How do I handle Strava activity and athlete events?
  • How do I detect a Strava athlete deauthorization?

How Strava Webhooks Differ

Strava push events are NOT cryptographically signed — there is no per-event signature, HMAC, or shared-secret header to verify on each POST. Authenticity is established once, at subscription time, via a GET handshake:

  1. You POST to https://www.strava.com/api/v3/push_subscriptions with client_id, client_secret, callback_url, and a self-chosen verify_token.
  2. Strava immediately GETs your callback_url with hub.mode=subscribe, hub.challenge=<random>, and hub.verify_token=<your token>.
  3. You confirm hub.verify_token matches your token and respond within 2 seconds with HTTP 200 and JSON body {"hub.challenge":"<echoed value>"}.

After that, Strava POSTs thin event payloads (an object_id, not full data) to the same callback. Acknowledge every event with 200 within 2 seconds or Strava retries (up to 3 total attempts). Fetch full activity/athlete data from the Strava REST API using the object_id. Only ONE subscription is allowed per API application.

Verification (core)

There is no signature to check on events — the security boundary is the GET validation handshake. Compare hub.verify_token against your stored token with a timing-safe comparison, then echo hub.challenge:

const crypto = require('crypto');

// GET /webhooks/strava — subscription validation handshake
function handleValidation(query, expectedToken) {
  const mode = query['hub.mode'];
  const token = query['hub.verify_token'] || '';
  const challenge = query['hub.challenge'];

  const a = Buffer.from(token);
  const b = Buffer.from(expectedToken);
  const tokenOk = a.length === b.length && crypto.timingSafeEqual(a, b);

  if (mode === 'subscribe' && tokenOk) {
    return { status: 200, body: { 'hub.challenge': challenge } }; // exact key name
  }
  return { status: 403, body: 'Forbidden' };
}

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 167 lines · 64 tokens per session scan A 6f975c6b6100

Subscribe to this mod's changes

strava-webhooks is a skill published in the GitHub repository hookdeck/webhook-skills (84 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 1,871 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 77% identical to adyen-webhooks, differing in 202 lines, and is treated as a copy.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens