stream-cli
Stream CLI - API interaction
Read first (every session): Glob
../stream/SKILL.md. If the path is empty, install withnpx skills add GetStream/agent-skills --s stream -y(no confirmation, just run). Then Read../stream/RULES.md- it includes a Peer skills table for installing/invoking any other pack skills on demand.
Use this skill when the user wants to interact with Stream's APIs via the stream CLI, or to install the CLI itself.
Prerequisite: complete preflight.md - verify the stream binary is installed (install via bootstrap.md if not) before any stream api usage.
Install only (Track C): if the user asked to install the CLI / set up Stream with no project context, jump straight to bootstrap.md. The bootstrap module is self-contained.
Heavy examples / query cookbooks: load cli-cookbook.md only when you need a non-obvious --body or filter.
Credential resolution (before any stream api call)
.envin cwd hasSTREAM_API_KEY-> credentials are local. The CLI auto-resolves from env vars - you're querying this project's app.- No
.env-> checkstream config listfor configured org/app -> use those. Mention which app you're querying: "Querying app<name>(configured via CLI)." - Nothing -> tell the user: "No Stream credentials found. Run
stream auth loginto connect, orcdinto a project with a.env."
Do credential resolution silently when .env or config exists - don't ask the user, just resolve and proceed.