The knowledge base of a repo goes to claude.ai as one artifact: a viewer with the tree, and each page as a file in it. A Share button in the header of each page copies a link that opens the page, or one part of it, in the viewer.
Today each skillsaw page is its own artifact on claude.ai, and the owner shares each one by hand. This PRD publishes the whole knowledge base as one artifact: a viewer, each page as a file, and the runtime one time. A link such as #adr-0003-scaled-scroll--decision opens a page at a section, and a click swaps the page in place with no blank frame. A Share button in the header of each page of each kind copies the team link, the public link or a Markdown link. Agents read a Markdown map, and GitHub Pages publishes the same bundle. The PRD has 11 functional and 5 non-functional requirements, and the most risk is in claude.ai sharing of new versions.
Glossary
Bundle
The folder that skillsaw publish tree writes to .skillsaw/publish/tree/. It becomes one artifact on claude.ai and one folder on GitHub Pages.
Viewer
The index.html of the bundle. It draws the tree, the crumbs and the search, and shows one page in a frame.
Page key
The key of a page in tree.json, such as prd/2026-12-04-kb-bundle. A kind index is prd/index, and the knowledge base is tree.
Page link
The hash of the viewer that opens one page, such as #prd-2026-12-04-kb-bundle. A part of the page adds -- and its id: #prd-2026-12-04-kb-bundle--WI-6.
Team link
The claude.ai link of the bundle with a page link. Only the people who can open the artifact can open it.
Public link
The address of the viewer on GitHub Pages, under tracker.pagesUrl, with a page link. Anyone can open it.
Embed mode
The mode of base.js when the viewer shows the page in a frame. The page hides its top bar and its contents, and sends its clicks to the viewer.
Two-frame swap
The viewer loads the next page in a second frame under the page that shows. It shows the new frame when that page says that it is ready.
Problem and context
Each page has all of the runtime in it. buildText writes the livery, the base styles and scripts, the Markdown script and the kind assets into each page (packages/cli/src/core/runtime.ts:53). The 33 pages of ember-lattice are 4.2 MB of HTML, about 127 KB for each page. Each page also has the whole tree as JSON in its crumbs block (packages/cli/src/tree/tree.ts:259). So a new page changes the crumbs of each other page, and each published page becomes stale.
On claude.ai, each page is one artifact. No tool can change who can see an artifact, so the owner shares each artifact by hand in the claude.ai menu. The 33 pages of ember-lattice need 33 shares, and a new page stays private until its owner shares it. The owner wants to share one document for the whole knowledge base.
A link between pages goes to a different artifact. On claude.ai it opens a new document, and the reader loses the tree. A first prototype of a viewer with one frame showed a blank page in 8 of 48 drawn frames for each click.
Nothing in a page copies a link. On claude.ai, the reader uses Copy link in the menu of the viewer. On GitHub Pages, the reader copies the address bar. No control gives a link to a section, a requirement or a work item, so a ticket cannot point to WI-3 of a PRD.
The PRD Pages as Artifact Files publishes one page as one artifact with its Markdown. This PRD keeps that command for one page alone, and adds one artifact for all of the pages.
Goals and non-goals
Goals
The owner shares one artifact for the whole knowledge base, one time. A new page needs no new share.
A page link opens a page or a part of a page in the viewer, on claude.ai and on GitHub Pages.
A click in the tree or on a link in a page shows the next page with 0 blank frames.
Each page of each kind has a Share button in its header, and one click copies a link.
Each section and each card with an id (FR-n, WI-n, DEC-n) has a link button.
A new page changes 4 files of the bundle, plus the files of the page.
An agent finds each page from one Markdown map of 20 KB or less for 50 pages.
The ember-lattice bundle is 1 MB or less when the runtime comes from the CDN.
Non-goals
A change to who can see an artifact. The owner still shares the bundle in the claude.ai menu, one time.
A change to the repo pages. They stay the source, and each one still opens alone.
Access rules inside the bundle. A reader who can open the bundle can open each page in it.
A search server, comments in the viewer, or live edits.
A new page kind, or a change to the content of a kind.
Customers
Teams that keep their plans and decisions in skillsaw pages, such as the Ember Workbench repos. They get one link to share and one place to read, and a new page needs no new share.
Readers who get a link in a ticket, a chat or a review. The link opens the page at the part, with the tree next to it.
Agents that read the plans: one Markdown map, then the Markdown of one page or one work item.
Internal stakeholders
Joe Gaudet: the owner of skillsaw and of the host repos. Each host repo gets one change: its pages.yml publishes the bundle (WI-8).
Users and scenarios
Four roles use the knowledge base. The author writes the pages with an agent and publishes them. A team reader opens the bundle on claude.ai, and a public reader opens it on GitHub Pages. An agent reads the Markdown.
Joe asks the agent for a new ADR. The agent runs skillsaw publish tree and sends the changed files. The ADR is in the shared knowledge base at once. Joe clicks Share on the ADR and pastes the team link in a chat.
A reader opens …#prd-2026-12-04-kb-bundle--WI-6 from a ticket. The viewer opens the PRD at WI-6. The reader clicks a link to an ADR, and the viewer swaps the page with no flash. Back goes to WI-6.
An agent gets the team link. The artifact tools give the viewer, and its head names index.md. The agent reads the map, then prd/2026-12-04-kb-bundle/items/WI-6.md.
Current state
Each page has the whole runtime in its style and script blocks: packages/cli/src/core/runtime.ts:53.
writeCrumbs writes the crumbs and the JSON of the whole tree (script.sk-nav) into each page: packages/cli/src/tree/tree.ts:279.
hrefOf gives the link of a page: the claude.ai link in published, else an address under tracker.pagesUrl, else a relative path: packages/cli/src/tree/tree.ts:199.
publishFolder writes the files of one page as one artifact: packages/cli/src/publish/publish.ts:139. ownFiles leaves out each .json file and responses/: packages/cli/src/publish/publish.ts:100.
stalePages lists each page whose sha256 is different from its record: packages/cli/src/tree/tree.ts:522. publishRecord writes one link and one hash for one key: packages/cli/src/tree/tree.ts:559.
topBar draws the brand, the crumbs, the search, the Markdown button and the theme button. No part of a page copies a link: packages/cli/assets/runtime/base.js:205.
The one-pager already shows its mock-ups in frames, and sends the theme to them with postMessage: packages/cli/assets/one-pager/one-pager.js:7.
In each host repo, .github/workflows/pages.yml copies docs/adr, docs/prd and docs/index.html to GitHub Pages on each push.
Proposed state
skillsaw publish tree writes one bundle for the whole knowledge base. The agent publishes it as one artifact, and the owner shares that artifact one time. On the next change, the agent sends only the files that changed. pages.yml publishes the same bundle to GitHub Pages.
A page link names the kind and the folder of the page. A part of the page adds -- and the id of the part. The claude.ai viewer passes a plain #name hash to the artifact, and its Copy link keeps that hash. The viewer keeps the names settings, sidebar, customize, upgrade, downloads and each name that starts with comment-. A page link starts with a kind, so it never has one of these names.
Hash
The viewer shows
None
The overview: the groups, the projects and What's new
#prd
The index of the PRDs
#prd-2026-12-04-kb-bundle
The PRD, at its top
#prd-2026-12-04-kb-bundle--WI-6
The PRD, at work item WI-6
#p-prd-2026-12-04-kb-bundle, #group-agents
An old link of the knowledge base page: the overview at that project or group
A hash that no page has
The overview, with the text "No page has the link" and the hash
The viewer matches the longest page key at the start of the hash, so a folder name with -- in it still opens.
The Share button and the # buttons work the same in the viewer and in a page alone. Only the source of the links is different.
User interface and prior art
Two screens change: the knowledge base becomes the viewer, and the header of each page gets a Share button. The after states are a screenshot of the prototype, and a mock-up on a real ADR page of ember-lattice.
A functional requirement is FR-n. A non-functional requirement is NFR-n. Each has Given/When/Then acceptance criteria, which become the first tests.
FR-1One command writes the bundle
skillsaw publish tree writes .skillsaw/publish/tree/: the viewer index.html, each page of the knowledge base at its path under the docs folder, each asset one time in assets/, tree.json, index.md and llms.txt. It writes the folder again each time and removes the old files.
Given a repo with built pages When the agent runs skillsaw publish tree Then the folder has the viewer, each page that the knowledge base lists, and each runtime asset one time
Given a page folder with review.json, responses/ or index.inline.html When the command runs Then the bundle has none of these files
Given a page key in bundle.exclude of tree.json When the command runs Then that page is not in the bundle, and a link to it in another page opens its public link or shows as text
Given a page that is not built When the command runs Then it stops and names the page and the build command
FR-2A page link opens a page or a part of it
The viewer reads its hash. #<kind>-<folder> opens a page, and --<id> after it opens a section or a card of that page. #<kind> opens the kind index, and no hash opens the overview.
Given the team link …#adr-0003-scaled-scroll--decision When a reader opens it Then the viewer shows ADR 0003 at its Decision section, and the tree marks the ADR
Given the old link …/docs/index.html#p-prd-2026-12-01-lattice-plan When a reader opens it Then the viewer shows the overview at that project
Given a hash that no page has When a reader opens it Then the viewer shows the overview and the text "No page has the link" with the hash
FR-3A click swaps the page in place
A click shows the next page in the same viewer, with the two-frame swap. The click can be in the tree, in the crumbs, in the search results, or on a link to another page of the bundle. A link to another site opens in a new tab.
Given ADR 0003 in the viewer When the reader clicks the link to the PRD in the ADR Then the PRD shows in the same document, the hash changes, and Back shows the ADR again
Given a page in the viewer When the reader clicks a link to an https site Then the site opens in a new tab, and the viewer stays
Given a next page that takes more than 150 ms to load When the reader clicks its link Then a thin bar at the top shows the load, and the current page stays until the next page is ready
FR-4Each page has a Share button in its header
base.js adds a Share button to main.sheet > header of each page: ADR, PRD, one-pager, walkthrough, quality report, design review, triage run, kind index and knowledge base. The button opens a panel with each link of the page, a Copy button for each link, and Copy as Markdown link. The top bar of the viewer has the same button for the page that it shows.
Given a page of each of the seven kinds, a kind index and the knowledge base When the page loads Then its header has one Share button
Given the open Share panel When the reader clicks Copy next to the team link Then the clipboard has the team link, and the panel says "Team link copied."
Given the open Share panel When the reader clicks Copy as Markdown link Then the clipboard has [<title>](<first link>)
Given a browser that refuses the clipboard When the reader clicks Copy Then the panel selects the link in its field and says "Press Ctrl+C to copy.", or Cmd+C on a Mac
FR-5Each section and each card has a link button
A # button shows next to the heading of each section[id], and of each card with an id: requirements, work items, decisions, future work, endpoints and diagrams. A click copies the link to that part, and puts the part in the address.
Given this PRD in the viewer When the reader clicks the # button of WI-6 Then the clipboard has the first link with --WI-6 at its end, and the hash of the viewer ends in --WI-6
Given a PRD opened alone from the repo When the reader clicks the # button of Rollout Then the clipboard has the public link of the page with #rollout at its end
Given a keyboard user When the focus moves to the # button of a heading Then the button shows, and Enter copies the link
FR-6The CLI writes the share links
A page in the bundle gets two links. The team link is the claude.ai link of the bundle with the page link. The public link is the viewer under tracker.pagesUrl with the page link. A page alone gets only its public link: its address under tracker.pagesUrl. Its own claude.ai link is not in the page, because a publish must not change the page that it published. On claude.ai, the panel points to Copy link of the claude.ai menu. tracker url --team prints the claude.ai link. When the address of the viewer starts with the public base, the public link is first. Else the team link is first.
Given a claude.ai link in published.tree and a tracker.pagesUrl When a reader opens Share on claude.ai Then the team link is first, and the public link is second
Given the same page on GitHub Pages When the reader opens Share Then the public link is first
Given no record and no tracker.pagesUrl When the reader opens Share Then the panel says that the page has no link yet, and that Copy link in the claude.ai menu keeps the address of the page
Given the first publish of a bundle When the agent records the claude.ai link and runs skillsaw publish tree again Then only index.html, tree.json, index.md and llms.txt change
FR-7An agent reads the knowledge base as Markdown
The root index.md of the bundle is a map with one line for each page. Each line has the title, the kind, the status, the date of the last change, the path of the Markdown and the link. Each page folder has index.md, and each PRD has items/<id>.md, from skillsaw markdown. llms.txt has the same map. The head of the viewer tells an agent to read index.md.
Given the team link When an agent reads the artifact Then the head of index.html names index.md and the path form of each page
Given the root index.md When an agent reads it Then each page has one line, and each link in it goes to a .md file of the bundle
Given the ember-lattice bundle When an agent reads the map Then the map is 20 KB or less
FR-8A change sends only the files that changed
skillsaw publish tree --json marks each file that changed since the last publish, and lists the files to remove. The record of the bundle in published.tree keeps one digest for each page, one digest of the root files and the names of the assets. The digest of a page covers each file of its folder in the bundle, so a changed page sends each of its files. Each asset name has its hash in it, so a file with a known name never changes.
Given a published bundle When the author adds one ADR and the agent runs skillsaw publish tree --json Then the changed files are the files of the ADR, the ADR index, overview.html, index.html, tree.json, index.md and llms.txt
Given a page that the author removed When the command runs Then it lists the files of that page to remove
Given a new CLI version with a new base.css When the command runs Then it marks the new asset and each page that uses it
Given a publish that the agent finished When the agent runs skillsaw tree publish-record tree --url <link> Thentree.json has the link, the hash of each page and the asset names
FR-9GitHub Pages publishes the same bundle
The pages.yml of each host repo runs skillsaw publish tree --assets files --out <dir>, and publishes the folder at the path of the knowledge base. A page of the bundle that opens alone, with no viewer, goes to the viewer at its page link. A part in its address, such as #rollout, becomes --rollout.
Given a push to the main branch of ember-lattice Whenpages.yml runs Thenhttps://joegaudet.com/ember-lattice/docs/index.html is the viewer
Given the old address of a page, …/docs/adr/0003-scaled-scroll/index.html When a reader opens it Then the browser goes to …/docs/index.html#adr-0003-scaled-scroll
Given the address …/docs/adr/0003-scaled-scroll/index.html#decision When a reader opens it Then the browser goes to …/docs/index.html#adr-0003-scaled-scroll--decision
FR-10The search finds a page or a section
The search of the viewer finds titles, leads and section headings at once, from tree.json. On the first search, it also reads the index.md of each page for the full text.
Given the viewer When the reader types "scaled" Then the results show ADR 0003 and its sections that match, and Enter opens the first result
Given a full text that is not loaded yet When the reader types Then the title results show at once, and the text results come after them
FR-11The theme and the Markdown view work in the viewer
The viewer sends the theme to the page in the frame address, and with postMessage when the theme changes. The Markdown button of the viewer opens the Markdown view of the page. Download .md saves the file through the viewer.
Given the dark theme in the viewer When the next page loads Then its first paint is dark
Given the open Markdown view of a page When the reader clicks Download .md Then the viewer saves <folder>.md with the downloads capability
NFR-1No blank frame on a click
In a screencast of 10 clicks in the claude.ai viewer, no drawn frame is blank. The prototype with the two-frame swap had 0 blank frames of 50. The prototype with one frame had 8 of 48.
Given the bundle in the artifact emulator When a test clicks 10 links and records the screencast Then 0 frames are blank
NFR-2The bundle is small
The ember-lattice bundle is 1 MB or less with --assets cdn, and each asset is in it one time. The prototype with the files option was 4.5 MB, and Mermaid was 3.5 MB of that.
Given the docs of ember-lattice When the agent runs skillsaw publish tree --assets cdn Then the folder is 1 MB or less
NFR-3The bundle keeps data private and accepts only its own messages
The bundle has no data file of a page folder. The viewer and the pages accept a message only from their own frames. The command warns on each file that the claude.ai review for outside readers can refuse.
Given a design review folder with responses/ When the agent runs skillsaw publish tree Then no file of responses/ is in the bundle
Given a message from a window that is not a frame of the viewer When the message arrives Then the viewer ignores it
Given a page with a srcdoc frame or an AVIF image When the command runs Then it warns, and names the file and the rule
NFR-4A keyboard and a screen reader can do each step
The tree, the Share panel and the # buttons work with a keyboard and a screen reader. An axe audit of the viewer and of an open Share panel finds no violation.
Given the focus on the Share button When the reader presses Enter Then the panel opens and the focus moves to the first Copy button, and Escape closes the panel and puts the focus back
Given the viewer When an axe audit runs on the overview, on a PRD and on an open Share panel Then it finds no violation
NFR-5The repo pages stay standalone
A page opened from the repo, or from its own artifact, works as today. skillsaw markdown gives the same text as the Markdown view. The Share button and the # buttons are not in the Markdown text.
Given a PRD opened as a file from the repo When it loads Then it has its top bar, its tree and its Share button
Given a page of each kind Whentests/markdown/page.test.ts runs Then the two texts are the same
Data model and API changes
Data model
tree.json gets a bundle section and a wider record for the key tree. A click on an entity shows why it is there.
No migration is necessary. A tree.json with no bundle section uses the default assets and excludes no page. A record of tree with only url and hash has no page hashes, so the next publish sends each file one time, with the mode replace.
The files of the bundle, for a page key adr/0003-scaled-scroll:
Path
Contents
index.html
The viewer, with the tree and the links in it
index.md, llms.txt
The Markdown map of the knowledge base
tree.json
The tree, the page titles, the sections and the links, for the viewer and the search
overview.html
The knowledge base page, with relative links: the overview of the viewer
assets/<hash>.css, assets/<hash>.js
The livery and each runtime asset one time. The style of a page is split into its files, so base.css is one file for all the pages. With --assets cdn, only the livery and its data script.
Mermaid and its licence. With --assets cdn, only the licence: Mermaid comes from jsDelivr at its version.
adr/0003-scaled-scroll/index.html
The page, with links to the assets and no crumbs block
adr/0003-scaled-scroll/index.md
The Markdown of the page
prd/<folder>/items/WI-n.md
The Markdown of each work item of a PRD
API
Two changed commands and one changed option of a command. No new command.
skillsaw publish tree [--assets cdn|files] [--out <dir>] [--json]Write the bundle of the knowledge base
Today this command writes the knowledge base page alone. It now writes the bundle. --assets overrides bundle.assets. --out writes to a different folder, for the Pages workflow. --json prints each file with changed, the list remove, replace and the warnings of the pre-check. replace is true when the record has no page digests: publish with the mode replace. A page that is not built stops the command with code 2, and the error names the build command. A page outside the folder of the knowledge base also stops it. publish of the knowledge base page alone now names publish tree.
skillsaw tree publish-record tree --url <claude.ai link>Record the bundle and the hash of each page
The agent runs it after a publish. It reads the bundle folder and writes the record into published.tree. The record has the link, the digest of each page and of the root files, the asset names, the CLI version and the mode. Then it builds the tree again. On the first publish, the link is new. So the agent runs publish tree again, sends the four root files and records the link again. With no bundle folder, the command records the knowledge base page as before.
Request
npx @skillsaw/cli tree publish-record tree --url https://claude.ai/…
Response
tree: published at https://claude.ai/…
tree: published at https://claude.ai/…, 34 pages, 6 assets
skillsaw tracker url <page> [--part <id>] [--team]Print the share link of a page or a part
Today the command prints the address of a page under tracker.pagesUrl. With a bundle, it prints the public link with the page link. --part adds the id of a section or a card, and the page must have that id. --team prints the team link. With no bundle, it prints the own claude.ai link of the page. An agent uses it to put a link in a ticket.
The CLI modules behind the commands. A click on a module shows why it is there.
Frontend
The page runtime gets a share control and an embed mode, and the viewer is new. A click on a class shows why it is there.
The messages between the viewer and a page. Each message has skillsawKb: 1.
Message
From
To
Data
ready
Page
Viewer
Path, part, title and sections, when the fonts are in
nav
Page
Viewer
Path and part of a link to another page of the bundle, or of a link to a part of this page. The viewer adds the history entry, so the frame adds none.
at
Page
Viewer
The id of the section in view, for the tree
open
Page
Viewer
An https address to open in a new tab
save
Page
Viewer
A file name and the Markdown, for Download .md
md
Page
Viewer
Whether the Markdown view is open
theme
Viewer
Page
light, dark or empty
go
Viewer
Page
The id of a part to show. The page puts it in its own hash with no history entry. So a script that reads the hash shows the part, such as a pane of the overview.
share
Viewer
Page
The title, the team link and the public link of the page
markdown
Viewer
Page
Open or close the Markdown view of the page
said
Viewer
Page
The result of a save, for the Markdown view
Security and permissions
One share. The owner shares the bundle in the claude.ai menu one time. Each reader who can open it can open each page in it. Put a page for a smaller group in bundle.exclude, and publish it as its own artifact with skillsaw publish <page>.
No data files. The bundle copies only the files that a page uses, with the rules of ownFiles: no .json file of a page folder, no responses/ and no index.inline.html. The names of reviewers stay in the repo.
Messages. The viewer accepts a message only when event.source is the window of its current or next frame. A page accepts a message only from its parent, and only in embed mode. When the origin of the viewer is not opaque, each side also checks the origin.
Links. A link to another site opens in a new tab with rel="noopener". A frame of the viewer shows only files of the bundle. The rules of the artifact also block frames and requests to other sites.
Assets from the CDN. With --assets cdn, each asset link names one version of @skillsaw/cli on jsDelivr and has an integrity hash. A changed file on the CDN does not load.
Readers outside the org. claude.ai reviews each file of a version before a reader outside the org can open it. One file that it cannot review blocks the whole version. The pre-check of publish tree warns on each file of that kind.
Public pages. GitHub Pages makes the whole bundle public. A repo with private plans keeps them out with bundle.exclude, or does not run the Pages step.
Read before publish. An agent reads each file that it did not write before it publishes that file. With the runtime on the CDN, the agent reads only the changed pages, their Markdown and the root files.
Observability and success metrics
skillsaw has no telemetry. These measures show that the change works.
Measure
Target
How to measure
Shares for one knowledge base
1
The artifacts that the owner shares, before and after the rollout
Blank frames for 10 clicks
0
The screencast test in the artifact emulator (WI-3)
Files sent for one new page
7, plus the files of the page: the 4 root files, overview.html and the kind index
skillsaw publish tree --json
Size of the ember-lattice bundle with the CDN
1 MB or less
The summary line of skillsaw publish tree
Size of the Markdown map for 50 pages
20 KB or less
The size of the root index.md
Kinds with a Share button
9 of 9 page types
A browser test for each kind, each kind index and the knowledge base
Rollout and migration
The CLI change ships in one release. Then each host repo gets one pull request. The old artifacts of each page stay until the owner shares the bundle.
Each step can go back alone. The repo pages do not change, so the publish of one page still works. The Pages step can go back to the copy of today.
Work items
Proposed issues for the tracker. One item or more covers each requirement. The chart below comes from the cards. Click an item for its scope.
WI-1publish tree writes the bundle
A new module src/bundle/ and the key tree of publish. It takes each page that the knowledge base lists, minus bundle.exclude, at its docs path. It removes the crumbs block of each page. It moves the runtime blocks into hashed assets, or into CDN links with integrity. It copies the files of each page with the rules of ownFiles. It adds the script that sends a page opened alone to the viewer, with the part of its address. It runs the pre-check, and supports --assets, --out and --json. Tests use a fixture repo with each kind. They check the file list, the data files, the copies of each asset, the CDN links and each pre-check warning.
WI-2Embed mode in base.js
base.js turns on embed mode when the page has ?kb=1 and a parent window. It hides the top bar and the contents. A small script in the head, embed-head.js, sets the theme from the address before the first paint. Embed mode sends ready, nav, at, open, md and save. It takes theme, go, share, markdown and said. The knowledge base page shows each pane, so the viewer can use it as the overview. It replaces embed.js of the prototype. Browser tests show each kind in a test frame. tests/markdown/page.test.ts stays green.
WI-3The viewer
assets/tree/viewer.html and viewer.js draw the tree with folds and the crumbs. They do the two-frame swap, with a load bar after 150 ms. They read the routes of FR-2 and the old anchors, and give the search of FR-10. On a screen under 760 px, the tree is a drawer. The viewer also has the theme, the Markdown button, Download .md, the Share button of its top bar and the message checks. Playwright tests cover the routes, Back, an outside link and the keyboard. A test in the artifact emulator records 10 clicks with 0 blank frames. An axe audit runs on the overview, a PRD and an open Share panel.
WI-4The Markdown map and the files for agents
The bundle gets the root index.md and llms.txt, index.md for each page and items/<id>.md for each PRD. Each link in the Markdown goes to a .md file of the bundle. The head of the viewer has a link rel="alternate" to index.md and a comment for an LLM. A test checks the map of the fixture and its size for 50 pages.
WI-5The bundle record and the change list
tree publish-record tree writes the hash of each page, the asset names and the CLI version. publish tree --json marks each changed file and lists the files to remove. tree stale lists tree when a file of the bundle changed. With a record of the bundle, it does not list a page that has no own link: the bundle has the page. Tests: one new page, one removed page, one new asset, and the second publish of the first link.
WI-6Share links in the header of each page
A new module src/share/ makes the page links and the share links. tree build writes them into script.sk-share of each page. assets/runtime/share.js adds the Share button to main.sheet > header, the panel with Copy and Copy as Markdown link, the fallback field, and the # buttons on sections and cards. The buttons have data-md="skip", so they are not in the Markdown. tracker url gets --part and --team. Browser tests run on each of the seven kinds, a kind index and the knowledge base, with the keyboard, the fallback and an axe audit.
WI-7Skills, rules, the guide and the release
The publish procedure in rules/skillsaw-interviews.md sends the bundle and only the changed files. Each skill that publishes points to it. The artifact contract in CLAUDE.md and the guide of the site name the bundle, the page links and the Share button. The prose check passes. Then a release of @skillsaw/cli.
WI-8The bundle in each host repo
One pull request for each host repo: pages.yml runs publish tree --assets files --out the docs path of the site. The old page addresses go to the viewer. Then the agent publishes the bundle on claude.ai and records it, and the owner shares it. The repos are benchdog, millwork, ember-lattice, ember-marquetry, ember-joinery, harnessed, ember-formwright, meridian, switchyard and jig. The step needs the release of WI-7 on npm.
Future work and research
Two spikes answer the open questions about claude.ai, and one stretch goal joins the repos.
FW-1Does a share of the bundle follow each new version?
Publish two versions of a test bundle. Share the first version with a second account of the org, then publish again. See which version that account gets, and try the control that moves the share forward.
Decides: If the publish procedure tells the owner to move the share forward after each publish. Joe Gaudet decides.
FW-2Can a reader comment on a page in the viewer?
Add a claude.ai comment on a page in the frame of a test bundle. See where the comment attaches, and if the author can find the page from it.
Decides: If the viewer shows a note on comments, or puts the page link in the comment. Joe Gaudet decides.
FW-3One bundle for the Ember Workbench repos
The up link of each tree.json goes to the Ember Workbench knowledge base. One bundle can hold the pages of each repo, with one group for each repo.
Decides: If tree.json gets a list of other repos to include. Joe Gaudet decides after the rollout.
Alternatives considered
Four product decisions and seven technical decisions had real alternatives.
Product decisions
DEC-1How does a reader get all of the pages from one share?
No tool can change who can see an artifact, and the owner wants one share. The rules of the artifact limit what one artifact can load.
Option
Cost
Verdict
One artifact for the knowledge base: the viewer as index.html, each page as a file
A new command, a viewer and an embed mode
One share for all pages, and a new page needs no new share. The prototype worked in the claude.ai viewer. FR-1
Do nothing: one artifact for each page
One share for each page, by hand
33 shares for ember-lattice, and a new page stays private
A viewer artifact that loads the other artifacts
Small
The rules of the artifact block frames and requests to other addresses, so the viewer cannot load them
Revisit if: claude.ai gets a tool that shares an artifact, or a share for a folder of artifacts.
DEC-2Which link does the Share panel put first?
A page can have a team link and a public link. A reader on claude.ai and a reader on GitHub Pages expect different links.
Option
Cost
Verdict
The link of the place where the reader is, with the other link second
One compare of the address with the public base
The reader copies the link that works for the people next to them. The panel says who can open each link. FR-6
Do nothing: no Share button
The reader uses the claude.ai menu or the address bar
No link to a part, and no Markdown link
Always the team link first
None
A public reader copies a link that the next person cannot open
Always the public link first
None
A repo with no public site has no public link
Revisit if: readers paste the wrong link in tickets.
DEC-3Which pages go into the bundle?
Some pages are for a smaller group than the whole knowledge base.
Option
Cost
Verdict
Each page that the knowledge base lists, minus bundle.exclude
One list in tree.json
The bundle shows what the knowledge base shows, and a new page is in it at once. Data model
Do nothing: each page in its own artifact
A share for each page
See DEC-1
Only the pages with a place in tree.json
None
A new page is missing until someone places it
A list of pages to include
An edit for each new page
An author forgets the edit, and the page is missing
Revisit if: a repo excludes more than a few pages.
DEC-4Does the publish of one page stay?
The bundle covers the knowledge base, but a page for another group needs its own share.
Option
Cost
Verdict
Keep skillsaw publish <page> for one page alone
Two flows in the publish procedure
A page in bundle.exclude can still go to the people who need it. Security
Do nothing: the publish of one page stays the only flow
One share for each page
See DEC-1
Remove the publish of one page
Less code
A page for another group has no way to claude.ai
Revisit if: no repo uses the publish of one page for three months.
Technical decisions
DEC-5What is the form of a page link?
claude.ai passes only a plain #name hash to the artifact, and keeps some names for itself.
Option
Cost
Verdict
#<kind>-<folder>, and --<id> for a part
A longest-match lookup
A plain name that never meets a reserved name, and that a person can read. The prototype opened #adr-0010-row-models--decision. FR-2
A path in the hash, such as #/prd/2026-12-04-kb-bundle
None
Not a plain name, so claude.ai can drop it
A number for each page
A table of numbers
A link breaks when a page moves or a page goes before it
Revisit if: claude.ai passes a path or a query to the artifact.
DEC-6How does a click show the next page with no flash?
Each page is a full document with its own styles and scripts, and the viewer must not show a blank frame.
Option
Cost
Verdict
The two-frame swap
Two frames for a short time
0 blank frames of 50 in the claude.ai viewer, and the tree changes with the page. The swap
One frame that loads the next page
None
8 blank frames of 48 for each click
Put the HTML of the page into the viewer
A scope for each style and script of each kind
The kind scripts expect their own document, and their styles collide
A frame with srcdoc
None
The outside review cannot read it, and relative paths break
Revisit if: the claude.ai viewer gets view transitions between documents of an artifact.
DEC-7Where do the tree and the links live in the bundle?
Today each page has the whole tree in it, so a new page changes each page.
Option
Cost
Verdict
Only in the viewer and tree.json. A page in the bundle has no crumbs block, and gets its links from the viewer.
The share message
A new page or a new link changes 4 root files. FR-8
Keep the crumbs block in each page of the bundle
None
Each new page and the first link change each page of the bundle
Revisit if: a page must work in the bundle without the viewer.
DEC-8Where does the runtime of the bundle come from?
The rules of the artifact allow scripts from cdn.jsdelivr.net/npm/, and @skillsaw/cli on npm has its assets. An agent reads each file that it did not write before it publishes the file.
Option
Cost
Verdict
The CDN on claude.ai, with a pinned version and integrity. Files on GitHub Pages.
Two paths in the bundle command
The claude.ai bundle has no Mermaid copy, and the agent reads less. The public site needs no CDN. NFR-2
Files on both
3.5 MB of Mermaid in each artifact
A large first publish, and a long read before it
The CDN on both
None
The public site depends on a CDN that it does not need
Revisit if: the rules of the artifact stop to allow the CDN.
DEC-9Where do the share links come from?
A page in the claude.ai viewer cannot read its claude.ai link: its location is the address of the sandbox.
Option
Cost
Verdict
The CLI writes them from published and tracker.pagesUrl
A second small publish after the first one
The links work on each host, and an agent can print them with tracker url. A page alone has no claude.ai link in it, so a publish does not change the page. FR-6
Read location in the page
None
It gives the sandbox address, which no reader can open
Only the Copy link of the claude.ai menu
None
It works only on claude.ai, and gives no Markdown link
Revisit if: the claude.ai viewer gives the page its own link.
DEC-10Which command writes the bundle?
The bundle is the artifact of the key tree, and publish already writes .skillsaw/publish/tree/.
Option
Cost
Verdict
skillsaw publish tree writes the bundle
A change to the output of one key
One command writes each artifact, and publish-record tree stays the same. The command
A new command, tree bundle
A new command
Two commands write the same folder
Revisit if: a repo needs the knowledge base page alone as an artifact.
DEC-11Do the repo pages change?
The HTML of each page is the source, and an agent edits it. A page must still open alone from the repo and from its own artifact.
Option
Cost
Verdict
The repo pages stay as they are. The bundle is build output in .skillsaw/publish/tree/, which git ignores.
A build step before each publish
No change to the artifact contract or to the work of an agent. NFR-5
Commit the bundle
Two copies of each page in git
Each change makes a large diff
Repo pages load shared asset files
A change to each kind
A page that opens alone from the repo or its own artifact breaks
Revisit if: the repo pages get too large for an agent to edit.
Risks
Risk
Likelihood
Impact
Mitigation
A share stays on an old version, so readers do not see new pages.
Medium
High
FW-1 before WI-8. The publish procedure tells the owner to move the share forward if necessary.
One file that the outside review refuses blocks the bundle for readers outside the org.
Medium
Medium
The pre-check of publish tree. Outside readers can use GitHub Pages.
The first publish of a large knowledge base needs a read of each page: 724 KB for ember-lattice.
High
Low
The runtime from the CDN. Each later publish sends only the changed files.
The CDN is down, or the rules of the artifact stop to allow it.
Low
High
--assets files builds a bundle with no CDN.
A kind script expects to be the top document: the theme, the scroll or the walkthrough player.
Medium
Medium
Embed mode tests for each kind (WI-2).
A reader pastes the team link to a person outside the org.
Medium
Low
The panel says who can open each link.
Comments on claude.ai attach to the viewer and do not name the page.
Medium
Low
FW-2.
Open questions
Does a share of the bundle follow each new version, or must the owner move it forward? FW-1 answers it. Joe Gaudet, before WI-8.
Can a reader comment on a page in the viewer, and can the author find the page from the comment? FW-2 answers it. Joe Gaudet, before WI-8.
Interview record
Each question of the interview with its answer and its source. A fact from the code or a document, a question that the author did not ask, and an assumption are rows too.
Question
Answer
Source
Can the knowledge base be one viewer that loads the pages by the hierarchy?
Yes. The user wants one file that is easy to move through.
User
Must a reader share a link to one page, and move between pages?
Yes. The goal is a knowledge base.
User
How must a click change the page?
In place, with no flash, and with no new document.
User
Why one artifact?
The user wants to share one document, because no tool can make an artifact public.
User
Must a reader link to one page, and must a new PRD or ADR show up with no new step?
Yes. The user asked how links and updates work for a new PRD or ADR.
User
Must agents use the knowledge base?
Yes. The user asked how it works with agents.
User
Where do share links go?
In the header of each document. Sharing must be very easy.
User
Can a page in the claude.ai viewer show other files of its artifact in frames?
Yes. The prototype framed its own files, and postMessage worked between the frames.
Prototype run in the claude.ai viewer, 2026-12-04
Does a page link open the page and the section?
Yes. #adr-0010-row-models--decision opened that page at that section, the address followed each click, and Back worked.
Prototype run in the claude.ai viewer, 2026-12-04
How many blank frames does a click show?
8 of 48 with one frame, and 0 of 50 with the two-frame swap.
Prototype run in the claude.ai viewer, 2026-12-04
How many blank frames does the viewer of WI-3 show for 10 clicks?
0 of 75. The bundle of the skillsaw knowledge base, with --assets files, showed no console error.
Screencast in the artifact emulator, 2026-12-04
Can a page copy a link to the clipboard in the claude.ai viewer?
Yes. The artifact frame has allow="clipboard-write". writeText worked in the artifact frame and in a frame of its own file.
Clipboard probe in the claude.ai viewer, 2026-12-04
Which hash reaches the artifact?
Only a plain #name, and Copy link keeps it. claude.ai keeps some names for itself.
claude.ai artifact guide
Can an artifact load a frame or a request of another site?
No. The rules of the artifact block them, and a link to another site opens outside the page.
claude.ai artifact guide
Can a tool change who can see an artifact?
No. The owner shares it in the claude.ai menu.
claude.ai artifact guide
Can one file block a version for readers outside the org?
Yes. The review runs on each file, and one file that it cannot review blocks the version.
claude.ai artifact guide
What do the artifact tools give for an artifact with several files?
Only index.html on a read of the artifact. A read of files takes up to 32 paths.
claude.ai artifact guide
Can an artifact load scripts from a CDN?
Yes, from cdn.jsdelivr.net/npm/ and cdnjs. @skillsaw/cli 0.4.0 on npm has its assets.
claude.ai artifact guide
Where does each page get its runtime today?
From its own style and script blocks.
Code (packages/cli/src/core/runtime.ts:53)
Where is the tree today?
In the crumbs block of each page.
Code (packages/cli/src/tree/tree.ts:279)
How large is the ember-lattice knowledge base?
33 pages and 4.2 MB of HTML today. The prototype bundle was 4.5 MB: 724 KB of pages and 3.5 MB of Mermaid.
Prototype run in the claude.ai viewer, 2026-12-04
Does each host repo publish its docs to GitHub Pages?
Yes. The pages.yml of ember-lattice, benchdog and millwork copies the docs to the site.
Code (.github/workflows/pages.yml of those repos)
Is there a one-pager?
No. The user asked for the plan directly.
Assumption
Which link does the Share panel put first?
The link of the place where the reader is (DEC-2).
Assumption
Where does the runtime come from?
The CDN on claude.ai, and files on GitHub Pages (DEC-8).
User
Which host repos run the Pages step for the bundle, and which pages do they exclude?
Each repo with skillsaw pages: benchdog, millwork, ember-lattice, ember-marquetry, ember-joinery, harnessed, ember-formwright, meridian, switchyard and jig. They exclude no page.
User
How does the release of @skillsaw/cli ship?
With the flow of the repo: a changeset, a pull request to main, the version pull request, then a v tag on main. CI publishes with provenance.
User
Does the first claude.ai bundle wait for the release?
Joe asked for it now, with --assets files. That bundle has the Mermaid file of 3.5 MB, and the agent must read each file before it publishes. So it waits for the release, and uses the CDN (DEC-8).
User
Changelog
Date
Author
Change
2026-12-04
Joe Gaudet (agent)
First draft, from the prototype of the viewer and the clipboard probe in the claude.ai viewer.
2026-12-04
Joe Gaudet (agent)
WI-6 built. A page alone has no claude.ai link in it, because a publish must not change the page that it published (FR-6, DEC-9). The part link of a page alone is #part (FR-5), and the redirect of FR-9 keeps the part. tracker url --part checks that the page has the part.
2026-12-04
Joe Gaudet (agent)
WI-2 built. Three new messages: markdown and said from the viewer, and md from the page, for the Markdown view of FR-11. nav also tells the viewer the new part of the same page. The theme comes from a script in the head, so the first paint has it. The overview of the viewer is the knowledge base page in a frame.
2026-12-04
Joe Gaudet (agent)
WI-1, WI-4 and WI-5 built, with a first viewer for WI-3. The knowledge base page goes to overview.html, because the viewer is index.html. The style of a page is split into its files, so base.css is in the bundle one time. With --assets cdn, the styles and scripts of skillsaw and Mermaid come from jsDelivr, as DEC-8 says. A new page also changes overview.html and its kind index (FR-8, the metric). The digest of a page covers each file of its folder. A page that is not built stops the command with code 2. tree stale does not list a page that the bundle has.
2026-12-04
Joe Gaudet (agent)
WI-3 built. A link to a part of a page in a frame goes to the viewer as nav, so Back takes one press. go also puts the part in the hash of the page, so an old anchor of the overview shows its pane. The viewer has the Share control of the pages and publicBase in its data, and a hidden h1 for a screen reader. The screencast in the artifact emulator had 0 blank frames of 75 for 10 clicks.
2026-12-04
Joe Gaudet (agent)
WI-7 built, except the release. Section 9 of rules/skillsaw-interviews.md publishes the bundle and sends only the changed files. The first publish takes two passes. The tree skill, the reference of tree.json, the guide, the README of the CLI and CLAUDE.md name the bundle, the page links and the Share button. tracker url now gives the links of a page in the bundle, as the command contract says. The release of @skillsaw/cli waits for Joe, and --assets cdn needs it.
2026-12-04
Joe Gaudet (agent)
Joe answered two open questions. DEC-8 stays: the CDN on claude.ai, and files on GitHub Pages. WI-8 goes to each of the 10 repos with skillsaw pages, with no excluded page. The release follows the flow of the repo: a changeset, then a tag on main. The first bundle of skillsaw waits for the release and uses the CDN. With --assets files, it has the Mermaid file of 3.5 MB, and the agent cannot read all of it before it publishes.
2026-12-04
Joe Gaudet (agent)
The polish ladder of PR 25 is in the same release. The tree of the viewer lists the pull requests of the ladders under their project, and the Maintenance group after the groups. Each pull request opens the quality report of its last round in a new tab. The map lists them too, with no Markdown link. The overview has the Polish row with relative links to the pages.
The prd skill of skillsaw wrote this page. The HTML in this file is the source of truth. The diagrams are the Mermaid sources in it.