Skip to main content

Skills Manager v0.1.5

写一次 AI Skill 定义,一键导出为 OpenAI / Claude / Gemini / MCP 等主流平台格式。

PyPI Test License

快速安装

PyPI(推荐)

pip install skillfmt

桌面应用 / 独立可执行文件

从 Releases 下载对应平台安装包:

平台 安装包 说明
Windows skills-manager-setup-windows.exe 安装向导(推荐)
Windows skills-manager-desktop.exe 绿色版桌面应用
Windows skills-manager-cli.exe 绿色版 CLI
macOS skills-manager-desktop.dmg 桌面应用

Linux 桌面版暂未提供预编译包,请使用 pip install skillfmt 或从源码运行。

快速开始

1. 创建一个 Skill

创建目录 my-skill/,在其中创建 SKILL.md:

---
name: hello
version: "1.0.0"
description: 一个简单的问候工具
summary: 向用户打招呼,支持中英文。
skill_type: component
intent: 用于测试和演示的简单问候工具
tags: [demo, greeting]
category: misc
---

## 功能

向用户打招呼。

## 参数

| 参数 | 类型 | 必需 | 说明 |
| --- | --- | --- | --- |
| name | string | 是 | 用户名称 |
| language | string | 否 | 语言:zh / en,默认 zh |

## 示例

```json
{"name": "世界", "language": "zh"}
{"greeting": "你好,世界!"}

适用场景

  • 测试 Skill 系统
  • 演示基本功能

不适用

  • 生产环境使用

### 2. 安装并导出

```bash
# 安装 Skill
skillfmt install ./my-skill

# 导出为 OpenAI 格式
skillfmt export hello --format openai

# 导出为 Claude 格式
skillfmt export hello --format claude

# 导出为 MCP Server
skillfmt export hello --format mcp --output hello_mcp.py

3. 桌面应用

从 Releases 下载安装包,或从源码运行:

cd skills-manager-prototype
python -m desktop

4. 启动 Server(MCP / HTTP API)

# MCP 模式(stdio,供 Claude Desktop 等调用)
pip install skillfmt[server]
skillfmt serve --mode mcp

# HTTP API 模式
skillfmt serve --mode api --port 8000

5. 检查更新

skillfmt check-update

6. 管理 MCP 配置

把已安装的 Skill 一键注册为 Claude Desktop / Claude Code / Cline 的 MCP Server:

# 列出内置客户端 profile
skillfmt mcp profiles

# 列出指定客户端的 mcpServers
skillfmt mcp list claude-desktop

# 把已安装的 skill 注册为 MCP server
skillfmt mcp install-skill claude-desktop translator

桌面端「MCP 配置」页提供 profile 选择、增删启停、自定义路径等可视化操作。

7. 检查 Skill 更新与批量管理

# 扫描所有已安装 Skill 是否有新版本(对比本地 source / 远程标记)
skillfmt check-updates

# 一键更新所有可更新 Skill
skillfmt update-all --yes

# 批量卸载
skillfmt uninstall translator code-reviewer json-formatter

桌面端浏览页顶栏的「检查更新」按钮提供单项/一键更新;「最近活动」页展示 30 天内的热门 Skill 排行与导出格式分布。

SKILL.md 格式规范

Frontmatter(必填)

---
name: skill-name          # 必填:唯一标识,小写 + 连字符
version: "1.0.0"          # 必填:语义化版本
description: 一句话描述    # 必填:简短描述(< 200 字)
summary: |                # 必填:2-3 句话摘要
  详细描述这个 Skill 的功能。
  支持多行文本。
---

Frontmatter(可选)

---
# 语义类型
skill_type: component     # component | interactive | workflow
intent: 详细意图说明       # 这个 Skill 要解决什么问题

# 分类
tags: [tag1, tag2]        # 自由标签
category: language        # 一级分类标识

# 执行配置
executor:
  type: python            # python | node | shell | http
  entry: handler.py       # 入口文件
  function: translate     # 入口函数名

# 安全声明
security:
  needs_network: true
  needs_api_key: true

# 元信息
author: someone
license: MIT
---

Markdown Body

## 功能

详细描述 Skill 的功能。

## 参数

| 参数 | 类型 | 必需 | 说明 |
| --- | --- | --- | --- |
| param1 | string | ✅ | 参数说明 |
| param2 | integer | ❌ | 可选参数 |

## 返回

| 字段 | 类型 | 说明 |
| --- | --- |
| result | string | 返回结果 |

## 示例

输入:
```json
{"param1": "value"}

输出:

{"result": "processed"}

适用场景

  • 场景 1
  • 场景 2

不适用

  • 不适用场景 1

## 支持的导出格式

| 格式 | 说明 | 文件扩展名 |
| --- | --- | --- |
| openai | OpenAI Function Calling | .json |
| claude | Claude Tool Use | .json |
| gemini | Gemini Function Declaration | .json |
| mcp | MCP Server(可运行) | .py |
| schema | JSON Schema | .json |

## 项目结构

skills-manager/ ├── skills-manager-prototype/ # 项目源码 │ ├── src/skills_manager/ # 核心引擎 │ │ ├── cli.py # CLI 入口(含 mcp / check-updates / update-all 子命令) │ │ ├── parser.py # SKILL.md 解析器 │ │ ├── store/ # 本地存储(安装/索引/搜索/同步/历史/频率统计) │ │ ├── adapters/ # 格式适配器(OpenAI / Claude / Gemini / MCP) │ │ ├── server/ # MCP Server + HTTP API │ │ ├── mcp_config.py # MCP 客户端 mcpServers 配置中心 │ │ └── ... │ ├── desktop/ # 桌面客户端(Flet) │ ├── examples/ # 示例 Skills │ ├── tests/ # 测试 │ ├── docs/ # 文档 │ └── pyproject.toml # 项目配置 ├── .github/workflows/ # CI/CD │ ├── ci.yml # 测试 + lint │ └── release.yml # 三平台构建 + PyPI 发布 ├── CHANGELOG.md # 变更记录 └── README.md # 本文件


## 开发指南

### 运行测试

```bash
cd skills-manager-prototype

# 运行所有测试
pytest tests/

# 运行特定测试
pytest tests/test_parser.py -v

# 查看覆盖率
pytest tests/ --cov=skills_manager --cov-report=term-missing

代码质量

cd skills-manager-prototype

# 格式化
ruff format .

# 检查
ruff check .

# 类型检查
mypy src/

添加新适配器

  1. 在 src/skills_manager/adapters/ 创建新文件
  2. 继承 BaseAdapter 类
  3. 实现 name、file_extension、export 方法
  4. 在 __init__.py 注册适配器
  5. 添加测试

添加新验证规则

  1. 在 src/skills_manager/validator.py 添加规则
  2. 返回 ValidationResult(errors 或 warnings)
  3. 添加测试用例

文档

许可

MIT

Metadata

Release files for skillfmt 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skillfmt 0.1.5
File Size Uploaded
skillfmt-0.1.5.tar.gz 116.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for skillfmt 0.1.5
File Interpreter ABI Platform
skillfmt-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 174.7 kB

Release files / skillfmt-0.1.5.tar.gz

Download URL skillfmt-0.1.5.tar.gz
Size 116.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f9ec1123e3b8a412aa67879a1f949911fed37042ee71d3dc6a7508d5090c47a1
BLAKE2b-256 checksum
How to use checksums
d2d9312445c86adbd976a4be4b0e52b84a855e990fd9471cf25bb3c22e3628aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 17, 2026.

Transparency log

Release files / skillfmt-0.1.5-py3-none-any.whl

Download URL skillfmt-0.1.5-py3-none-any.whl
Size 58.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
600c385373dd52918525a988d8908078151df536b3ecf24bb8c08b583ffb1f4d
BLAKE2b-256 checksum
How to use checksums
47a4f862ae8b391c6547a03f7be0c5de0adb71adfbe9e3b82946ec727d93db7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page