360 Secure SkillHub
360 安全技能中心

Site Deployer

核心功能:支持部署、查询状态、回滚、查看日志4类操作,针对soilrich和synergy两个Next.js站点,部署与回滚需用户明确审批,部署完成后自动记录到Notion部署历史库。典型场景:开发者通过手机远程管理这两个站点的Netlify部署流程。输入为指定命令+站点名,输出操作结果、状态信息或部署日志。

martc03
martc03
热度 65.74
最近更新 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