Class: Pikuri::Skill::Catalog::Skill
- Inherits:
-
Data
- Object
- Data
- Pikuri::Skill::Catalog::Skill
- Defined in:
- lib/pikuri/skill/catalog.rb
Overview
A loaded skill record. Holds everything the catalog discovers and the tool needs to satisfy a load: name and description for the catalog’s prompt block, location (absolute path to the SKILL.md) so the LLM can reference sidecars relative to File.dirname(location), and body (the SKILL.md content below the frontmatter) returned verbatim when the tool fires.
Bodies are eager-loaded at scan time even though only name/description/location end up in the prompt — skill files are small, eager loading keeps the tool’s hot path IO-free, and there is no fault tolerance requirement that warrants the complexity of lazy I/O.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
69 70 71 |
# File 'lib/pikuri/skill/catalog.rb', line 69 def body @body end |
#description ⇒ Object (readonly)
Returns the value of attribute description
69 70 71 |
# File 'lib/pikuri/skill/catalog.rb', line 69 def description @description end |
#location ⇒ Object (readonly)
Returns the value of attribute location
69 70 71 |
# File 'lib/pikuri/skill/catalog.rb', line 69 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name
69 70 71 |
# File 'lib/pikuri/skill/catalog.rb', line 69 def name @name end |