Class: SwarmSDK::V3::Skills::Manifest
- Inherits:
-
Object
- Object
- SwarmSDK::V3::Skills::Manifest
- Defined in:
- lib/swarm_sdk/v3/skills/manifest.rb
Overview
Immutable value object for parsed SKILL.md frontmatter
Represents a single discovered skill with its metadata. Created by Loader.scan from SKILL.md files found on disk.
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
Skill description from frontmatter.
-
#location ⇒ String
readonly
Absolute path to the SKILL.md file.
-
#name ⇒ String
readonly
Skill name from frontmatter.
Instance Method Summary collapse
-
#initialize(name:, description:, location:) ⇒ Manifest
constructor
Create a new skill manifest.
Constructor Details
#initialize(name:, description:, location:) ⇒ Manifest
Create a new skill manifest
36 37 38 39 40 41 |
# File 'lib/swarm_sdk/v3/skills/manifest.rb', line 36 def initialize(name:, description:, location:) @name = name @description = description @location = location freeze end |
Instance Attribute Details
#description ⇒ String (readonly)
Returns Skill description from frontmatter.
26 27 28 |
# File 'lib/swarm_sdk/v3/skills/manifest.rb', line 26 def description @description end |
#location ⇒ String (readonly)
Returns Absolute path to the SKILL.md file.
29 30 31 |
# File 'lib/swarm_sdk/v3/skills/manifest.rb', line 29 def location @location end |
#name ⇒ String (readonly)
Returns Skill name from frontmatter.
23 24 25 |
# File 'lib/swarm_sdk/v3/skills/manifest.rb', line 23 def name @name end |