coder-cli
Skill0 starsChanged 8 months agoApache-2.0View on GitHub
Uses the Coder CLI (`coder`) to manage login, workspaces, SSH, port-forwarding, templates, and deployment URLs. Apply when the user works in Coder, needs to start/stop/update workspaces, connect over SSH, or troubleshoot connectivity.
In this repository4 other files it gives its agents.
- gh-cliSkill
- glab-cliSkill
- kubectl-cliSkill
- rancher-cliSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Prefer non-interactive auth (CODER_SESSION_TOKEN + CODER_URL) in CI or headless agents when the user provides them.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Coder CLI (coder)
When to use
- Authenticate to a Coder deployment (
coder login) or confirm session (coder whoami). - List, create, start, stop, restart, delete, or open workspaces.
- SSH into a workspace or run a remote command; forward ports between laptop and workspace.
- Inspect workspace details, logs, or resource usage; manage templates or tokens when the user is an admin or template author.
Prerequisites
coderinstalled (coder version). CLI reference: Coder CLI reference.- Deployment URL:
--urlor$CODER_URL. - Auth:
coder loginor$CODER_SESSION_TOKEN(prefer the env var for non-interactive use; seecoder login --help). - Global config directory:
$CODER_CONFIG_DIR(default shown incoder --helpunder--global-config).
Global flags (often relevant)
--url/$CODER_URL— Coder deployment base URL.--token/$CODER_SESSION_TOKEN— session token.--global-config/$CODER_CONFIG_DIR— config path.
Core commands (orienting)
| Area | Examples |
| Session | coder login, coder logout, coder whoami, coder version |
| Workspaces | coder list, coder create, coder show <name>, coder start, coder stop, coder restart, coder delete, coder update, coder open |
| Access | coder ssh <workspace>, coder ssh <workspace> -- <cmd>, coder port-forward <workspace>, coder config-ssh |
| Info | coder logs <workspace>, coder ping <workspace>, coder stat, coder speedtest |
| Templates | coder templates list, coder templates init (see --help for create/plan/push flows) |
| Tokens | coder tokens (subcommands via coder tokens --help) |
Exact flags and subcommands vary by Coder version; always prefer coder <cmd> --help over guessing.
Agent / automation notes
- Prefer non-interactive auth (
CODER_SESSION_TOKEN+CODER_URL) in CI or headless agents when the user provides them. - For long operations, use the CLI’s own flags for JSON or quiet output if available in that version.
Safety
- Session tokens grant workspace access; never commit them or print them in full.
coder delete,coder state, and admin commands can destroy data or affect other users—confirm scope.
References
- Official documentation: Coder CLI reference
- Local help:
coder --help,coder <subcommand> --help(authoritative for your installedcoderversion) - Broader product docs: Coder documentation (workspaces, templates, admin)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

