Skip to content
Back to skills

Setup

ASecurity

Interview the user and tailor layer8 to how they work - a workflow for this project, session defaults, task statuses, sound and a task link - then hand off to the concepts and the panel builder. Started by Welcome.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgogitapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add crashPopeye/layer8 --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/crashpopeye-setup/badge)](https://www.skillsdirectory.com/skills/crashpopeye-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: setup
description: Interview the user and tailor layer8 to how they work - a workflow for this project, session defaults, task statuses, sound and a task link - then hand off to the concepts and the panel builder. Started by Welcome.
argument-hint: "[anything the user wants the setup to know]"
---

# Set up layer8

You run in a fresh task of a project, usually started from Welcome's **Tailor layer8**. Interview the user in at most 5 questions, show what will change, and write nothing until they say *Apply*. They may be trying layer8 for the first time, or re-running this to change one thing: either way keep it short.

## 1. Read

Read, with MCP server `layer8`:

- `layer8://here`: `worktree`, `project`.
- `layer8://app`: the project's title, the harnesses with their models and efforts, and the workflows that exist (`workflow:<name>` children).
- `layer8://ui:settings`: the current `defaults`, `stages`, `sound` and `shortcuts`. Keep them: they are the "before" of the summary, and the recommended answers on a re-run.
- `layer8://workflow:<project>` if it exists, where `<project>` is the project's title lowercased, with every run of other characters turned into one dash (`Billing API` → `billing-api`). The new-task draft pre-arms the workflow with that name, so use exactly this name.

In the worktree, find:

- the language(s) and package manager;
- the commands that format, lint, typecheck, test and build (`Makefile`, `package.json` scripts, `justfile`, `go.mod`, `pyproject.toml`, …);
- the CI config (`.github/workflows/*.yml`, `.gitlab-ci.yml`, …) and what it runs, and the git remote (`git remote get-url origin`);
- an existing `CLAUDE.md` or `AGENTS.md`, and whether it says how to run the checks;
- the size and shape of the codebase: one service or many, how big a typical change is.

## 2. Ask

Ask with the `AskUserQuestion` tool, in 2 calls. Each question's first option is the current value on a re-run, or your guess from step 1 on a first run, labelled "(Recommended)". The user can always answer "Other" in their own words. Without `AskUserQuestion` (Codex, or a non-interactive session), ask all 5 in one plain message with numbered options; when nobody can answer, take the recommended options and say so in the summary.

**Call A** (4 questions):

| # | Question | Options | Maps to |
|---|---|---|---|
| 1 | How big is your typical change? | Quick fixes · Features in one PR · Features split into several PRs | the steps of `<project>.yaml` |
| 2 | How hands-on do you want to be? | Review each step · Autopilot | `defaults.autopilot` (`false` / `true`) and `defaults.permissionMode` (`default` / `acceptEdits`) |
| 3 | Which model and effort should new sessions start with? | 2-3 combinations from the harness's models and efforts in `layer8://app` | `defaults.model`, `defaults.effort` |
| 4 | Which task statuses does your team use? | the current stages · Backlog, Doing, Review, Shipped | `set-stages` |

**Call B** (1 multiSelect question): *Anything else on every task?*

| Option | Maps to |
|---|---|
| A sound when a session finishes | `set-sound {on}`; first option checked when the sound is on today |
| Pin a link on each task (CI, issue tracker) | one more `set-shortcuts` rule, such as CI from the git remote: `https://github.com/<owner>/<repo>/actions?query=branch:{branch}` |

Map question 1 to the workflow:

| Answer | Steps |
|---|---|
| Quick fixes | implement → describe-pr |
| Features in one PR | research → implement → describe-pr |
| Features split into several PRs | research → plan → implement\* → describe-pr\* (\* `fanout: subtasks`) |

## 3. Summarise

Show one table: each setting with `old → new` when it changes, and `unchanged` when it doesn't. For example:

| Setting | Change |
|---|---|
| `workflow:billing-api` | — → implement → describe-pr |
| defaults | harness default → opus, high, acceptEdits, autopilot on |
| statuses | Todo … Done → Backlog → Doing → Review → Shipped |
| sound | unchanged |
| task shortcuts | `{link.label}` → `{link.label}`, CI |

Then ask one question: *Apply* (Recommended) or *Change something*. On *Change something*, ask what to change, update the summary and ask again. Write nothing, and send no `do` op, before *Apply*.

## 4. Apply

Write `~/.layer8/workflows/<project>.yaml` when the steps change. Use only `layer8:` skills that exist. For "Features in one PR":

```yaml
description: Research the code, implement the change and open its pull request
steps:
  - name: research
    skill: layer8:research
  - name: implement
    skill: layer8:implement
  - name: describe-pr
    skill: layer8:describe-pr
```

Then send one `do` batch with only the ops whose setting changed; when nothing else changed, send none. `set-defaults` merges, so pass only the keys that change. `set-shortcuts` replaces the whole list: send **every current rule** from `ui:settings` plus the new one, or the user loses their rules.

```json
{"ops":[
  {"target":"ui:settings","action":"set-defaults","args":{"model":"opus","effort":"high","permissionMode":"acceptEdits","autopilot":"true"}},
  {"target":"ui:settings","action":"set-stages","args":{"stages":["Backlog","Doing","Review","Shipped"]}},
  {"target":"ui:settings","action":"set-sound","args":{"on":true,"name":"chime"}},
  {"target":"ui:settings","action":"set-shortcuts","args":{"shortcuts":[{"label":"{link.label}","on":"task","when":"link","url":"{link.url}"},{"label":"CI","on":"task","url":"https://github.com/acme/billing-api/actions?query=branch:{branch}"}]}}
]}
```

If the user asked for it and `CLAUDE.md` doesn't already say how to run the checks, add a short section listing the commands from step 1, in the order to run them. Commit it on the task's branch; don't push.

## 5. Verify

Re-read `layer8://workflow:<project>`: if it lists an error, fix the file and read it again. Re-read `layer8://ui:settings` and check each value you sent. Report any op that failed, with its message.

## 6. Hand off

Tell the user, in a few lines, what changed. Then point them to:

- the concept cards on Welcome (tasks, sessions, skills, workflows, statuses, panels);
- ⌘N: a new task in this project starts with the `<project>` workflow pre-armed, on autopilot if they chose it.

Offer the panel builder: "Want a custom panel, such as your open PRs across projects?" Only on yes, start it in a new task:

```json
{"ops":[{"target":"project:<name>","action":"create-task","args":{"title":"Build a panel"}}]}
```

then `start-session` on the new task with `{"skill":"layer8:make-panel","title":"Build a panel","prompt":"Interview me about a panel to build"}`.

Finally, if `done` is listed on `here`, mark this task done:

```json
{"ops":[{"target":"here","action":"done"}]}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.