kosif199022-jpg/kosif-atlas/3916-agency-hosting-deploy-static-site

Claude Code and agent skill by kosif199022-jpg/kosif-atlas

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Deploy a node-static Agency Plan website (Node.js-built static site, or a plain simple static site) from an archive via public-api, using standalone MCP tools/plain curl instead of a filesystem-driven deploy tool. Use when asked to deploy/build a static or node-static app on an Agency Plan / h5g / agency-hosting website.

Install

npx vskill@latest install kosif199022-jpg/kosif-atlas/3916-agency-hosting-deploy-static-site

SKILL.md

The same SKILL.md was published earlier as kosif199022-jpg/kosif-atlas/3916-agency-hosting-deploy-static-site.

Deploy a node-static app to an Agency Plan website

No filesystem access needed. Call the public-api MCP tools by name below — these need a Bearer token and the target domain. The upload step has no tool wrapper: it hits the file-storage host directly via TUS, authenticated with the auth_key/rest_auth_key from agency-hosting_generateUploadURLV1 (not the Bearer token), so it's always plain curl.

Tools used, in order

#ToolNotes
1agency-hosting_listDomainsV1paginate, match fqdn → resolve website_uid
2agency-hosting_generateUploadURLV1no body → { url, auth_key, rest_auth_key }
3(no tool — plain curl)TUS upload of the archive into a scratch directory
4agency-hosting_buildWebsiteNodeJSAssetsV1body {"archive_path"} — destructive

The "random directory" — what it actually is

This flow needs a scratch upload directory under .h5g/ that's unique per deploy, so concurrent/repeated builds don't collide (unlike the PHP-app flow, which reuses one fixed path). It has no special meaning server-side — any unique string works. The reference implementation generates a 12-character random alphanumeric string (Math.random()-based, not a UUID); you can do the same, e.g.:

UPLOAD_DIR=".h5g/$(cat /dev/urandom | LC_ALL=C tr -dc 'A-Za-z0-9' | head -c 12)"

The server deletes this directory automatically after a successful build; on failure it's left in place for debugging.

Steps

  1. Resolve `website_uid`: call agency-hosting_listDomainsV1 with page=1&per_page=100

(paginate until found) → match the entry whose fqdn equals domain, take its website_uid.

  1. Get upload credentials: call agency-hosting_generateUploadURLV1 for that website_uid

— no request body — → { url, auth_key, rest_auth_key }.

  1. Upload the archive via TUS (plain curl — no MCP tool for this) into the scratch directory

from above, e.g. ${UPLOAD_DIR}/app.zip: ``` FILE=app.zip SIZE=$(wc -c < "$FILE")

curl -sS -i -X POST "${url}/${UPLOAD_DIR}/${FILE}?override=true" \ -H "X-Auth: ${auth_key}" -H "X-Auth-Rest: ${rest_auth_key}" \ -H "Tus-Resumable: 1.0.0" -H "Upload-Length: ${SIZE}" -H "Upload-Offset: 0"

curl -sS -i -X PATCH "${url}/${UPLOAD_DIR}/${FILE}?override=true" \ -H "X-Auth: ${auth_key}" -H "X-Auth-Rest: ${rest_auth_key}" \ -H "Tus-Resumable: 1.0.0" -H "Content-Type: application/offset+octet-stream" \ -H "Upload-Offset: 0" --data-binary "@${FILE}" ```

  1. Trigger build: call agency-hosting_buildWebsiteNodeJSAssetsV1 with body:

``json { "archive_path": ".h5g/AbCdEf012345" } ` archive_path` is the scratch directory from step 3 (not the filename) — the server scans it for the archive to build.

Verify

curl -s -o /dev/null -w "%{http_code}\n" https://{domain}/
curl -s https://{domain}/ | grep -o "SOME_TEXT_YOU_ACTUALLY_DEPLOYED"

A 200 alone is not proof — a fresh or failed deploy can still serve a parking page. Always grep for a string you know is in the files you just deployed. If it does not match, call agency-hosting_clearWebsiteCacheV1 and retry once before reporting failure.

Warning

Destructive. On success, the build result overwrites the website's existing contents and is deployed to public_html — cannot be undone. Confirm intent before step 4.

When it's the wrong tool

  • Site has no build step and should be deployed as-is → use agency-hosting-deploy-php-site

instead (fixed upload path, no scratch directory, no build step).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kosif199022-jpg/kosif-atlas/3916-agency-hosting-deploy-static-site/badge)](https://verified-skill.com/skills/kosif199022-jpg/kosif-atlas/3916-agency-hosting-deploy-static-site)

Something wrong with this skill or its page? Tell us.