Index of every page on this site: llms.txt
All skills
vite-hub avatar

/vitehub-drop

@8c10e89
by ViteHubvite-hub/drop9 stars
Run it yourself

Publishes a plan, doc, HTML page, screenshot, or small static app to Drop as a link people review and comment on, reads their comments, and publishes the next version. Also renders code as an image. Use when the user wants a link to review, share, or comment on something you wrote or built, asks what people said on a drop, or wants a code image.

Use this Skill: https://skilld.dev/gh/vite-hub/drop/vitehub-drop

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesmarkdown.md

≈2.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Markdown in Drop

Drop renders only the syntax on this page and the blocks it links. Comark supports more, but here the rest shows up as plain text or as an "Unsupported component" box. Publish html when a doc needs its own layout.

To show Write
A note, tip, decision, or risk an alert
A flow, a sequence, or how parts relate a Mermaid diagram
Where a claim comes from a footnote
An equation or a formula LaTeX math
Code a fenced block with its language
Progress on a list of steps a task list: - [x] done, - [ ] next
A screenshot with marks, or a before and after an annotated screenshot
Something interactive: a demo, an animated figure, a small widget another drop shown in the doc
A review of copy or a doc, each change or question with its reason :suggestion and :comment from comark-comments. Read their syntax first
Steps, tabs, cards, a diff, metrics, a data table, a chart, test results, and more a block

Headings, lists, tables, links, ~~strikethrough~~, and ![alt](https://…) images work as in GitHub. A bare https:// URL becomes a link, and every web link shows as a chip with its site's icon (links).

Live editing

People can edit a doc together in the browser (share: team_edit), components, footnotes and suggested edits included. The first save from the editor may reformat the source, such as padding table cells, without changing what readers see. A doc the editor can't save unchanged stays read-only there, and the edit button says so; publish a new version instead.

Alerts

> [!IMPORTANT]
> **Decision:** keep the existing endpoint. Clients pin its response shape.
Kind Use it for
NOTE Context the reader needs before the next step
TIP A shortcut or a better way to do something
IMPORTANT A decision or requirement. Start with a bold label such as **Decision:**
WARNING A risk the reader should check
CAUTION An action that loses data or can't be undone

An alert can hold several paragraphs, lists, and code. The components ::alert, ::callout, ::caution, ::important, ::info, ::note, ::tip, and ::warning draw the same box without the label, so write an alert instead.

Code

```ts {2}
const drop = await publish({ markdown })
const url = drop.url
```

Use a common language name or alias such as ts, py, or sh. An unknown language or a missing one gives plain text. {2} highlights line 2. {1,3-5} highlights lines 1 and 3 to 5.

Code changes

::diff{line=14}
```ts [server/api/drops.get.ts]
const limit = 20
```
```ts
const limit = Number(getQuery(event).limit ?? 20)
```
::

::diff shows one file's lines before and after, with the file, line numbers, and the changed words marked. Copy real lines from the change. The full syntax is in the annotation reference.

Mermaid

```mermaid
graph LR
  Draft --> Review --> Published
```

Drop draws the diagram on the server. Use one per doc when you can: a doc shows at most 4 diagrams and 8,000 characters of Mermaid. Past that, or when the source is invalid, the diagram shows as its source text, and past the limits the box above the doc says why.

Math

Each pair of the $n$ ducks shares one roll, so the bakery bakes

$$
\binom{n}{2} = \frac{n(n-1)}{2}
$$

rolls a day.

Write inline math between single $ signs and display math between $$ signs, as in LaTeX. A fence with the language math is display math too. Drop typesets each formula on the server as MathML, so it's real text that readers can select, copy, and comment on, and a doc without math loads nothing for it. "Copy as Markdown" gives the LaTeX as written.

A $ before a digit or a space stays text, so $5 and $10 are prices. To write a dollar sign before a letter, escape it as \$x. A formula that doesn't typeset shows its TeX, and the box above the doc says why. comark-mathml

Footnotes

Cold starts dropped to 40 ms.[^bench]

[^bench]: Median of 200 requests on the staging Worker, 2026-10-14.

Drop numbers them in order and lists them under a Footnotes heading at the end. A definition can hold links, bold, and code. comark-footnotes

Annotated screenshots

::screenshot{src="https://example.com/settings.png" alt="Settings page with the Save button below the fold" viewport="1440x900"}
:::annotation{x=72 y=88 w=20 h=8 color="red"}
Save sits below the fold on a laptop screen.
:::
::

::screenshot marks areas of an image, and ::compare puts two screenshots side by side as before and after. src takes an https:// URL or the fileUrl of an image published with file. Before you write marks or a comparison, read the full syntax in the annotation reference. When the syntax is wrong, publish fails and lists every problem. comark-annotate

Interactive drops

A doc runs no scripts. To show something that does, publish it as its own html drop first, then embed that drop's link in the doc:

::embed{url="https://drop.vitehub.dev/d/k7f2q9m4x8wd" height=420 title="How a rebuild uses the snapshots"}
::

url is the drop's HTTPS /d/ address, as publish returns it. height is the box's height in pixels, 120 to 1600 (default 480): set it to what the drop needs, since the box doesn't grow with it. title names the frame for screen readers and is the link text where the drop can't show. Outside Drop, such as in comark-lint or a local render, the block is a link card to the drop.

For a Drop served over HTTP, such as http://localhost:3000, use Drop's legacy ::drop block with the address returned by publish, since ::embed accepts only HTTPS:

::drop{link="http://localhost:3000/d/k7f2q9m4x8wd" height=420 title="How a rebuild uses the snapshots"}
::

To lint this fallback with comark-lint, include "drop" in your comark-lint.config.mjs components, for example export default { components: ["drop"] }. HTTPS ::embed needs no custom lint configuration.

The drop runs in its own sandbox inside the doc, so it can't reach Drop, the reader's session, or the doc around it. Make it one self-contained HTML file: with no origin of its own, it can't load another drop's files or Drop's private images. Only HTML drops show; an app, a doc, or an image shows a note instead. Each reader sees the drop only if they may open it themselves, so share it at least as widely as the doc. On the doc's plain /f/ page, which runs no scripts, the box is a link to the drop.

Front matter

---
title: Publish permanent plans
status: Ready for review
author: onmax
tags: [plans, publishing]
supersedes: https://drop.vitehub.dev/d/k7f2q9/publish-plans
---

status, pr, author, date, and tags show as a box of properties at the top of the doc. Drop adds the drop's resources to it as links (a Preview stays in the page header) and the day the version was published as Updated, so don't write those again. Facts about the doc go in the front matter, not in a line under its title.

Set title when the first heading isn't the doc's title. Add supersedes, the link of a separate doc this one replaces, only when the reader needs to see that link. A new version of the same drop goes through previous, which keeps the history on the drop page.

What Drop doesn't render

Written Shows as Write instead
:time[2026-11-02] the date as written, never "2 days ago" the date itself, such as Nov 2, 2026
::bundle a problem: it measures build folders, and Drop reads no files (comark-bundle) a table or metrics with the sizes
:rocket: an "Unsupported component" box the emoji itself, when it carries meaning
#123 plain text owner/repo#123, or a full link: [#123](https://github.com/owner/repo/pull/123)
<script>, <style>, <iframe>, or a tag GitHub doesn't allow nothing Markdown, a block, an interactive drop, or publish html

A word that starts with a colon, such as :name, also renders as an "Unsupported component" box. In prose, attach the colon to the word before it: Note: text, key:value, and 10:30 stay plain.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning10d3 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    This skill allows an AI agent to publish documents, code images, and static applications to the ViteHub Drop platform for review and collaboration. While it handles local project data and ingests external user feedback, it includes specific instructions to safeguard against prompt injection from those untrusted sources.

  • Socket10d

    No alerts

  • Snyk10d

    Risk: MEDIUM · 1 issue

Signed by skilld at 8c10e89. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 days ago

README badge

README badge for vite-hub/drop/vitehub-drop