What problem does it solve?
The decorator-based surface of @golemcloud/golem-ts-sdk (@agent classes extending BaseAgent, @endpoint, @prompt, and the golem-ts-typegen package) has been removed, so existing TypeScript Golem agents no longer compile. This Skill maps every removed construct to its current schema-driven replacement so agents can be ported without inventing compatibility shims.
Core Features & Use Cases
- Construct-by-construct mapping: Converts @agent classes to defineAgent + .implement, constructor params to id records, class fields to init() state, and method signatures to method({ input, returns }) with Standard Schema.
- Annotation and config migration: Translates @description/@prompt/@readonly/@endpoint into method options and http.mount, Config/Secret constructor params into a config record with s.secret markers, and save/loadSnapshot overrides into snapshotting policies or custom snapshot blocks.
- Use Case: You have a CounterAgent written with @agent({ mount }) and @endpoint decorators that fails to build after an SDK upgrade; this Skill walks you through rewriting it as defineAgent({...}).implement({...}), updating tsconfig, and rebuilding against the local SDK packages.
Quick Start
Migrate my decorator-based TypeScript Golem agent in src/counter-agent.ts to the current defineAgent API and update my tsconfig accordingly.