AGENT SKILL

typescript-sdk

Guide work on the Strands TypeScript SDK (@strands-agents/sdk), including agents, tools, providers, MCP, hooks, middleware, interventions, plugins, memory, sessions, storage, sandboxing, telemetry, multi-agent orchestration, examples, packaging, and workspace commands.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
typescript-sdk
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Guide work on the Strands TypeScript SDK (@strands-agents/sdk), including agents, tools, providers, MCP, hooks, middleware, interventions, plugins, memory, sessions, storage, sandboxing, telemetry, multi-agent orchestration, examples, packaging, and workspace commands.
disable-model-invocation
true

02 资源文件 7

03 SKILL.md 正文

TypeScript SDK

Use this sub-skill when the task touches the Strands TypeScript SDK or the @strands-agents/sdk package in a Strands Agents checkout.

Start here

  1. Read overview.md for scope, boundaries, package shape, and the Node/browser split.
  2. Read api-reference.md for public exports, classes, config interfaces, and naming differences from Python.
  3. Read workflows.md for implementation playbooks and command selection.
  4. Read testing-and-maintenance.md before validating, packaging, or refreshing dependencies.
  5. Read troubleshooting.md when a check, example, provider, or browser flow fails.
  6. Use ts-core-check.sh for focused workspace checks and workspace-cli.sh for common strandly-style workflows.

Use this sub-skill for

  • Agent, AgentConfig, invoke/stream, snapshots, checkpoints, interrupts, and result handling.
  • Zod and JSON-schema tools, tool executors, direct tool calls, and MCP tools.
  • Model provider classes, config interfaces, streaming events, token counting, and provider error translation.
  • Hooks, middleware, interventions, plugins, retry strategy, context management, memory, session, storage, sandbox, and telemetry.
  • Multi-agent Graph, Swarm, nodes, edges, state, hooks, and snapshot/resume behavior.
  • strands-ts examples, package exports, workspace scripts, browser bundle checks, and package tarball checks.

Route elsewhere

  • Python SDK implementation or Python-specific API parity: use python-sdk.
  • Docs-site MDX, snippets, sourceLinks, or generated API docs: use docs-site.
  • The docs-search MCP server package: use mcp-server.
  • AWS-provisioned infrastructure checks are out of default scope unless the task explicitly selects them.

Operating rules

  • Preserve cross-SDK parity: identifiers match with language idiom, single-word literals match exactly, multi-word literals use TS camelCase and Python snake_case through explicit maps.
  • Use named exports only; public surface changes must update the correct barrel and package.json export entry when needed.
  • Keep internal exports out of the root barrel and mark intentionally internal symbols with @internal when they cross files.
  • Class and interface signatures require explicit return types, object shapes prefer interface, and source/test filenames use kebab-case.
  • Treat Node-only and browser-safe code as separate surfaces; run browser bundle checks before claiming browser safety.
  • Keep provider credentials, Playwright/browser setup, Docker telemetry, and live integrations as explicit optional checks.

Fast path

  1. Identify whether the task is runtime API, provider/model, tools/MCP, multi-agent, browser, example, package/dependency, or test-only.
  2. Read the closest reference and check the public export surface before editing.
  3. Use the smallest relevant test slice first; escalate to package, browser, or integration checks only when the task requires it.
  4. If a behavior has a Python counterpart, compare the sibling route and the root cross-SDK guidance before changing names or hook events.
  5. Record any skipped Node, browser, provider, or Docker checks in the final handoff rather than implying they passed.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351