{"id":121672,"plugin_id":"plugin_asdk_app_6ac690fa51a88191959b2f3594c3cec3","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-28T00:14:11.771Z","digest":"8db2855b2bf41433d7e05f014beae2c74a0b5927e5112414952f61beee7293de","against":null,"payload":{"description":"Use when editing, updating, or iterating on a workspace's landing page HTML (the magazine-style /w/:slug page). Supports incremental edits — fetch the current HTML, make targeted changes, then write it back. NOT for initial generation — that comes from the `brief` field which runs the server-side LANDING_PAGE_PROMPT against Gemini.","included_files":[],"name":"landing-page-editor","skill_md_contents":"---\nname: landing-page-editor\ndescription: Use when editing, updating, or iterating on a workspace's landing page HTML (the magazine-style /w/:slug page). Supports incremental edits — fetch the current HTML, make targeted changes, then write it back. NOT for initial generation — that comes from the `brief` field which runs the server-side LANDING_PAGE_PROMPT against Gemini.\nallowed-tools: Bash(astria:*), Read, Write, Edit\n---\n\n# Workspace Landing Page Editor\n\nThe workspace landing page (rendered at `/w/:slug`) is a single self-contained\nHTML blob stored on `workspace.landing_page_html`. It is generated from scratch\nby the server-side `LANDING_PAGE_PROMPT` whenever a `brief` is submitted — that\npath overwrites the HTML wholesale.\n\nFor ANY change that should not regenerate the whole page (typography tweaks,\nlayout edits, adding a section, changing copy, swapping an image, fixing a\ntagline), edit the HTML directly and write it back. Do NOT send a `brief`\nunless the user wants a full regeneration.\n\nUse `get_workspace` with the destination workspace `id` to read the current HTML\nand `update_workspace` with that same `id` and `landing_page_html` to save edits.\nFor embedded agents, omit the optional `workspace` scope to inherit the current\nchat scope unless the user explicitly requested another destination.\nUse `brief` only for an explicitly requested full regeneration.\n\n## Constraints carried over from `LANDING_PAGE_PROMPT`\n\nWhen editing, preserve these invariants (the live `/w/:slug` page depends on them):\n\n- The output is **inner body HTML** — no `<html>`, `<head>`, `<body>`, or `<!DOCTYPE>` tags\n- Styling uses **Tailwind utility classes** (already loaded on the page). Use `<style>` only for hover/animation effects Tailwind can't express\n- Pack links are exactly `/p/{slug}`; model/reference links use the `link` field from the tunes JSON verbatim (do NOT re-encode `%5B`/`%5D`)\n- Every image / video is wrapped in an `<a>` tag\n- Image and video URLs must be ones that already exist — do not invent URLs\n- Never use data URIs or embedded image data in HTML or CSS (including base64 images and inline SVG images). Use hosted HTTPS image URLs from Astria workspace attachments instead.\n- Videos use `<video autoplay muted loop playsinline poster=\"POSTER_URL\"><source src=\"VIDEO_URL\" type=\"video/mp4\"></video>`\n- The string `__TUNES_JSON_PAYLOAD__` inside `<script type=\"application/json\" id=\"tunes-data\">…</script>` is a server-side placeholder. The server substitutes it at render time with the live tunes JSON. **Never replace it with literal JSON** — that freezes the cast and newly added tunes won't appear\n- Editorial styling: serif headlines, generous whitespace, hairline rules, `object-cover object-[center_top]` on portrait images, `max-h-[70vh]` on hero spreads, `aspect-[4/5]` or `aspect-[3/4]` on portrait containers\n\n## Workflow\n\n### 1. Fetch the current landing page HTML\n\nCall `get_workspace` and retain `landing_page_html` unchanged as the starting point.\nPreview the rendered page at `/w/{slug}`.\n\n### 2. Read data needed for the edit\n\nUse `list_templates`, `list_references`, and `list_prompts` with their declared\nschemas. Read only the requested workspace. Use limit/offset pagination as needed.\n\n### 3. Upload and attach images with Astria\n\nBefore inserting a supplied image into the page, call `attach_workspace_images`\nwith `id` set to the destination workspace ID, `image_urls` containing the supplied\nHTTPS URLs, and a fresh `idempotency_key`. This includes Astria direct-upload URLs:\nputting a URL in HTML does not attach its blob, and unattached uploads can be purged.\nFor local files, use Astria's `create_upload` tool to prepare the upload, execute\nits returned upload command, and verify it succeeds before passing the returned\n`blob_signed_id` to `attach_workspace_images` in its `signed_ids` array.\n`create_upload` only prepares an upload slot; it does not upload or attach the\nimage itself. Never attach a pending upload or embed image bytes in the page.\n\nThe tool reuses Astria blobs and imports external images into workspace storage.\nUse the returned `images[].url` values in the HTML. If attachment fails, resolve\nthe error before saving HTML that uses those images. Images already listed in\n`get_workspace.images` need no attachment call. Do not create a reference or a\ngeneration merely to retain a landing-page image.\n\n### 4. Make the incremental edit\n\nPreserve unrelated HTML and the constraints above. Save a working text file\nonly if helpful; do not substitute a filename for the HTML tool argument.\n\n### 5. Save and verify\n\nCall `update_workspace` with the complete `landing_page_html` and a fresh\nidempotency_key. Do not pass `brief`. Read it back with `get_workspace` and\nverify the saved change, confirm the new images appear in `images`, and check the\nrendered page when browser access is available.\n\n## Regenerating from scratch\n\nOnly when the user explicitly asks for a full redesign — submit a `brief` and\nthe server runs `LANDING_PAGE_PROMPT` against Gemini, overwriting the HTML:\n\nCall `update_workspace` with the requested `brief` and a fresh idempotency_key.\nAttach supplied images using step 3 before submitting the brief, so the generator\nreceives them as workspace assets.\nRead the resulting HTML with `get_workspace` and verify the result.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}