Agent Skills › cloudflare/nimbus › build-a-nimbus-site

build-a-nimbus-site

GitHub

用于创建、编写和部署基于 Astro 的 Nimbus 文档站点。涵盖脚手架生成、页面与组件开发、内容检查、版本升级及发布到 Cloudflare Workers 等全流程操作。

apps/www/skills/build-a-nimbus-site/SKILL.md cloudflare/nimbus

触发场景

用户需要新建一个文档站点 用户希望向现有站点添加页面或组件 用户需要检查、升级或部署文档站点

安装

npx skills add cloudflare/nimbus --skill build-a-nimbus-site -g -y
更多选项

非标准路径

npx skills add https://github.com/cloudflare/nimbus/tree/main/apps/www/skills/build-a-nimbus-site -g -y

不安装直接使用

npx skills use cloudflare/nimbus@build-a-nimbus-site

指定 Agent (Claude Code)

npx skills add cloudflare/nimbus --skill build-a-nimbus-site -a claude-code -g -y

安装 repo 全部 skill

npx skills add cloudflare/nimbus --all -g -y

预览 repo 内 skill

npx skills add cloudflare/nimbus --list

SKILL.md

Frontmatter
{
    "name": "build-a-nimbus-site",
    "description": "Create, write and deploy a documentation site with Nimbus (Astro). Use when a user wants a new docs site, wants to add pages or components to a Nimbus site, or wants to check, upgrade or deploy one."
}

Build a Nimbus docs site

Nimbus builds documentation sites on Astro. The scaffolder copies layouts, components and styles into the project, and the user owns them from then on. The @cloudflare/nimbus-docs package provides the plumbing and the nimbus-docs CLI.

Full docs: https://nimbus-docs.com/llms.txt. Every page has a Markdown version at <page>/index.md.

Create a site

Requires Node 22.12 or later.

npm create @cloudflare/nimbus-docs@latest my-docs -- --yes
cd my-docs
npm run dev

Pass --adapter cloudflare for a server-rendered site. All options: https://nimbus-docs.com/reference/scaffolder-options/index.md

Write pages

  • A page is a .md or .mdx file under src/content/docs/. Its path is its URL and its place in the sidebar: src/content/docs/guides/install.mdx is /guides/install/.
  • Every component used in .mdx must be listed in src/components.ts.
  • Details: https://nimbus-docs.com/writing/pages-and-routing/index.md

Add components and features

npx nimbus-docs list          # what the registry offers
npx nimbus-docs add <slug>    # install one

Features such as changelog print a recipe for you to follow in the project. Read it with npx nimbus-docs add <slug> --print.

Check before you finish

npx nimbus-docs check
npm run build

check reports configuration, content and type problems with fixes. Run npx nimbus-docs lint after a build to check links.

Upgrade

After raising @cloudflare/nimbus-docs, run npx nimbus-docs migrate, complete each review it lists, run the completion command it prints, then npx nimbus-docs outdated to see starter files that changed upstream. Details: https://nimbus-docs.com/cli/index.md

Deploy

New sites deploy to Cloudflare Workers with npm run deploy, which builds first. Other hosts: https://nimbus-docs.com/deploy/index.md

版本历史

  • 0792769 当前 2026-11-02 11:19

同 Skill 集合

scripts/fixtures/workers-feasibility/skills/deploy-worker/SKILL.md
scripts/fixtures/workers-feasibility/skills/docs-style/SKILL.md

元信息

文件数
0
版本
0792769
Hash
69b4d9a6
收录时间
2026-11-02 11:19

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-06 09:01
浙ICP备14020137号-1