Skip to main content

Crate knack_core

Crate knack_core 

Source

Structs§

IndexSource
IndexedSkill
InstallConfig
LockedSkill
Lockfile
Manifest
RegistryConfig
RegistryIndex
Skill

Enums§

RegistryKind

Constants§

LOCKFILE_VERSION
Current lockfile schema version. Bump when the on-disk layout changes in a way an older knack couldn’t safely interpret.

Functions§

checksum_dir
collect_files
read_skill
validate_skill
Strict validation for skills installed locally or being authored. In addition to the metadata checks, the on-disk directory name must match the frontmatter name — this is a local-filesystem invariant for .agents/skills/<name>/ lookup. Use this from knack install, knack new, knack validate, and the publish flow.
validate_skill_metadata
Validate a skill’s identity (name well-formed, description present) without requiring the on-disk directory to match the frontmatter name. Use this when reading skills from an upstream source whose layout we don’t control — e.g. when materialising a registry’s dynamic [[source]] entries against third-party repos. Vendors commonly use unprefixed directory names with brand-prefixed frontmatter names (e.g. skills/composition-patterns/ containing name: vercel-composition-patterns); that’s a legitimate convention and the registry’s archive flow already renames on the way out using the frontmatter name.
validate_skill_name