返回顶部
i

index-official-website-demand-change官网需求变更

一键执行官网项目需求变更。用于用户粘贴一大段新需求并同时提供项目路径后,自动在指定项目目录上完成:检查目标分支工作区是否干净、拉取最新代码、把需求写入 productdemand.md 并做小时级备份、根据需求修改代码、运行必要检查、git commit、push,并在 push 成功后通过企业微信 webhook 发送包含时间和代码变动点的通知。适合“官网改动:需求正文 + 项目路径 + 分支”这类一键执行请求。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
261
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

index-official-website-demand-change

官网需求变更(一键执行,项目路径外部传入)

概览

这个 skill 的目标是:用户贴需求并提供项目路径后,直接完成从需求入库到代码 push 的完整流程,并在 push 成功后发送企业微信通知。

这里不再写死项目路径

执行时必须从用户输入或当前任务上下文中明确这三个参数:

  • - projectdir:项目路径,例如 /Users/dyshi/work/index-official-website
  • targetbranch:目标分支,默认 feat/test
  • demandfilename:需求文件名,默认 productdemand.md

企业微信通知规则

push 成功后,必须发送 webhook 通知。

通知正文写入 content 字段,内容至少包含:

  • - 时间
  • 项目路径
  • 分支
  • commit 信息
  • 代码变动点

格式示例:

text
时间:2026-03-10 16:20:00
项目:/path/to/project
分支:feat/test
提交:abc1234 chore: 官网需求变更-20260310-162000
代码变动点:

  • - 修改首页 SEO title 与 description
  • 调整友情链接字体样式
  • 更新 productdemand.md

如果没有人工整理的“代码变动点”,可以退化成最近一次 commit 涉及的文件列表。

资源

scripts/pushwecompush_notice.py

用法:

bash
python3 scripts/pushwecompush_notice.py --project-dir --branch --commit-ref HEAD --summary-file

scripts/gitcommitand_push.sh

用法:

bash
bash scripts/gitcommitand_push.sh [branch] [summary-file]

说明:

  • - push 成功后会自动调用企业微信通知脚本。

其他执行规则

  • - 若用户没有显式提供项目路径,就先追问项目路径;不要默认写死到某个目录。
  • 预检 Git 工作区并同步目标分支。
  • 备份并写入 productdemand.md。
  • 启动编码子代理,根据需求文件修改代码。
  • 运行必要检查。
  • git commit
  • git push origin
  • push 成功后发送企业微信通知。
  • 向用户汇报结果。

失败处理

  • - 缺少项目路径:停止并向用户追问。
  • 需求为空:停止。
  • 工作区脏:停止并报告脏文件。
  • pull 失败:停止并报告。
  • 检查失败:不要伪装成功。
  • push 失败:不要发成功通知;把 git 输出摘要返回给用户。
  • webhook 失败:明确告诉用户“代码已 push,但通知发送失败”。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wacai-index-official-website-demand-change-1776173594 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wacai-index-official-website-demand-change-1776173594 技能

通过命令行安装

skillhub install wacai-index-official-website-demand-change-1776173594

下载

⬇ 下载 index-official-website-demand-change v1.0.0(免费)

文件大小: 8.62 KB | 发布时间: 2026-4-15 13:58

v1.0.0 最新 2026-4-15 13:58
- Initial release of "index-official-website-demand-change" skill for automating Wacai官网需求变更全流程。
- Supports one-click execution: checks git workspace, writes/backs up demand file, modifies code, runs checks, commits, pushes, and notifies via 企业微信 webhook.
- Requires explicit project path, branch, and demand file from user input or context—refuses to proceed if missing.
- Includes detailed enterprise WeChat notification with time, path, branch, commit info, and code changes after successful push.
- Handles and reports all error cases: missing input, dirty workspace, git pull/check failures, push/notification failures.
- Scripts for notification and git operations now parameterized by project path and branch, no hardcoded paths.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部