archive

A command that saves selected workout details as compact, source-linked Markdown notes, a plain-text document format, organized by date.

In plain words
What is it for?
Use it to archive workouts from Intervals.icu or Strava, including metrics, equipment, descriptions, and a short assessment of the session.
Why use it?
It creates a searchable memory of activities without keeping unnecessary raw files, location data, or full sensor streams.

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/rlacombe/switchback-running/archive
Any agent
npx skills add rlacombe/switchback-running --skill archive
Clone the repo
git clone --depth 1 https://github.com/rlacombe/switchback-running

Made for: Claude Code, Codex.

Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 424 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00010 $0.00424
Opus 5 $0.00005 $0.00212
Sonnet 5 $0.00002 $0.00085
Haiku 4.5 $0.00001 $0.00042

Measured 3d ago against content hash 8af9e020553a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

archive scanned grade A with 0 findings 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 3d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/archive/SKILL.md · 18 lines

What it actually says

/archive — Activity Memory

Archive one activity or a requested date range into compact Markdown notes under athlete/activities/YYYY/MM/. This is a user-owned retrieval layer, not a raw-data mirror. An explicit /archive request always proceeds, even if automatic activity memory has been disabled.

  1. Determine the requested activity or date range. Use Intervals.icu if available; otherwise use Strava. If both report the same session, archive one note with both source IDs rather than duplicate the activity.
  2. Fetch the activity detail. Use streams only if needed to answer a specific question. Do not request route coordinates unless the athlete explicitly asks for route analysis.
  3. Create or update the note at athlete/activities/YYYY/MM/YYYY-MM-DD--provider--activity-id.md using athlete/activity-note.example.md as the schema.
  4. Retain: source ID, timestamp/timezone, sport type, distance, duration, elevation, pace/speed, heart rate, load, power/cadence, perceived exertion, gear, the athlete-authored description when relevant, and a concise plan/execution/assessment section.
  5. Do not retain GPX/TCX/FIT files, GPS coordinates, raw streams, or third-party Strava comments. Record only that streams are available from the provider. Do not overwrite an athlete's manually edited narrative sections.
  6. Put a pattern into athlete/notes.md only when it is durable across activities; an activity-specific observation stays in that activity note.
  7. For a first-time backfill, ask the athlete for the desired lookback period before fetching: for example, 1, 3, 6, or 12 months. Do not choose a period or archive historical activities silently. After completion, record the selected period and completion date in athlete/profile.md under Activity-memory backfill.
  8. Report the paths created or updated and the count of activities archived.
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. 3d ago First seen · 18 lines · 10 tokens per session scan A 8af9e020553a

Subscribe to this mod's changes

archive is a skill published in the GitHub repository rlacombe/switchback-running (11 stars, last pushed 8d ago), licensed MIT. It adds 10 tokens to every session and 424 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

platform-api

Queries the Genesys Cloud Platform API schema for endpoint details, permissions, parameters, and response formats. Use when user asks about Genesys Cloud API endpoints (e.g., "/api/v2/assistants/queues"), API documentation, API permissions, schemas, capabilities, or when implementing Genesys Cloud operations.

MakingChatbots/genesys-cloud-skills · 65 tokens

google-adk-python

Build production-ready AI agents in Python using Google Agent Development Kit (ADK). Use when creating agentic Python applications with LlmAgent, workflow agents (SequentialAgent, ParallelAgent, LoopAgent), multi-agent orchestration, tool development (function tools, MCP, OpenAPI), session and state management…

vysotin/cc_google_adk_skill · 146 tokens

google-adk-typescript

Build production-ready AI agents in TypeScript using Google Agent Development Kit (ADK). Use when creating agentic TypeScript/JavaScript applications with LlmAgent, workflow agents (SequentialAgent, ParallelAgent, LoopAgent), custom agents (BaseAgent with runAsyncImpl), FunctionTool with Zod schemas, MCP and OpenAPI…

vysotin/cc_google_adk_skill · 167 tokens

mermaid-visualizer

Transform text content into professional Mermaid diagrams for presentations and documentation. Use when users ask to visualize concepts, create flowcharts, or make diagrams from text. Supports process flows, system architectures, comparisons, mindmaps, and more with built-in syntax error prevention.

breferrari/obsidian-mind · 57 tokens

wiki-manager

Manage LLM-compiled wikis: initialize, ingest/import, compile/query, research/audit, collect catalogs, track inventory/datasets/Ideas, review Idea/Project portfolios, manage archives/sessions/feedback, and generate outputs. Activates for /wiki commands; wiki or knowledge-base work; ingest, collect, catalog, compile…

nvk/llm-wiki · 141 tokens

unity-vrc-skills-renovator

VRChat skill renovator for knowledge fill, refresh, and quality improvement. Use this skill when updating VRChat skills to new SDK versions, filling missing knowledge, fixing outdated information, or improving skill quality. Targets unity-vrc-udon-sharp and unity-vrc-world-sdk-3 skills. Triggers on: update skills, SDK…

niaka3dayo/agent-skills-vrc-udon · 101 tokens