Publish html artifact
Skill erain/knowledge-publishing-skills/skills/publish-html-artifact
Publish a completed static HTML page or slide deck into the erain/knowledge-pages hosting repository, supporting public and unlisted visibility, updating artifact metadata, running the site build, committing, pushing, and returning the final URL.From its SKILL.md
npx -y skills add erain/knowledge-publishing-skills --skill publish-html-artifactAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.9 KB, 384 tokens by cl100k_base, as published. Nobody here has run it
Publish HTML Artifact
Use this skill after an HTML artifact has been created and validated. This skill is agent-neutral: any coding agent with shell access, Git, and a checked-out hosting repository can follow it.
Inputs To Determine
- source HTML path
- title
- slug
- kind:
deckorpage - visibility:
publicorunlisted - summary
- tags
- target repo path, default
/home/ubuntu/src/knowledge-pages - base URL, default
https://knowledge.11tech.xyz
Workflow
- Confirm the source file exists and is a complete HTML document.
- Run any artifact-specific validator first, such as
knowledge-to-slides/scripts/validate_deck.py. - Run
scripts/publish.pyfrom this skill with explicit args. Use--repoand--base-urlwhen the defaults do not match the environment. - Inspect the diff in the hosting repo.
- Commit and push the hosting repo changes.
- Wait for deployment when possible.
- Return the published URL and commit URL.
Visibility Semantics
public: copies tocontent/public/decks/<slug>/index.htmlorcontent/public/pages/<slug>/index.html, appears in the gallery.unlisted: copies tocontent/unlisted/<slug-or-token>/index.html, deploys under/u/<slug-or-token>/, does not appear in the gallery. This is not security; anyone with the URL can view it.
For private previews, use a future Vercel/Cloudflare integration instead of treating unlisted URLs as secrets.
Output Contract
- Return the final URL.
- Include the hosting repository commit hash or commit URL when available.
- State whether the artifact was published as
publicorunlisted.
What ships with it: 2 files
4.6 KB alongside SKILL.md, 1 of them executable
agents/
- openai.yaml294 B
scripts/
- publish.pyruns4.3 KB