--- name: adp-new description: "Create a brand new Claude Artifact or Sites page on ADP (adp/2): a page, board, tracker, assistant or record page that people and Claude will keep editing. Load it whenever the user asks for a new artifact that will be kept, changed again, commented on or built from catalog parts, before writing any HTML. Covers the starter and assistant templates, taking a theme from the catalog, the first publish, and the one-time editor open that seeds the database." metadata: version: "2.3.0" --- # New ADP artifact **Sites host:** read the base ADP skill's `refs/sites.md` first. Use the shared scaffolds and catalog below, then that guide's native Sites build/publication and record workflow instead of the Claude-only publish/seeding steps here. Start on adp/2, not a single index.html: a one-file page cannot give per-file hashes, content as data or part-id comment anchors. `ADP` below means `python3 -I /scripts/adp.py` (the folder of the `adp` skill). `ADP templates` lists the templates `new` can start from: `starter`, `assistant` and `default`. ## 1. Choose a tier | Start | Command | What you get | |---|---|---| | minimal | `ADP new --tier minimal DIR` (the same as `ADP new starter DIR`) | blank page, welcome view, settings view, wearing `theme.default` (the catalog page's look); it takes `kit.dom`, `kit.tokens`, `kit.vocab` and the settings, inbox and namespaces patterns the settings view is built from | | assistant | `ADP new assistant DIR --theme default --catalog CATALOG` | the starter plus Claude pane, requests, presence, the canvas, and every catalog theme with a switch in the header | | default | `ADP new --tier default DIR` | the assistant plus 3D and the most useful common kits | | full | `ADP new --tier full DIR` | not available yet (the published catalog, later): it exits with that message | Default to the assistant when people and Claude use the page together. Ask the user only if the purpose is unclear. Every page wears a theme, so the commands spell out `--theme default`: that is where you choose another (`--theme glaze`; leaving the flag out also gives `default`). `--theme` takes a theme's short name or entry id and lists the themes when it does not know one; `--layout` takes the entry id in full (`layout.topbar`). Both add their `` tags to index.html. A theme is linked after `styles/page.css` and is tokens only, so it wins over the fallback tokens there: for a palette of your own, set the tokens in page.css and remove the theme's link. The assistant and default pages carry every catalog theme: viewers switch in the header and an editor sets the page's theme in Settings (`look.theme`), so there `--theme` picks the one the page opens with. `ADP kit list CATALOG --kind theme` shows the themes. CATALOG is the catalog url (its fetched index), `-` for the saved catalog, or `~/.adp/catalog/catalog.json`; see `adp-catalog`. A local catalog.json is a build, not the live catalog, and prints a warning: do not publish from it. ## 2. Create the project 1. Run `ADP new assistant DIR --title "" --by --theme default --catalog CATALOG` (`--slug`, `--data FILE|DIR` are optional; `--content FILE` only with the starter). It writes the page into DIR (`index.html`, `content.js`, `parts/`, `styles/`; the template's `.txt` suffix is dropped) plus `seed.json` and `seed/`, and prints ONE publish object (`files` already carries the taken kit entries), the `take` list, a `design` note and the ordered `next` steps. Follow `next`. 2. Change the look and copy for the user's content: write `styles/page.css` and the views (`design` says what to keep: the token names, the part markers, the selectors `adp.js` relies on). The starting look is the catalog page's shell; two pages must not ship looking the same. `ADP new starter DIR --content FILE` builds the views from a content file (`## Lead` text, then `## View: