AssetSkillSource
Android implementation of SkillSource backed by an AssetManager.
Use this source when skills are packaged inside an APK's assets/ directory rather than unpacked to the filesystem. Prefer building instances via fromContext; the primary constructor is internal.
The implementation tolerates the differing semantics of AssetManager.list between real Android (returns immediate children, mixing files and subdirectories) and Robolectric (returns all descendant file paths relative to the queried directory). Helpers below derive direct children and recursive file listings in a way that works under both.
Parameters
the AssetManager to load skill files from.
the asset path that contains skill directories. May be "" to indicate that skills live directly under the assets root.
Functions
Returns the frontmatter for all available skills.
Loads the frontmatter for a single skill by name.
Loads the instruction body for a single skill by name.
Loads a specific resource file for a given skill.