Skip to main content

Package skills into distributable tarballs

Project description

build-skill

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 显示帮助

配置

配置文件搜索路径(优先级从高到低):

  1. --config CLI 参数
  2. BUILD_SKILL_CONFIG 环境变量
  3. ./.build_skill.yaml(当前目录)
  4. ~/.config/build-skill/config.yaml(XDG)
  5. 包内默认配置

程序化调用

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

build_skill-1.0.3.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

build_skill-1.0.3-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

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

Hashes for build_skill-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f0a77f475a6a5b78a34f9cde309556626e90bb11e796db561e1781e6a45afc36
MD5 9a9cf87babfc957d0a97f7f3d4dcfa35
BLAKE2b-256 9bae0befaec44ee2bbe512914a6d971b3ea7511b99f20f14e308d357c031be67

See more details on using hashes here.

Provenance

The following attestation bundles were made for build_skill-1.0.3.tar.gz:

Publisher: release.yml on ricsy/build-skill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for build_skill-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 69039b2f745f0a07a82a860e9c6d4207db05fb46937b13db918f398c030ef44b
MD5 eab41acd4a245445e08a3286867e5f4d
BLAKE2b-256 769f19c4bbe3ac60727c2dfc9aae74b1e01863ebf97211422904f4f0f2476741

See more details on using hashes here.

Provenance

The following attestation bundles were made for build_skill-1.0.3-py3-none-any.whl:

Publisher: release.yml on ricsy/build-skill

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page