runtime-context

Installation
SKILL.md

Runtime Context

Agents run in different environments with different capabilities. This skill detects the current runtime so agents can use the right tools and fail clearly when a required capability is missing.

The Three Runtimes

Runtime How to detect Tools available Skills via
Claude Code CLAUDE_CODE=1 env var, or Skill()/Agent()/Read tools exist Full suite: Read, Write, Edit, Bash, Grep, Glob, Agent, Skill, WebFetch, WebSearch Skill() tool
Vercel Sandbox /vercel/sandbox/ paths exist, VERCEL_SANDBOX_ID env var set bash-tool trio: bash, readFile, writeFile, plus skill if configured createSkillTool() from bash-tool
Local dev Neither of the above, process.cwd() is in user home or project dir Whatever the app provides (usually just HTTP + AI SDK) Direct file reads or none

Detection Script

Run scripts/detect.sh to get a JSON summary of the current environment:

Related skills

More from b-open-io/prompts

Installs
9
GitHub Stars
12
First Seen
Mar 10, 2026