Class: KairosMcp::AnthropicSkillParser::SkillEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/kairos_mcp/anthropic_skill_parser.rb

Overview

Struct representing a parsed skill entry

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#assets_pathObject

Returns the value of attribute assets_path

Returns:

  • (Object)

    the current value of assets_path



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def assets_path
  @assets_path
end

#base_pathObject

Returns the value of attribute base_path

Returns:

  • (Object)

    the current value of base_path



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def base_path
  @base_path
end

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def content
  @content
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def description
  @description
end

#frontmatterObject

Returns the value of attribute frontmatter

Returns:

  • (Object)

    the current value of frontmatter



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def frontmatter
  @frontmatter
end

#layerObject

Returns the value of attribute layer

Returns:

  • (Object)

    the current value of layer



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def layer
  @layer
end

#md_file_pathObject

Returns the value of attribute md_file_path

Returns:

  • (Object)

    the current value of md_file_path



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def md_file_path
  @md_file_path
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def name
  @name
end

#references_pathObject

Returns the value of attribute references_path

Returns:

  • (Object)

    the current value of references_path



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def references_path
  @references_path
end

#scripts_pathObject

Returns the value of attribute scripts_path

Returns:

  • (Object)

    the current value of scripts_path



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def scripts_path
  @scripts_path
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def tags
  @tags
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



20
21
22
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 20

def version
  @version
end

Instance Method Details

#has_assets?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 39

def has_assets?
  File.directory?(assets_path)
end

#has_references?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 43

def has_references?
  File.directory?(references_path)
end

#has_scripts?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 35

def has_scripts?
  File.directory?(scripts_path)
end

#to_hObject



47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 47

def to_h
  {
    name: name,
    description: description,
    version: version,
    layer: layer,
    tags: tags,
    content: content,
    has_scripts: has_scripts?,
    has_assets: has_assets?,
    has_references: has_references?
  }
end