Lecture 28: Skill Deployment and Publishing
Lecture 28: Skill Deployment and Publishing
Master the Skill deployment and publishing process to officially launch your Skill for users.
一、Pre-Deployment Preparation
1.1 Publishing Checklist
1 | □ Functionality Completeness |
1.2 Environment Configuration
1 | # config.py |
二、Platform Deployment Process
2.1 Coze Deployment
Steps:
Create Bot
- Log in to Coze platform
- Click "Create Bot"
- Fill in name and description
Configure Prompt
1
2
3
4
5
6
7
8
9
10
11# Role
You are a financial intelligent assistant, specializing in helping finance staff process invoices and reports.
# Skills
- Invoice recognition and entry
- Financial report generation
- Data statistical analysis
# Constraints
- Only process finance-related data
- Protect user data privacyAdd Plugins
- Search and add required plugins
- Configure plugin parameters
Test and Verify
- Verify functionality in test window
- Check if responses meet expectations
Publish
- Click "Publish"
- Select publishing channels (Discord, Telegram, etc.)
2.2 OpenClaw Deployment
Steps:
Prepare Code
1
2
3
4
5# Project structure
my_skill/
├── skill.py # Skill main file
├── requirements.txt # Dependencies
└── README.md # DocumentationWrite Skill
1
2
3
4
5
6
7
8
9
10
11
12# skill.py
from openclaw import Skill, Tool
class MySkill(Skill):
name = "Financial Intelligent Assistant"
description = "Automated financial processing"
def recognize_invoice(self, image: str) -> str:
"""Recognize invoice"""
# Implementation logic
return "Recognition result"Configure Dependencies
1
2
3
4# requirements.txt
openpyxl>=3.0.0
pandas>=1.3.0
paddleocr>=2.6.0Submit and Deploy
1
2# Using OpenClaw CLI
openclaw deploy .
2.3 Feishu CLI Deployment
Steps:
Create App
- Log in to Feishu Open Platform
- Create enterprise self-built app
- Get App ID and App Secret
Configure Permissions
- Apply for required permissions
- Configure event subscriptions
Develop Skill
1
2
3
4
5
6
7from lark_cli import Skill, Message
class FeishuSkill(Skill):
def on_message(self, message: Message):
# Process message
reply = self.process(message.text)
self.send_message(message.chat_id, reply)Deploy
- Configure server address
- Publish app version
- Submit for review
三、Version Management
3.1 Version Number Specification
Using Semantic Versioning:
1 | Version format: Major.Minor.Patch |
3.2 Version Release Process
1. Development complete → 2. Tests pass → 3. Update version number
↓
4. Update CHANGELOG → 5. Create tag → 6. Deploy
↓
## 🎓 AI 编程实战课程
想系统学习 AI 编程?程序员晚枫的 **AI 编程实战课** 帮你从零上手!
- 👉 **课程报名**:[点击这里报名,前3讲免费试听](https://r7up9.xetslk.com/s/1uP5YW)
- 👉 **免费试看**:[B站免费试看前3讲,先看看适不适合自己](https://www.bilibili.com/cheese/play/ss982042944)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 程序员晚枫 - Python自动化办公与AI编程!

