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



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

def assets_path
  @assets_path
end

#base_pathObject

Returns the value of attribute base_path

Returns:

  • (Object)

    the current value of base_path



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

def base_path
  @base_path
end

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



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

def content
  @content
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



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

def description
  @description
end

#frontmatterObject

Returns the value of attribute frontmatter

Returns:

  • (Object)

    the current value of frontmatter



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

def frontmatter
  @frontmatter
end

#layerObject

Returns the value of attribute layer

Returns:

  • (Object)

    the current value of layer



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

def layer
  @layer
end

#md_file_pathObject

Returns the value of attribute md_file_path

Returns:

  • (Object)

    the current value of md_file_path



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

def md_file_path
  @md_file_path
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#references_pathObject

Returns the value of attribute references_path

Returns:

  • (Object)

    the current value of references_path



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

def references_path
  @references_path
end

#scripts_pathObject

Returns the value of attribute scripts_path

Returns:

  • (Object)

    the current value of scripts_path



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

def scripts_path
  @scripts_path
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



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

def tags
  @tags
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



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

def version
  @version
end

Instance Method Details

#has_assets?Boolean

Returns:

  • (Boolean)


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

def has_assets?
  File.directory?(assets_path)
end

#has_references?Boolean

Returns:

  • (Boolean)


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

def has_references?
  File.directory?(references_path)
end

#has_scripts?Boolean

Returns:

  • (Boolean)


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

def has_scripts?
  File.directory?(scripts_path)
end

#to_hObject



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

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