Package skills into distributable tarballs
Project description
build-skill
将 skills/<name>/ 打包为 dist/<name>-YYYYMMDD-vX.X.X.tar.gz
- 支持的目录结构
<project>/
├── skills/
│ ├── <name>/
│ │ ├── __init__.py
安装
pip install -e .
使用
# 指定 skill 名称打包
build-skill --name {skill_name}
# 仅验证 frontmatter
build-skill --name {skill_name} --validate
# 指定输出目录
build-skill --name {skill_name} --output ./dist
# 检查依赖
build-skill --check-deps
CLI 参数
| 参数 | 说明 |
|---|---|
--name |
指定 skill 名称(空则从 skills/ 目录推断) |
--output |
指定输出目录(默认 dist) |
--validate |
仅验证 frontmatter,不打包 |
--check-deps |
检查 Python 依赖 |
--config |
指定配置文件路径 |
--debug |
开启调试输出 |
--help |
显示帮助 |
配置
配置文件搜索路径(优先级从高到低):
--configCLI 参数BUILD_SKILL_CONFIG环境变量./.build_skill.yaml(当前目录)~/.config/build-skill/config.yaml(XDG)- 包内默认配置
程序化调用
from build_skill.validator import FrontmatterValidator
from build_skill.config import get_config
from build_skill.packer import TarPacker
# 验证
validator = FrontmatterValidator(get_config().validation)
validator.validate(skill_dir)
# 打包
packer = TarPacker(get_config().pack)
result = packer.pack("{skill_name}", "dist")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file build_skill-1.0.3.tar.gz.
File metadata
- Download URL: build_skill-1.0.3.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0a77f475a6a5b78a34f9cde309556626e90bb11e796db561e1781e6a45afc36
|
|
| MD5 |
9a9cf87babfc957d0a97f7f3d4dcfa35
|
|
| BLAKE2b-256 |
9bae0befaec44ee2bbe512914a6d971b3ea7511b99f20f14e308d357c031be67
|
Provenance
The following attestation bundles were made for build_skill-1.0.3.tar.gz:
Publisher:
release.yml on ricsy/build-skill
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
build_skill-1.0.3.tar.gz -
Subject digest:
f0a77f475a6a5b78a34f9cde309556626e90bb11e796db561e1781e6a45afc36 - Sigstore transparency entry: 1179671959
- Sigstore integration time:
-
Permalink:
ricsy/build-skill@75adbec759518de11e39c7be4f53ac2ce7ab7ce8 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/ricsy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@75adbec759518de11e39c7be4f53ac2ce7ab7ce8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file build_skill-1.0.3-py3-none-any.whl.
File metadata
- Download URL: build_skill-1.0.3-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69039b2f745f0a07a82a860e9c6d4207db05fb46937b13db918f398c030ef44b
|
|
| MD5 |
eab41acd4a245445e08a3286867e5f4d
|
|
| BLAKE2b-256 |
769f19c4bbe3ac60727c2dfc9aae74b1e01863ebf97211422904f4f0f2476741
|
Provenance
The following attestation bundles were made for build_skill-1.0.3-py3-none-any.whl:
Publisher:
release.yml on ricsy/build-skill
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
build_skill-1.0.3-py3-none-any.whl -
Subject digest:
69039b2f745f0a07a82a860e9c6d4207db05fb46937b13db918f398c030ef44b - Sigstore transparency entry: 1179671985
- Sigstore integration time:
-
Permalink:
ricsy/build-skill@75adbec759518de11e39c7be4f53ac2ce7ab7ce8 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/ricsy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@75adbec759518de11e39c7be4f53ac2ce7ab7ce8 -
Trigger Event:
release
-
Statement type: