agentsclimarketplace

Empty payload sentinel guard

Skill vishuwa2004/cskill-agents/skills/empty-payload-sentinel-guard

Guard requests from closing instantly when a tool returns nothing by injecting the sentinel message and logging the event.From its SKILL.md

Install
npx -y skills add vishuwa2004/cskill-agents --skill empty-payload-sentinel-guard

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.2 KB, 415 tokens by cl100k_base, as published. Nobody here has run it

SKILL: Empty Payload Sentinel Guard

Domain: tool-orchestration
Trigger: Apply this when a tool_result block might legitimately be empty (shell commands with no stdout, MCP commands returning content: [], statements that finish silently) so the assistant still sees something to react to. Source Pattern: Distilled from reviewed tool-loop and result-shaping patterns.

Core Method

Run the same emptiness check used inside isToolResultContentEmpty: undefined/null, whitespace strings, empty arrays, or arrays whose text blocks are themselves empty count as empty. When the check fires, log tengu_tool_empty_result with the sanitized tool name and short-circuit the persistence path by returning the original block with content: "({toolName} completed with no output)", guaranteeing the model always sees at least one token even when the tool produced nothing.

Key Rules

  • Copy the normalized emptiness logic from isToolResultContentEmpty so structured arrays and whitespace-only strings are treated identically.
  • Call sanitizeToolNameForAnalytics before logging so GrowthBook metrics stay consistent.
  • Only swap the content; leave tool_use_id, tool_version, and other metadata untouched.
  • Keep the sentinel text stable—downstream budgeting, logging, and tests rely on the literal ({toolName} completed with no output) message.

Example Application

Invoke this guard inside maybePersistLargeToolResult before any size checks; if the guard fires, it returns the sentinel immediately and prevents the empty </function_results> tail from tricking Claude into ending the turn.

Anti-Patterns (What NOT to do)

  • Don’t reinject a sentinel into non-empty results or structured content; the guard is exclusively for truly empty outputs.
  • Don’t skip the analytics event—without it you lose signals that a tool ran but returned nothing.
  • Don’t persist an empty file just to explain emptiness; the guard rewrites the content in memory without writing disk files.

What ships with it: 1 file

977 B alongside SKILL.md

Gives 0 of the 12 instructions most quality gates skills give in 415 tokens

Counted across 1,195 of the 2,094 authors here whose files we hold, read 2026-08-07

  • Read the output and check the exit codein 54 of 1195, across 14 files
  • Verify requirements using a line-by-line checklistin 53 of 1195, across 12 files
  • Identify the verification command proving the claimin 51 of 1195, across 12 files
  • Run the full verification commandin 50 of 1195, across 11 files
  • Verify output confirms the claimin 49 of 1195, across 12 files
  • Check version control diff after agent delegationin 46 of 1195, across 6 files
  • State claim with evidencein 44 of 1195, across 4 files
  • Run the test suitein 33 of 1195, across 26 files
  • Keep state in memory by defaultin 27 of 1195, across 6 files
  • Make prototype runnable with one commandin 26 of 1195, across 5 files
  • Produce a verification reportin 25 of 1195, across 14 files
  • Detect the package manager from lockfilesin 24 of 1195, across 5 files

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 326,851. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.