adp
ADP (Artifacts Done Properly) is the standard for shared Claude Artifacts and Sites pages that collect comments or requests from people, or that are built from shared catalog components. Load it FIRST, before writing any HTML and before calling the Artifact or ArtifactData tools,
Install
npx skills add https://github.com/fblgit/artifacts-done-properly/tree/main/plugins/artifacts-done-properly/skills/adp
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install fblgit-artifacts-done-properly@llmmart
git clone https://github.com/fblgit/artifacts-done-properly.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole fblgit/artifacts-done-properly collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
ADP: Artifacts Done Properly
What ADP is
A protocol and a framework for structured artifacts. The page is a thin shell. The record lives in the artifact's database, mapped to the page's regions (parts). Changes are records, not republishes. Because it runs on claude.ai's own features (conversations, comments anchored to parts, the watcher, the picker), a person and an agent edit the same page together.
How it runs
- Publish: one Artifact call for the shell (the About page), then one ArtifactData write with the seeds. The page expands them, its inbox applies the proposals, and it maintains its own
catalog.json. Nothing else. - Edit: work locally in
.adp/, as if it were the artifact itself. One command computes the diff by part and file hash and writes a seed-like JSON. That goes in through ArtifactData. No republish. - Build: write kits, templates, themes, patterns, viz, components and pages, reusing what the catalog already has, with the page's own style in its custom CSS. Kits are versioned, files hashed, and headers carry the metadata that ties the system together.
Why it is efficient: the agent never retypes, re-reads or republishes what the system already holds. It sends small hashed records, and the page does the conversion, publishing and bookkeeping itself.
Where each change goes:
- The page's own files and parts (
index.html,adp.js,parts/,styles/) are recorded inmanifest/current. They change by the loop:adp.py export, edit in.adp/,adp.py propose, one ArtifactData batch. The page's inbox classifies the proposal against the manifest and applies it. - Kits, templates, themes, patterns and viz change as catalog entries, by proposal. A page's own look goes in its custom CSS, not into a kit.
catalog.jsonis the catalog page's own: it updates it after applying a kit. Never send it.- Concurrency is claude.ai's own:
if_versionpins each ArtifactData write andifMatcheach published file, so a stale write is refused, and the inbox holds a proposal whose files moved.
Nothing here is a gap to work around by hand or by a republish. If a step seems missing, read adp.js and the inbox (kit/patterns/inbox.js) before adding one.
ADP makes a shared Artifact safe to edit: every piece of the page is a part with a stable id and a content hash, comments anchor to part ids, and one ArtifactData layout records every change. New artifacts use the adp/2 layout (a thin shell plus files per part, copy stored as data). adp.py computes hashes and diffs and prints the exact Artifact and ArtifactData calls, so nothing is retyped by hand.
Run the tool
adp.py lives in scripts/ of THIS skill's folder. Run it as:
python3 -I <this skill's folder>/scripts/adp.py <subcommand>
Use --help or a subcommand with no arguments to see its usage; do not guess a subcommand, a guessed one does not exist and costs a turn.
For local Claude/Codex messages, presence and Codex chat delivery, read
the local bus guide. Its commands, diagrams and verification
limits are maintained there; run the separate scripts/adp_bus.py helper.
First run: check before anything else
- Is
~/.adp/config.jsonor./.adp/config.jsonpresent? If yes, ADP is set up: go to the table. - If not, run
adp.py setup --dry-run, then ask the user ONE question: which scope (user,projectorlocal). Runadp.py setup --scope <answer>. When nobody can answer (an unattended session), useuserand say so in your report. It copies the four road skills into the skills folder, writes the config and puts the shipped catalog into~/.adp/catalog(never overwriting a file that is there); a road skill folder already there that differs (an older release, or local edits) is replaced by the packaged one, so run it again after installing a neweradp.skill. In a plugin install (this skill is listed asartifacts-done-properly:adp) it copies none: the plugin serves the road skills itself, so they follow its updates and a copy would only go stale. A config that already exists is kept: setup only adds the keys it lacks and overwrites no value. A real run needs--scope: without it, or with--help, setup prints its usage and sets nothing up. It only prints the lines it would add to CLAUDE.md; add them with--yesonly if the user agrees. - To onboard just a project folder, run
adp.py init [DIR].initandsetup --scope project|localalso register the project (name, scope, absolute path) in~/.adp/projects/<name>/config.json;adp.py projectslists the registered projects, so a project is found from any folder.
Which road
Choose the host as well as the road. For a Sites page, read ADP on Sites before creating, editing or publishing. That guide applies to both Claude and Codex; use native Sites source/record tools in place of the roads' Claude host calls.
| The user wants | Load skill |
|---|---|
| a new artifact page, board, tracker, assistant or record | adp-new |
| to find, use, take or add a catalog component, theme or template | adp-catalog |
| to edit or publish an artifact others also work on, or answer its comments | adp-edit |
| an existing artifact put on ADP (adopt it, move it to adp/2) | adp-adopt |
In a plugin install the road names carry the plugin's prefix, for example artifacts-done-properly:adp-new. Each road is also a plain file: ../<road>/SKILL.md beside this skill's folder in a plugin install (for example ../adp-new/SKILL.md), refs/<road>/road.md in a zip install. When the Skill tool does not know a road, read that file; setup is not needed for it. Each road is complete on its own; the full standard is ~/.adp/catalog/kit/guides/artifact-dataplane.md (setup puts it there; read it only when a road leaves a question open). Run adp.py with no arguments for the real command list; if a road names a command it does not list, the command does not exist.
When a page documents a repository, source review drift maps committed file changes to affected chapters/parts without model calls. Use it to report review needs; catalog header drift and runtime integrity check different boundaries.
Log
Every adp.py command appends one JSON line to log.jsonl: in ./.adp/ when a project config exists, else in ~/.adp/. Show recent lines with adp.py log -n 20. Read it first when asked what was done or why something failed.
Always
- Work from the live record:
adp.py exportbefore you edit. claude.ai refuses a stale write by itself (if_versionon every ArtifactData write, a conflict on a publish over a newer version,ifMatchon each published file): re-read and redo, never force. - Say what a command or a read did not confirm when you tell the user, so they know what to check; this includes whether this session is watching an artifact (only the publish result or the ArtifactComments tool says so). A publish result that says live subscription is not supported from this session means you are not watching: tell the owner in one line, read
requests/when they say go, and carry on.
Files (artifacts-done-properly)
-
assets
-
adapters
-
claude.js 3.3 KB
Loading… -
openai-sites-comments.js 16.5 KB
Loading… -
openai-sites.js 9.6 KB
Loading… -
openai.js 3.9 KB
Loading…
-
-
hosts
-
openai-sites
-
fixture.html 2.7 KB · in bundle
-
schema.sql 325 B · in bundle
-
worker.mjs 10.9 KB · in bundle
-
-
single
-
shim.js 1.2 KB
Loading…
-
-
-
adp.js 44.4 KB
Loading…
-
-
catalog
-
kit
-
guides
-
artifact-dataplane.md 14.9 KB
Loading… -
component-inventory.md 16.2 KB
Loading…
-
-
layout
-
app-shell.css 4.6 KB · in bundle
-
app-shell.js 12.1 KB
Loading… -
carousel.css 2.7 KB · in bundle
-
carousel.js 8.8 KB
Loading… -
doc-shell.css 5.3 KB · in bundle
-
doc-shell.js 8.8 KB
Loading… -
explorer-shell.css 5.1 KB · in bundle
-
explorer-shell.js 8.6 KB
Loading… -
file-browser.css 16.8 KB · in bundle
-
file-browser.js 39.9 KB
Loading… -
margin-notes.css 6.8 KB · in bundle
-
margin-notes.js 12.9 KB
Loading… -
stack.css 4 KB · in bundle
-
stack.js 10.2 KB
Loading… -
topbar.css 3.8 KB · in bundle
-
topbar.js 11.1 KB
Loading… -
viewer3d.css 4.8 KB · in bundle
-
viewer3d.js 16.9 KB
Loading…
-
-
patterns
-
answer-queue.css 6.8 KB · in bundle
-
answer-queue.js 13.7 KB
Loading… -
assist-panel.css 7.4 KB · in bundle
-
assist-panel.js 21.1 KB
Loading… -
assist.js 35.4 KB
Loading… -
attention-list.css 3.3 KB · in bundle
-
attention-list.js 8.7 KB
Loading… -
block-picker.css 3.2 KB · in bundle
-
block-picker.js 13.1 KB
Loading… -
blueprint.css 5.1 KB · in bundle
-
capability-picker.css 3 KB · in bundle
-
capability-picker.js 10.7 KB
Loading… -
card-history.css 5 KB · in bundle
-
card-history.js 10.4 KB
Loading… -
confirm-sheet.css 14.5 KB · in bundle
-
confirm-sheet.js 27.5 KB
Loading… -
count-filters.css 3.9 KB · in bundle
-
count-filters.js 6.6 KB
Loading… -
decisions-ack.css 4.9 KB · in bundle
-
decisions-ack.js 8.2 KB
Loading… -
decisions.css 4.2 KB · in bundle
-
decisions.js 13.5 KB
Loading… -
disclosure-reader.css 4.7 KB · in bundle
-
disclosure-reader.js 10.3 KB
Loading… -
disclosure.css 5.4 KB · in bundle
-
disclosure.js 8.3 KB
Loading… -
event-log.css 6.6 KB · in bundle
-
event-log.js 14.7 KB
Loading… -
expand-card.css 5.6 KB · in bundle
-
expand-card.js 9.4 KB
Loading… -
facet-batch.css 5.4 KB · in bundle
-
facet-batch.js 22.7 KB
Loading… -
figures.css 6.5 KB · in bundle
-
figures.js 6.6 KB
Loading… -
file-map.css 5.2 KB · in bundle
-
file-map.js 17.2 KB
Loading… -
filter-table.css 4.3 KB · in bundle
-
filter-table.js 12 KB
Loading… -
findings.css 3.6 KB · in bundle
-
findings.js 6.6 KB
Loading… -
gate.css 7.8 KB · in bundle
-
gate.js 13.9 KB
Loading… -
inbox.css 2.9 KB · in bundle
-
inbox.js 30.7 KB
Loading… -
integrity.css 7.8 KB · in bundle
-
integrity.js 20.2 KB
Loading… -
job-tray.css 7.6 KB · in bundle
-
job-tray.js 22.7 KB
Loading… -
ledger.css 5.2 KB · in bundle
-
ledger.js 8 KB
Loading… -
master-detail.css 4.1 KB · in bundle
-
master-detail.js 9.4 KB
Loading… -
mindmap.css 5.8 KB · in bundle
-
mindmap.js 33.5 KB
Loading… -
namespaces.css 7.1 KB · in bundle
-
namespaces.js 14.9 KB
Loading… -
next-steps.css 4.9 KB · in bundle
-
next-steps.js 13.4 KB
Loading… -
options.css 6 KB · in bundle
-
playbook.css 4.5 KB · in bundle
-
playbook.js 6 KB
Loading… -
playground.css 6.1 KB · in bundle
-
playground.js 19.5 KB
Loading… -
presence.css 2.8 KB · in bundle
-
presence.js 11.7 KB
Loading… -
prototype.css 4.8 KB · in bundle
-
prototype.js 12 KB
Loading… -
questions.css 6.5 KB · in bundle
-
questions.js 15 KB
Loading… -
record-shelf.css 3.1 KB · in bundle
-
record-shelf.js 12.2 KB
Loading… -
region-frame.css 3.8 KB · in bundle
-
region-frame.js 6.7 KB
Loading… -
report-cards.css 5.2 KB · in bundle
-
report-cards.js 15.5 KB
Loading… -
request-card.css 6.7 KB · in bundle
-
request-card.js 18 KB
Loading… -
roster-wall.css 6.9 KB · in bundle
-
roster-wall.js 17.8 KB
Loading… -
row-actions.css 5.6 KB · in bundle
-
row-actions.js 12.3 KB
Loading… -
sandbox.css 4.6 KB · in bundle
-
sandbox.js 11.6 KB
Loading… -
scenarios.css 2.8 KB · in bundle
-
scenarios.js 5.3 KB
Loading… -
secret-input.css 2.7 KB · in bundle
-
secret-input.js 16.7 KB
Loading… -
settings.css 10.7 KB · in bundle
-
settings.js 20.2 KB
Loading… -
specimens.css 4.4 KB · in bundle
-
specimens.js 7.5 KB
Loading… -
status-columns.css 6.8 KB · in bundle
-
status-columns.js 16.2 KB
Loading… -
steps-owners.css 4.7 KB · in bundle
-
steps-owners.js 7.1 KB
Loading… -
steps.css 5.3 KB · in bundle
-
steps.js 8.9 KB
Loading… -
timed-reveal.css 3.7 KB · in bundle
-
timed-reveal.js 11.3 KB
Loading… -
verdict.css 5.7 KB · in bundle
-
work-card.css 4 KB · in bundle
-
work-card.js 11.5 KB
Loading…
-
-
samples
-
expiry-board.json 11.6 KB
Loading… -
kit.json 32.8 KB
Loading… -
layout.json 50.9 KB
Loading… -
patterns.json 144.9 KB
Loading… -
tester.json 800 B
Loading… -
viz.json 124.8 KB
Loading…
-
-
templates
-
adp2-shell.html.txt 4.2 KB
Loading… -
doc.css 5.1 KB · in bundle
-
doc.html.txt 8.3 KB
Loading… -
expiry-board.css 4.4 KB · in bundle
-
expiry-board.html.txt 8.3 KB
Loading… -
expiry-board.js 15.9 KB
Loading… -
record.css 4 KB · in bundle
-
record.html.txt 7.1 KB
Loading… -
tester.css 1.4 KB · in bundle
-
tester.html.txt 5.2 KB
Loading… -
tester.js 15.3 KB
Loading…
-
-
themes
-
adr-drafting-table.css 7.9 KB · in bundle
-
adr-drafting-table.json 6 KB
Loading… -
blueprint.css 7.9 KB · in bundle
-
blueprint.json 4.1 KB
Loading… -
classic.css 8 KB · in bundle
-
classic.json 4 KB
Loading… -
console.css 7.9 KB · in bundle
-
console.json 3.9 KB
Loading… -
default.css 8.1 KB · in bundle
-
default.json 3.7 KB
Loading… -
glaze.css 6.8 KB · in bundle
-
glaze.json 3.6 KB
Loading… -
journal.css 7.5 KB · in bundle
-
journal.json 3.7 KB
Loading… -
journey-whiteboard.css 5.7 KB · in bundle
-
journey-whiteboard.json 3.3 KB
Loading… -
kanban.css 7.5 KB · in bundle
-
kanban.json 3.6 KB
Loading… -
longpage.css 7.5 KB · in bundle
-
longpage.json 3.6 KB
Loading… -
manuscript.css 7.7 KB · in bundle
-
manuscript.json 3.7 KB
Loading… -
notebook.css 7.9 KB · in bundle
-
notebook.json 3.9 KB
Loading… -
warroom.css 8 KB · in bundle
-
warroom.json 3.8 KB
Loading…
-
-
viz
-
bars.css 7.9 KB · in bundle
-
bars.js 19.4 KB
Loading… -
bubbles.css 4.3 KB · in bundle
-
bubbles.js 17.4 KB
Loading… -
buckets.js 8.7 KB
Loading… -
capability-wheel.css 4 KB · in bundle
-
capability-wheel.js 8.5 KB
Loading… -
compare.css 4.6 KB · in bundle
-
compare.js 6.8 KB
Loading… -
core.js 5 KB
Loading… -
dial-meter.css 6.1 KB · in bundle
-
dial-meter.js 12.2 KB
Loading… -
dotgrid.css 3.9 KB · in bundle
-
dotgrid.js 8.3 KB
Loading… -
flow.css 4.1 KB · in bundle
-
flow.js 4.8 KB
Loading… -
focus.js 6.3 KB
Loading… -
impact.js 7.1 KB
Loading… -
lease-graph.css 3.1 KB · in bundle
-
lease-graph.js 9.5 KB
Loading… -
matrix.js 6.3 KB
Loading… -
pebble-map.css 4.8 KB · in bundle
-
pebble-map.js 18.9 KB
Loading… -
phase-strip.css 7.9 KB · in bundle
-
phase-strip.js 11.5 KB
Loading… -
replay.js 4.9 KB
Loading… -
runway.css 2.6 KB · in bundle
-
runway.js 11.5 KB
Loading… -
seal.css 6.7 KB · in bundle
-
seal.js 14.4 KB
Loading… -
shelf.css 4.1 KB · in bundle
-
shelf.js 7.1 KB
Loading… -
slider-chart.css 2.1 KB · in bundle
-
slider-chart.js 5.3 KB
Loading… -
sparkline.css 2.7 KB · in bundle
-
sparkline.js 14.2 KB
Loading… -
stepper.js 4.1 KB
Loading… -
timeline-phased.css 5.7 KB · in bundle
-
timeline-phased.js 7.4 KB
Loading… -
timeline.css 4.8 KB · in bundle
-
timeline.js 7.9 KB
Loading… -
topology.css 3.8 KB · in bundle
-
topology.js 9.5 KB
Loading… -
tree.js 13.7 KB
Loading… -
trust-tree.css 13.4 KB · in bundle
-
trust-tree.js 39.2 KB
Loading… -
version-compare.css 9 KB · in bundle
-
version-compare.js 18.4 KB
Loading… -
viz.css 20.3 KB · in bundle
-
wheel.js 10.3 KB
Loading… -
wires.css 3.9 KB · in bundle
-
wires.js 9.5 KB
Loading…
-
-
callout-refusal.css 2.2 KB · in bundle
-
callout-refusal.js 4 KB
Loading… -
callout.css 5.1 KB · in bundle
-
canvas.css 6.1 KB · in bundle
-
canvas.js 46.5 KB
Loading… -
chrome.css 6.1 KB · in bundle
-
chrome.js 13.5 KB
Loading… -
claude-lane.css 2.6 KB · in bundle
-
claude-lane.js 12 KB
Loading… -
code-gate.css 2 KB · in bundle
-
code-gate.js 6.8 KB
Loading… -
copy.css 3.5 KB · in bundle
-
copy.js 7.3 KB
Loading… -
dial.css 2.8 KB · in bundle
-
dial.js 7.5 KB
Loading… -
dom.js 1.8 KB
Loading… -
drawer.css 3.2 KB · in bundle
-
drawer.js 7.6 KB
Loading… -
glaze-surfaces.css 15.3 KB · in bundle
-
glaze-surfaces.js 8.7 KB
Loading… -
icons.js 9.2 KB
Loading… -
keep-state.js 8.4 KB
Loading… -
md.css 1 KB · in bundle
-
md.js 2.7 KB
Loading… -
mermaid.css 2.5 KB · in bundle
-
mermaid.js 11.1 KB
Loading… -
palette.css 3.1 KB · in bundle
-
palette.js 9.1 KB
Loading… -
record-dialog.css 5.7 KB · in bundle
-
record-dialog.js 8.6 KB
Loading… -
save-status.css 1.6 KB · in bundle
-
save-status.js 8.6 KB
Loading… -
skins.css 1.4 KB · in bundle
-
skins.js 12.9 KB
Loading… -
store.js 9.2 KB
Loading… -
table.css 3.5 KB · in bundle
-
table.js 7 KB
Loading… -
tabs.css 2.6 KB · in bundle
-
tabs.js 7.4 KB
Loading… -
tokens.js 5.7 KB
Loading… -
tooltip.css 1.5 KB · in bundle
-
tooltip.js 8.8 KB
Loading… -
type-roles.css 7.3 KB · in bundle
-
view-registry.css 3.1 KB · in bundle
-
view-registry.js 18.3 KB
Loading… -
vocab.css 5.5 KB · in bundle
-
vocab.js 14 KB
Loading…
-
-
parts
-
catalog.js 47.1 KB
Loading… -
files.js 7.4 KB
Loading… -
previews-b1.js 15.6 KB
Loading… -
previews-b10.js 16.7 KB
Loading… -
previews-b11.js 12.7 KB
Loading… -
previews-b12.js 23.2 KB
Loading… -
previews-b13.js 16.2 KB
Loading… -
previews-b14.js 9.5 KB
Loading… -
previews-b15.js 7.3 KB
Loading… -
previews-b16.js 19.3 KB
Loading… -
previews-b17.js 3.5 KB
Loading… -
previews-b2.js 16.7 KB
Loading… -
previews-b3.js 18.2 KB
Loading… -
previews-b4.js 12.9 KB
Loading… -
previews-b5.js 18.4 KB
Loading… -
previews-b6.js 24.9 KB
Loading… -
previews-b7.js 20.8 KB
Loading… -
previews-b8.js 10.3 KB
Loading… -
previews-b9.js 17.5 KB
Loading… -
previews-kit.js 15.3 KB
Loading… -
previews.js 14.4 KB
Loading…
-
-
styles
-
catalog.css 27 KB · in bundle
-
-
adp.js 44.4 KB
Loading… -
catalog.json 165.6 KB
Loading… -
content.js 5.4 KB
Loading… -
index.html 11 KB · in bundle
-
-
refs
-
local-bus.md 5.4 KB
Loading… -
sites.md 3.4 KB
Loading… -
source-drift.md 5.8 KB
Loading…
-
-
scripts
-
tests
-
test_bus.py 5.8 KB
Loading…
-
-
adp.py 109.3 KB
Loading… -
adp_bundle.py 12.1 KB
Loading… -
adp_bus.py 7.2 KB
Loading… -
adp_catalog.py 54.8 KB
Loading… -
adp_claude_adapter.py 3 KB
Loading… -
adp_dev.js 9 KB
Loading… -
adp_dev.py 18.1 KB
Loading… -
adp_host_build.py 10.8 KB
Loading… -
adp_lib.py 26.9 KB
Loading… -
adp_loop.py 29.6 KB
Loading… -
adp_sites_adapter.py 7.9 KB
Loading… -
adp_sites_dev.mjs 7.4 KB · in bundle
-
adp_source_drift.py 10.9 KB
Loading… -
adp_work.py 9.9 KB
Loading… -
publish_catalog.py 23.5 KB
Loading… -
welcome.html 7.8 KB · in bundle
-
-
templates
-
assistant
-
parts
-
app.js.txt 50.8 KB
Loading…
-
-
styles
-
assist.css.txt 13.5 KB
Loading… -
canvas.css.txt 2.1 KB
Loading…
-
-
content.js.txt 5 KB
Loading… -
index.html.txt 10.2 KB
Loading… -
template.json 1.5 KB
Loading…
-
-
default
-
index.html.txt 14.7 KB
Loading… -
template.json 2.7 KB
Loading…
-
-
starter
-
parts
-
app.js.txt 6.1 KB
Loading…
-
-
styles
-
page.css.txt 6.9 KB
Loading…
-
-
content.js.txt 2.7 KB
Loading… -
index.html.txt 6.9 KB
Loading… -
template.json 1.4 KB
Loading…
-
-
-
SKILL.md 7.8 KB
--- name: adp description: "ADP (Artifacts Done Properly) is the standard for shared Claude Artifacts and Sites pages that collect comments or requests from people, or that are built from shared catalog components. Load it FIRST, before writing any HTML and before calling the Artifact or ArtifactData tools, whenever the user wants a new artifact page, board, tracker, dashboard, assistant or record that will be kept, shared or edited again; wants to edit, republish or answer comments on an artifact that already exists or that another session touched; says ADP, adp.py, catalog, kit, theme, template, part id, watch the artifact, requests or presence; wants an existing artifact put on ADP; or is setting ADP up for the first time. Skipping it risks a stale copy overwriting newer versions and rebuilding by hand what the catalog already has." license: Apache-2.0 metadata: version: "2.3.0" --- # ADP: Artifacts Done Properly ## What ADP is A protocol and a framework for structured artifacts. The page is a thin shell. The record lives in the artifact's database, mapped to the page's regions (parts). Changes are records, not republishes. Because it runs on claude.ai's own features (conversations, comments anchored to parts, the watcher, the picker), a person and an agent edit the same page together. ## How it runs 1. Publish: one Artifact call for the shell (the About page), then one ArtifactData write with the seeds. The page expands them, its inbox applies the proposals, and it maintains its own `catalog.json`. Nothing else. 2. Edit: work locally in `.adp/`, as if it were the artifact itself. One command computes the diff by part and file hash and writes a seed-like JSON. That goes in through ArtifactData. No republish. 3. Build: write kits, templates, themes, patterns, viz, components and pages, reusing what the catalog already has, with the page's own style in its custom CSS. Kits are versioned, files hashed, and headers carry the metadata that ties the system together. Why it is efficient: the agent never retypes, re-reads or republishes what the system already holds. It sends small hashed records, and the page does the conversion, publishing and bookkeeping itself. Where each change goes: - The page's own files and parts (`index.html`, `adp.js`, `parts/`, `styles/`) are recorded in `manifest/current`. They change by the loop: `adp.py export`, edit in `.adp/`, `adp.py propose`, one ArtifactData batch. The page's inbox classifies the proposal against the manifest and applies it. - Kits, templates, themes, patterns and viz change as catalog entries, by proposal. A page's own look goes in its custom CSS, not into a kit. - `catalog.json` is the catalog page's own: it updates it after applying a kit. Never send it. - Concurrency is claude.ai's own: `if_version` pins each ArtifactData write and `ifMatch` each published file, so a stale write is refused, and the inbox holds a proposal whose files moved. Nothing here is a gap to work around by hand or by a republish. If a step seems missing, read `adp.js` and the inbox (`kit/patterns/inbox.js`) before adding one. ADP makes a shared Artifact safe to edit: every piece of the page is a part with a stable id and a content hash, comments anchor to part ids, and one ArtifactData layout records every change. New artifacts use the adp/2 layout (a thin shell plus files per part, copy stored as data). `adp.py` computes hashes and diffs and prints the exact Artifact and ArtifactData calls, so nothing is retyped by hand. ## Run the tool `adp.py` lives in `scripts/` of THIS skill's folder. Run it as: `python3 -I <this skill's folder>/scripts/adp.py <subcommand>` Use `--help` or a subcommand with no arguments to see its usage; do not guess a subcommand, a guessed one does not exist and costs a turn. For local Claude/Codex messages, presence and Codex chat delivery, read [the local bus guide](refs/local-bus.md). Its commands, diagrams and verification limits are maintained there; run the separate `scripts/adp_bus.py` helper. ## First run: check before anything else 1. Is `~/.adp/config.json` or `./.adp/config.json` present? If yes, ADP is set up: go to the table. 2. If not, run `adp.py setup --dry-run`, then ask the user ONE question: which scope (`user`, `project` or `local`). Run `adp.py setup --scope <answer>`. When nobody can answer (an unattended session), use `user` and say so in your report. It copies the four road skills into the skills folder, writes the config and puts the shipped catalog into `~/.adp/catalog` (never overwriting a file that is there); a road skill folder already there that differs (an older release, or local edits) is replaced by the packaged one, so run it again after installing a newer `adp.skill`. In a plugin install (this skill is listed as `artifacts-done-properly:adp`) it copies none: the plugin serves the road skills itself, so they follow its updates and a copy would only go stale. A config that already exists is kept: setup only adds the keys it lacks and overwrites no value. A real run needs `--scope`: without it, or with `--help`, setup prints its usage and sets nothing up. It only prints the lines it would add to CLAUDE.md; add them with `--yes` only if the user agrees. 3. To onboard just a project folder, run `adp.py init [DIR]`. `init` and `setup --scope project|local` also register the project (name, scope, absolute path) in `~/.adp/projects/<name>/config.json`; `adp.py projects` lists the registered projects, so a project is found from any folder. ## Which road Choose the host as well as the road. For a Sites page, read [ADP on Sites](refs/sites.md) before creating, editing or publishing. That guide applies to both Claude and Codex; use native Sites source/record tools in place of the roads' Claude host calls. | The user wants | Load skill | |---|---| | a new artifact page, board, tracker, assistant or record | `adp-new` | | to find, use, take or add a catalog component, theme or template | `adp-catalog` | | to edit or publish an artifact others also work on, or answer its comments | `adp-edit` | | an existing artifact put on ADP (adopt it, move it to adp/2) | `adp-adopt` | In a plugin install the road names carry the plugin's prefix, for example `artifacts-done-properly:adp-new`. Each road is also a plain file: `../<road>/SKILL.md` beside this skill's folder in a plugin install (for example `../adp-new/SKILL.md`), `refs/<road>/road.md` in a zip install. When the Skill tool does not know a road, read that file; setup is not needed for it. Each road is complete on its own; the full standard is `~/.adp/catalog/kit/guides/artifact-dataplane.md` (setup puts it there; read it only when a road leaves a question open). Run `adp.py` with no arguments for the real command list; if a road names a command it does not list, the command does not exist. When a page documents a repository, [source review drift](refs/source-drift.md) maps committed file changes to affected chapters/parts without model calls. Use it to report review needs; catalog header drift and runtime integrity check different boundaries. ## Log Every `adp.py` command appends one JSON line to `log.jsonl`: in `./.adp/` when a project config exists, else in `~/.adp/`. Show recent lines with `adp.py log -n 20`. Read it first when asked what was done or why something failed. ## Always - Work from the live record: `adp.py export` before you edit. claude.ai refuses a stale write by itself (`if_version` on every ArtifactData write, a conflict on a publish over a newer version, `ifMatch` on each published file): re-read and redo, never force. - Say what a command or a read did not confirm when you tell the user, so they know what to check; this includes whether this session is watching an artifact (only the publish result or the ArtifactComments tool says so). A publish result that says live subscription is not supported from this session means you are not watching: tell the owner in one line, read `requests/` when they say go, and carry on.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.