is-empty_skill

This skill checks if text is null, empty, or whitespace, enabling conditional logic and data validation.
  • Python

9

GitHub Stars

2

Bundled Files

3 weeks ago

Catalog Refreshed

2 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstart where the catalogue uses aiagentskills.

npx veilstart add skill bdambrosio/cognitive_workbench --skill is-empty

  • Skill.md1.3 KB
  • tool.py566 B

Overview

This skill checks whether a piece of text is null, empty, or contains only whitespace. It provides a simple boolean result that tells you if content is effectively absent. Use it to validate input, filter results, or drive conditional logic in workflows.

How this skill works

The skill accepts a plain text string or note content and inspects it for meaningful characters. It returns True when the input is null, an empty string, or contains only whitespace (spaces, tabs, newlines). It returns False when any visible character appears in the text.

When to use it

  • Validate user-submitted notes or form fields before saving
  • Detect and filter out empty search results or API responses
  • Drive conditional branches in automation or plan workflows
  • Guard downstream processing from null or whitespace-only inputs
  • Short-circuit operations that require meaningful text

Best practices

  • Treat null and missing values the same as empty strings
  • Trim or normalize input only when you intentionally want to ignore surrounding whitespace
  • Use this check early to avoid expensive processing of empty content
  • Combine with length checks when you need a minimum content size
  • Consider locale or normalization only if your definition of 'visible character' is language-dependent

Example use cases

  • Validate that a note body contains content before saving to a database
  • Return a friendly message when a search query yields only empty items
  • Skip text analysis pipelines if input is empty to save compute
  • Set a flag used by downstream steps to indicate absence of content
  • Filter a list of strings to remove entries that are null or whitespace-only

FAQ

Yes. Newlines, tabs, and spaces are all considered whitespace and count as empty when no visible characters are present.

Is the check sensitive to characters like zero or punctuation?

No. Any visible character, including digits like '0' or punctuation, makes the content non-empty.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational