knack
knack is an open-source Rust CLI and self-hostable registry project for teams to package, validate, version, publish, discover, install, and govern Agent Skills.
The current v0 focuses on local skill authoring and distribution primitives. See PROJECT.md for the north-star product direction.
Current CLI
Run the CLI from the workspace:
Create a skill:
Initialize a project manifest:
By default, commands use project scope:
.agents/knack.toml
.agents/knack.lock
.agents/skills/
Use global scope for user-wide skills:
Global scope uses:
~/.config/knack/knack.toml
~/.config/knack/knack.lock
~/.agents/skills/
Admins can provide system-wide defaults with system scope:
System scope uses:
/etc/knack/knack.toml
/etc/knack/knack.lock
/usr/local/share/knack/skills/
Registry aliases are inherited in this order, with later layers overriding earlier layers:
system (/etc/knack/knack.toml)
global (~/.config/knack/knack.toml)
project (./.agents/knack.toml)
That lets administrators inject aliases such as tea: for all users while still allowing user or project-level overrides.
Add and install a skill source into the manifest target:
This updates .agents/knack.toml and writes .agents/knack.lock with the resolved source and a deterministic checksum of the installed skill contents.
Sync all skills declared in .agents/knack.toml:
Validate a skill:
Package a skill:
Install a skill directory or package archive:
Install directly from a public GitHub repository:
For example:
Install from any Git host supported by your local git command:
Register a Git host alias in knack.toml:
Then add skills through the alias:
Alias syntax is:
alias:owner/repo[@ref]/path/to/skill
Generate a searchable registry index from a local tree of skills:
Serve the index with knack-registry:
Build and run the registry container:
The image defaults to:
Override arguments as needed:
To make the HTTP registry the only thing users need to interact with, serve skill archives too:
With --public-alias company, search results return proxy install sources such as company:deploy-container. The CLI resolves those through the HTTP registry and downloads the skill archive from the registry server.
Register and search that registry from the CLI:
Search results are installable sources:
local pdf Work with PDF files... gh:owner/repo/skills/pdf
In proxy mode, results look like this:
company deploy-container Deploy containers to Kubernetes. company:deploy-container
Users can install without knowing the backing Git repo:
For skills scattered across one or more Git repositories, prefer dynamic source entries. The registry fetches the backing source, scans for SKILL.md, and derives each skill's name and description from the skill itself:
[[]]
= "tea:platform/agent-skills"
= ["deploy", "kubernetes"]
At startup, that materializes skills such as tea:platform/agent-skills/deploy-container from platform/agent-skills/deploy-container/SKILL.md. This avoids duplicating fragile metadata in knack.index.toml.
Dynamic sources must refresh successfully on startup before the registry serves traffic. After startup, the registry refreshes dynamic sources every 300 seconds by default and keeps serving the last good index if a later refresh fails. Disable background refresh with --refresh-interval-seconds 0 or tune it with another interval.
Static entries are still supported for hand-curated overrides:
[[]]
= "deploy-container"
= "Deploy containers into the internal Kubernetes cluster."
= "tea:payments/api/.agents/skills/deploy-container"
= ["deploy", "kubernetes"]
Start the registry with a source alias so it can fetch those backing sources server-side:
Users still only need the HTTP registry:
Publish a local skill into a git-backed team skills repository:
Publishing currently supports git-host registries. It clones the target repository, copies the skill into skills/<skill-name>, regenerates knack.index.toml, commits the change, and pushes it. Use --no-push to leave the commit local in the temporary checkout for debugging.
After the registry server is serving the updated knack.index.toml, teammates can discover and install the skill:
List installed skills:
v0 Scope
Implemented:
- Skill scaffolding.
- Agent Skills frontmatter validation.
- Deterministic
.skill.tar.gzpackaging. - Local installation from directories and package archives.
- GitHub installation with
gh:owner/repo[@ref]/path/to/skill. - Generic Git installation with
git+<url>[@ref]//path/to/skill. - Git-host registry aliases with
alias:owner/repo[@ref]/path/to/skill. - Searchable HTTP registries served by
knack-registry. - Proxied HTTP registry installs with
registry:skill-name. - Registry-side proxying from indexed Git backing sources.
- Registry index generation from local skill directories.
- Publishing skills to git-backed team repositories.
- Project manifests with
knack.toml. - Lockfiles with
knack.lock. - Project and global scoped config/install paths.
- System scoped config at
/etc/knack/knack.toml. - Layered registry alias inheritance from system to global to project.
addandsyncworkflows for reproducible project installs.- Listing installed skills.
Not implemented yet:
- Static registries.
- Locking GitHub branches and tags to immutable commit SHAs.
- Signing, provenance, and policy checks.