Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/skills / errors

errors

Typed error hierarchy for @graphorin/skills.

Every error carries a stable lowercase kind discriminator so the agent runtime, the CLI, and the audit emitter can branch without resorting to instanceof chains, plus an optional hint field with an actionable remediation step (a CLI command or a documentation link).

Classes

ClassDescription
GraphorinSkillsErrorBase class for every error thrown by @graphorin/skills.
InputFilterRequiredErrorAgent.toTool() / handoff(...) would be invoked inside an untrusted skill, but the skill did not declare graphorin-handoff-input-filter. Throwing the error at activation time prevents the runtime from materialising a sub-agent without an explicit filter.
SkillFrontmatterConflictErrorThe frontmatter validator detected an Anthropic-base / graphorin-* collision and the operator-resolved policy is 'error'.
SkillLoadErrorA skill source could not be loaded from disk.
SkillManifestParseErrorA skill manifest could not be parsed (missing frontmatter / invalid YAML).
SkillNameCollisionErrorA skill name in a registry registration collided with another already-loaded skill.
SkillRequiredFieldMissingErrorA required Anthropic-base field is missing from the frontmatter.
SkillRuntimeCompatErrorThe runtime-compat declaration on a skill does not satisfy the loader's installed runtime version.
SlashCommandParseErrorThe slash-command parser received a string that did not match the /skill:<name> grammar.

Type Aliases

Type AliasDescription
GraphorinSkillsErrorKindConvenience union — every kind discriminator the package may emit.