publish
Installation
SKILL.md
brewdoc:publish
Publish content to brewpage.app — free instant hosting for HTML pages, JSON documents, files, and multi-file sites. No sign-up required.
Prompt contract
Position 1 of $ARGUMENTS is a free-form prompt (RU/EN) — the content (text, file/dir/zip path), --ttl
and --entry are optional and may follow in any order. Nobody types keys: resolve WHAT to publish FROM the
prompt.
- Strip
--ttl Nand--entry <filename>flags. - Extract the content to publish (rule 3 below) — this doubles as the content-type detection in Step 2, scored by the keyword table there.
- Prose resolution (mandatory): a sentence naming a file/dir resolves to that file/dir (e.g. "publish my
report.md" ->
content_arg = report.md, resolved against cwd); a sentence with no path and no inline text/JSON has nothing to publish -> ONEAskUserQuestionasking what to publish. Never guess, never silently fall back to an empty HTML page. - Outcome-changing ambiguity (namespace, password) -> the two dedicated
AskUserQuestioncalls in Steps 4-5; nothing else asks.