Agent skill

Add Config Option

by restatedev in restatedev/sdk-typescript

When the user asks to add a new option/field/config to service, handler, endpoint, ServiceOptions, HandlerOpts, ObjectOptions, WorkflowOptions, or the discovery schema

MITAuto-check passedTesting & QA

Install Add Config Option

skills CLI
$ npx skills add restatedev/sdk-typescript --skill add-config-option -a claude-code

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

GitHub CLI
$ gh skill install restatedev/sdk-typescript add-config-option --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/restatedev/sdk-typescript.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-config-option .claude/skills/add-config-option && 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
add-config-option
GitHub stars
125
Token cost
~623 tokens
SKILL.md length
239 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

When the user asks to add a new option/field/config to service, handler, endpoint, ServiceOptions, HandlerOpts, ObjectOptions, WorkflowOptions, or the discovery schema

  • Works in 2 steps: Discovery options — sent to the Restate… → Runtime-only options — used only by the…
  • Asks to add a new option/field/config to service
  • SKILL.md covers All options: Type definitions…, Discovery options only: Wire…, Runtime-only options: Wire… and Verification
  • Calls npx

What it does

Add Config Option is an agent skill from restatedev/sdk-typescript. When the user asks to add a new option/field/config to service, handler, endpoint, ServiceOptions, HandlerOpts, ObjectOptions, WorkflowOptions, or the discovery schema

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

It sits in Testing & QA. The repository describes itself as: Restate SDK for JavaScript/Typescript. The licence is MIT.

When your agent uses it

  • Asks to add a new option/field/config to service
  • WorkflowOptions
  • The discovery schema

Example prompts

  • “/add-config-option”

Requirements

  • Node.js

Workflow steps

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

  1. Discovery options — sent to the Restate server during service discovery (e.g. ingressPrivate, enableLazyState, timeouts). These need to be…
  2. Runtime-only options — used only by the SDK at execution time, never sent to the server (e.g. asTerminalError, serde). These skip the…

What it can do on your machine

Read from SKILL.md and the folder at commit 79b8358. 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

Add Config Option loads about 623 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 239 words of instructions outside code blocks.

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

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

The full file from restatedev/sdk-typescript at commit 79b8358, republished under its MIT licence (© restatedev). 239 words, ~623 tokens.

Download SKILL.mdSave it as .claude/skills/add-config-option/SKILL.md (or your agent's skills folder).
name
add-config-option
description
When the user asks to add a new option/field/config to service, handler, endpoint, ServiceOptions, HandlerOpts, ObjectOptions, WorkflowOptions, or the discovery schema
user-invocable
false

Adding a config option to the Restate TypeScript SDK

There are two kinds of config options:

  1. Discovery options — sent to the Restate server during service discovery (e.g. ingressPrivate, enableLazyState, timeouts). These need to be in the discovery schema.
  2. Runtime-only options — used only by the SDK at execution time, never sent to the server (e.g. asTerminalError, serde). These skip the discovery layer entirely.

Ask the user which kind if unclear.

All options: Type definitions — packages/libs/restate-sdk/src/types/rpc.ts

  1. ServiceHandlerOpts<I, O> — add the field with JSDoc. All handler types inherit this.
    • If object/workflow-only (like enableLazyState): add to ObjectHandlerOpts / WorkflowHandlerOpts instead.
  2. ServiceOptions — add the field with JSDoc.
    • If object/workflow-only: add to ObjectOptions / WorkflowOptions instead.
    • DefaultServiceOptions in endpoint.ts = ServiceOptions & ObjectOptions & WorkflowOptions, so endpoint-level gets it free.
  3. HandlerWrapper.from() — add opts?.fieldName to the positional constructor call.
    • Object/workflow-only fields: opts !== undefined && "fieldName" in opts ? opts?.fieldName : undefined
  4. HandlerWrapper constructor — add public readonly fieldName?: Type parameter.

Discovery options only: Wire through discovery

packages/libs/restate-sdk/src/endpoint/discovery.ts

Add the field to both Service and Handler interfaces. Use wire types (number for millis, boolean for flags).

packages/libs/restate-sdk/src/endpoint/components.ts
  • commonServiceOptions(): fieldName: options?.fieldName,
  • commonHandlerOptions(): fieldName: wrapper.fieldName,
  • Durations: wrap with millisOrDurationToMillis() + !== undefined guard
  • Object/workflow-only in commonServiceOptions: "fieldName" in options guard

Runtime-only options: Wire through execution

Options that affect handler execution but not discovery (like asTerminalError, serde) just need to be read where the handler is invoked. Check how existing runtime options are consumed in components.ts handler classes.

Verification

Run npx tsc --noEmit from packages/libs/restate-sdk/.

© restatedev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/add-config-option of restatedev/sdk-typescript.

Open the folder on GitHubat commit 79b8358

Compare with similar skills

Add Config Option 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.

Add Config Option compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Config Option this skillrestatedev/sdk-typescript125—~623Automated safety check: PassMIT
Web Application Testinganthropics/skills180k51 repos~966Automated safety check: PassApache-2.0
Diagnosing Bugsfossasia/eventyay-interpretation1.6k32 repos~2.1kAutomated safety check: PassApache-2.0
TDDpietheinstrengholt/rssmonster56430 repos~906Automated safety check: PassMIT
TDD WorkflowhellangleZ/burn-in-cceverywhere-ralph11211 repos~2.4kAutomated safety check: PassNone
TDDsanity-io/sanity6.4k20 repos~1kAutomated safety check: PassMIT

Similar skills

  • Web Application Testing

    anthropics/skills

    Official

    Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.

    180k GitHub starsUsed in 51 repos~966 tokens
    Testing & QAAuto-check passed
  • Diagnosing Bugs

    fossasia/eventyay-interpretation

    Diagnosis loop for hard bugs and performance regressions. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 32 repos~2.1k tokens
    Testing & QAAuto-check passed
  • TDD

    pietheinstrengholt/rssmonster

    Test-driven development. An agent skill from pietheinstrengholt/rssmonster.

    564 GitHub starsUsed in 30 repos~906 tokens
    Testing & QAAuto-check passed
  • TDD Workflow

    hellangleZ/burn-in-cceverywhere-ralph

    A skill your agent uses when writing new features, fixing bugs, or refactoring code.

    112 GitHub starsUsed in 11 repos~2.4k tokens
    Testing & QAAuto-check passed
  • TDD

    sanity-io/sanity

    Official

    Test-driven development with red-green-refactor loop. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 20 repos~1k tokens
    Testing & QAAuto-check passed
  • Context Driven Development

    Ibrahim-3d/orchestrator-supaconductor

    A skill your agent uses when working with Conductor's context-driven development methodology, managing project context artifacts, or understanding the relationship between product.md, tech-stack.md…

    381 GitHub starsUsed in 9 repos~2.9k tokens
    Testing & QAAuto-check passed

More from restatedev/sdk-typescript

  • Run SDK Tests

    restatedev/sdk-typescript

    Run the Restate SDK conformance test suite locally against this SDK's Docker image.

    125 GitHub stars~745 tokensUpdated 3 days ago
    Auto-check passed
  • Update SDK Test Contracts

    restatedev/sdk-typescript

    Update the SDK test service implementations to match a new version of the e2e conformance contracts.

    125 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Add E2E Test

    restatedev/sdk-typescript

    When the user asks to add a new e2e test to the restate-e2e-services package

    125 GitHub stars~910 tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Add Config Option

What does Add Config Option do?

When the user asks to add a new option/field/config to service, handler, endpoint, ServiceOptions, HandlerOpts, ObjectOptions, WorkflowOptions, or the discovery schema. Add Config Option is an agent skill from restatedev/sdk-typescript.

When should I use Add Config Option?

Add Config Option fits situations like: asks to add a new option/field/config to service; workflowOptions; the discovery schema.

How do I install Add Config Option in Claude Code?

Run `npx skills add restatedev/sdk-typescript --skill add-config-option -a claude-code`. Or copy the skill folder (.claude/skills/add-config-option in restatedev/sdk-typescript) into .claude/skills/add-config-option in your project. Claude Code loads it when a task matches its description.

How do I install Add Config Option in Codex?

Run `npx skills add restatedev/sdk-typescript --skill add-config-option -a codex`. Or copy the skill folder (.claude/skills/add-config-option in restatedev/sdk-typescript) into .agents/skills/add-config-option in your project. Codex loads it when a task matches its description.

Can I use Add Config Option 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 restatedev/sdk-typescript --skill add-config-option -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-config-option, .gemini/skills/add-config-option, .github/skills/add-config-option and .opencode/skills/add-config-option in your project.

What does Add Config Option need to run?

Going by SKILL.md and its folder, Add Config Option needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Add Config Option 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 Add Config Option 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 Add Config Option use?

Add Config Option is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Config Option use?

About 623 tokens (SKILL.md is roughly 2.5k 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 Add Config Option?

Skills that share tags, products or a category with Add Config Option: Web Application Testing (anthropics/skills, 180k stars), Diagnosing Bugs (fossasia/eventyay-interpretation, 1.6k stars), TDD (pietheinstrengholt/rssmonster, 564 stars) and TDD Workflow (hellangleZ/burn-in-cceverywhere-ralph, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Config Option?

restatedev (a GitHub organization) maintains it in restatedev/sdk-typescript, which has 125 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 6, 2026.

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