Start and drive SkyeLab threads from outside SkyeLab through its MCP server (`skyelab mcp`) or its `skyelab thread …` command line. Use when the user asks you to hand work to SkyeLab, run a task in one of their SkyeLab projects, or check on, message or stop a SkyeLab thread you started.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skyelab?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/openskye-labs-skyelab)
---
name: skyelab
description: Start and drive SkyeLab threads from outside SkyeLab through its MCP server (`skyelab mcp`) or its `skyelab thread …` command line. Use when the user asks you to hand work to SkyeLab, run a task in one of their SkyeLab projects, or check on, message or stop a SkyeLab thread you started.
---
# Using SkyeLab from another agent
SkyeLab runs coding agents in threads, one folder per project, and **every folder is bound to exactly one provider
account**. Its MCP server (named `skyelab-<account>` in your config) lets you start and drive those threads. It only
works on this machine, while SkyeLab is running, after the user allowed this app in SkyeLab.
## The account rule
- This connection acts for **one account**, the one the user picked when they connected this app.
- `list_projects` lists only the projects bound to that account. Use one of those `id`s; there is no path input.
- A folder that is unbound or bound to another account is refused. SkyeLab never picks an account for you. If the
user wants work in another account's project, they connect a second app for that account (another server entry).
- You reach only the threads **you** started. The user's own threads and other apps' threads are not visible to you.
## The loop
1. `list_projects` → pick the project.
2. `start_thread` with `project_id`, a self-contained `prompt` (the thread has none of your context), and a
`request_id` you make up. If the call times out, call it again with the same `request_id`: you get the same
thread, not a second one. Pass `worktree: true` for work that should land on its own branch.
3. `wait_thread` with `thread_id` and `timeout_s` (at most 45). It answers `done: false` at the deadline: call it again
until `done: true`. Once done, `turn` has the result: `is_error`, `summary`, `duration_ms`, `cost_usd`,
`files_changed`.
4. `read_thread` for the thread's text. Pass the `last_seq` it returned as `since_seq` next time to read only what is new.
5. `send_message` for a follow-up while the thread runs (between turns too).
6. `stop_thread` when you are finished with it. `interrupt_thread` ends only the running turn and keeps the agent up.
`list_threads` lists the threads you started (optionally in one `project_id`), newest first; `thread_status` gives one
thread's status.
## Things that look like failures
- **"Waiting for your approval in SkyeLab"**: the user hasn't allowed this app yet. Tell them to answer the dialog
in SkyeLab (or Settings → Connected apps), then call again.
- **"SkyeLab no longer knows this app" / "revoked"**: the user revoked it. Stop; don't retry. They can make a new
connection in Settings → Connected apps.
- **"SkyeLab isn't running on this machine"**: ask the user to start SkyeLab.
- **A thread that stays `running`**: threads run in Ask mode, so the agent may be waiting for the user to allow a tool
in SkyeLab. Tell the user; you can't answer permission requests yourself.
- **"switched to Accept edits / Full access in SkyeLab"**: the user moved the thread out of Ask or Plan and took it over;
you can no longer send to it.
- **"already has 4 threads working"**: wait for one of yours to finish (or stop one) before starting another.
## Don't
- Don't ask for or invent a folder path: only `project_id`s from `list_projects` work.
- Don't put secrets in prompts: thread text is stored in SkyeLab and shown to the user.
- Don't look for SkyeLab's token or edit its config files; the connection needs nothing from you but the server entry.
## From a shell: the `skyelab` CLI
If you have no `skyelab-<account>` MCP server but can run commands, the same loop works from a shell, under the same
rules (one account, its projects only, your own threads only):
```sh
skyelab project list --account work --json
printf '%s' "$PROMPT" | skyelab thread start --account work --project 3 --request-id my-task-1 - # prints the id
skyelab thread wait 12 --account work --timeout 600 # 0 done, 1 turn failed, 7 still working
skyelab thread show 12 --account work # its text; --follow streams until the turn ends (1 if it failed)
skyelab thread send 12 --account work "follow-up"
skyelab thread stop 12 --account work
```
Pass prompts with `-` on stdin, not as an argument (arguments show in `ps`). Reuse the same `--request-id` if you
retry a start. Exit codes: 3 waiting for the user's approval in SkyeLab (tell them), 4 not connected or revoked
(stop), 5 SkyeLab isn't running (ask the user to start it), 6 refused by SkyeLab's account rules (don't work around
it), 7 timed out. On Windows release builds the output doesn't reach a console; use the MCP server there. The user
makes the connection in SkyeLab: Settings → Connected apps → Connect an app → Terminal (skyelab CLI).
## Setup (for the user)
In SkyeLab: Settings → Connected apps → Connect an app (or the command palette's **Use In Another App**). Pick the app
and the account, run the command it shows (`claude mcp add -s user skyelab-<account> -- <SkyeLab binary> mcp --client
<id>`, or `codex mcp add …`), start the app, and click Allow in SkyeLab when it asks. To give an agent this skill, copy
this folder into its skills folder (for Claude Code, `~/.claude/skills/skyelab/`).