You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every run is checked against headless Gutenberg, so what comes back is guaranteed
50
50
editor-valid, or Block Runner tells you exactly what wasn't and points at the line.
51
51
52
-
## Using this from an AI agent?
52
+
## Using Block Runner from an AI agent
53
53
54
54
If you are the one deciding the structure, don't write HTML and convert it. Describe the
55
55
structure as an intent tree and pipe it to `block-runner assemble` — deterministic code builds
56
56
the markup, so it cannot come out invalid.
57
57
58
-
There is a guide covering that path, the block mappings, and how to check markup before saving
59
-
it to a site:
58
+
Block Runner ships a canonical skill in the open Agent Skills layout. Install it into the
59
+
current project (ask the user before writing files):
60
60
61
61
```sh
62
-
npx block-runner skill # print the guide — nothing is installed or written
63
-
npx block-runner skill --install # install it as a skill (ask the user first)
62
+
npx block-runner skill --install
64
63
```
65
64
65
+
That installs the same skill to the cross-agent `.agents/skills/block-runner` location and
66
+
Claude Code's `.claude/skills/block-runner` compatibility location. Project scope is the
67
+
default so the instructions can travel with a repository. Use user scope or one target when
68
+
that is what you want:
69
+
70
+
```sh
71
+
npx block-runner skill --install --scope user
72
+
npx block-runner skill --install --target agents
73
+
npx block-runner skill --install --target claude
74
+
```
75
+
76
+
For a harness with another skills directory, use `--dir <skills-directory>`. With no skill
77
+
system, `npx block-runner skill` prints the complete harness-neutral guide to stdout and writes
78
+
nothing. Project discovery is the most portable choice; user-wide discovery paths still vary
79
+
between harnesses, so use `--dir` when a client documents a different global root.
80
+
66
81
## Benchmark
67
82
68
83

@@ -178,6 +193,25 @@ All commands:
178
193
|`--wp-user <user>`| WordPress username for `rest` resolution. |
179
194
|`--wp-app-password-env <name>`| Env var holding a WordPress application password. |
180
195
196
+
`skill --install` adds installation flags:
197
+
198
+
| Flag | Description |
199
+
| --- | --- |
200
+
|`--scope project\|user`| Install for the current project (default) or the current user. |
201
+
|`--target all\|agents\|claude`| Install both discovery copies (default), only `.agents/skills`, or only `.claude/skills`. |
202
+
|`--dir <path>`| Install under one explicit skills directory; cannot be combined with `--scope` or `--target`. |
203
+
|`--dry-run`| Show resolved destinations without writing files. |
204
+
|`--force`| Replace locally changed or unmanaged files at canonical bundle paths. |
205
+
206
+
Installed instructions pin runtime commands to the package version that installed them, while
207
+
their explicit update command stays on `@latest`. Re-run
208
+
`npx block-runner@latest skill --install` to update them. Existing local edits are refused
209
+
unless `--force` is explicit.
210
+
211
+
An installation made by 0.7.x predates the managed manifest, so the first upgrade is
212
+
deliberately refused as unmanaged. Review that copy, rerun once with `--force`, and remove the
213
+
preserved root-level `GUIDE.md` after confirming the new `references/GUIDE.md` copy.
Copy file name to clipboardExpand all lines: skills/block-runner/references/GUIDE.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,9 @@ gets it into the editor as real, native, editable blocks instead of one frozen H
6
6
This guide is harness-neutral. Read it and act on it directly, or install it as a skill —
7
7
see the end.
8
8
9
-
Everything runs offline and deterministically. Block Runner never calls a model and never
10
-
needs an API key. **You** are the model in this pipeline.
9
+
Conversion, assembly, and validation run locally and deterministically. Block Runner never
10
+
calls a model and never needs an API key. An uncached `npx` invocation still needs npm registry
11
+
access to fetch the package. **You** are the model in this pipeline.
11
12
12
13
---
13
14
@@ -16,7 +17,7 @@ needs an API key. **You** are the model in this pipeline.
16
17
| You have | Use | Why |
17
18
|---|---|---|
18
19
| A design in your head, or HTML you are about to write |**`assemble`**| You describe the structure; Block Runner builds valid blocks from it. Best structural results. |
19
-
|Someone else's HTML — a design tool export, a paste, scraped markup|**`convert`**| Rule-based translation of existing markup, and the only path that carries CSS. |
20
+
|Authored source HTML — a design tool export, source file, or paste|**`convert`**| Rule-based translation of existing markup, and the only path that carries CSS. Do not use frontend-scraped render output. |
20
21
| Block markup you already produced, before saving it to WordPress |**`validate`** → **`fix`** → **`validate`**| Proves the editor will accept it. |
21
22
22
23
The single most common mistake is reaching for `convert` when you were about to author the
@@ -275,12 +276,28 @@ harmless. Read results from stdout or `--json`. Users who run this often can
275
276
276
277
## 8. Installing this as a skill
277
278
278
-
If your harness supports skills, this guide can be installed as one:
279
+
If your harness supports skills, install the canonical skill into the current project:
279
280
280
281
```bash
281
282
npx -y block-runner@latest skill --install
282
283
```
283
284
285
+
That writes the same skill to the cross-agent `.agents/skills/block-runner` location and to
286
+
Claude Code's `.claude/skills/block-runner` compatibility location. Narrow it when needed:
0 commit comments