skillflag 0.1.0

Rust implementation of the Skillflag producer library/CLI and the skill-install companion CLI.
Documentation
  • Coverage
  • 44%
    55 out of 125 items documented0 out of 58 items with examples
  • Size
  • Source code size: 151.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • osolmaz/skillflag
    8 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • osolmaz

skillflag (Rust)

Rust implementation of the Skillflag convention: a minimal CLI interface for bundling, listing, and installing agent skills without a third-party registry.

The skillflag crate ships:

  • the embeddable producer library (skillflag::maybe_handle_skillflag, skillflag::find_skills_root),
  • the standalone skillflag binary,
  • the skill-install adaptor that installs exported skills into agent tools (Claude Code, Codex, Amp, Goose, and others).

Exports are byte-identical to the other Skillflag implementations (TypeScript, Go, Python) — any producer can be paired with any installer. The only dependency is sha2.

Install

cargo install skillflag --locked

Embed in your CLI

use skillflag::{find_skills_root, maybe_handle_skillflag, Options};

fn main() {
    let argv: Vec<String> = std::env::args().collect();
    if let Ok(root) = find_skills_root(env!("CARGO_MANIFEST_DIR")) {
        let opts = Options {
            skills_roots: vec![root],
            ..Options::default()
        };
        if let Some(code) = maybe_handle_skillflag(&argv, &opts) {
            std::process::exit(code);
        }
    }
    // ... your CLI ...
}

Then ship a skills/<skill-id>/SKILL.md directory with your tool. Users install your skill with:

your-tool --skill export <id> | skill-install --agent claude --scope repo

Documentation

Development

cd rust
cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test

License

MIT