360 Secure SkillHub
360 安全技能中心

Site Deployer

该 Skill 用于从命令行管理两个 Next.js 站点在 Netlify 上的部署:构建并发布生产环境、查询部署状态、查看最近部署日志、回滚到上一版本。部署与回滚前需用户显式确认,部署完成后在 Notion 记录历史。

martc03
martc03
热度 65.68
最近更新 2026-05-20 03:39:24
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add site-deployer
Metadata
name
site-deployer
description
Deploy Next.js sites to Netlify with approval gates. Supports soilrichbyjohn.com and Synergy salon.
homepage
https://github.com/martc03/openclaw-ultimate
metadata
{"clawdbot":{"emoji":"🚀"}}
version
1.0.0
author
martc03
tags
["deployment","netlify","nextjs","devops"]
permissions
{"fileAccess":["~/soilrich-website","~/synergy-website"],"commands":["git","npm","npx","netlify"],"network":["api.netlify.com","github.com"]}

Site Deployer

Deploy and manage Next.js websites on Netlify from your phone.

Sites

Site Domain Repo
soilrich soilrichbyjohn.com ~/soilrich-website
synergy Synergy salon ~/synergy-website

Commands

deploy [site]

Build and deploy a site to Netlify. Requires explicit user approval before executing.

deploy soilrich
deploy synergy

Execution steps:

  1. cd ~/[site]-website && git pull
  2. npm run build
  3. netlify deploy --prod
  4. Log result to Notion "Deploy History" database

deploy status [site]

Check the current deployment status on Netlify.

deploy status soilrich

Runs netlify status in the site's repo directory.

deploy rollback [site]

Rollback to the previous deployment. Requires explicit user approval.

deploy rollback soilrich

Uses netlify rollback to revert to the previous production deploy.

deploy logs [site]

Show recent deploy logs from Netlify.

deploy logs synergy

Runs netlify deploy --json | jq '.[-5:]' to show the last 5 deploys.

Approval Gate

All deploy and rollback commands require the user to confirm before executing. The agent must:

  1. Present a summary of what will be deployed (site name, current branch, latest commit)
  2. Wait for explicit "yes" or "confirm" response
  3. Only then execute the deploy

Notion Integration

After each deploy, create an entry in the "Deploy History" database:

  • Deploy: Short description of what was deployed
  • Site: soilrich or synergy
  • Status: Success, Failed, or Rolled Back
  • Timestamp: Current date/time
  • CommitHash: Git commit SHA that was deployed
  • Notes: Any relevant details

Setup

Requires Netlify CLI authenticated:

npm install -g netlify-cli
netlify login