/coder-skills:workspacesfrom coder-skills
Operates Coder workspaces via the CLI: list, create, start, stop, delete, SSH into, port-forward, and read logs. For remote dev environments.
Ships in coder-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Operate an existing Coder deployment with the coder CLI. A
workspace is a remote development environment, and it is where a
coding agent does its work: the agent runs commands, edits files,
and serves ports inside the workspace instead of on the user's
machine. This skill covers getting into one, working in it, and
driving its lifecycle.
coder <subcommand> --help is authoritative for flags and output
columns, and both change between releases. Read it before running a
command you have not run in this session. Anything the CLI does not
cover is at https://coder.com/docs/llms.txt.
Run coder whoami. Three outcomes:
coder is not on PATH: install it with
curl -fsSL https://coder.com/install.sh | sh, or use the setup
skill if the user has no deployment yet.coder login <deployment-url> and stop. The flow opens a browser
for a session token, so they run it, not you.Then check whether you are already inside a Coder workspace:
CODER_AGENT_TOKEN or CODER_WORKSPACE_NAME in the environment
means you are. In that case work with local tools directly instead
of coder ssh, and never stop or delete the workspace you are
running in.
Every command below has to run without a human at the terminal.
-o json wherever it is offered and parse that. Table output
is for humans and its columns move.-y to coder create, start, stop, restart, and
delete. Without it they block on a confirmation prompt.coder ssh <workspace> -- <command> runs one command and exits.
Bare coder ssh <workspace> opens an interactive shell and will
hang. Never run it.coder logs -f, coder port-forward,
coder ping without -n) run until interrupted. Give them a
bound or run them in the background.<owner>/<workspace>.coder ssh <workspace>.<agent> -- <command>. Without it the CLI
errors and lists the available agents.coder list -o json lists the user's
workspaces; coder list -o json --search <query> or --all
widens it. coder show <workspace> prints resources, agents, and
apps for one.status: stopped in coder list. coder start <workspace> -y
starts it, or let coder ssh autostart it.coder logs <workspace> for the last build,
coder show <workspace> for the current state.| Task | Command |
|---|---|
| List workspaces | coder list -o json (add --all or --search) |
| Inspect one | coder show <workspace> |
| Create from a template | coder create <name> --template <template> -y (add --preset <preset> or --parameter name=value) |
| Discover templates and presets | coder templates list -o json, coder templates presets list <template> |
| Start, stop, restart | coder start <workspace> -y, coder stop <workspace> -y, coder restart <workspace> -y |
| Delete | coder delete <workspace> -y |
| Update to the latest template version | coder update <workspace> |
| Build logs | coder logs <workspace> (-n -1 for the previous build) |
coder create fails on a template with required parameters unless
you supply them. Read them from
coder templates presets list <template> or ask the user; do not
guess values.
| Task | Command |
|---|---|
| Run a command | coder ssh <workspace> -- <command> |
| Run with env vars | coder ssh <workspace> -e KEY=value -- <command> |
| Read a file | coder ssh <workspace> -- cat <path> |
| Write a file | coder ssh <workspace> -- tee <path> < local-file |
| Copy files in or out | coder config-ssh -y, then scp/rsync against the generated host |
| Wait for the startup script | coder ssh <workspace> --wait yes -- true |
| Forward a port | coder port-forward <workspace> --tcp 8080:8080 |
| Check connectivity | coder ping <workspace> -n 3 |
coder config-ssh -y writes host entries into ~/.ssh/config, which
makes every ssh-aware tool (scp, rsync, git, editors) work
against the workspace. Prefer it over shell heredocs for anything
larger than a one-liner. Run coder config-ssh --dry-run first to
see the host names it generates; the pattern depends on the
deployment's hostname suffix.
A workspace's startup script may still be running right after a
start. --wait yes blocks until it finishes; without it a command
can land in a half-provisioned environment.
coder delete is irreversible.stop over delete when the user says "shut down" or
"turn off".Coder-Session-Token headers, or the
contents of ~/.config/coderv2. Do not pass a token on a command
line.coder delete --orphan leaves cloud resources behind. Use it only
when the user asks and a normal delete has already failed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub coder/skills --plugin coder-skills4 skills in this plugin
/modulesAdd a Coder module from registry.coder.com/modules to an existing Coder template, or update one that is already there. Use for requests like "add the Cursor IDE to my template", "give workspaces JetBrains access", "set up code-server", "wire in dotfiles", "install Claude Code in this template", or "pin module versions". Do not use for installing or upgrading Coder itself (use the setup skill), authoring a brand-new template from scratch (use the templates skill), or publishing a custom module to the registry.
/setupInstall, deploy, or bootstrap a new Coder (coder/coder) deployment end-to-end. Use for first-time setup on Docker, Kubernetes/Helm, a VM, cloud, HTTPS/domain setup, creating the first admin, pushing a starter template, or building the first workspace. Do not use for upgrades, debugging an existing deployment, editing an existing template, or configuring OAuth/OIDC on a running deployment.
/Other plugins' skills for the same job