Feature one-pager

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.

Status
In review
Owner
Joe Gaudet
Date
2026-12-03
PRD
Pages as Artifact Files
Draft PR
None

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.

1

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.

2

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.

3

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.

4

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.

5

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.

6

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.

The terminal of an agent that publishes a PRD, and the files of the artifact. Click a file to see its first lines.

Open full page
Under the hood of slice 1

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
  1. tree stale
    The tree names the pages to publishParents first, the knowledge base last, as before.
  2. skillsaw publish <key> --json
    The 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 .json file or responses/.
  3. The Artifact tool
    The agent publishes the filesEach file goes to its as path, at the link that the page has. The first publish declares {"downloads": {}}.
  4. tree publish-record
    The tree records the linkThe hash is the hash of the page in docs/, so tree stale works as before.

The tool calls of an agent that writes the ticket of one work item. Compare the PRD as files with the PRD as one HTML file.

Open full page
Under the hood of slice 2

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
  1. article.work
    The itemIts data-reqs and its data-depends select the rest.
  2. data-reqs
    The requirements and what cites themEach element and each diagram that cites a requirement of the item.
  3. section#data-api
    The interfaces of the items that it waits forThe endpoints and the data that cite their requirements, for example the endpoint that the dialog calls.
  4. section#rollout
    The rolloutAll of it: the order, the flag and the rollback.
  5. Not in this text
    What the text leaves outEach requirement, decision, item and section that is not in the text, then where the full PRD is.

A published PRD on claude.ai. Open the Markdown view, then copy or download the text in each viewer.

Open full page
Under the hood of slice 3

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
  1. The page opens in the viewer
    The page asks for the capabilitywindow.claude.use('downloads'). With no capability, the page hides Download .md.
  2. Download .md
    The viewer saves the filesave({ filename, data }). A refusal shows "Not saved." Another error shows "This view cannot save the file. Use Copy."
  3. A file in a browser
    The 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.

AreaPathsWhat changes
Publish folder (new)packages/cli/src/publish/publish.ts, packages/cli/src/commands/publish.ts, packages/cli/src/cli.tsThe publish command and the folder that it writes.
Markdown of one itempackages/cli/src/markdown/page.ts, packages/cli/src/commands/markdown.tsThe wider text of --item, and where the full PRD is.
Treepackages/cli/src/tree/tree.tsExports the functions that find the key and the link of a page. No logic changes.
Page runtimepackages/cli/assets/runtime/base.jsDownload .md uses the downloads capability.
Testspackages/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 skillsrules/skillsaw-interviews.md, skills/design-review/, skills/triage/, skills/ticket/, skills/tickets/The publish procedure and the read rule.
Docs and releaseCLAUDE.md, README.md, packages/cli/README.md, site/_src/pages/guide/tree.html, .changeset/publish-folder.mdThe 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.

  1. The publish folder

    Ships
    The command skillsaw publish <page> [--json]. No skill calls it yet.
    Rollback
    Revert the commit. Nothing uses the command.
  2. 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 --item and in items/WI-n.md.
    Rollback
    Revert the change in packages/cli/src/markdown/page.ts. The text of an item becomes narrow again.
  3. Download .md through the viewer

    Ships
    The change in base.js. Each page gets it at its next build.
    Rollback
    Revert base.js and build the pages again. A published page keeps its button until its next publish.
  4. 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.
  5. Release @skillsaw/cli

    Ships
    A minor version, from .changeset/publish-folder.md. npx @skillsaw/cli publish then 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

ComponentForChange
skillsaw publish <page> [--json]The skills and agentsNew.
skillsaw markdown <page> --item WI-nAgentsChanged: a wider text, with "Not in this text" at the end.
The artifact of each page on claude.aiAgents that read itChanged: index.md, items/<id>.md and assets/ next to index.html.
Download .md in the Markdown viewPeople on claude.aiChanged: the viewer saves the file, or the button is hidden.
The publish procedure, skillsaw-interviews.md section 9The skillsChanged: run publish, publish all the files, declare downloads.
The read rule, skillsaw-interviews.md section 1The skillsNew: read index.md or items/WI-n.md of a published page.

Key risks

RiskEffectMitigation
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 .gitignore tells git to ignore it.
  • Each published page declares the downloads capability 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.

QuestionAnswerSource
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

DateAuthorChange
2026-12-03Joe Gaudet (agent)Draft. The code of steps 1 to 4 is on the branch claude/amazing-cannon-mvd7s9.
2026-12-03Joe 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.