Skill class final
One discovered skill (metadata + parsed manifest; the body stays on disk
for progressive disclosure via the read tool / skill renderer).
Constructors
- Skill({required String name, required String description, required String filePath, required SkillScope scope, required SkillSource source, SkillManifest manifest = SkillManifest.empty, String? embeddedText})
-
const
Properties
- description → String
-
One-line description (
descriptionfrontmatter +when_to_use, else the first non-empty body line).final - directory → String
-
The skill's directory (parent of filePath).
no setter
- embeddedText → String?
-
The full SKILL.md text for compiled-in skills (issue #1151) — set when
there is no backing file on the host FS (Skill.filePath is then a
builtin://virtual path thereadtool serves from the embedded copy). Null for every disk-discovered skill.final - filePath → String
-
Absolute path of the SKILL.md / .md file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- manifest → SkillManifest
-
The typed frontmatter (SkillManifest.empty when absent).
final
- modelInvocable → bool
-
Claude's
disable-model-invocation: hidden from the model catalog, invocable by the user only.no setter - name → String
-
The skill name (
namefrontmatter, else the directory/file stem).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → SkillScope
-
Discovery scope.
final
- source → SkillSource
-
Which tool's layout this skill was found in.
final
- userInvocable → bool
-
Claude's
user-invocable: false: loadable by the model only.no setter
Methods
-
matchesTouchedPaths(
Iterable< String> touchedPaths, {String? cwd}) → bool -
Path-gated skills (SkillManifest.paths / Copilot's
applyTo) enter the model catalog only when one oftouchedPathsmatches a glob. Skills without path patterns always match. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited