一键导入
Control an emploke server from the CLI — workspaces, agents, tasks, sessions, catalog
npx skills add https://github.com/LangSensei/emploke --skill cli复制此命令并粘贴到 Claude Code 中以安装该技能
Control an emploke server from the CLI — workspaces, agents, tasks, sessions, catalog
npx skills add https://github.com/LangSensei/emploke --skill cli复制此命令并粘贴到 Claude Code 中以安装该技能
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for a thermo-nuclear code quality review, thermonuclear review, deep code quality audit, or especially harsh maintainability review.
Start a mock-backed dashboard dev server, drive it via Playwright MCP, iterate edits + screenshots, and tear down cleanly
Spawns a properly-detached cross-platform watchdog over a running emploke task — polls status, exits on terminal state, and reliably surfaces runtime completion notifications to the orchestrator session
Wrapper over `emploke task dispatch` that takes a brief-file path, auto-derives a ≤200-char summary for `--brief`, forwards the body via `--details-file`, and returns the parsed task id
Git branch management and GitHub PR workflow using worktrees
| name | cli |
| scope | emploke |
| description | Control an emploke server from the CLI — workspaces, agents, tasks, sessions, catalog |
| version | 1.0.0 |
You're an AI controlling an emploke server through its CLI. This skill teaches you the conventions that aren't obvious from --help — most importantly the workspace-scoping discipline that prevents your commands from racing with other clients.
If the user just wants you to read repo files or run shell commands, this skill is irrelevant.
emploke injects what you need into your env when it spawns your task or session:
EMPLOKE_SERVER — server URL (the CLI uses this automatically)EMPLOKE_WORKSPACE — workspace UUID (workspace-scoped commands inherit it)Quick verification:
emploke health # CLI works + server reachable (exit 0 + JSON `ok`)
Every workspace-scoped command requires an explicit selector. The CLI reads EMPLOKE_WORKSPACE from your env (already set), so commands work as-is:
emploke task dispatch --agent writer --brief "..."
To act on a different workspace, pass --workspace <id> per command:
emploke task list --workspace ws-Y
The CLI does not consult any server-side shared "current workspace" state — selectors are process-local, immune to interference from other clients (other CLI sessions, dashboard tabs, AI agents on the same server).
--json. Human format is not a stable contract.jq -c to keep one event per line.code in error stderr, not just the message. Errors look like:
agent "writer" is not ready: prereqs not acknowledged (HTTP 409, EntryNotReadyError)
agent: langsensei/writer
cause: prereqs not acknowledged
fix: emploke catalog agent ack-prereqs langsensei/writer
The fix: line is your next command, verbatim. See references/error-codes.md for the full table.Detailed playbooks live in references/workflows.md. Quick index:
prereqs not acknowledged, disabled by user, missing dependencies.EntryNotReadyError retry loop.planToken.AGENTS.md, catalog agent install file://..., dispatch.| code | meaning | what to do |
|---|---|---|
| 0 | success | continue |
| 1 | generic error (incl. missing workspace) | read stderr; usually missing flag/env |
| 2 | usage error (missing required flag, removed subcommand) | fix the invocation; do not retry as-is |
| 3 | server unreachable | ask user to emploke start or check --server |
| 4 | server returned 4xx/5xx | read code in stderr; consult references/error-codes.md |
Exit code 2 means "the command itself is wrong" — never retry it without changing the invocation. Exit code 4 means "the server rejected this" — read the code field, it tells you the next move.
while true; do emploke task list; done is wrong. If you need to wait for a task, use emploke task activity <tid> --follow (real-time SSE) instead of polling task list.--follow for one-shot data. --follow blocks until the task terminates. For "what's the latest activity right now?" use emploke task activity <tid> (no --follow) and read the JSON.--purge casually. Default task rm (no flag) cancels the running subprocess + removes the metadata row, but keeps the workdir + runtime per-task state on disk for post-mortem (stderr.log, etc). task rm --purge additionally removes those — use only after you're sure you don't need the post-mortem material.last seq: on stderr when streaming. On every clean --follow exit (event: end from the server, or stream closed) AND on mid-stream-error exit, the CLI prints last seq: <N> to stderr — pass --after <N> to the next --follow invocation to resume without gaps or duplicates. Caveat: Ctrl+C kills the process between frames and stderr is not flushed; recover the seq from stdout in that case (... | tail -1 | jq .seq) since each printed item carries its own seq.emploke workspace list --json | jq to get a current id.# History-then-tail (combines snapshot with live).
# The one-shot response is tail-first, so the LAST item in the
# returned `activity` array is the latest seq we've seen — that
# becomes the resume point.
N=$(emploke task activity <tid> --json | jq -r '.activity[-1].seq')
emploke task activity <tid> --follow --after "$N" | jq -c
# Resume after a clean --follow exit (server sent event: end, or
# stream closed). stderr's last line on either of those is `last seq: <N>`.
emploke task activity <tid> --follow --after <N> | jq -c
# Resume after Ctrl+C — stderr was not flushed, so derive the last
# seq from stdout instead. Each NDJSON line carries its own seq.
N=$(printf '%s\n' "$LAST_STDOUT_LINE" | jq -r .seq)
emploke task activity <tid> --follow --after "$N" | jq -c
--help. Concrete flag lists / new subcommands change with releases; consult emploke <cmd> --help for the canonical surface.emploke start / stop / restart / serve) is a separate concern.references/workflows.md — multi-step playbooks for the common goalsreferences/error-codes.md — every code value the server emits + the matching emploke command to fix it