Class: LittleGhost::Skills::Skill

Inherits:
Data
  • Object
show all
Defined in:
lib/little_ghost/skills/skill.rb,
lib/little_ghost/skills/skill.rb

Overview

Holds the metadata and instructions loaded from one SKILL.md file. path is shown to the model; source_path is the local file used for boundary validation and resource discovery.

Instance Attribute Summary collapse

Instance Attribute Details

#allowed_toolsObject (readonly)

Returns the value of attribute allowed_tools

Returns:

  • (Object)

    the current value of allowed_tools



9
10
11
# File 'lib/little_ghost/skills/skill.rb', line 9

def allowed_tools
  @allowed_tools
end

#compatibilityObject (readonly)

Returns the value of attribute compatibility

Returns:

  • (Object)

    the current value of compatibility



9
10
11
# File 'lib/little_ghost/skills/skill.rb', line 9

def compatibility
  @compatibility
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



9
10
11
# File 'lib/little_ghost/skills/skill.rb', line 9

def description
  @description
end

#instructionsObject (readonly)

Returns the value of attribute instructions

Returns:

  • (Object)

    the current value of instructions



9
10
11
# File 'lib/little_ghost/skills/skill.rb', line 9

def instructions
  @instructions
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/little_ghost/skills/skill.rb', line 9

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



9
10
11
# File 'lib/little_ghost/skills/skill.rb', line 9

def path
  @path
end

#source_pathObject (readonly)

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



9
10
11
# File 'lib/little_ghost/skills/skill.rb', line 9

def source_path
  @source_path
end