How to read and drive the layer8 desktop app from a session. Use whenever you need to know which task you work in, find its artifacts folder, create sub-tasks, start sessions, open panels, or apply any other layer8 action.
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 Layer8?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/crashpopeye-layer8)
---
name: layer8
description: How to read and drive the layer8 desktop app from a session. Use whenever you need to know which task you work in, find its artifacts folder, create sub-tasks, start sessions, open panels, or apply any other layer8 action.
---
# Driving layer8
layer8 is the user's desktop app for agent work. Everything in it is a **node** with an **address**, and you reach it through the `layer8` MCP server:
| To | Use |
|---|---|
| Read a node | the MCP resource `layer8://<kind>/<path>` on server `layer8`, e.g. `layer8://here`, `layer8://app`, `layer8://task/eng-482/pr1` |
| Act on nodes | the `do` tool of server `layer8`, with `{"ops":[{"target":…,"action":…,"args":{…}}]}` |
Addresses: `app`, `project:<name>`, `task:<root>/<child>`, `session:<id8>`, `artifact:<root>/<file>`, `workflow:<name>`, `ui:layout`, and `here`, which is the task or sub-task this session runs in.
## Read first, then act
1. Read `layer8://here`. Its `fields` give `branch`, `base`, `worktree`, `artifacts` (the shared artifacts folder, also in `$LAYER8_ARTIFACTS`), `parent`, and `workflow` when a workflow is running. Its `children` are sub-tasks, sessions and artifacts.
2. Its `actions` list **only what is valid right now**, each with a JSON Schema for `args`. Never guess an action: if it is not listed, it is not available.
3. Put several ops in one `do` call. Each op runs on its own and returns its own `ok`/`error` line, so check every result.
Example: plan two stacked sub-tasks and start a session in the first one.
```json
{"ops":[
{"target":"here","action":"create-subtask","args":{"name":"pr1-store"}},
{"target":"here","action":"create-subtask","args":{"name":"pr2-api","base":"pr1-store"}},
{"target":"task:eng-482/pr1-store","action":"start-session","args":{"skill":"layer8:implement","prompt":"Add the token-bucket store from 03-plan-rate-limit.md, PR 1 of 2"}}
]}
```
To retitle a task, use `rename` with `{"title":"…"}`; its slug, branch and worktree stay.
Always give `start-session` a one-line `prompt` with the skill: it is the first message the user reads in that session, and a bare `/layer8:implement` tells them nothing about why it runs.
## Artifacts
All tasks in a tree share one artifacts folder. Name new files `NN-<type>-<slug>.md`, where `NN` is one more than the highest two-digit prefix already in the folder (`01` when empty), `<type>` is what the file is (`research`, `plan`, `review`…), and `<slug>` is a few words in kebab case. Write them with your normal file tools.
## Stages
A task's stage shows where its work is: `In progress` once research is done (or when implementing starts without research), `In review` once a PR is open, `Done` once the PR is merged or a deliverable without a PR is finished. Skills set it with `set-stage`; skip it when `set-stage` is not listed on `here` or does not offer that stage:
```json
{"ops":[{"target":"here","action":"set-stage","args":{"stage":"In progress"}}]}
```
## Workflows
When `here` has a `workflow` field, a workflow started this session for one of its steps. A workflow skill ends by telling the app its step is finished:
```json
{"ops":[{"target":"here","action":"advance"}]}
```
Skip that call when `advance` is not in the actions of `here`. Never answer approval prompts through `do`; only the user can.