tuff-packs 0.19.0

Build, inspect, import, and preview Tuff capability packs and Claude Code plugins from Rust.
Documentation

tuff-packs

Tuff capability packs from Rust. Build a source pack for its harnesses and for Claude Code, describe a pack for a review screen, read a Claude Code plugin as a pack, check out a pack from git and compare it with its release tags, preview an update, write packs as a Claude Code marketplace, and install, update, and remove packs in a project.

The tuff command is built on these functions. They return values and never print, and they write only to the folders you give them and to temporary folders they remove. Installing is a plan, which writes nothing and lists every member and file that will change, and an apply, which writes exactly that plan.

[dependencies]
tuff-packs = "0.19"
use std::path::Path;

use tuff_packs::build::build_for_declared_targets;
use tuff_packs::inspect;

fn main() -> tuff_packs::Result<()> {
    let built = build_for_declared_targets(Path::new("review-pack"))?;
    let source = serde_json::json!({ "kind": "folder", "path": "review-pack" });
    let document = inspect::document(&built.artifact, &source)?;
    for member in &document.members {
        println!("{} runs code: {}", member.id, member.runs_code);
    }
    Ok(())
}

The Rust API is 0.x and can change in a minor release. The JSON documents the tuff command prints are the stable interface; see the Pack JSON Specification. Guide: Using Tuff from Rust.