Agent skill

Migrate TS Decorator SDK

by golemcloud in golemcloud/golem

Migrating a TypeScript Golem agent from the removed decorator/base API (@agent + BaseAgent) to the current schema-driven defineAgent API.

Custom licenceAuto-check passed

Install Migrate TS Decorator SDK

skills CLI
$ npx skills add golemcloud/golem --skill migrate-ts-decorator-sdk -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install golemcloud/golem migrate-ts-decorator-sdk --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/golemcloud/golem.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/migrate-ts-decorator-sdk .claude/skills/migrate-ts-decorator-sdk && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
migrate-ts-decorator-sdk
GitHub stars
1.5k
Token cost
~3k tokens
SKILL.md length
936 words
Files
1
Skills in repo
289
Repo updated
First seen
Licence
Custom licence

At a glance

Migrating a TypeScript Golem agent from the removed decorator/base API (@agent + BaseAgent) to the current schema-driven defineAgent API.

  • Works in 10 steps: Delete decorator imports and any… → Remove experimentalDecorators /… → Convert each @agent class to… → …
  • Porting an existing decorator-based TS agent
  • SKILL.md covers Mental model shift, Imports, tsconfig and Agent class → defineAgent +…, plus 6 more sections
  • Calls npx

What it does

Migrate TS Decorator SDK is an agent skill from golemcloud/golem. Migrating a TypeScript Golem agent from the removed decorator/base API (@agent + BaseAgent) to the current schema-driven defineAgent API. Use when porting an existing decorator-based TS agent, when you see @agent()/extends BaseAgent/@endpoint/@description code that no longer compiles, or when asked to modernize a TS component to the current SDK.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with TypeScript. The repository describes itself as: Golem Cloud is the agent-native platform for building AI agents and distributed applications that never lose state, never duplicate work, and never require you to build…

When your agent uses it

  • Porting an existing decorator-based TS agent
  • You see @agent()/extends BaseAgent/@endpoint/@description code that no longer compiles
  • Asked to modernize a TS component to the current SDK

Example prompts

  • “/migrate-ts-decorator-sdk”

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Delete decorator imports and any @golemcloud/golem-ts-typegen usage.
  2. Remove experimentalDecorators / emitDecoratorMetadata from tsconfig.json.
  3. Convert each @agent class to defineAgent({...}) + .implement({...}); constructor params → id; class fields → init() state.
  4. Convert method signatures to method({ input, returns }) with Standard Schema; @description/@prompt/@readonly/@endpoint → method options +…
  5. Convert Result returns to s.result(ok, err).
  6. Convert Config/Secret constructor params to a config record (s.secret(...) for secrets).
  7. Convert save/loadSnapshot overrides to snapshotting (or .implement({ snapshot })).
  8. Ensure every agent module is imported from src/main.ts.
  9. Remove the old decorator/base/typegen dependencies and all compatibility wrappers.
  10. Build the local SDK bundle and agent template, then point the application build at those local

What it can do on your machine

Read from SKILL.md and the folder at commit c6a3029. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Migrate TS Decorator SDK loads about 3k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 936 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~93
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 936 words (~3,029 tokens).

“The decorator/base surface of @golemcloud/golem-ts-sdk (@agent() classes extending BaseAgent, @golemcloud/golem-ts-typegen) has been removed. The schema-driven API — defineAgent({...}).implement({...}) — is now the TypeScript authoring surface. This skill maps every old construct to its current replacement.”

— opening of SKILL.md by golemcloud, Custom licence
name
migrate-ts-decorator-sdk

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/migrate-ts-decorator-sdk of golemcloud/golem.

Open the folder on GitHubat commit c6a3029

Compare with similar skills

Migrate TS Decorator SDK next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Migrate TS Decorator SDK compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Migrate TS Decorator SDK this skillgolemcloud/golem1.5k—~3kAutomated safety check: PassCustom licence
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
MCP Server BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Nx Import

    nrwl/nx

    Import, merge, or combine repositories into an Nx workspace using nx import.

    29k GitHub starsUsed in 6 repos~3.5k tokens
    DevelopmentAuto-check passed

More from golemcloud/golem

All 289 skills in this repo
  • Moonbit C Binding

    golemcloud/golem

    Guide for writing MoonBit bindings to C libraries using native FFI.

    1.5k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Adding Dependencies

    golemcloud/golem

    Adding or updating crate dependencies in the Golem workspace.

    1.5k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Analysing CI Failures

    golemcloud/golem

    Analysing GitHub Actions CI failures from a run URL. An agent skill from golemcloud/golem.

    1.5k GitHub stars~862 tokensUpdated today
    Auto-check passed
  • Adds a built-in WASM plugin that is externally released and provisioned by the registry service.

    1.5k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • DB Migration Scripts

    golemcloud/golem

    Writing database migration SQL scripts. An agent skill from golemcloud/golem.

    1.5k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Debugging Hanging Tests

    golemcloud/golem

    Diagnosing and fixing hanging worker executor or integration tests.

    1.5k GitHub stars~879 tokensUpdated today
    Auto-check passed

Works with

Questions about Migrate TS Decorator SDK

What does Migrate TS Decorator SDK do?

Migrating a TypeScript Golem agent from the removed decorator/base API (@agent + BaseAgent) to the current schema-driven defineAgent API. Migrate TS Decorator SDK is an agent skill from golemcloud/golem. Migrating a TypeScript Golem agent from the removed decorator/base API (@agent + BaseAgent) to the current schema-driven defineAgent API.

When should I use Migrate TS Decorator SDK?

Migrate TS Decorator SDK fits situations like: porting an existing decorator-based TS agent; you see @agent()/extends BaseAgent/@endpoint/@description code that no longer compiles; asked to modernize a TS component to the current SDK.

How do I install Migrate TS Decorator SDK in Claude Code?

Run `npx skills add golemcloud/golem --skill migrate-ts-decorator-sdk -a claude-code`. Or copy the skill folder (.agents/skills/migrate-ts-decorator-sdk in golemcloud/golem) into .claude/skills/migrate-ts-decorator-sdk in your project. Claude Code loads it when a task matches its description.

How do I install Migrate TS Decorator SDK in Codex?

Run `npx skills add golemcloud/golem --skill migrate-ts-decorator-sdk -a codex`. Or copy the skill folder (.agents/skills/migrate-ts-decorator-sdk in golemcloud/golem) into .agents/skills/migrate-ts-decorator-sdk in your project. Codex loads it when a task matches its description.

Can I use Migrate TS Decorator SDK in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add golemcloud/golem --skill migrate-ts-decorator-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/migrate-ts-decorator-sdk, .gemini/skills/migrate-ts-decorator-sdk, .github/skills/migrate-ts-decorator-sdk and .opencode/skills/migrate-ts-decorator-sdk in your project.

What does Migrate TS Decorator SDK need to run?

Going by SKILL.md and its folder, Migrate TS Decorator SDK needs the command-line tools its instructions call (npx).

Does Migrate TS Decorator SDK access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Migrate TS Decorator SDK safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Migrate TS Decorator SDK use?

Migrate TS Decorator SDK has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Migrate TS Decorator SDK use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Migrate TS Decorator SDK?

Skills that share tags, products or a category with Migrate TS Decorator SDK: MCP Server Builder (anthropics/skills, 180k stars), Web Artifacts Builder (anthropics/skills, 180k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Migrate TS Decorator SDK?

golemcloud (a GitHub organization) maintains it in golemcloud/golem, which has 1,507 GitHub stars. The repository holds 289 skills in this directory. The repository was last updated on October 8, 2026.

Source: golemcloud/golem on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.