Introduction¶
After finishing a version locally, the real time-consuming part is often the release: installing the CLI, choosing between the China or Global site, dealing with different login methods for desktop and CI, and extracting the access URL with authentication parameters from logs after a successful deployment. If the primary intent is simply “going live / publishing / redeploying,” repeatedly narrating these steps in a conversation is both slow and prone to omissions.
Below is an introduction to the SkillHub community Skill Edgeone Pages Deploy (ID @user_cdc69ff0/edgeone-pages-deploy). It encodes the deployment workflow for EdgeOne Pages (Tencent EdgeOne static and full-stack hosting) into SKILL.md, allowing the Agent to drive the edgeone CLI based on a fixed checklist rather than piecing together commands on the fly.
What is this¶
Edgeone Pages Deploy targets the primary intention of “deployment, publishing, going live”: publishing frontend or full-stack projects to EdgeOne Pages. It is categorized under it-ops-security on SkillHub, sourced from the community, and published by user_cdc69ff0; the metadata.author in the package’s SKILL.md is edgeone. The current SkillHub version is 1.0.8 (consistent between the SkillHub page and the package’s _meta.json).
It has a different division of labor compared to edgeone-pages-dev, which belongs to the same EdgeOne ecosystem: this Skill is triggered only when the user primarily wants to deploy. If deployment is merely an incidental step (e.g., “write an API first, then deploy”) or if runtime issues like CORS or 500 errors occur after going live, you should use the dev-class Skill for development and troubleshooting instead of this deployment Skill.
Core Features¶
Based on the package’s SKILL.md and references/command-reference.md, the verified capabilities include:
- Environment & Version Constraints: Set
PAGES_SOURCE=skillsbefore executing anyedgeonecommand; requires CLI version1.2.30or higher, otherwise runnpm install -g edgeone@latestfirst. - Login Paths: Before deployment, allow the user to choose between China or Global sites; local desktop IDE uses browser login (
edgeone login --site china|global), while remote/SSH/container/CI headless environments use API Token (-t), with instructions not to commit the Token to the repository. - Deployment Commands:
edgeone pages deployfor linked projects (whereedgeone.jsonexists);edgeone pages deploy -n <project-name>for new projects;edgeone pages deploy -e previewfor preview environments;edgeone pages deploy -t <token>for Token deployment. - Build & Output: The CLI automatically identifies the framework, executes the build, and uploads the output directory; upon success, it must parse the complete
EDGEONE_DEPLOY_URL(including query parameters after?) from the output, as well asEDGEONE_PROJECT_IDand the console link. - Auxiliary Capabilities (Reference Documentation):
edgeone pages init(Edge/Node Functions), localedgeone pages dev,edgeone pages link, environment variableedgeone pages envsubcommands, and local Token storage in.edgeone/.token.
The SkillHub tags include requires_api_key=true, which aligns with the Token login/deployment method.
Installation and Activation¶
Install via SkillHub¶
First, ensure the skillhub CLI is installed on your machine (see SkillHub Installation Guide for installation methods). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized.
skillhub install @user_cdc69ff0/edgeone-pages-deploy --dir ~/.cursor/skills/
The common path for Cursor is ~/.cursor/skills/; for Claude Code, Codex, Windsurf, etc., refer to the list in the SkillHub installation documentation and replace --dir according to the client you are actually using.
You can also ask the Agent in the conversation to install it according to the same documentation:
Please install @user_cdc69ff0/edgeone-pages-deploy based on https://skillhub.cn/install/skillhub.md.
Deployment Prerequisites (Guided by the Skill)¶
The Skill does not replace the local installation of the EdgeOne CLI, but it requires the Agent to set the source and verify the version during the session:
export PAGES_SOURCE=skills
npm install -g edgeone@latest
edgeone -v
The output must be 1.2.30 or higher.
Typical Usage¶
After installing and enabling the Skill, simply express your intention to prioritize publishing in natural language, such as: “Deploy this site to EdgeOne,” “Publish a preview version,” or “Redeploy.” The Agent should follow the decision table in the Skill to check the CLI, login status, edgeone.json, and .edgeone/.token sequentially.
Browser Login (China Site Example):
export PAGES_SOURCE=skills
edgeone login --site china
edgeone pages deploy -n my-app
Token Deployment (Suitable for CI / Remote Environments):
Create a Token in the console under API Token (China: https://console.cloud.tencent.com/edgeone/pages?tab=settings; Global: https://console.intl.cloud.tencent.com/edgeone/pages?tab=settings), then:
export PAGES_SOURCE=skills
edgeone pages deploy -n my-app -t <token>
Preview Environment:
export PAGES_SOURCE=skills
edgeone pages deploy -e preview
Upon successful deployment, the Agent should provide the complete EDGEONE_DEPLOY_URL printed by the CLI to the user and note: the preview link is restricted by authentication parameters; for long-term public access, it is advisable to bind a custom domain that has completed ICP filing (see the Skill original text for details).
Use Cases and Notes¶
Who it is for: Users who have a buildable frontend/full-stack project locally or in a repository and want the Agent to handle the entire EdgeOne Pages flow—CLI installation, login, deployment, and result parsing. SkillHub stats show approximately 1529 downloads and 75 installs (based on SkillHub scraped data).
Trigger Boundary: Use only when “Deploy / Publish / Go live” is the primary intention; if the focus is on writing code with deployment as an afterthought, or for post-launch troubleshooting, switch to edgeone-pages-dev.
Common Pitfalls (Specified in the Skill):
- Omitting the query parameters of
EDGEONE_DEPLOY_URLwill result in the page being inaccessible. - If browser login reuses an old session from a different site (China / Global),
whoamiordeploymay encounter authentication anomalies; you need to switch accounts or log out of all Tencent Cloud consoles and log back in. - Tokens possess account-level permissions; when saving, the Skill suggests writing to
.edgeone/.tokenand adding it to.gitignore.
Conclusion¶
Edgeone Pages Deploy solidifies the EdgeOne Pages publishing workflow into reusable Agent instructions: version and PAGES_SOURCE, site selection, login methods, deployment commands, and URL parsing all have clear rules, reducing the omissions associated with piecing together CLI commands on the fly during conversation.
Official Skill Page: https://www.skillhub.cn/skills/user_cdc69ff0/edgeone-pages-deploy
API / Resource Address: https://api.skillhub.cn/user_cdc69ff0/edgeone-pages-deploy