Class: Pikuri::Tool::SkillCatalog::Skill
- Inherits:
-
Data
- Object
- Data
- Pikuri::Tool::SkillCatalog::Skill
- Defined in:
- lib/pikuri/tool/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
70 71 72 |
# File 'lib/pikuri/tool/skill_catalog.rb', line 70 def body @body end |
#description ⇒ Object (readonly)
Returns the value of attribute description
70 71 72 |
# File 'lib/pikuri/tool/skill_catalog.rb', line 70 def description @description end |
#location ⇒ Object (readonly)
Returns the value of attribute location
70 71 72 |
# File 'lib/pikuri/tool/skill_catalog.rb', line 70 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name
70 71 72 |
# File 'lib/pikuri/tool/skill_catalog.rb', line 70 def name @name end |