Logo: Debugging Empty Output

Debugging Empty Output

Organisatioun
friday-platform
debugging-empty-output

Loads when a workspace job tool returns `success: true, status: completed` AND (`summary: ""` OR `artifactIds: []` OR summary equals "Session completed without producing a summarizable document"). Diagnostic checklist for sessions that ran successfully but emitted nothing useful. Most common cause: the agent's prompt didn't instruct the LLM to call `complete()` for an `outputTo` action. Do NOT migrate Pattern A → Pattern B FSM as a fix — that's almost always wrong.

Add to TypingMind

Iwwersiicht

Editeurfriday-platform
Repositoryfriday-studio
Skill-Nummdebugging-empty-output
Stären
102
Forks
5
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    friday-platform huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Debugging Empty Output an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/friday-platform/friday-studio/tree/main/packages/system/skills/debugging-empty-output
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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/debugging-empty-output .claude/skills/debugging-empty-output
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Debugging Empty Output an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Debugging Empty Output automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Debugging Empty Output net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Debugging empty-output sessions

Symptom: session status: completed but the chat-tool wrapper got back nothing useful — empty summary, empty artifactIds, or the sentinel "Session completed without producing a summarizable document."

Diagnostic checklist

Walk in order. Each step has a concrete fix.

1. Read aiSummary.summary from describe_session

The daemon synthesizes a useful diagnosis post-completion. The SSE job-complete may have fired before aiSummary was ready, so the chat-tool wrapper's summary field can be empty even when describe_session has the right answer.

describe_session(sessionId) → check session.aiSummary.summary

If aiSummary.summary reads "completed without producing a summarizable document" → continue to step 2 (the agent didn't emit).

If aiSummary.summary describes what actually happened → surface that to the user. The job worked but the wrapper dropped the summary. Phase 2 of the system-skills remodel made buildSessionJobResult never return empty; if you're still seeing empty, you're on stale code.

2. Inspect agentBlocks[].toolCalls for complete

describe_session(sessionId) → session.agentBlocks[<last>].toolCalls

For an action with outputTo: response (or any outputTo), the runtime auto-injects a complete tool. The agent MUST call it.

  • If complete IS in toolCalls → check output: { response: "..." } for empty content. The agent called complete with nothing. Fix the prompt so the LLM puts the actual final text in the complete arg.
  • If complete is NOT in toolCalls → the agent never called the contracted exit. Fix: update the agent's prompt to explicitly instruct "When done, call the complete tool with {response: '<the full final text>'}. This is how the FSM captures your output."

See @friday/agent-action-handshake for the full contract.

3. Check the agent prompt's instructions

The most common pattern that causes silent emptiness:

"output ONLY the finished markdown report below as your final
message. Do not add any preamble..."

This prompt tells the LLM to stream prose. With outputTo set, the runtime expects the prose to come via complete(...) — not as a final assistant message. Replace with:

"When you have the report, call the `complete` tool with
`{response: '<the full markdown report>'}`. Do not stream the report
as text — the runtime captures it from `complete`."

4. Confirm via test invocation

After updating the prompt, fire the job again. The new session should show complete in toolCalls and a populated summary/artifactIds.

If still empty → recurse to step 2 with the new session's data, OR load @friday/debugging-tool-loops (the agent might be stuck calling search/fetch tools instead of finishing).

What NOT to do

  • Do NOT migrate the job from Pattern A (execution.strategy: sequential) to Pattern B (fsm:). Pattern A returns the final agent's text via the session natively. Migrating to Pattern B introduces the very complete-injection contract that you're fighting.
  • Do NOT add create_artifact to the agent's tools: list as a workaround. Platform tools (including create_artifact) auto-inject regardless of tools:. The agent already has it. The problem is the agent's prompt, not its tool surface.
  • Do NOT declare "platform bug" or "FSM wiring is broken." If you reach for that, you skipped step 2.

Cross-references

  • @friday/agent-action-handshake — the outputTo + complete injection contract.
  • @friday/debugging-broken-jobs — the triage entry point.
  • @friday/debugging-tool-loops — sibling skill for agent-stuck-in-tools.
  • @friday/writing-workspace-jobs — Pattern A vs B; what outputTo does.

Heefeg gestallte Froen

Wat mécht de KI-Skill Debugging Empty Output?

Loads when a workspace job tool returns `success: true, status: completed` AND (`summary: ""` OR `artifactIds: []` OR summary equals "Session completed without producing a summarizable document"). Diagnostic checklist for sessions that ran successfully but emitted nothing useful. Most common cause: the agent's prompt didn't instruct the LLM to call `complete()` for an `outputTo` action. Do NOT migrate Pattern A → Pattern B FSM as a fix — that's almost always wrong.

Firwat Debugging Empty Output op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Debugging Empty Output besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Debugging Empty Output an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/friday-platform/friday-studio/tree/main/packages/system/skills/debugging-empty-output an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Debugging Empty Output benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Debugging Empty Output benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Debugging Empty Output domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Debugging Empty Output gratis?

friday-platform huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇