agentleFS
DataKnifeAIDataKnifeAI/agent-skills/skills/coder-cli/SKILL.md

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.

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
  1. Very specific:

    Prefer non-interactive auth (CODER_SESSION_TOKEN + CODER_URL) in CI or headless agents when the user provides them.

    line 46

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  • coder installed (coder version). CLI reference: Coder CLI reference.
  • Deployment URL: --url or $CODER_URL.
  • Auth: coder login or $CODER_SESSION_TOKEN (prefer the env var for non-interactive use; see coder login --help).
  • Global config directory: $CODER_CONFIG_DIR (default shown in coder --help under --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)

AreaExamples
Sessioncoder login, coder logout, coder whoami, coder version
Workspacescoder list, coder create, coder show <name>, coder start, coder stop, coder restart, coder delete, coder update, coder open
Accesscoder ssh <workspace>, coder ssh <workspace> -- <cmd>, coder port-forward <workspace>, coder config-ssh
Infocoder logs <workspace>, coder ping <workspace>, coder stat, coder speedtest
Templatescoder templates list, coder templates init (see --help for create/plan/push flows)
Tokenscoder 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 installed coder version)
  • Broader product docs: Coder documentation (workspaces, templates, admin)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.