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…
от 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
--setupuploadsassets/<bundle-hash>/and replaces rootREADME.md/index.html, which all document links share. Old assets remain available to cached pages. - Optional
expire_daysmanages one lifecycle rule formd-web/; uploads expire after N days, and0removes the rule. Other rules are preserved. - Configuration and the deployment hint live in
~/.md-web/config.jsonand~/.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
--setupoverwrites 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_dayschanges 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
.mdis uploaded: relative images () break. Use absolutehttps://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 todoc— prepends a timestamp, appends a short random suffix so two documents published in the same second cannot land on the same object, forces.mdand stores it undermd-web/.If stderr contains
SETUP_REQUIRED, follow the viewer-setup authorization rule above —--setuprewrites shared bucket-root files — then run setup and retry the same publish command:node "{SKILL_DIR}/upload.js" --setup --confirm-shared-writesThe required
--confirm-shared-writesflag 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 appliesexpire_days; both authorization rules still apply. Run it on first use, after a viewer upgrade, after changingbucket/endpoint, or when the active viewer differs. Existing document URLs stay unchanged. Retention changes also need setup, but publishing does not detect them; changingpublic_urlonly changes the printed link.SETUP_CONFLICTmeans 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic