spbug-release
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "spbug-release" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6cff1a4e08642ad090318e26558b8b38c41913e5402339ce08eeb863c6d356f8. Verify the upstream source and version against https://skillhub.cn/skills/user_cb0a9f2e/spbug-release before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Automated release for the Spug operations platform: uses Playwright to automate the Spug release application process, supporting new applications, staged review and release, alias management, etc.; triggers when users mention related release keywords and is intended for scenarios that require performing application releases via Spug.
Introduction source: third_party · user_cb0a9f2e · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: spug-release
description: Spug 运维平台自动发布。通过 Playwright 自动化 Spug 平台的发布申请流程,支持新建申请、分阶段审核发布、别名管理等。当用户提到"发布"、"上线"、"部署"、"spug"、"发布申请"、"发布到测试环境"、"发布到生产"等关键词时触发。适用于需要通过 Spug 平台执行应用发布的场景。Spug 运维平台 — 自动发布
通过 Playwright 自动化 Spug 平台的发布申请和发布执行流程。
提示词示例
用户可以用自然语言驱动,无需记忆命令:
- "帮我发布 mesweb"
- "给 xxx 项目新建一个发布申请,环境组选测试环境"
- "列出所有可发布的应用"
- "添加一个别名 mes 指向 xxx 项目的测试环境"
- "用有头模式发布 mesweb,我要看过程"
- "只提交发布申请,不执行发布"
AI 会自动选择合适的脚本(完整流程 / 分阶段 / 别名管理等)并执行。
首次配置
自动配置(推荐)
直接对 CodeBuddy 说:
"帮我配置 Spug 发布"
AI 会引导你交互式输入 SPUG_HOST、SPUG_USER、SPUG_PASS,自动写入 .env 文件。
手动配置
cp .env.example .env
编辑 .env,填入以下三项:
| 配置项 | 说明 | 示例 |
|---|---|---|
SPUG_HOST |
Spug 平台地址 | http://spug.whocool.cn |
SPUG_USER |
登录用户名 | your_username |
SPUG_PASS |
登录密码 | your_password |
安装依赖
pip install playwright
python3 -m playwright install chromium
使用方式
完整流程(一键发布)
python3 scripts/deploy.py mesweb # 别名部署
python3 scripts/deploy.py "项目名" "环境组" # 指定项目+环境
python3 scripts/deploy.py mesweb --headed # 有头模式调试
python3 scripts/deploy.py # 交互模式
python3 scripts/deploy.py --list # 列出所有应用
分阶段发布(需要审核/确认)
# 阶段1: 新建申请 → 待审核
python3 scripts/deploy.py mesweb --no-submit
# 阶段2: 执行发布 → 全量
python3 scripts/publish.py mesweb
别名管理
python3 scripts/deploy.py --add-alias 别名 项目名 环境组
python3 scripts/deploy.py --list-aliases
其他工具
python3 scripts/login.py # 登录并保存会话状态
python3 scripts/menu.py "主机管理" # 导航到指定菜单
参数说明
target— 项目名、别名或搜索关键词env_group— 环境组名称title— 发布标题(省略时自动生成devHHmm)--headed— 有头模式运行(默认 headless)--no-submit— 只填写表单不提交--list— 列出所有应用和环境组--list-aliases— 列出所有别名
注意事项
.env文件包含敏感凭据,不要提交到版本控制spug_auth.json是运行时自动生成的登录态缓存aliases.json存储项目别名配置,可按需手动编辑- 发布标题省略时自动生成格式为
devHHmm(如 dev1430)
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对 Spug 运维平台的自动化发布工具,解决企业应用发布的实际痛点
- 支持新建申请、分阶段审核发布、别名管理等完整流程
- 具有明确场景和实用价值
Highlights
- 触发词精准完整,覆盖"发布"、"上线"、"部署"、"spug"等多种变体
- 边界清晰,不易与其他 Skill 重叠
Highlights
- 结构清晰完整,包含提示词示例、配置说明、使用方式、参数说明等
- 提供端到端示例和具体命令,便于用户理解和使用
- frontmatter 完整,文档组织良好
Areas to improve
-
description 写错位置 Reported severity: Minor
顶层 description 为空,但 skill_body 内部有实质描述内容
Recommendation: 建议将 description 内容移至顶层 frontmatter 中,保持规范一致
Highlights
- 工具来源明确,使用 Playwright 进行自动化操作
- 参数说明完整,覆盖主要使用场景
- 支持分阶段发布,不可逆操作有确认机制
- 提供详细的配置说明和注意事项
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 50
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- spug.whocool.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.