https://github.com/air-0000/skill-publisher
Skill 发布流水线 — 自动完成质量检查 → 版本管理 → 文件上传 → README 更新 → GitHub push → Release 创建 → zip 上传 → CherryStudio 同步。
https://github.com/air-0000/skill-publisher
agent-skill automation cherry-studio claude-code
Last synced: about 2 months ago
JSON representation
Skill 发布流水线 — 自动完成质量检查 → 版本管理 → 文件上传 → README 更新 → GitHub push → Release 创建 → zip 上传 → CherryStudio 同步。
- Host: GitHub
- URL: https://github.com/air-0000/skill-publisher
- Owner: Air-0000
- Created: 2026-04-30T05:11:58.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-02T06:07:08.000Z (about 2 months ago)
- Last Synced: 2026-05-02T07:30:09.538Z (about 2 months ago)
- Topics: agent-skill, automation, cherry-studio, claude-code
- Language: Python
- Size: 98.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Skill Publisher
> Skill 发布流水线 — 自动完成质量检查 → 版本管理 → GitHub push → Release 创建 → zip 上传 → CherryStudio 同步。
**v0.4.0** 脚本化实现,支持质量门、版本增强、回滚能力。
## 特性
- **Step 0 质量检查**:frontmatter 校验、文件合规性、版本格式验证
- **版本管理**:支持 major/minor/patch bump,自动比较 remote 版本
- **Backup 自动化**:zip 文件名含 git commit hash,支持回滚
- **全流程串联**:Step 0 → Step 0.5 → Step 1-9,一键发布
- **Cherry Studio 同步**:发布后自动同步到本地 Skills 目录
## 文件结构
```
skill-publisher/
├── SKILL.md # 流程定义文档
├── CHANGELOG.md
├── README.md
├── requirements.txt
└── scripts/
├── __init__.py
├── quality_checker.py # 质量检查模块
├── version.py # 版本管理模块
├── git_utils.py # Git 操作封装
├── publisher.py # 主入口
└── test_publisher.py # 单元测试(33 个用例)
```
## 安装
**CherryStudio**:将 `skill-publisher/` 目录放入 Skills 目录:
```bash
cp -r skill-publisher/ ~/Library/Application\ Support/CherryStudio/Data/Skills/
```
**依赖安装**:
```bash
cd skill-publisher/scripts
pip install -r requirements.txt
```
## 使用方式
### 命令行
```bash
python scripts/publisher.py publish \
--skill-dir /path/to/skill \
--skill-name my-skill \
--repo-url https://github.com/owner/my-skill.git \
--repo owner/my-skill \
--change-summary "新增质量检查功能" \
--bump patch
```
### Python API
```python
from publisher import publish_skill, generate_markdown_report
from pathlib import Path
result = publish_skill(
skill_dir=Path("/path/to/skill"),
skill_name="my-skill",
repo_url="https://github.com/owner/my-skill.git",
repo="owner/my-skill",
change_summary="新增质量检查功能",
bump="patch",
)
print(generate_markdown_report(result))
```
## 依赖 Skill
无外部依赖,依赖 Python 标准库 + pyyaml。
## 相关仓库
- **skill-publisher**(本仓库):https://github.com/Air-0000/skill-publisher
- **code-dev-team**:https://github.com/Air-0000/code-dev-team-skill
- **doc-writer**:https://github.com/Air-0000/doc-writer-skill
- **chat-history-sync**:https://github.com/Air-0000/chat-history-sync-skill
## License
MIT