Agent skill

Managing Hydration

by GoogleCloudPlatform in GoogleCloudPlatform/race-condition

A skill your agent uses when a runner agent receives a distance update and must deplete water proportionally, or when the runner enters a hydration station and must decide whether to stop and…

Apache-2.0Auto-check passed

Install Managing Hydration

skills CLI
$ npx skills add GoogleCloudPlatform/race-condition --skill managing-hydration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GoogleCloudPlatform/race-condition managing-hydration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/race-condition.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/runner/skills/managing-hydration .claude/skills/managing-hydration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
managing-hydration
GitHub stars
234
Token cost
~360 tokens
SKILL.md length
155 words
Files
3
Skills in repo
16
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when a runner agent receives a distance update and must deplete water proportionally, or when the runner enters a hydration station and must decide whether to stop and…

  • Works in 3 steps: Deplete Hydration: When you receive a… → Rehydrate at Stations: When you enter a… → Avoid Collapse: If hydration drops below…
  • A runner agent receives a distance update and must deplete water proportionally
  • SKILL.md covers Instructions and Tools
  • Runs Python scripts from its folder

What it does

Managing Hydration is an agent skill from GoogleCloudPlatform/race-condition. Use when a runner agent receives a distance update and must deplete water proportionally, or when the runner enters a hydration station and must decide whether to stop and rehydrate. Triggered by distance events and station events.

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `runner_hydration_tools_test.py` and `tools.py`).

The repository describes itself as: The open source multi-agent simulation from the Developer Keynote at Google Cloud Next '26. A deployable reference architecture for autonomous AI agents using Gemini and ADK. The licence is Apache-2.0.

When your agent uses it

  • A runner agent receives a distance update and must deplete water proportionally
  • The runner enters a hydration station and must decide whether to stop and rehydrate

Example prompts

  • “/managing-hydration”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Deplete Hydration: When you receive a distance update, call deplete_water to reduce your hydration based on how far you ran
  2. Rehydrate at Stations: When you enter a hydration station, decide whether to call rehydrate based on your current hydration
  3. Avoid Collapse: If hydration drops below 30, you become exhausted. If it drops below 10 while exhausted, you collapse and cannot continue.

What it can do on your machine

Read from SKILL.md and the folder at commit 26efc1b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Managing Hydration loads about 360 tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 155 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~360

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from GoogleCloudPlatform/race-condition at commit 26efc1b, republished under its Apache-2.0 licence (© GoogleCloudPlatform). 155 words, ~360 tokens.

Download SKILL.mdSave it as .claude/skills/managing-hydration/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
managing-hydration
description
Use when a runner agent receives a distance update and must deplete water proportionally, or when the runner enters a hydration station and must decide whether to stop and rehydrate. Triggered by distance events and station events.
license
Apache-2.0

Managing Hydration

The runner starts the race partially hydrated (typically 88-100, ability-correlated). Water depletes over distance and affects performance.

Instructions

  1. Deplete Hydration: When you receive a distance update, call deplete_water to reduce your hydration based on how far you ran:
    • Base loss: ~3.2 per mile (scaled by runner ability).
    • Fatigue growth rate: ~3.2% per mile of total distance run.
  2. Rehydrate at Stations: When you enter a hydration station, decide whether to call rehydrate based on your current hydration:
    • Hydration <= 40: always stop.
    • Hydration 41-60: stop ~50% of the time.
    • Hydration > 60: stop ~30% of the time.
    • If exhausted: always stop.
  3. Avoid Collapse: If hydration drops below 30, you become exhausted. If it drops below 10 while exhausted, you collapse and cannot continue.

Tools

  • deplete_water: Deplete hydration by the given amount. Tracks exhaustion and collapse automatically.
  • rehydrate: Rehydrate at a station (capped at 100).

Note: Call these tools directly (no prefix like "managing-hydration:").

© GoogleCloudPlatform, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in agents/runner/skills/managing-hydration of GoogleCloudPlatform/race-condition.

  • SKILL.md
  • runner_hydration_tools_test.py
  • tools.py

Open the folder on GitHubat commit 26efc1b

Compare with similar skills

Managing Hydration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Managing Hydration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Managing Hydration this skillGoogleCloudPlatform/race-condition234—~360Automated safety check: PassApache-2.0
Depot GitHub RunnersPostHog/posthog40k—~2.8kAutomated safety check: PassCustom licence
Secrets Managementdavila7/claude-code-templates32k12 repos~2kAutomated safety check: PassMIT
Project ManagerRightNow-AI/openfang18k—~960Automated safety check: PassApache-2.0
Content Management Systemsgithub/awesome-copilot40k1 repos~1.3kAutomated safety check: PassMIT
Secrets Vault Manageralirezarezvani/claude-skills28k1 repos~3.6kAutomated safety check: NotesMIT

Similar skills

  • Depot GitHub Runners

    PostHog/posthog

    Official

    Configures Depot-managed GitHub Actions runners as a drop-in replacement for GitHub-hosted runners.

    40k GitHub stars~2.8k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Secrets Management

    davila7/claude-code-templates

    Secure secrets management practices for CI/CD pipelines using Vault, AWS Secrets Manager, and other tools.

    32k GitHub starsUsed in 12 repos~2k tokens
    DevOps & CloudAuto-check passed
  • Project Manager

    RightNow-AI/openfang

    Project management expert for Agile, estimation, risk management, and stakeholder communication

    18k GitHub stars~960 tokensUpdated 3 mo ago
    Product & Project ManagementAuto-check passed
  • Content Management Systems

    github/awesome-copilot

    Official

    Workflow for building and modifying content management systems across WordPress, Shopify, Wix, Squarespace, Drupal, WooCommerce, Joomla, HubSpot CMS Hub, Webflow, Adobe Experience Manager, and…

    40k GitHub starsUsed in 1 repo~1.3k tokens
    Sales & SupportAuto-check passed
  • Secrets Vault Manager

    alirezarezvani/claude-skills

    A skill your agent uses when the user asks to set up secret management infrastructure, integrate HashiCorp Vault, configure cloud secret stores (AWS Secrets Manager, Azure Key Vault, GCP Secret…

    28k GitHub starsUsed in 1 repo~3.6k tokens
    DevOps & CloudAuto-check: notes
  • Robius State Management

    sickn33/agentic-awesome-skills

    CRITICAL: Use for Robius state management patterns. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~3.3k tokens
    Frontend & DesignAuto-check passed

More from GoogleCloudPlatform/race-condition

All 16 skills in this repo
  • Gis Spatial Engineering

    GoogleCloudPlatform/race-condition

    A skill your agent uses when the marathon plan needs a 26.2-mile physical route generated from road-network GeoJSON, or when the request mentions traffic impact, route variety via seed, finishing…

    234 GitHub stars~672 tokensUpdated 3 days ago
    Auto-check passed
  • A2ui Rendering

    GoogleCloudPlatform/race-condition

    A skill your agent uses when an agent renders rich UI back to a client surface (cards, dashboards, forms, modals) using the A2UI v0.8.0 declarative protocol.

    234 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Contributing

    GoogleCloudPlatform/race-condition

    Guides the developer workflow for contributing to Race Condition.

    234 GitHub stars~930 tokensUpdated 3 days ago
    Auto-check passed
  • Deploying

    GoogleCloudPlatform/race-condition

    Guides deployment of Race Condition to a GCP project. An agent skill from GoogleCloudPlatform/race-condition.

    234 GitHub stars~3k tokensUpdated 3 days ago
    Auto-check passed
  • Exploring The Codebase

    GoogleCloudPlatform/race-condition

    Explains the Race Condition architecture, the design decisions behind it, and where to read code first.

    234 GitHub stars~2.6k tokensUpdated 3 days ago
    Auto-check passed
  • Getting Started

    GoogleCloudPlatform/race-condition

    Guides setup of the Race Condition project from clone to running simulation.

    234 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check: notes

Questions about Managing Hydration

What does Managing Hydration do?

A skill your agent uses when a runner agent receives a distance update and must deplete water proportionally, or when the runner enters a hydration station and must decide whether to stop and…. Managing Hydration is an agent skill from GoogleCloudPlatform/race-condition. Use when a runner agent receives a distance update and must deplete water proportionally, or when the runner enters a hydration station and must decide whether to stop and rehydrate.

When should I use Managing Hydration?

Managing Hydration fits situations like: A runner agent receives a distance update and must deplete water proportionally; the runner enters a hydration station and must decide whether to stop and rehydrate.

How do I install Managing Hydration in Claude Code?

Run `npx skills add GoogleCloudPlatform/race-condition --skill managing-hydration -a claude-code`. Or copy the skill folder (agents/runner/skills/managing-hydration in GoogleCloudPlatform/race-condition) into .claude/skills/managing-hydration in your project. Claude Code loads it when a task matches its description.

How do I install Managing Hydration in Codex?

Run `npx skills add GoogleCloudPlatform/race-condition --skill managing-hydration -a codex`. Or copy the skill folder (agents/runner/skills/managing-hydration in GoogleCloudPlatform/race-condition) into .agents/skills/managing-hydration in your project. Codex loads it when a task matches its description.

Can I use Managing Hydration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GoogleCloudPlatform/race-condition --skill managing-hydration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/managing-hydration, .gemini/skills/managing-hydration, .github/skills/managing-hydration and .opencode/skills/managing-hydration in your project.

What does Managing Hydration need to run?

Going by SKILL.md and its folder, Managing Hydration needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Managing Hydration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Managing Hydration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Managing Hydration use?

Managing Hydration is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Managing Hydration use?

About 360 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Managing Hydration?

Skills that share tags, products or a category with Managing Hydration: Depot GitHub Runners (PostHog/posthog, 40k stars), Secrets Management (davila7/claude-code-templates, 32k stars), Project Manager (RightNow-AI/openfang, 18k stars) and Content Management Systems (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Managing Hydration?

GoogleCloudPlatform (a GitHub organization) maintains it in GoogleCloudPlatform/race-condition, which has 234 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 5, 2026.

Source: GoogleCloudPlatform/race-condition on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.