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
| Class | Description |
|---|---|
| GraphorinSkillsError | Base class for every error thrown by @graphorin/skills. |
| InputFilterRequiredError | Agent.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. |
| SkillFrontmatterConflictError | The frontmatter validator detected an Anthropic-base / graphorin-* collision and the operator-resolved policy is 'error'. |
| SkillLoadError | A skill source could not be loaded from disk. |
| SkillManifestParseError | A skill manifest could not be parsed (missing frontmatter / invalid YAML). |
| SkillNameCollisionError | A skill name in a registry registration collided with another already-loaded skill. |
| SkillRequiredFieldMissingError | A required Anthropic-base field is missing from the frontmatter. |
| SkillRuntimeCompatError | The runtime-compat declaration on a skill does not satisfy the loader's installed runtime version. |
| SlashCommandParseError | The slash-command parser received a string that did not match the /skill:<name> grammar. |
Type Aliases
| Type Alias | Description |
|---|---|
| GraphorinSkillsErrorKind | Convenience union — every kind discriminator the package may emit. |