golemcloud/golem/golem-fire-and-forget-ts

Claude Code and agent skill by golemcloud/golem

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Triggering an agent invocation without waiting for the result in a TypeScript Golem project. Use when the user asks about fire-and-forget calls, async triggers, or enqueuing agent work.

Install

npx vskill@latest install golemcloud/golem/golem-fire-and-forget-ts

SKILL.md

The same SKILL.md was published earlier as golemcloud/golem/golem-fire-and-forget-ts.

Fire-and-Forget Agent Invocation (TypeScript)

Overview

A fire-and-forget call enqueues a method invocation on the target agent and returns immediately without waiting for the result. The target agent processes the invocation asynchronously.

Usage

Every method on a definition RPC client has a .trigger() variant. It takes the same input record as the awaited call but returns void immediately:

typescript
import { CounterAgent } from './counter-agent.js';
const counter = CounterAgent.client.upsert({ name: 'my-counter' });
// Fire-and-forget — returns immediately
counter.increment.trigger(); // input: {}
// With arguments
const processor = DataProcessor.client.upsert({ name: 'pipeline-1' });
processor.processBatch.trigger({ batch: batchData });

For an agent in another component, the generated guest client exposes the same .trigger() method, but its constructor uses flattened id parameters:

typescript
import { CounterAgent } from 'counter-agent-guest-client';
CounterAgent.upsert('my-counter').increment.trigger();

See the golem-call-another-agent-ts skill for the required golem.yaml and tsconfig.json setup. Use the definition's .client for same-component calls.

When to Use

  • Breaking RPC cycles: If agent A calls agent B and B needs to call back to A, use .trigger() for the callback to avoid deadlocks
  • Background work: Enqueue work on another agent without blocking the current agent
  • Fan-out: Trigger work on many agents in parallel without waiting for all results
  • Event-driven patterns: Notify other agents about events without coupling to their processing time

Example: Breaking a Deadlock

typescript
import { AgentA } from './agent-a.js';
import { AgentB } from './agent-b.js';
// In AgentA — calls AgentB and waits
const b = AgentB.client.upsert({ name: 'b1' });
const result = await b.doWork({ data }); // OK: awaited call
// In AgentB — notifies AgentA without waiting (would deadlock if awaited)
const a = AgentA.client.upsert({ name: 'a1' });
a.onWorkDone.trigger({ result }); // OK: fire-and-forget

CLI Equivalent

From the command line, use --trigger (or -t) to enqueue an invocation without waiting:

shell
golem agent invoke --trigger 'CounterAgent("my-counter")' increment

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,521
Repository forks
211
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/golemcloud/golem/golem-fire-and-forget-ts/badge)](https://verified-skill.com/skills/golemcloud/golem/golem-fire-and-forget-ts)

Something wrong with this skill or its page? Tell us.