Class: Pikuri::Skill::Catalog::Skill

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



69
70
71
# File 'lib/pikuri/skill/catalog.rb', line 69

def body
  @body
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



69
70
71
# File 'lib/pikuri/skill/catalog.rb', line 69

def description
  @description
end

#locationObject (readonly)

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



69
70
71
# File 'lib/pikuri/skill/catalog.rb', line 69

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



69
70
71
# File 'lib/pikuri/skill/catalog.rb', line 69

def name
  @name
end