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



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def assets_path
  @assets_path
end

#base_pathObject

Returns the value of attribute base_path

Returns:

  • (Object)

    the current value of base_path



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def base_path
  @base_path
end

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def content
  @content
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def description
  @description
end

#frontmatterObject

Returns the value of attribute frontmatter

Returns:

  • (Object)

    the current value of frontmatter



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def frontmatter
  @frontmatter
end

#layerObject

Returns the value of attribute layer

Returns:

  • (Object)

    the current value of layer



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def layer
  @layer
end

#md_file_pathObject

Returns the value of attribute md_file_path

Returns:

  • (Object)

    the current value of md_file_path



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def md_file_path
  @md_file_path
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def name
  @name
end

#references_pathObject

Returns the value of attribute references_path

Returns:

  • (Object)

    the current value of references_path



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def references_path
  @references_path
end

#scripts_pathObject

Returns the value of attribute scripts_path

Returns:

  • (Object)

    the current value of scripts_path



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def scripts_path
  @scripts_path
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def tags
  @tags
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



18
19
20
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 18

def version
  @version
end

Instance Method Details

#has_assets?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 37

def has_assets?
  File.directory?(assets_path)
end

#has_references?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 41

def has_references?
  File.directory?(references_path)
end

#has_scripts?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/kairos_mcp/anthropic_skill_parser.rb', line 33

def has_scripts?
  File.directory?(scripts_path)
end

#to_hObject



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

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