소스 정보
- 저장소
- Leoyishou/personal-ai-company
- 최근 소스 활동
- 2026년 3월 31일 03:57
- 감지된 SKILL.md 언어
- 중국어
- 스타
- 28
- 포크
- 9
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Leoyishou/personal-ai-company --skill deploy-static명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | deploy-static |
| description | 一键部署静态网站到 Vercel 和 Cloudflare Pages。支持 HTML/React/Vue 等任意静态项目。 |
| allowed-tools | Bash, Read, Write, Glob |
将当前目录的静态网站一键部署到 Vercel 和/或 Cloudflare Pages。
用户提到以下意图时触发:
环境变量(已配置在 ~/.claude/secrets.env):
export VERCEL_TOKEN="xxx"
export CLOUDFLARE_API_TOKEN="xxx"
# 确认在项目目录
pwd
ls -la
# 检查是否有 index.html 或构建产物
ls index.html 2>/dev/null || ls dist/index.html 2>/dev/null || ls build/index.html 2>/dev/null
# 如果不是 git 仓库,初始化
git init
# 提交代码
git add .
git commit -m "Initial commit" || git commit -m "Update"
# 从目录名生成仓库名
REPO_NAME=$(basename $(pwd))
# 创建并推送
gh repo create $REPO_NAME --public --source=. --push
source ~/.claude/secrets.env
# 部署到生产环境
npx vercel --prod --token "$VERCEL_TOKEN" --yes
输出示例:
Aliased: https://project-name.vercel.app
source ~/.claude/secrets.env
# 首次需要创建项目
npx wrangler pages project create $PROJECT_NAME --production-branch main 2>/dev/null || true
# 部署(指定目录,默认当前目录)
npx wrangler pages deploy . --project-name $PROJECT_NAME --commit-dirty=true
输出示例:
✨ Deployment complete! Take a peek over at https://xxx.project-name.pages.dev
| 项目类型 | 部署目录 |
|---|---|
| 纯 HTML | .(当前目录) |
| Vite/React | dist |
| Next.js (静态导出) | out |
| Create React App | build |
如果有构建步骤,先运行构建:
npm run build
npx wrangler pages deploy dist --project-name $PROJECT_NAME
| 特性 | Vercel | Cloudflare Pages |
|---|---|---|
| 免费额度 | 100GB/月 | 无限带宽 |
| 构建速度 | 快 | 更快 |
| CDN 覆盖 | 全球 | 全球(更密集) |
| SSR 支持 | 原生 Next.js | Workers 适配 |
| 域名 | xxx.vercel.app | xxx.pages.dev |
# 预览部署(非生产)
npx vercel --token "$VERCEL_TOKEN" --yes
# 生产部署
npx vercel --prod --token "$VERCEL_TOKEN" --yes
# 指定项目名
npx vercel --prod --token "$VERCEL_TOKEN" --yes --name my-project
# 部署指定目录
npx wrangler pages deploy ./dist --project-name my-project
# 忽略 git 未提交警告
npx wrangler pages deploy . --project-name my-project --commit-dirty=true
# 列出所有项目
npx wrangler pages project list
# 添加域名
npx vercel domains add example.com --token "$VERCEL_TOKEN"
或在 https://vercel.com/dashboard 项目设置中添加。
在 https://dash.cloudflare.com/ → Workers & Pages → 项目 → Custom domains 中添加。
# 一键部署到两个平台
source ~/.claude/secrets.env
PROJECT_NAME=$(basename $(pwd))
# Git 提交
git add . && git commit -m "Update" || true
# 并行部署
npx vercel --prod --token "$VERCEL_TOKEN" --yes &
npx wrangler pages deploy . --project-name $PROJECT_NAME --commit-dirty=true &
wait
echo "Done!"