SkillParser
Category: Skills
Source: skill_parser.dart
Enums
SkillSource
Where a skill was discovered.
| Value | Description |
|---|---|
project | |
projectAgents | |
projectClaude | |
global | |
userAgents | |
userClaude | |
custom | |
bundled |
SkillDiagnosticSeverity
| Value | Description |
|---|---|
warning | |
error |
SkillResourceKind
| Value | Description |
|---|---|
script | |
reference | |
asset | |
other |
Classes
SkillDiagnostic
Constructor
dart
const SkillDiagnostic({
required this.severity,
required this.code,
required this.message,
this.path,
this.skillName,
})Properties
| Property | Type | Description |
|---|---|---|
severity | SkillDiagnosticSeverity | |
code | String | |
message | String | |
path | String? | |
skillName | String? |
SkillResource
Constructor
dart
const SkillResource({
required this.relativePath,
required this.absolutePath,
required this.kind,
this.sizeBytes,
})Properties
| Property | Type | Description |
|---|---|---|
relativePath | String | |
absolutePath | String | |
kind | SkillResourceKind | |
sizeBytes | int? |
SkillParseError
An error thrown when a SKILL.md file cannot be parsed.
Constructor
dart
SkillParseError(this.message)Properties
| Property | Type | Description |
|---|---|---|
message | String |
Methods
String toString()
SkillMeta
Parsed metadata from a skill's YAML frontmatter.
Constructor
dart
SkillMeta({
required this.name,
required this.description,
this.license,
this.compatibility,
this.allowedTools = const [],
this.metadata = const {},
this.resources = const [],
required this.skillDir,
required this.skillMdPath,
required this.source,
})Properties
| Property | Type | Description |
|---|---|---|
name | String | |
description | String | |
license | String? | |
compatibility | String? | |
allowedTools | List<String> | |
metadata | Map<String, String> | |
resources | List<SkillResource> | |
skillDir | String | |
skillMdPath | String | |
source | SkillSource |
Methods
SkillMeta copyWith({List<SkillResource>? resources})
Functions
`SkillMeta parseSkillFrontmatter(
String content, String skillDir, String skillMdPath, SkillSource source, )`
Parses YAML frontmatter from a SKILL.md file into a [SkillMeta].
String loadSkillBody(String skillMdPath)
Loads the body content of a SKILL.md file (everything after the frontmatter).