Index of every page on this site: llms.txt
All skills
terseai avatar

/durable-actors-quickstart

@3deae88
by Terse AIterseai/durable-actors376 stars
38
Run it yourself

Use when the user wants to build an app with Durable Actors or Terse actors, from scaffold to local dev to deploy

Use this Skill: https://skilld.dev/gh/terseai/durable-actors/durable-actors-quickstart

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈35 tokens for metadata: the name and description. ≈562 when used: this file.

Description uses 1.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈141 characters, or 1.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Durable Actors Quickstart

Stand up a minimal Terse Durable Actors project from the user's idea locally. Keep it minimal by design: local setup, no publish step just yet.

Workflow

  1. Ensure all dependencies are installed (bun). Default to using the managed service terse cli unless explicitly asked to use the durable-actors cli or the open source CLI is already installed or the open source version is explicitly asked for.
  2. Run terse init, giving a suitable name for the project if the user doesn't suggest one already and install the project dependencies.
  3. Present a short plan and CONFIRM before building features beyond the template.
  4. Stand up the actor dev server.
  5. Build out the user's idea.
  6. Generated a typed SDK to be used by backend/frontend.
  7. Make sure to verify the solution including typechecking and testing out end to end at least once.
  8. When done, offer to open the observability UI. Also if on the managed version, offer to deploy their project into the cloud. After a deploy, regenerate the client against the deployed actors and rerun the end-to-end test against the cloud.

Rules

  • For web apps with frontend and backend: Backend calls actor methods over RPC and issues WebSocket grants. The frontend never uses RPC; it connects directly to the actor over WebSocket.
  • For the CLI, use --help to understand how to use the CLI.
  • Read the type definitions in durable-actors
  • Use docs.useterse.ai if unclear
  • Use https://github.com/TerseAI/Terse-Examples if you want to see what the templates look like before installing them.
  • Mark durable fields with @Persisted; anything else is lost on restart. @Persisted saves on assignment, so reassign arrays and objects (this.list = [...this.list, x]) instead of mutating them in place.
  • Never edit generated/ by hand.
  • Do not rerun init once it has succeeded.
  • Do not put TERSE_API_KEY in client side code like a browser or a CLI installed on a user's computer.
  • Never ask the user to paste an API key into the chat, and never print or read .env. Have the user write the key into the gitignored .env themselves.
  • Every method on the actor class is an actor method and must be async, including Typescript private ones. Use #private for helpers.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts21d3 checks · Risk SAFE
  • Gen Agent Trust Hub21d

    The skill is safe and follows security best practices. It explicitly instructs the agent to avoid handling sensitive API keys directly, directing users to manage them via environment files. All external dependencies, CLI tools, and repositories are official resources provided by the vendor.

  • Socket21d

    No alerts

  • Snyk21d

    Risk: LOW · No issues

Signed by skilld at 3deae88. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago

README badge

README badge for terseai/durable-actors