Skip to main content

zeroclaw_runtime/skills/
constants.rs

1//! Canonical filenames + scaffold subdirs for the Agent Skills spec.
2//!
3//! Every literal that names a skill-file or scaffold-subdir lives here. Any
4//! grep hit for `"SKILL.md"`, `"scripts"`, `"references"`, `"assets"` outside
5//! this module is drift.
6
7/// Canonical manifest filename per the open Agent Skills spec.
8pub const SKILL_MANIFEST_FILENAME: &str = "SKILL.md";
9
10/// Pre-spec manifest filenames still accepted by the audit loader for
11/// back-compat with installed skills. Never written by the service.
12pub const SKILL_DEPRECATED_MANIFESTS: &[&str] = &["SKILL.toml", "manifest.toml"];
13
14/// Optional standard subdirs scaffolded under each new skill directory.
15/// Match the canonical agentskills.io layout (`scripts/`, `references/`,
16/// `assets/`).
17pub const SKILL_SCAFFOLD_SUBDIRS: &[&str] = &["scripts", "references", "assets"];
18
19/// Archive root under the shared workspace where deleted skills are moved
20/// (when `RemoveMode::Archive` is selected). Mirrors the agent-workspace
21/// archive convention.
22pub const SKILL_ARCHIVE_DIR_NAME: &str = "_deleted";