diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6cd4176..d52d27c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,14 @@
Each release is a heading with its tag. The release workflow uses the words under it as the release's notes.
+## v1.0.4
+
+- Docs works with no shell (a Shepherd turn, or the spacesheep MCP alone). SKILL.md's first line sends such an agent to references/shepherd.md, which replaces the docs.js steps: the agent writes the page itself from page.html, keeping `` and the `docs-ledger` meta, so the page opens in Edit and typing on it saves to the space.
+- With no shell, Docs makes new pages only: a blank page or a first draft, in one write, on a new space or, in a Shepherd turn, on one whose page is empty. Through the spacesheep MCP it makes a new space with `create_space` and never calls `create_version`, which merges onto a space's newer edits. It never saves over a page that has anything on it; it proposes the change instead, or says an agent with a shell can make it. The ledger stays empty, so docs.js later counts every block on such a page as the person's and never rewrites one without a yes.
+- A blank ask ("a blank doc I can write on", "an empty doc") is Docs too: the page gets its title and nothing else, open in Edit, with no outline. With a shell, `docs.js blank "
"` makes the same page, and refuses a space that holds anything. A title with `$&` or `$'` in it is written as typed.
+- The skill's description names a blank document the person writes themselves.
+- The folder's hash is `51887724c53f`.
+
## v1.0.3
- Docs pages open in Edit: the page carries ``, so a person who may edit it can type on it straight away, even while Docs is still writing. Docs writes around what they type and never waits for them or undoes it.
diff --git a/README.md b/README.md
index be54fa8..14543da 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,7 @@ An agent with this skill writes a document on a space while the person watches:
| `docs/SKILL.md` | Part one: the first command, and the pace |
| `docs/references/outline.md` | Printed by `start`: the outline |
| `docs/references/writing.md` | Printed by `outline`: sections, comments, facts, length, done |
+| `docs/references/shepherd.md` | For an agent with no shell (Shepherd, or the MCP alone): new pages only, a blank page or a first draft |
| `docs/references/page.html` | The starter page: no script, light and dark, A4 print |
| `docs/assets/docs.js` | Every command the agent runs, so a person allows one script |
| `docs/assets/blank-live-link*.html` | Spacesheep's working-on-it page, with and without its description: a space showing it counts as blank |
diff --git a/docs/SKILL.md b/docs/SKILL.md
index c84b049..6d8ea06 100644
--- a/docs/SKILL.md
+++ b/docs/SKILL.md
@@ -1,11 +1,15 @@
---
name: docs
-description: Use when someone wants a document written on a page they and others will read, comment on and edit together, such as a proposal, a letter, a brief, a plan, a policy or a report. It writes the document live on a space, section by section, so the person watches it fill in, and it never changes words they typed without their yes.
+description: Use when someone wants a document written on a page they and others will read, comment on and edit together, such as a proposal, a letter, a brief, a plan, a policy or a report, or a blank document they write on themselves ("a blank doc I can write on"). It writes the document live on a space, section by section, so the person watches it fill in, and it never changes words they typed without their yes.
license: MIT
---
# Docs
+**With no shell (a Shepherd turn, or the spacesheep MCP alone), first read
+references/shepherd.md (`use_skill`, or `get_skill` with `path`): it replaces the steps
+below.**
+
**First, before you read on or decide anything:** run
`node /assets/docs.js -C start `, with the space the
person gave you (`start --new ""` with none), where `` is an empty folder
@@ -13,6 +17,11 @@ you work in. It puts a status on the page at once and says what the space holds.
it's empty, it prints how to write the outline, the next command. When it holds a
document already, it lists its blocks and prints the rest of this skill.
+**A blank ask** ("a blank doc I can write on", "an empty doc"): after `start`, run
+`node /assets/docs.js -C blank ""` in place of the
+outline. The page gets the title and nothing else, open in Edit, and is the person's to
+write on: send nothing more to it.
+
**The person watches the page fill in.** The status is your first command, ahead of all
thinking; the headings follow within 30 seconds, and a new section at least every 45.
Plan one section, write it, then plan the next: never plan the whole document before its
diff --git a/docs/assets/docs.js b/docs/assets/docs.js
index 04d61cf..0c9f6ea 100644
--- a/docs/assets/docs.js
+++ b/docs/assets/docs.js
@@ -619,6 +619,24 @@ const COMMANDS = {
return 0;
},
+ // A blank page the person writes on themselves: the starter with its title as their first line, and nothing
+ // of the tool's, so no ledger. It opens in Edit; every line on it is theirs, the title too.
+ blank(ctx, args) {
+ const title = plain("title", args[0]);
+ if (!title) throw new Error('blank: give the title: blank ""');
+ const r = ctx.io.read(), html = r.files["index.html"] || "";
+ if (!blank(html)) {
+ ctx.io.push({ status: "Stopped: this space holds a page already", stopped: true });
+ throw new Error("blank: this space holds a page already, and it's never written over. Nothing changed. For a blank page, start --new in a new folder");
+ }
+ // Replacer functions, so a "$&" or "$'" in the title is text and not a replacement pattern.
+ const page = fs.readFileSync(STARTER, "utf8").replace("Document", () => `${esc(title)}`).replace('\n', () => `\n
${esc(title)}
\n`);
+ ctx.io.push({ html: page });
+ ctx.io.save({ parent: r.version, label: "Blank page", files: [{ path: "index.html", content: page }] });
+ ctx.log("the blank page is on the space, open in Edit, and saved. Write nothing more on it: tell the person it's ready for them to type on");
+ return 0;
+ },
+
// The title and every heading, each section saying "Writing…", on open tabs and saved.
outline(ctx, args) {
let pages = null;
diff --git a/docs/references/shepherd.md b/docs/references/shepherd.md
new file mode 100644
index 0000000..f0a4772
--- /dev/null
+++ b/docs/references/shepherd.md
@@ -0,0 +1,83 @@
+# Docs with no shell
+
+Read this when you have no shell: a Spacesheep Shepherd turn, or an agent with only the
+spacesheep MCP's tools. There is no docs.js, so you write the page yourself. This page
+replaces SKILL.md's steps. Read this skill's files with `use_skill` (`file`, and `offset`
+for the next part), or through the MCP with `get_skill` (`skill` `@spacesheep/docs`,
+`path`).
+
+## New pages only
+
+docs.js is what keeps the person's words safe while it edits a page. Without it, you write
+a page once and never save over it. Write only:
+
+- on a new space, or
+- in a Shepherd turn, on the space you're on when its page is empty: nothing in its body,
+ such as the app's empty sheet, this skill's page.html with nothing typed on it, or the
+ "working on it" page.
+
+Through the MCP, write only new spaces. A page with anything on it is the person's, even
+one word, and through the MCP so is any space that exists already. Don't save it. Propose
+a change in your reply (through the MCP, as a comment on its block with `create_comment`),
+or say an agent with a shell can make it with the Docs skill.
+
+## The page
+
+Read references/page.html and copy it whole, from `` to `