Просмотр исходного кода

feat: 添加 web-backend-release 技能

- 新增后端版本发布技能
- 通过 Git 标签触发 CI/CD 构建 Docker 镜像
- 与 weapp-publish(微信小程序发布)区分开

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 5 часов назад
Родитель
Сommit
1529fb8dfe

BIN
.claude/skills/web-backend-release.skill


+ 53 - 0
.claude/skills/web-backend-release/SKILL.md

@@ -0,0 +1,53 @@
+---
+name: web-backend-release
+description: Web 后端版本发布工具。用于管理后台和 API 接口的版本发布,通过 Git 标签触发 CI/CD 构建 Docker 镜像。使用场景:用户说"发布新版本"、"创建版本标签"、"部署管理后台"时触发。与 weapp-publish(微信小程序发布)区分开,此技能专注于后端服务发布。
+---
+
+# Web 后端版本发布
+
+## 快速开始
+
+发布新版本(自动创建 Git 标签并推送到远程):
+
+```bash
+./scripts/release_tag.sh <版本号>
+```
+
+## 使用方式
+
+### 发布新版本
+
+```bash
+# 发布版本 1.2.0
+./scripts/release_tag.sh 1.2.0
+
+# 发布版本并带自定义描述(如果脚本支持)
+VERSION=1.2.0 DESC="新增残疾人身份证长期功能" ./scripts/release_tag.sh
+```
+
+脚本会自动:
+1. 检查工作目录状态
+2. 拉取最新代码
+3. 创建 Git 标签 `v<版本号>`
+4. 推送标签到远程仓库
+5. 触发 GitHub Actions 构建 Docker 镜像
+
+### 查看现有标签
+
+```bash
+# 查看最近10个标签
+./scripts/release_tag.sh
+
+# 查看所有标签
+./scripts/release_tag.sh --list
+```
+
+## 版本号格式
+
+使用语义化版本格式:`MAJOR.MINOR.PATCH`(如 `1.0.0`)
+
+## 注意事项
+
+- 确保工作目录干净(无未提交更改)后再发布
+- 标签会推送到 `gitea` 远程仓库
+- 发布后会触发 CI/CD 构建流程

+ 24 - 0
.claude/skills/web-backend-release/assets/example_asset.txt

@@ -0,0 +1,24 @@
+# Example Asset File
+
+This placeholder represents where asset files would be stored.
+Replace with actual asset files (templates, images, fonts, etc.) or delete if not needed.
+
+Asset files are NOT intended to be loaded into context, but rather used within
+the output Claude produces.
+
+Example asset files from other skills:
+- Brand guidelines: logo.png, slides_template.pptx
+- Frontend builder: hello-world/ directory with HTML/React boilerplate
+- Typography: custom-font.ttf, font-family.woff2
+- Data: sample_data.csv, test_dataset.json
+
+## Common Asset Types
+
+- Templates: .pptx, .docx, boilerplate directories
+- Images: .png, .jpg, .svg, .gif
+- Fonts: .ttf, .otf, .woff, .woff2
+- Boilerplate code: Project directories, starter files
+- Icons: .ico, .svg
+- Data files: .csv, .json, .xml, .yaml
+
+Note: This is a text placeholder. Actual assets can be any file type.

+ 34 - 0
.claude/skills/web-backend-release/references/api_reference.md

@@ -0,0 +1,34 @@
+# Reference Documentation for Web Backend Release
+
+This is a placeholder for detailed reference documentation.
+Replace with actual reference content or delete if not needed.
+
+Example real reference docs from other skills:
+- product-management/references/communication.md - Comprehensive guide for status updates
+- product-management/references/context_building.md - Deep-dive on gathering context
+- bigquery/references/ - API references and query examples
+
+## When Reference Docs Are Useful
+
+Reference docs are ideal for:
+- Comprehensive API documentation
+- Detailed workflow guides
+- Complex multi-step processes
+- Information too lengthy for main SKILL.md
+- Content that's only needed for specific use cases
+
+## Structure Suggestions
+
+### API Reference Example
+- Overview
+- Authentication
+- Endpoints with examples
+- Error codes
+- Rate limits
+
+### Workflow Guide Example
+- Prerequisites
+- Step-by-step instructions
+- Common patterns
+- Troubleshooting
+- Best practices

+ 19 - 0
.claude/skills/web-backend-release/scripts/example.py

@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+"""
+Example helper script for web-backend-release
+
+This is a placeholder script that can be executed directly.
+Replace with actual implementation or delete if not needed.
+
+Example real scripts from other skills:
+- pdf/scripts/fill_fillable_fields.py - Fills PDF form fields
+- pdf/scripts/convert_pdf_to_images.py - Converts PDF pages to images
+"""
+
+def main():
+    print("This is an example script for web-backend-release")
+    # TODO: Add actual script logic here
+    # This could be data processing, file conversion, API calls, etc.
+
+if __name__ == "__main__":
+    main()