SS

songmu/skillsmith

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

21 stars 质量 59 趋势 24MIT

[actions]: https://github.com/Songmu/skillsmith/actions?workflow=test [codecov]: https://codecov.io/gh/Songmu/skillsmith [许可证]: https://github.

概览

[actions]: https://github.com/Songmu/skillsmith/actions?workflow=test [codecov]: https://codecov.io/gh/Songmu/skillsmith [license]: https://github.com/Songmu/skillsmith/blob/main/LICENSE [PkgGoDev]: https://pkg.go.dev/github.com/Songmu/skillsmith 用你的 Go CLI 一起交付嵌入式代理技能。 skillsmith 是一个通过 CLI 工具分发代理技能的 Go 库。代理技能是一种开放格式,为 AI 代理提供新功能——可移植的指令集,适用于 Claude Code、GitHub Copilot、OpenAI Codex 及其他兼容代理。 使用 skillsmith,你可以用嵌入嵌入将技能文件嵌入 Go 二进制文件。并暴露一个技能子命令,允许用户在自己的机器上安装、更新和管理这些技能。这让你的 CLI 工具对 AI 代理友好,无需引入完整的 CLI 框架。

概述(AI 翻译)

技匠

[ ][行动] [ ][codecov] [ ][许可证] [ ][PkgGoDev]

[行动]: https://github.com/Songmu/skillsmith/actions?workflow=test [codecov]: https://codecov.io/gh/Songmu/skillsmith [许可证]:https://github.com/Songmu/skillsmith/blob/main/LICENSE [PkgGoDev]: https://pkg.go.dev/github.com/Songmu/skillsmith

用你的 Go CLI 一起交付嵌入式代理技能。

什么是技能匠?

skillsmith 是一个通过您的CLI工具分发代理技能的Go库。代理技能是一种开放格式,为AI代理提供新功能——可移植的指令集,适用于Claude Code、GitHub Copilot、OpenAI Codex及其他兼容代理。

通过 skillsmith,你可以用 embed.FS 将技能文件嵌入 Go 二进制文件中,并暴露一个 skills 子命令,允许用户在自己的机器上安装、更新和管理这些技能。这让你的 CLI 工具对 AI 代理友好,而无需引入完整的 CLI 框架。

剧情简介

这会为你的工具提供以下子命令:

特色

  • Drop-in 集成 — 只需几行代码,就在现有的 CLI 中添加 skills 子命令
  • 无CLI框架依赖 — 仅使用标准的flag包
  • **'embed。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

skillsmith

Ship embedded Agent Skills with your Go CLI.

What is skillsmith?

skillsmith is a Go library for distributing Agent Skills through your CLI tool. Agent Skills are an open format for giving AI agents new capabilities — portable instruction sets that work across Claude Code, GitHub Copilot, OpenAI Codex, and other compatible agents.

With skillsmith, you can embed skill files into your Go binary using embed.FS and expose a skills subcommand that lets users install, update, and manage those skills on their machine. This makes your CLI tool AI-agent-friendly without pulling in a full CLI framework.

Synopsis

//go:embed skills
var skillsFS embed.FS

func run(ctx context.Context, args []string) error {
    if len(args) > 0 && args[0] == "skills" {
        s, err := skillsmith.New("mytool", version, skillsFS)
        if err != nil {
            log.Fatal(err)
        }
        return s.Run(ctx, args[1:])
    }
    // ... existing command handling
    return nil
}

This gives your tool the following subcommands:

mytool skills list        # List embedded skills
mytool skills install     # Install skills to ~/.agents/skills
mytool skills update      # Update skills to newer versions
mytool skills reinstall   # Reinstall all managed skills
mytool skills uninstall   # Remove managed skills
mytool skills status      # Show install status and version diff

Features

  • Drop-in integration — add a skills subcommand to your existing CLI with a few lines of code
  • No CLI framework dependency — uses the standard flag package only
  • embed.FS support — embed skill files in your binary; the skills/ prefix is auto-detected and stripped
  • agentskills compliant — follows the open Agent Skills specification for SKILL.md format and directory structure
  • Metadata tracking — writes .skillsmith.json alongside each installed skill for version-aware update and uninstall
  • Semantic versioning — uses semver.Compare for version comparison; prevents accidental downgrades
  • Lenient validation — warns on name mismatches; only skips skills with missing descriptions or unparseable YAML
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add songmu/skillsmith
新手?先看 mcpskill.org 教程 →