Class: Pikuri::Tool::SkillCatalog::Skill

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



70
71
72
# File 'lib/pikuri/tool/skill_catalog.rb', line 70

def body
  @body
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



70
71
72
# File 'lib/pikuri/tool/skill_catalog.rb', line 70

def description
  @description
end

#locationObject (readonly)

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



70
71
72
# File 'lib/pikuri/tool/skill_catalog.rb', line 70

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



70
71
72
# File 'lib/pikuri/tool/skill_catalog.rb', line 70

def name
  @name
end