Publish each page with its Markdown, as one artifact with several files
An agent that reads a skillsaw page on claude.ai gets the Markdown of the page, not its HTML. Each page goes to claude.ai as one artifact with several files: the page, index.md, one Markdown file for each work item, and the styles and the scripts as files. To write a ticket from the example PRD, an agent reads about 3k tokens in place of about 44k.
The change and its purpose
Each skillsaw page has a Markdown view, and skillsaw markdown gives the same text in a terminal. But a page on claude.ai is one HTML file. An agent that reads it with the artifact tools gets all of the HTML: the text, about 30 KB of CSS and about 65 KB of scripts. For the example PRD of the prd skill, that is 103 KB of text, or about 44k tokens. An agent cannot click the Markdown button. On claude.ai, Download .md also does nothing, because the viewer does not let a page start a download.
This change publishes each page as one artifact with several files. For a person, the page looks and works the same. An agent reads index.md, or the file of one work item. Start with the UI examples: they come in the order they ship.
One artifact, several files
skillsaw publish writes the page, its Markdown and its assets into one folder. The skill publishes the folder as one artifact, to the link that the page has.
The Markdown is a file of the artifact
An agent reads index.md with the tool that reads one file. It does not read the CSS or the scripts.
One file for each work item
items/WI-n.md has the item, the items that it waits for, the requirements, the endpoints and the rollout. Its last section names what it leaves out, so the agent knows when to read index.md.
The page tells the agent
The head of index.html has a link to index.md and a comment for an LLM. The read rule of the skills says the same.
The repo does not change
The folder is in .skillsaw/publish/, which git ignores. The page in docs/ and its hash in tree.json stay the same.
The viewer saves the Markdown
On claude.ai, Download .md uses the downloads capability of the viewer. When the viewer gives none, the page hides the button. Copy still works.
UI examples, in delivery order
Each page is interactive. The tabs follow the order of the release steps. Under each page, one part shows the data and how the slice works.
One folder for each key of the tree
The key of a page in tree.json, such as prd/2026-12-01-notebook-export, names its folder. The command writes the folder again at each publish.
Publish folder new
- index.html the runtime moves to assets/
- index.md
- items/<id>.md a PRD only
- assets/ CSS, scripts, Mermaid
- the files that the page uses mock-ups, images
tree.json · published
- url the claude.ai link
- hash of the page in docs/, as before
- tree staleThe tree names the pages to publishParents first, the knowledge base last, as before.
- skillsaw publish <key> --jsonThe CLI writes the folderIt removes the files of the last publish, moves the styles and the scripts into
assets/, writes the Markdown and copies the files that the page uses. It never copies a.jsonfile orresponses/. - The Artifact toolThe agent publishes the filesEach file goes to its
aspath, at the link that the page has. The first publish declares{"downloads": {}}. - tree publish-recordThe tree records the linkThe hash is the hash of the page in
docs/, sotree staleworks as before.
The context of one work item
skillsaw markdown --item WI-n and items/WI-n.md give the same text. The new parts are the parts that a first test showed missing: the endpoint that starts a job, the rule of the progress, and the rollout.
items/WI-n.md
- the item and the items that it waits for
- its requirements, and each part that cites them
- the diagrams and the endpoints of the items that it waits for
- the rollout
- Not in this text what it leaves out
- article.workThe itemIts
data-reqsand itsdata-dependsselect the rest. - data-reqsThe requirements and what cites themEach element and each diagram that cites a requirement of the item.
- section#data-apiThe interfaces of the items that it waits forThe endpoints and the data that cite their requirements, for example the endpoint that the dialog calls.
- section#rolloutThe rolloutAll of it: the order, the flag and the rollback.
- Not in this textWhat the text leaves outEach requirement, decision, item and section that is not in the text, then where the full PRD is.
The viewer saves the file
The design review saves its answers in the same way: packages/cli/assets/design-review/review.js.
The Markdown view
- Copy
- Download .md the viewer saves it, or it is hidden
- The page opens in the viewerThe page asks for the capability
window.claude.use('downloads'). With no capability, the page hides Download .md. - Download .mdThe viewer saves the file
save({ filename, data }). A refusal shows "Not saved." Another error shows "This view cannot save the file. Use Copy." - A file in a browserThe download works as beforeNo viewer: the page makes a link to the text and clicks it.
Parts of the codebase
The code is on the branch claude/amazing-cannon-mvd7s9, in the commits 4040258 and e643cd0. No pull request exists.
| Area | Paths | What changes |
|---|---|---|
| Publish folder (new) | packages/cli/src/publish/publish.ts, packages/cli/src/commands/publish.ts, packages/cli/src/cli.ts | The publish command and the folder that it writes. |
| Markdown of one item | packages/cli/src/markdown/page.ts, packages/cli/src/commands/markdown.ts | The wider text of --item, and where the full PRD is. |
| Tree | packages/cli/src/tree/tree.ts | Exports the functions that find the key and the link of a page. No logic changes. |
| Page runtime | packages/cli/assets/runtime/base.js | Download .md uses the downloads capability. |
| Tests | packages/cli/tests/publish/, packages/cli/tests/markdown/ | The folder, the links, the private files, the pack and a browser test of the published page. |
| Rules and skills | rules/skillsaw-interviews.md, skills/design-review/, skills/triage/, skills/ticket/, skills/tickets/ | The publish procedure and the read rule. |
| Docs and release | CLAUDE.md, README.md, packages/cli/README.md, site/_src/pages/guide/tree.html, .changeset/publish-folder.md | The command, the files of an artifact, and a minor release. |
Release logistics
Five steps. Each step ships alone. The skills use the new folder only from step 4, so steps 1 to 3 change no published page.
-
The publish folder
- Ships
- The command
skillsaw publish <page> [--json]. No skill calls it yet. - Rollback
- Revert the commit. Nothing uses the command.
-
A wider context for one work item
- Ships
- The interfaces of the items that the item waits for, the rollout and "Not in this text", in
markdown --itemand initems/WI-n.md. - Rollback
- Revert the change in
packages/cli/src/markdown/page.ts. The text of an item becomes narrow again.
-
Download .md through the viewer
- Ships
- The change in
base.js. Each page gets it at its next build. - Rollback
- Revert
base.jsand build the pages again. A published page keeps its button until its next publish.
-
The skills publish the folder
- Ships
- The publish procedure and the read rule of
skillsaw-interviews.md, the skills, the READMEs and the guide. - Rollback
- Revert the text of the rule and the skills. An artifact with files still works. Its next publish can be one HTML file again.
-
Release @skillsaw/cli
- Ships
- A minor version, from
.changeset/publish-folder.md.npx @skillsaw/cli publishthen works in each repo. - Rollback
- Release a patch version that reverts the change.
No rollback after: each step has a rollback. The version of step 5 stays on the npm registry: its rollback is a new patch version, not a removal.
Interface components
| Component | For | Change |
|---|---|---|
skillsaw publish <page> [--json] | The skills and agents | New. |
skillsaw markdown <page> --item WI-n | Agents | Changed: a wider text, with "Not in this text" at the end. |
| The artifact of each page on claude.ai | Agents that read it | Changed: index.md, items/<id>.md and assets/ next to index.html. |
| Download .md in the Markdown view | People on claude.ai | Changed: the viewer saves the file, or the button is hidden. |
The publish procedure, skillsaw-interviews.md section 9 | The skills | Changed: run publish, publish all the files, declare downloads. |
The read rule, skillsaw-interviews.md section 1 | The skills | New: read index.md or items/WI-n.md of a published page. |
Key risks
| Risk | Effect | Mitigation |
|---|---|---|
| The text of one item leaves out a fact that a ticket needs. | A ticket is wrong or not complete. | "Not in this text" names each part that the text leaves out. In the test, no agent said that the flag rollback stops working after WI-5 removes the old endpoint. The PRD has an open question about it. |
An agent reads index.html, not index.md. | It reads about 44k tokens, as before. | The hint in the head of the page, the read rule and the file list. In the test, 3 of 3 agents read only items/WI-3.md. One of them had no rule. |
| The publish folder copies private data. | The name of a reviewer goes into an artifact. | The command never copies a .json file or responses/. A test checks it. |
| The viewer or the Artifact tool stops the support for several files. | The pages cannot go to claude.ai as files. | Step 3 of the publish procedure publishes one HTML file. The page works the same. Only the agent reads more. |
| A link in the text of a page points to a page that has no claude.ai link yet. | The link stays relative, and it does not open on claude.ai. | Publish the page again after the first publish of the page that it links. tree stale sees only a change of the breadcrumb. |
| Each PRD and ADR artifact has its own copy of Mermaid. | 3.6 MB in each artifact. | The same as --inline today. An agent does not read it. |
Migrations
This feature has no migration. An artifact that exists stays one HTML file until its next publish. The next publish replaces its files at the same link.
Infrastructure changes
- One new folder,
.skillsaw/publish/, in each repo that uses skillsaw. Its own.gitignoretells git to ignore it. - Each published page declares the
downloadscapability of the claude.ai viewer. - One minor release of
@skillsaw/cli.
The change adds no service, no job and no environment variable.
Interview record
Each question of the interview with its answer and its source. The owner asked for no questions, so the agent used the recommended option for each gap and marked it as an assumption.
| Question | Answer | Source |
|---|---|---|
| What is the result for the user, in one sentence? | An agent that reads a published page reads its Markdown, not its HTML. | User |
| Must the plan show that an agent uses fewer tokens? | Yes. Two tests with agents: about 44k tokens for one HTML file, about 3k for the file of one item. | User |
| Which parts of skillsaw change? | All of them: the CLI, the rules, the skills and the docs. | User |
| Is this feature for an epic or a project of the issue tracker? | None. The repo has no tracker in its config. | Code: .skillsaw/config.json |
| Who uses the feature? | Agents that read the pages, and the skills that publish them. People see only the change of Download .md. | Assumption: no questions |
| What is not in scope? | The look of a page, sites other than claude.ai, and the update of a link in the text of a page that is already published. | Assumption: no questions |
| Does the feature change something that a user sees or calls? | Yes: one command, the files of each artifact and one button. | Code: packages/cli/src/cli.ts |
| In how many slices does the feature ship? | Five: one for each part that can ship alone. | Assumption: no questions |
| How detailed must the UI examples be? | A clickable main flow, and the viewer with no capability. | Assumption: no questions |
| Which tool publishes several files? | The Artifact tool of Claude Code, with its files map. The design review uses it already. | Code: skills/design-review/SKILL.md |
| How does a page save a file on claude.ai? | With the downloads capability of the viewer. | Code: packages/cli/assets/design-review/review.js |
| Is there a feature flag? | No. The skills use the folder when the agent has a tool for several files. | Code: rules/skillsaw-interviews.md |
| Does the feature change stored data or the schema? | No. tree.json keeps the same keys and the same hash. | Code: packages/cli/src/tree/tree.ts |
| Is there a step that cannot go back? | No. The npm version stays, but a patch version reverts it. | Assumption: no questions |
| Does the feature need new infrastructure? | No. | Code |
| Which risk gives you the most concern? | The text of one item leaves out a fact that a ticket needs. | Assumption: the test showed it |
| Is there a date or an event that the release must meet? | No. | Assumption: skillsaw has no release dates |
| Who approves the one-pager? | Joe Gaudet. | Assumption: the owner of the repo |
Changes
| Date | Author | Change |
|---|---|---|
| 2026-12-03 | Joe Gaudet (agent) | Draft. The code of steps 1 to 4 is on the branch claude/amazing-cannon-mvd7s9. |
| 2026-12-03 | Joe Gaudet (agent) | Sent for review. |
The feature-one-pager skill of skillsaw writes this page. After each edit, run npx @skillsaw/cli one-pager build and one-pager check on it.