Logo di Agent Action Handshake

Agent Action Handshake

Organizzazione
friday-platform
agent-action-handshake

Canonical reference for the contract between an FSM action and the agent it invokes. Loads when authoring or debugging any combination of: `type: llm` inline action, `type: agent` action with `outputTo`, `type: agent` action with `inputFrom`, agent prompts that need to coordinate with the action invoking them. Covers what the runtime auto-injects per invocation kind (platform tools, `complete` when `outputTo` is set), `outputTo` semantics, `inputFrom` resolution, the four invocation kinds.

Panoramica

Pubblicato dafriday-platform
Repositoryfriday-studio
Nome della skillagent-action-handshake
Stelle
102
Fork
5
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da friday-platform su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Agent Action Handshake in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/friday-platform/friday-studio/tree/main/packages/system/skills/agent-action-handshake
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/friday-platform/friday-studio.git /tmp/friday-studio
mkdir -p .claude/skills
cp -r /tmp/friday-studio/packages/system/skills/agent-action-handshake .claude/skills/agent-action-handshake
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Agent Action Handshake in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Agent Action Handshake non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Agent Action Handshake non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Agent ↔ FSM-action handshake

This is the contract between an FSM action and the agent it invokes. Most "platform bug" misdiagnoses live in the gap between "how the FSM authors the action" and "what the agent prompt expects." Read this once, then ground every job/agent edit in it.

The four invocation kinds

FSM actionReferenced agentRuntime path
type: llm inlinenone — the action carries provider, model, prompt, tools directlyfsm-engine.ts case "llm"
type: agentagents.<id> block with type: llmfsm-engine.ts case "agent" → runAgent → from-llm.ts
type: agentagents.<id> with type: atlascase "agent" → runAgent → bundled-agent handler
type: agentagents.<id> with type: usercase "agent" → runAgent → ProcessAgentExecutor (NATS subprocess)

Each path has the same outputTo contract but different tool surfaces and prompt-composition rules.

What the runtime auto-injects

Regardless of invocation kind, the LLM-side agent (any agent that's type: llm) sees:

  • Platform tools — full PLATFORM_TOOL_NAMES set from packages/agent-sdk/src/platform-tools.ts (~35 entries spanning memory, artifacts, fs, shell/data, state, HITL, and flow-control like delegate). These inject on top of the agent's config.tools allowlist regardless of what's in tools:. See source for the exact set.
  • complete tool — injected when the action declares outputTo. The LLM MUST call this to surface output (see "The complete contract" below).
  • failStep tool — injected for inline type: llm FSM actions (see fsm-engine.ts case "llm"). The LLM calls this to deliberately fail the step with a structured reason. NOT injected on the type: agent → type: llm path that goes through from-llm.ts; an agent reachable through both shapes can't assume the tool is present.

What's NOT auto-injected:

  • MCP server tools — those come from agents.<id>.config.tools (workspace-scope MCP only) or from the inline type: llm action's tools: array.

The complete contract

The single most important rule: if an action has outputTo, the agent's prompt MUST instruct the LLM to call complete with the structured output.

When the action is:

yaml
- type: agent
  agentId: stale-report-agent
  outputTo: response

The runtime injects a complete tool with input schema {response: string} (or richer if outputType is declared). The agent's prompt should end with:

When done, call the `complete` tool with:
  { "response": "<the full final text>" }
This is how the FSM captures your output. Do not stream the text as
your final assistant message — the runtime reads it from `complete`.

Without this instruction, the LLM streams prose, never calls complete, and the runtime throws:

LLM action with outputTo 'response' did not call complete

outputType and structured output

When you set outputType: SomeDoc, the runtime looks up fsm.documentTypes.SomeDoc for a JSON Schema and feeds it to the complete tool's input schema. The LLM must produce data matching the schema.

yaml
documentTypes:
  EmailDraft:
    type: object
    properties:
      to: { type: string }
      subject: { type: string }
      body: { type: string }
    required: [to, subject, body]

states:
  drafting:
    entry:
      - type: agent
        agentId: drafter
        outputTo: draft
        outputType: EmailDraft

The agent's prompt should know about to, subject, body — either from the prompt body or from a worked example.

inputFrom and document chaining

inputFrom reads a prior step's outputTo document and feeds it into the next step's input. String form chains one prior; array form concatenates multiple labeled.

yaml
states:
  draft:
    entry:
      - type: agent
        agentId: drafter
        outputTo: draft-doc
      - type: emit
        event: DONE
    on: { DONE: { target: review } }
  review:
    entry:
      - type: agent
        agentId: reviewer
        inputFrom: draft-doc       # reads from draft-doc

Bulky inputs are passed as artifactRefs plus a compact summary — the agent reads the full data via parse_artifact(<id>) if needed.

Pattern A vs Pattern B

Two job shapes:

  • Pattern A (execution.strategy: sequential): list of agent IDs that run in order. Final agent's assistant text becomes the session output natively. Use when the work is a single LLM conversation, no document chaining needed, output is plain text.
  • Pattern B (fsm:): state machine with named states, entry actions, and explicit outputTo documents. Required when you need branching, multi-step document flow, parallel actions, or HITL elicitation.

Don't migrate Pattern A → Pattern B "to get outputTo." The migration introduces the complete injection contract, which is the single most common source of empty-output failures. If a Pattern A job is producing empty output, fix the agent's prompt first.

Cross-references

  • @friday/writing-workspace-jobs — FSM authoring shapes.
  • @friday/workspace-api — agent CRUD.
  • @friday/delegate-handoff — sibling contract for the parent ↔ delegate-child boundary.
  • @friday/debugging-empty-output — what happens when this contract is violated.
  • @friday/debugging-runtime-errors — did not call complete and related errors.

Domande frequenti

Cosa fa la skill IA Agent Action Handshake?

Canonical reference for the contract between an FSM action and the agent it invokes. Loads when authoring or debugging any combination of: `type: llm` inline action, `type: agent` action with `outputTo`, `type: agent` action with `inputFrom`, agent prompts that need to coordinate with the action invoking them. Covers what the runtime auto-injects per invocation kind (platform tools, `complete` when `outputTo` is set), `outputTo` semantics, `inputFrom` resolution, the four invocation kinds.

Perché usare Agent Action Handshake su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Agent Action Handshake è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Agent Action Handshake in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/friday-platform/friday-studio/tree/main/packages/system/skills/agent-action-handshake. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Agent Action Handshake?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Agent Action Handshake?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Agent Action Handshake: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Agent Action Handshake è gratuita?

È pubblicata su GitHub da friday-platform. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇