Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

md-web

БесплатноБез исполняемых скриптовНе проверен

Use when the user explicitly asks to publish Markdown online or obtain a public share link through their S3 bucket. 发布 Markdown / 生成公开分享链接 / /md-web. Reads…

rockbenbenот rockbenben2 305 установок в других каталогах

Об этом скилле

MD Web - Markdown to Web Page

Upload one raw .md file to the user's S3-compatible bucket; a Docsify viewer already in that bucket renders it at a public URL. {SKILL_DIR} below is this skill's base directory — always keep it quoted.

Data and writes

  • Publishing writes one Markdown object under the configured bucket's md-web/ prefix. Re-publishing creates a new link.
  • Separate --setup uploads assets/<bundle-hash>/ and replaces root README.md / index.html, which all document links share. Old assets remain available to cached pages.
  • Optional expire_days manages one lifecycle rule for md-web/; uploads expire after N days, and 0 removes the rule. Other rules are preserved.
  • Configuration and the deployment hint live in ~/.md-web/config.json and ~/.md-web/.deployed. Requests go to the configured S3 endpoint; publishing checks the active remote viewer. Legacy adjacent config is migrated automatically.

Ground rules

  • Document publishing. An explicit request for online publication or a public/shareable Markdown link authorizes uploading that document, including retries. Tell the user the link is public before uploading; resolve unclear sharing scope first. Local preview or text organization stays local.
  • Viewer setup. Running --setup overwrites bucket-root files used by all published documents. Explain the affected paths and obtain authorization for setup, unless the user already authorized it in this task.
  • Retention. Adding, changing or removing expire_days changes the bucket policy. Obtain authorization for the requested retention change, unless it was already included in the user's instruction.
  • Check the public scope. Review for sensitive material outside the intended sharing scope and redact or clarify it before uploading. Publish raw Markdown; do not convert it to HTML.

Workflow

1. Configuration

Check for ~/.md-web/config.json (%USERPROFILE%\.md-web\config.json on Windows). If it is missing or incomplete, run First-time configuration below.

Exception: if it is missing but a legacy config.json sits next to upload.js, skip the wizard and just upload — the script migrates it (and .deployed) to ~/.md-web/ and prints Config migrated to:.

2. Prepare the file

Use the existing .md file, or write the content to a temp file in the OS temp directory (/tmp/ on Linux/macOS; $TEMP in Git Bash, %TEMP% in cmd).

Use a unique scratch path and remove only the temporary file you created after the upload attempt. Preserve an existing user file.

Viewer limits — write for them:

  • Only the .md is uploaded: relative images (![](a.png)) break. Use absolute https:// image URLs.
  • GFM, tables, <details> and inline HTML render; the CSP blocks inline scripts, but HTML can still insert page elements. Review third-party markup before publishing (see Security & privacy). Mermaid and LaTeX/KaTeX are not rendered (shown as code) — use tables, lists or images instead.
  • Start with a # Title: it becomes the browser tab title. YAML front matter is stripped automatically.

3. Publish

node "{SKILL_DIR}/upload.js" <local-file> <remote-key>
  • <remote-key>: short lowercase ASCII slug describing the content, e.g. api-docs, even for Chinese documents. The script slugifies whatever it gets — a key with no ASCII letters or digits collapses to doc — prepends a timestamp, appends a short random suffix so two documents published in the same second cannot land on the same object, forces .md and stores it under md-web/.

  • If stderr contains SETUP_REQUIRED, follow the viewer-setup authorization rule above — --setup rewrites shared bucket-root files — then run setup and retry the same publish command:

    node "{SKILL_DIR}/upload.js" --setup --confirm-shared-writes
    

    The required --confirm-shared-writes flag records the already obtained setup/retention authorization; never add it merely to bypass a missing-confirmation error. Setup performs the shared writes listed above and applies expire_days; both authorization rules still apply. Run it on first use, after a viewer upgrade, after changing bucket / endpoint, or when the active viewer differs. Existing document URLs stay unchanged. Retention changes also need setup, but publishing does not detect them; changing public_url only changes the printed link.

  • SETUP_CONFLICT means a concurrent setup changed the entry point or the provider did not return an ETag. Inspect the active viewer before retrying; do not automatically overwrite it. Setup requires S3 conditional object writes (If-Match / If-None-Match); unsupported providers fail without an unconditional fallback. An upgrade from the old flat-asset layout requires one explicit setup; old flat assets and version directories are not deleted.

  • Warning: lifecycle — means retention was not confirmed even if viewer setup succeeded. Follow the detail: a permission error

Полный SKILL.md на ClawHub

Установить md-web в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл md-web?

Use when the user explicitly asks to publish Markdown online or obtain a public share link through their S3 bucket. 发布 Markdown / 生成公开分享链接 / /md-web. Reads ~/.md-web/config.json. Viewer setup overwrites bucket-root files; optional expire_days manages retention. Local preview uses a local tool.

Как установить скилл md-web?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл md-web запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить md-web с