Imported from MiniMax-AI/minimax-code (
packages/local-runtime/assets/skills/deploy-website/SKILL.md). Install upstream withnpx skills add MiniMax-AI/minimax-code --skill deploy-website. Copyright stays with the author.
Deploy Website
- Resolve the requested target without rewriting its native path syntax. If the user supplied an
HTML path, require a regular
.htmlor.htmfile; reject a missing file, directory, symlink, or control characters. Never pass a path outside the current workspace towebsite_deploy. - Locate the project source root. Reuse its lockfile and existing package manager. Discover its
real build command and built-site output from the project configuration; do not add dependencies
or invent a build. If a real build exists, run it and verify the output has a regular
index.htmlat its root. - For a standalone site with no project build, first check whether its source directory is already
a self-contained public static directory with a regular root
index.htmland locally resolving dependencies. If so, verify it and use that directory directly. Otherwise, for a standalone HTML file or a page whose dependencies need rewriting, prepare a new staging directory inside the current workspace without modifying the source. Never pass an HTML file itself aspath. If the selected file is outside the workspace, first create a separate source snapshot inside the workspace containing only the selected source and required assets; stop if the source cannot be accessed or its dependencies cannot be copied safely. Create a regularindex.htmlat the deployment staging root and copy only the static files required by the requested page. Preserve or safely rewrite relative URLs, root-relative assets,<base>URLs, CSSurl()references, JavaScript imports, and fetch targets, then verify the staged page. Stop and explain the unresolved dependency instead of publishing a broken page or copying an entire source tree that may contain private files. Do not use symlinks,/tmp, or Unix-only path logic; keep Windows drive and UNC paths in their native form. - Use the verified build or deployment staging directory as
path. Use the original project/source root assource_pathonly when it is inside the workspace; otherwise use the isolated source snapshot. A source directory that is already a self-contained public static site, with a regular rootindex.html, may use that same directory for bothpathandsource_path; the runtime still uploads separate public and private archives. A standalone HTML file or a page whose dependencies need rewriting must use the distinct staging directory from step 3. A framework project must still use its actual build output forpathand its source root forsource_path.pathmust have a regularindex.htmlat its root. Choose a short human-readableproject_name. - Before publishing, state that the website will be publicly accessible and
source_pathwill be uploaded to private cloud storage. There is currently no secrets scanner: ask the user to confirmsource_pathcontains no secrets, then obtain explicit publication confirmation. - Call the existing
website_deploy({ path, source_path, project_name })tool. Do not create a zip or upload with HTTP, OSS, or another tool. - Follow the existing
website_deploydelivery format using only the tool-returned URL andnode_id. Never guess or hand-writecover; let Runtime's trusted projection control finalnode_id/cover. Surface a tool failure as returned.