Skip to content
Back to skills

Skillworks Setup

ASecurity

Configure a repo for the Skillworks dev loop — the Tracker, GitHub labels with the github Tracker, the Steering the skills read (rules, tracker docs, review files, a starting Suite file), the CLAUDE.md pointer, the Plugin and the permission allowlist the loop needs to run unattended, and auto-memory off. Run once per repo.

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 20, 2026
developmentrustgoc#shellbashdockertestinggit

Works with

  • claude code

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add MalcolmMcNeely/skillworks --skill skillworks-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skillworks Setup?

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

Security grade badge for Skillworks Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/malcolmmcneely-skillworks-setup/badge)](https://www.skillsdirectory.com/skills/malcolmmcneely-skillworks-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: skillworks-setup
description: Configure a repo for the Skillworks dev loop — the Tracker, GitHub labels with the github Tracker, the Steering the skills read (rules, tracker docs, review files, a starting Suite file), the CLAUDE.md pointer, the Plugin and the permission allowlist the loop needs to run unattended, and auto-memory off. Run once per repo.
disable-model-invocation: true
---

# Skillworks Setup

Write the Steering the Skillworks skills read, and the settings the loop needs. Run it once. Re-run it to repair, or to bring in a newer seed.

The Plugin carries the Machinery: the skills, the scripts, the hooks and the output style. They run from the Plugin, so setup copies none of them. Steering is what the repo tells the loop about itself. Setup copies a starting version of each piece, and the team owns it from then on. A Plugin update never changes it by itself. A second run of setup brings in the newer seed and keeps the team's edits.

The Tracker is where the team keeps its specs and tickets: `github`, for GitHub Issues, or `files`, for Markdown files in the Sidecar, a folder beside the repo. Setup asks which one.

Setup refuses a repo with no remote, with either Tracker. The loop Lands every ticket by pushing to `origin`. A bare repo on a shared drive is enough, and `seed-steering` prints the commands that add one.

The outputs:

| Output | Why it exists |
|---|---|
| The `ready-for-agent` label, with `github` only | `/skillworks:to-spec` and `/skillworks:to-tickets` apply it, and `gh issue create` fails on a label that does not exist. Nothing in the loop reads it. |
| `docs/skillworks/rules/*.md` | The five rules: comments, determinism, file placement, testing and words. The review axes read them. The testing rule holds the team's taste in tests and has no settings. The settings that name what a rule judges start empty, so nothing is judged until the team fills them in: `contexts`, `slices`, `concerns`, `test-roots`, `banned-words` and the words rule's `skip-folders`. The others ship with a default the team can change: `doc-comments`, `clock`, `max-types-per-folder`, `source-files`, `test-files`, the placement rule's `skip-folders`, `banned-folder-names`, `name-map` and `test-placement`. `doc-comments` ships as `none`, so no source file holds a doc comment until the team picks `code` or `all`. `test-placement` ships as `mirror`, so each test mirrors the code file it tests until the team picks `free`. |
| `docs/skillworks/issue-tracker.md`, `docs/skillworks/domain.md` | One copy of the tracker calls and of where the domain docs live. Without one shared copy each skill carries its own and they drift. The YAML block at the end of `domain.md` holds `adr-folder`, the one folder every new ADR goes to. Setup asks for it. |
| `docs/skillworks/adr-format.md` | The ADR shape: the template and the optional sections every new ADR fills. It starts with the Skillworks shape, and a team edits it so new ADRs look like the ones it keeps. |
| `docs/skillworks/placement-checks.md`, `review-standards.md`, `review-architecture.md`, `review-spec.md` | What the review axes judge against. Each review file holds the baseline for its axis, if it has one, and a team's own checks, which start empty. `review-spec.md` holds no baseline. The placement checks start with no command listed. A team names the exact commands that prove placement, each with its folder and anything to run first, and the architecture review runs those and nothing else. |
| `docs/skillworks/suite.json` | The Suite: what green means for this repo's code. It starts with no checks, and a Suite with no checks is not ready, so the loop stops until the team names its checks. |
| `docs/skillworks/loop.json` | The loop's settings. `tracker` is `github` or `files`, and setup asks which. `target-branch` is the branch the loop Lands on, or `pr` for one pull request per spec. It starts as the remote's default branch, and setup asks the team to confirm it. `co-authored-by` is `show` or `hide`, the team's answer on the credit for Claude. It starts as `hide`, and setup asks. |
| `docs/skillworks/surfaces.md` | The Surfaces: the places a change can have to reach besides its code. It starts with the README and the user docs. The grill asks about each Surface a change touches. |
| `docs/skillworks/deepening-check.md` | What the Deepening check counts as a Strong deepening opportunity, a team's own checks and a Do not report list, which start empty, and `limit`, the most deepening tickets the loop files for one spec. It starts as `3`, and `0` turns the check off. |
| `docs/skillworks/simplify-check.md` | What the Simplify check looks for: the four angles, reuse, simplification, efficiency and altitude, a team's own checks and a Do not report list, which start empty, and `enabled`, which starts as `true`. `false` turns the check off. |
| `.gitignore` lines | The working folders: `.spec-loop/`, `.handoff/`, `.claude/worktrees/` and `.context-backfill/`. They are per machine and never committed. `.context-backfill/` holds the Answer sheet of the Context backfill. Setup also creates `.handoff/`, where `handoff` saves. Under Sidecar Steering they go to the repo's git exclude file instead, with `.claude/settings.local.json`. |
| A `## Agent skills` block in `CLAUDE.md` | The pointer. `CLAUDE.md` loads every session; `docs/skillworks/` does not. The block is a Seed: `seed-agent-skills` builds it, and a second run merges a person's edits. |
| The repo's own Marketplace, `.claude-plugin/marketplace.json`, and its entry and `enabledPlugins` in `.claude/settings.json` | A fresh clone gets the Plugin on trust, with no install by hand. The Marketplace is named `<repo name>-skillworks`, so no two repos share a name on one machine, and it pins one commit of Skillworks, so every member runs the Plugin at the commit the Steering pins. The settings name it by a relative path. Under Sidecar Steering it sits in the Sidecar. Only the Skillworks repo keeps a folder source. |
| The allowlist in `.claude/settings.json` | Without it every `gh` and `git push` in the loop stops for a prompt, so the loop is not unattended. It names the Plugin's short commands and the `gh` and `git` calls the loop makes. It lets a skill read its own files from the installed Plugin's folder, with `Read(~/.claude/plugins/**)`, because a Session run by hand would stop to ask on a read outside the repo. The driver gives a loop Session its own read rule. It names no tool the Suite runs: those are the team's to add. |
| An `attribution` block in `.claude/settings.json`, rewritten from `co-authored-by` every time setup runs | Claude Code credits Claude on each commit and pull request unless `attribution` says otherwise. Its commit credit is always off, because the Plugin's hook adds the credit line when `co-authored-by` says `show`. Its pull request credit is off for `hide` only. The block follows the answer in `loop.json`, so a block someone edited by hand comes back into step. |
| Three trailer rules in `.git/config`, written by the Plugin's hook and not by setup, on the first commit it rewrites in each clone | `trailer.Skillworks-Session.ifExists=addIfDifferent`, `trailer.Co-Authored-By.ifExists=addIfDifferent` and `trailer.Ticket.ifExists=replace`. They make a typed `Ticket` line give way to the hook's, and keep an amend by the same Session from adding a line twice. They sit in the config and not in the command, so a team's allow rule for `git commit` still matches. Setup writes nothing for them. |
| `"promptCacheTtl": "1h"` and `"subagentPromptCacheTtl": "1h"` in `.claude/settings.json` | A loop Session waits on the Suite and on its sub-agents for longer than the default five minutes of prompt cache. With one hour, each ticket reads its prompt from a warm cache and does not pay for a cold one. |
| `"autoMemoryEnabled": false` in `.claude/settings.json` | Every Load comes from the repository. Claude Code keeps memory files under `~/.claude`, on the machine and outside the repository, and loads them into every session. With memory on, one commit steers two machines differently, and a run cannot be read back from what the repository holds. With it off, one commit steers every machine the same way. The memory files stay on disk, so removing the line brings them back. |
| `"autoCompactEnabled": false` in `.claude/settings.json` | A Session that fills its context stops, and does not compact and carry on in the Dumb zone. |
| `"idleCompaction": false` in `.claude/settings.json` | A Grill stays in one unbroken context when the developer steps away, also when they turn auto-compaction back on. |
| `"disableWorkflows": true` in `.claude/settings.json` | One workflow can start dozens of agents and use a large number of tokens. |
| `"disableClaudeAiConnectors": true` in `.claude/settings.json` | The loop and most repos never use the claude.ai connectors, so they cost context on every turn for nothing. |
| `permissions.deny` in `.claude/settings.json` | Each name is a tool Skillworks never calls, and a denied tool costs no context. The plan mode tools are among them, because the Grill does the planning. The list never names `Skill`, `Agent`, `Bash`, `PowerShell`, `Read`, `Edit`, `Write`, `ToolSearch` or `SendMessage`. |

## Process

### 1. Seed the Steering

First ask one question: does the work go to a team that does not use Skillworks? Suggest no, so the common answer is one keypress. If the Sidecar already holds `docs/skillworks/loop.json`, an earlier run said yes, so suggest yes instead. The Sidecar is the folder beside the repo's main checkout with `-skillworks` on the end of its name.

Yes turns Sidecar Steering on. Every Steering file, the `## Agent skills` block with its imports, and the settings go into the Sidecar, and the repo's tracked files never change. Sidecar Steering always runs in PR mode, with the files Tracker. With yes, run the seed with the flag:

```bash
seed-steering --sidecar-steering
```

It writes `loop.json` in the Sidecar with `target-branch` as `pr` and `tracker` as `files`. It adds the working folders and `.claude/settings.local.json` to the repo's own git exclude file, and never to `.gitignore`, because `.gitignore` is a file the team tracks. It writes a `.gitignore` in the Sidecar that ignores `.specs/` and `landed-commits.tsv`, so a push of the Sidecar sends only Steering, and an older Sidecar gets it on this run. Once the Sidecar holds `loop.json`, a run with no flag seeds the Sidecar too, because the Steering being there is what turns the mode on. With no, run the seed with no flag, as below.

Under Sidecar Steering, and only then, ask a second question: the Steering repo's URL. A Steering repo is the git repo through which a team shares the whole Steering of this repo, and each member's Sidecar is a clone of it. The answer may be left empty, and an empty answer leaves the Sidecar as it is. With a URL, run the seed with both flags:

```bash
seed-steering --sidecar-steering --steering-repo <url>
```

The URL goes only into the Sidecar's own git `origin`. Write it nowhere else: not in the repo, not in a Steering file, and not in the user's files. With no, ask nothing about a Steering repo. The seed handles each case and says which one it met:

| The Sidecar | What `seed-steering` does |
|---|---|
| Not on disk | Clones the Steering repo as the Sidecar. When the Steering repo holds Steering, it writes none of it, and writes only the repo's git exclude lines. Step 6 then writes only `.claude/settings.local.json`. When the Steering repo is empty, it seeds the clone as a first run does, and prints the commands that commit and push it. |
| On disk, with no remote, and the Steering repo is empty | Adds the URL as the Sidecar's `origin`, seeds as usual, and prints the commands that commit and push the Steering. Show the user those commands. Setup runs neither. |
| On disk, with no remote, and the Steering repo holds a commit | Stops and writes nothing. Tell the user to move the local Sidecar away first, and to run setup again to clone the team's Steering. |
| On disk, with a remote | Uses the Sidecar as it is, and changes no remote. |

No script commits or pushes to the Steering repo. The member does that with plain git in the Sidecar.

Under Sidecar Steering, every `docs/skillworks/` path in the steps below names the Sidecar's copy. Read each one with `steering-file <path>`, and write each one in the Sidecar, never in the repo. That holds for `adr-folder` in `docs/skillworks/domain.md`, which you read before the seed and write in step 4.

Before you run it, read `adr-folder` from the YAML block at the end of `docs/skillworks/domain.md`, where the file is there and names one. That is an earlier run's answer, and step 4 suggests it. Read it first, because the seed writes `docs/adr` into a file that names none, and that default is not the team's answer.

```bash
seed-steering
```

It copies each seed in [seeds](./seeds) to its place in the repo, and adds the working folders to `.gitignore` where it does not name them yet, and creates `.handoff/` when it is missing. It ends with a `next step:` line, which the report in step 7 names. `loop.json` is written with the remote's default branch as its `target-branch`.

A repo set up before the Steering folder carried the Plugin's name holds its Steering in `docs/agents/`. When `docs/agents/` holds a Steering file and `docs/skillworks/` holds none, `seed-steering` moves the Steering first. It moves each Steering file, the base copies in `docs/agents/.seeds/`, and each file in `docs/agents/` that `suite.json` names, with `git mv` for a file git tracks. It changes those paths in `suite.json`, and changes each `@docs/agents/...` import of a moved file in `CLAUDE.md` to its new path. Every other file in `docs/agents/` stays, so another tool still finds it. Nothing is left at a path it moved. It prints one `moved <old path> to <new path>` line for each file. Show the user every one, so they can put back a file another tool still needs. When both folders hold Steering files, it moves nothing.

It keeps a base copy of each seed in `docs/skillworks/.seeds/`, exactly as it copied it. On a later run it weighs three versions of each file: the base copy, the team's file and the current seed. It prints one line per file:

| Outcome | What happened |
|---|---|
| `wrote` | The seed is new, or the file is missing, even one the team deleted. The file and its base copy are written. |
| `updated` | The team never edited the file, and the seed moved on. The file and its base copy take the new seed, and the diff under the line shows the change. |
| `kept ..., which you edited` | The team edited the file, and the seed did not move. Nothing changes. |
| `kept ..., the same as the seed` | The team's file and its base copy are the same as the seed. Nothing changes. |
| `kept ..., the same as the seed, and brought its base copy up to the seed` | The team's file is the same as the seed, and its base copy is an older seed. The base copy takes the seed. |
| `kept ..., the same as the seed, and wrote its base copy` | The team's file is the same as the seed, and has no base copy. The base copy is written. |
| `merged` | The team edited the file, and the seed moved on in other lines. The seed's change is applied, and the diff under the line shows it. |
| `asks` | The team's edit and the seed's change touch the same lines. Both sides of each overlap are printed, numbered. |
| `kept ..., which differs from the seed` | The file has no base copy, because the repo was set up before base copies existed. The diff against the seed is printed. |
| `kept ..., as you settled it` | The file had no base copy, and the run named it with `--settled`. The file is kept, and its base copy is written. |

Show the user each outcome line and each diff under it. The labels on a diff say what each side holds:

| Outcome | `---` side | `+++` side |
|---|---|---|
| `updated` | `old-seed/`: the old seed, which the team never edited | `new-seed/`: the new seed |
| `merged` | `yours/`: the team's file | `merged/`: the team's file with the seed's change applied |
| `kept ..., which differs from the seed` | `yours/`: the team's file | `seed/`: the current seed |

When a line says `asks` or `kept ..., which differs from the seed`, the script has written nothing, and every other line says what it would do. No file changes until every question is answered. Put each overlap to the user: show the `yours` side, the `seed` side, and a blend you write to fit the repo, and ask which of the three to keep. Ask every question before you change anything. Then run it again with one choice per overlap:

```bash
seed-steering --keep docs/skillworks/domain.md:1=yours --keep docs/skillworks/domain.md:2=seed
```

For a blend, write its text to a file outside the repo, and name the overlap and that file. The script writes the text in place of the overlap's lines. You write nothing into the Steering file yourself:

```bash
seed-steering --blend docs/skillworks/domain.md:1=/tmp/domain-1.md
```

When a line says `kept ..., which differs from the seed`, treat the file as edited. Show the user the diff, and change the file only by the lines they pick. When they have decided, even to take no lines, give the file back so the script writes its base copy, and the merge works from the next run on:

```bash
seed-steering --settled docs/skillworks/domain.md
```

Give the `--keep`, `--blend` and `--settled` choices in one run when they are due. A choice or a blend that names no overlap, or a `--settled` for a file that has a base copy, is refused, and nothing is written.

The user reviews every changed file before they commit. Setup commits nothing.

Expect a permission prompt here on a first run. The allowlist that would clear it is written in step 6, which has not happened yet.

If it stops because the repo has no `origin` remote, stop setup and show the user the commands it printed. Setup refuses a repo with no remote, with either Tracker. A bare repo on a shared drive is enough.

### 2. Ask for the Tracker

Under Sidecar Steering, ask nothing here. The Tracker is `files`, and the seed has written it. Refuse `github`, and say why: an issue on the other team's GitHub would show them Skillworks. Preflight and `seed-agent-skills` refuse it too.

The Tracker is where the team keeps its specs and tickets. Ask the team which one it uses, and offer two answers:

- `github`: GitHub Issues, driven by `gh`. A spec is a parent issue, and its tickets are its sub-issues.
- `files`: Markdown files in `.specs/` in the Sidecar, one folder per spec and one file per ticket. It works with any remote: GitLab, Bitbucket, or a bare repo on a shared drive. It needs no `gh`, and it pushes nothing but the work.

Read `git remote get-url origin`. When it names `github.com`, suggest `github`. Otherwise suggest `files`. So the common answer is one keypress. If `tracker` in `docs/skillworks/loop.json` already names another value, a team's answer from an earlier run, suggest that one instead.

Write the answer into `tracker` in `docs/skillworks/loop.json`, and change no other key.

With `files`, tell the team that `.specs/` sits in the Sidecar, the folder beside the repo's main checkout with `-skillworks` on the end of its name. The Sidecar is a folder whose specs and tickets are plain files. Under Sidecar Steering its `.gitignore` keeps them out of every push of the Steering, so its specs never leave this machine. Every worktree of the repo finds the same Sidecar, and a Session reads it with `tracker-show` and closes a ticket with `tracker-close`.

### 3. Ask for the Target branch

Under Sidecar Steering, ask nothing here. The Target branch is `pr`, and the seed has written it: each spec's work goes to a branch of its own for the other team to review.

The Target branch is the branch the loop Lands each ticket on. Ask the team which one it is, and suggest the remote's default branch, so the common answer is one keypress. `seed-steering` has already written that branch into `docs/skillworks/loop.json`. If `target-branch` there names another value, a team's answer from an earlier run, suggest that one instead.

Offer one other answer: `pr`. With `pr`, you name the branch and open the pull request. For each spec the grill asks you to name the spec's branch, and Skillworks makes it, so you name it by your team's own rule. The grill writes the design there, and the loop Lands each ticket there. Then you open the one pull request from it, and a person reviews and merges it. Pick `pr` when the default branch is protected, or when the team reviews its work through pull requests.

Write the answer into `target-branch` in `docs/skillworks/loop.json`, and change no other key.

### 4. Point CLAUDE.md at the docs

First ask the team where its ADRs go. Every new ADR goes to this one folder, whatever context it is about, and the Domain docs line below names it. Suggest one folder, the first of these that holds:

1. The folder `adr-folder` names in `docs/skillworks/domain.md`, as you read it before step 1. So a second run keeps the team's answer.
2. Else a folder that holds numbered Markdown files and has `adr` or `decision` in its path. A numbered file is named `<number>-<slug>.md`, such as `0001-event-sourced-orders.md`. Match `adr` and `decision` in any letter case. List every such folder you find, and suggest the one with the most files.
3. Else `docs/adr`.

Write the answer into `adr-folder` in the YAML block at the end of `docs/skillworks/domain.md`, and change no other line. Write it as a path from the repo root, with no `/` at its end. Where the file has no YAML block at its end, add one that holds `adr-folder` alone. Preflight in step 5 stops while the setting is missing or empty.

Then build the `## Agent skills` block in `CLAUDE.md`. The block is a Seed, and a script builds it from your answers, so you write none of it yourself:

```bash
seed-agent-skills --tracker <github|files> --adr-folder <adr-folder> --contexts <single|multi>
```

Give the Tracker from step 2, and the folder `adr-folder` names. Under Sidecar Steering the script writes the block into the Sidecar's `CLAUDE.md`, and refuses any Tracker but `files`. Give `--contexts multi` when the repo has `CONTEXT-MAP.md` at its root, and `--contexts single` otherwise. The script imports each rule file in `docs/skillworks/rules/`, and writes the multi-context Domain docs line in the words Context backfill writes when it switches the line.

The block runs from its heading to the next `## ` heading, or to the end of the file. The script changes nothing outside it. It keeps a base copy of the block in `docs/skillworks/.seeds/agent-skills.md`, and on a later run it weighs the block as step 1 weighs a Steering file. It prints the same outcome lines and the same diffs, and names the block by its file, such as `CLAUDE.md`. A missing block, or a missing file, is `wrote`. If the repo has `AGENTS.md` and no `CLAUDE.md`, the script uses `AGENTS.md`, and it never creates the one that is missing when the other exists.

When a line says `asks` or `kept ..., which differs from the seed`, the script has written nothing. Put each question to the user as step 1 does: for each overlap, show the `yours` side, the `seed` side, and a blend you write to fit the repo, and ask which of the three to keep. For a block with no base copy, show the diff, change the block only by the lines they pick, and then settle it. Ask every question before you change anything. Then run it again with the same answers and every choice at once:

```bash
seed-agent-skills --tracker github --adr-folder docs/adr --contexts single --keep CLAUDE.md:1=yours --blend CLAUDE.md:2=/tmp/claude-2.md
seed-agent-skills --tracker github --adr-folder docs/adr --contexts single --settled CLAUDE.md
```

A choice or a blend that names no overlap, or a `--settled` for a block that has a base copy, is refused, and nothing is written.

### 5. Preflight and labels

```bash
skillworks-preflight --setup
```

Step 6 writes the Marketplace and installs the Plugin, so `--setup` skips the checks of the Plugin's pin and of the old layout. Without it, the preflight stops a repo on the old layout, and a Plugin installed at another commit than the pin.

It reads the Tracker and the Target branch from `docs/skillworks/loop.json`, and checks that `CLAUDE.md` imports each rule in `docs/skillworks/rules/`. It warns, and does not fail, when another enabled plugin also forces an output style. Safe to run again.

With `github`, it checks `gh`, the login, that `origin` is GitHub, and the Target branch. A branch name must be on the remote and must take a direct push from this login. With `pr`, the default branch must be on the remote, and its protection does not matter. Then it creates the `ready-for-agent` label. It creates only what is missing and never overwrites an existing label.

With `files`, it needs no `gh` and creates no label. It checks that `origin` exists and holds the Target branch, or with `pr`, the remote's default branch.

It runs after the Tracker and the Target branch are written, because it reads `loop.json`, and after the `CLAUDE.md` block is written, because it refuses a rule with no import. Expect a permission prompt here too on a first run.

If it fails, stop and report. Every step below assumes the remote works, and with `github` a working `gh`, and the script is what proves that. The `CLAUDE.md` block step 4 wrote is safe to leave: a second run of setup merges it, so the team fixes the fault and runs setup again.

### 6. Write the settings

Under Sidecar Steering, write the settings below to two files, and never to the repo's `.claude/settings.json`, which the team owns. Write them to the Sidecar's `.claude/settings.json`, which the driver hands to every loop Session. Write the same to `.claude/settings.local.json` in the main checkout, because the developer's own sessions run there and never read the Sidecar's file. Merge into each file as below. Ask no credit question, and run `set-co-authored-by hide`: the team the work goes to sees no credit for Claude, so the command turns Claude Code's own credit off in both files, whatever the answer. When step 1 cloned a Steering repo that holds Steering, the Sidecar's `.claude/settings.json` is the team's: leave it as it is, and merge it into `.claude/settings.local.json` alone.

Copy [settings.json](./settings.json) to `.claude/settings.json`.

Give the repo a Marketplace of its own: copy [.claude-plugin/marketplace.json](./.claude-plugin/marketplace.json) to `.claude-plugin/marketplace.json` in the Marketplace's folder. Its name is `<repo name>-skillworks`, from the repo's GitHub name: the last part of `git remote get-url origin`, without `.git`. The name is the same on every machine, so no member is asked for it. Write that name in place of `<repo name>-skillworks` in the Marketplace and in both keys of the settings. The Marketplace lists one plugin, `skillworks`, with a `git-subdir` source: the Skillworks git URL, the path `plugins/skillworks`, and a `sha`. It holds no `ref`. The `sha` in it is a placeholder. Write all 40 characters of the commit at the tip of the Skillworks main branch, the first field of what this prints:

```bash
git ls-remote https://github.com/MalcolmMcNeely/skillworks.git refs/heads/main
```

Where the Marketplace file is already there, keep it and its pin.

A repo set up before it had a Marketplace of its own turns on `skillworks@skillworks`, and names a `skillworks` Marketplace under `extraKnownMarketplaces`. Setup run again moves it over and keeps its pin, so the developer edits no file by hand. Read the old entries before you write anything: under Sidecar Steering read both the Sidecar's `.claude/settings.json` and the main checkout's `.claude/settings.local.json`. Remove the old `skillworks` entry from `extraKnownMarketplaces` and the old `skillworks@skillworks` line from `enabledPlugins`, in every settings file setup writes, and write the new ones. The new Marketplace's `sha` is the old GitHub `ref`, so the move changes no Plugin version.

When the old entries hold two different refs, show the user both, with the file each one sits in, and ask which to keep. Recommend the Sidecar's, because every loop Session reads it.

An old entry that is not a GitHub source counts as no pin, and setup pins the tip of Skillworks main, as on a new repo. So does a `ref` that is not all 40 characters of a commit, such as a branch name, because a `sha` holds nothing else.

Never remove the machine-wide `skillworks` Marketplace, because repos still on the old layout read it. The developer removes it by hand once no repo uses it, as the usage docs say.

Without Sidecar Steering, the Marketplace sits at the repo root. The repo's `.claude/settings.json` names it under `extraKnownMarketplaces` with a `directory` source and the path `./`, and turns on `skillworks@<repo name>-skillworks`.

Under Sidecar Steering, the Marketplace sits at the root of the Sidecar, and the team's repo gets no Marketplace file. The Sidecar's `.claude/settings.json` names it with the path `./`. The main checkout's `.claude/settings.local.json` names it with the path `../<repo>-skillworks`, the Sidecar beside the repo. Both turn on `skillworks@<repo name>-skillworks`. The Marketplace is part of the Sidecar's Steering, so the person commits it and pushes it to the Steering repo with the rest. Setup commits and pushes nothing.

Only the Skillworks repo keeps a folder source, `skillworks-local`. No other repo points at the Skillworks folder. In the Skillworks repo, write no Marketplace: its own, under `plugins/`, is the one the settings name, with a `directory` source and the path `./plugins`, and they turn on `skillworks@skillworks-local`.

`Read(~/.claude/plugins/**)` in the file opens the installed Plugin's folder, so a skill reads its own files with no prompt. Write no other read rule for the Plugin.

If the file exists, merge:

- Keep `$schema` as the file has it, and add it where missing.
- Add the missing entries to `permissions.allow`. Remove none.
- Settle `permissions.deny` in the agreement pass below. Its entries are the tools Skillworks never calls. Never deny `Skill`, `Agent`, `Bash`, `PowerShell`, `Read`, `Edit`, `Write`, `ToolSearch` or `SendMessage`, and never turn hooks off.
- Add `extraKnownMarketplaces["<repo name>-skillworks"]` and `enabledPlugins["skillworks@<repo name>-skillworks"]` where missing. If either is there with another value, show the user both and ask which to keep.
- Add `promptCacheTtl` and `subagentPromptCacheTtl` where missing, each as `"1h"`. Where the team set one, keep its value.
- Settle `autoMemoryEnabled`, `autoCompactEnabled`, `idleCompaction`, `disableWorkflows` and `disableClaudeAiConnectors`, each one by the two tables below.
- Leave every other key as the user has it.

| Key | Default | What the other value costs |
|---|---|---|
| `autoMemoryEnabled` | `false` | Memory files on each machine steer the loop, so it runs differently from one machine to the next. |
| `autoCompactEnabled` | `false` | A Session that fills its context compacts and carries on in the Dumb zone, and does not stop. |
| `idleCompaction` | `false` | A Grill left idle compacts, and does not stay in one unbroken context. |
| `disableWorkflows` | `true` | One workflow can start dozens of agents and use a large number of tokens. |
| `disableClaudeAiConnectors` | `true` | Every claude.ai connector loads into every Session, and costs context on every turn. |

| What is there | What to do |
|---|---|
| The key is missing, or no file | Set it to its default. Leave every other key alone. |
| The default | Nothing. |
| The other value | Show the user the key and what it costs. Ask which to keep. Never change it without asking. |

Ask the team one question: should commits and pull requests credit Claude? The one answer covers both. Offer two answers. On a first run, suggest `hide`, so the common answer is one keypress. If `co-authored-by` in `docs/skillworks/loop.json` already names an answer, a team's answer from an earlier run, suggest that one instead.

- `hide`: `set-co-authored-by hide`. No commit and no pull request credits Claude.
- `show`: `set-co-authored-by show`. The Plugin's hook adds the credit line to each commit Claude makes, and Claude Code's own pull request credit applies.

The command writes the answer into `co-authored-by` in `docs/skillworks/loop.json`, and rewrites the `attribution` block of `.claude/settings.json` from the answer every time it runs. Claude Code's commit credit is always off, because the hook adds the line itself. A block someone edited by hand comes back into step.

Settle `co-authored-by` and `attribution` with `set-co-authored-by` and never by hand. Never write `"attribution": false`: Claude Code before v2.1.281 rejects it and skips the whole file, which drops the allowlist and the Plugin with it.

Read the allowlist out loud to the user before writing, the read rule among it, and read the memory line and the credit answer out with it. Read the four lines that turn off auto-compaction, idle compaction, workflows and the claude.ai connectors out in the same pass. Read out each entry of `permissions.deny` the file is missing, in the same pass, and add only the ones the user agrees to. Remove none. The allowlist lets an unattended loop run `git push` and `gh issue close` with no prompt, which is the whole point and also the whole risk. The memory line turns off the memory files Claude Code keeps on this machine, for this repository only. They should agree to all of it knowingly, in this one pass, with no second prompt. Then write the file, and run `set-co-authored-by` with the answer.

Without Sidecar Steering, leave `.claude/settings.local.json` alone. Do not read it and do not change it. The `/config` memory toggle writes to the user's own settings, which lose to `.claude/settings.json`, so a local file that turns memory back on was put there on purpose.

Write nothing under `~/.claude` by hand. The Plugin install below writes there through Claude Code, and nothing else does.

After the files are written, install the Plugin once on this machine, from the repo's main checkout, so the developer's own Sessions load the Plugin the Marketplace pins. Claude Code registers a Marketplace from the settings only when an interactive Session starts, and this Session started before the file was written, so the install alone finds no Marketplace. Register it first, from its folder, then install:

```bash
claude plugin marketplace add <the Marketplace's folder> --scope project
claude plugin install skillworks@<repo name>-skillworks --scope project
```

The Marketplace's folder is the repo root without Sidecar Steering, and the Sidecar under Sidecar Steering. Under Sidecar Steering give `--scope local` in place of `--scope project` in both, as `claude plugin install skillworks@<repo name>-skillworks --scope local`, because the developer's own Sessions read `.claude/settings.local.json` and the repo's `.claude/settings.json` stays as the team has it. In the Skillworks repo the folder is `./plugins`, and the name `skillworks-local`. When the add says the Marketplace is already there, go on to the install. A second run of setup on the same machine installs nothing new, because the Plugin is already there.

The add writes an absolute path into the settings, so write the relative path back afterwards: `./` in `.claude/settings.json`, or `../<repo>-skillworks` in `.claude/settings.local.json` under Sidecar Steering. An absolute path belongs to one machine, so it must never reach git, and it breaks in a loop worktree.

If the add or the install fails, never leave the developer there. Tell them to quit and restart Claude Code in the repo's main checkout, so the new Session registers the Marketplace from the settings, and then to run the one command `claude plugin install skillworks@<repo name>-skillworks` with the scope above and the repo's name in place of `<repo name>`. Put that command in the report, word for word.

### 7. Report

Say what was written and what was kept. Under Sidecar Steering, say that each path below sits in the Sidecar and not in the repo, and that the repo's tracked files did not change. Say where each Steering file lives:

- `docs/skillworks/rules/`: `comments.md`, `determinism.md`, `file-placement.md`, `testing.md` and `words.md`. `CLAUDE.md` imports each one, so they load into every session.
- `docs/skillworks/`: `issue-tracker.md`, `domain.md`, `adr-format.md`, `placement-checks.md`, `review-standards.md`, `review-architecture.md`, `review-spec.md`, `suite.json`, `loop.json`, `surfaces.md`, `deepening-check.md` and `simplify-check.md`. A skill reads each one when it needs it.

Say that auto-memory is off for this repository, or that the user chose to keep it on. Say whether commits and pull requests credit Claude. Then tell them what the team fills in before the loop can finish a ticket:

- `docs/skillworks/suite.json`: the checks that prove their code, each with a command, the folder it runs in, and optionally a readiness command with its message. A check that passes keeps a Proof of its inputs, and does not run again until one of them changes. A check may also name the paths it cannot be changed by, as `"ignores": ["docs", "web"]`: each is a git pathspec from the repo root. A path left off only costs a run, so a slow check is the one to give `ignores`. A check may name an `image`, a Dockerfile in `docs/skillworks/`, to run in a container. A check that did not run says so in the Suite output, and names its Proof. `runs` says how many times a red Suite runs before the loop believes it. It starts at 1, and a team with tests that flake raises it. `baseline` names one quick command, such as a build of the solution, with its `folder` and optionally an `image`: the command a run checks the Target branch with before the Cut, so a red Target branch stops the run before any Session starts. Until it names a check, the loop stops with the Suite not ready.
- The allowlist: each tool the Suite runs, such as a build or a test runner, so the loop can run it without a prompt.
- The rules' settings, as the team settles them.

Name the next step that the `next step:` line of `seed-steering` printed. For a repo with a history and no glossary, it names `/skillworks:context-backfill` first: it fills `CONTEXT.md` or `CONTEXT-MAP.md`, and the folder `adr-folder` names, once from the code and the history, and writes nothing until a person accepts it. A repo has a history when a commit touches a file setup does not write, and no glossary when it has no `CONTEXT.md` and no `CONTEXT-MAP.md` at its root. Then, and for every other repo first, name `/skillworks:architecture-tests`. It turns the rules into tests the team owns: it writes each test red first, proves it green, then fills `docs/skillworks/suite.json`, both tables of `docs/skillworks/placement-checks.md` and the allowlist. A team runs it again when it adds a language or a rule. Under Sidecar Steering the `next step:` line names `/skillworks:grill` in place of `/skillworks:architecture-tests`, which refuses there, because a test that reads Steering would reach the team's build.

Then tell them the loop is ready:

```
/skillworks:grill  →  /skillworks:spec-loop <spec#>
```

The grill runs `/skillworks:to-spec` itself once the user confirms the shape it settled, so it hands them a
spec number rather than a command to type.

Mention they can edit the Steering by hand at any time. Re-running this skill repairs, and brings in a newer seed after a Plugin update.

End the report with a link to the usage docs, so the team finds them at the moment it needs them: [Using Skillworks](https://github.com/MalcolmMcNeely/skillworks/blob/main/docs/usage/README.md)

Files in this skill

  • SKILL.md21.9 KB
  • seeds/comments.md2.8 KB
  • seeds/determinism.md5 KB
  • seeds/domain.md2.2 KB
  • seeds/file-placement.md7.7 KB
  • seeds/issue-tracker.md14.5 KB
  • seeds/loop.json93 B
  • seeds/placement-checks.md1.9 KB
  • seeds/review-architecture.md5.2 KB
  • seeds/review-spec.md1.3 KB
  • seeds/review-standards.md4.3 KB
  • seeds/suite.json32 B
  • seeds/surfaces.md1.9 KB
  • seeds/testing.md2.8 KB
  • seeds/words.md2.2 KB
  • settings.json1.4 KB

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 development →

Comments

Loading comments…

Newsletter

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