Skip to main content

Module skill

Module skill 

Source
Expand description

Bundled agent skills — decided skill (PORT-CONTRACT.d/15).

Port of src/rac/core/skills.py (registry + resource loading) and src/asdecided/services/skill.py (install_skills). The packaged SKILL.md resources are embedded verbatim from rust/decided-engine/assets/skills/, vendored byte-identical copies of the Python package files — a unit test below pins that identity, because the installed file must be byte-identical to what the oracle installs (skill brief, landmine 1).

SkillResourceMissing (a broken Python installation) has no Rust equivalent: embedded resources cannot be absent from a linked binary.

Structs§

InstalledSkill
One installed skill (InstalledSkill; bytes_written is in the oracle’s model but deliberately absent from its JSON, so it is not carried here).
SkillInstallation
Result of a decided skill install run.
SkillSpec
One bundled skill: name and one-line description, registry order.

Enums§

SkillInstallError
The failure contract of install_skills, message-shaped like the oracle.

Constants§

BUNDLED_SKILLS
Bundled skills, in registry order (BUNDLED_SKILLS). install with no name installs all of them; list enumerates them.

Functions§

available_skills
available_skills() — bundled skill names, registry order.
install_skills
install_skills(target_dir, skill_name) — write bundled skills into <dir>/.claude/skills/<name>/SKILL.md.