@trusty-squire/skill-schema
v0.1.2
Published
Type-checked learned-skill schema for Trusty Squire. Defines the wire contract every registry-stored skill is validated against, shared by the mcp client and the registry server.
Maintainers
Readme
@trusty-squire/skill-schema
Type-checked SDK for authoring Trusty Squire adapter manifests and consuming the Tier-2 Learned Skill schema.
Install
npm install @trusty-squire/skill-schemaWhat's in here
Two parallel surfaces, both used by the Trusty Squire registry:
Adapter manifest (defineAdapter)
Hand-authored Tier-3 manifests describing how to talk to a SaaS API — auth, plans, capabilities, request shapes. Validated at registry publish time.
import { defineAdapter } from "@trusty-squire/skill-schema";
export default defineAdapter({
// … manifest body
});Skill schema (parseSkill, Skill types)
Zod schema for Tier-2 Learned Skills — structured replay graphs the universal bot promotes from successful onboarding runs.
import { parseSkill, type Skill, SkillSchema } from "@trusty-squire/skill-schema";
const skill: Skill = parseSkill(raw);Status
Pre-1.0. The schema may evolve; pin a caret range and watch CHANGELOG for breaking changes.
License
MIT
