Skip to main content

Module skill_asset

Module skill_asset 

Source
Expand description

Embed the driver skill (skill/SKILL.md) in the binary so an agent plugin can regenerate its committed copy from the shipped binary (single source of truth — no skill drift). The ship-guard test below fails the build if the embedded content is stubbed, emptied, or truncated rather than the authored driver skill.

The skill lives INSIDE this crate rather than at a repo root, so include_str! needs no .. traversal and the crate stays relocatable: shared/ghidra-mcp can be vendored or moved without silently embedding whatever happens to sit at the old relative path.

Constants§

DRIVER_SKILL
The driver skill, embedded at compile time (version-locked to this binary).

Functions§

emit_bytes
The bytes a plugin’s emit-skill subcommand writes: the canonical with its leading HTML comment header removed, so the output IS the shipped plugin copy rather than something a caller must post-process.