word-count

Count words in provided text using whitespace delimitation.

10|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill word-count
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: word-count
Source: https://github.com/bdambrosio/Cognitive_workbench/tree/main/src/tools/word-count
Command: npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill word-count

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a quick and reliable way to determine the word count of any given text, helping users understand document length for various processing needs.

Core Features & Use Cases

  • Deterministic Word Counting: Accurately counts words based on whitespace separation.
  • Input Flexibility: Accepts text from notes or variables.
  • Output Clarity: Provides both a human-readable string and a numerical count.
  • Use Case: Before deciding to summarize a long document, use this skill to quickly check its word count and assess if summarization is necessary.

Quick Start

Use the word-count skill to count the words in the text stored in the variable 'my_document_text'.

Frequently Asked Questions about word-count

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I count words in a text document to check its length?

You can count words in a text document by passing the text variable to this Skill, which uses whitespace delimitation to accurately determine document length. It outputs both a human-readable string and a numerical count.

What is the best way to measure document length before summarizing text?

The best way to measure document length before summarizing text is by counting words to assess if the content requires further processing. This Skill splits text using whitespace delimitation and returns a numerical count to gauge summarization needs.

Can I use text from variables as input for word count analysis?

Yes, you can use text from variables as input for word count analysis. The Skill accepts text directly from notes or variables, applying whitespace delimitation to calculate the total numerical count.

Does word counting based on whitespace delimitation work for all text formats?

Word counting based on whitespace delimitation works for any text format where words are separated by spaces. It relies on basic string manipulation to split text, making it suitable for standard text analysis tasks.

What output format does the text analysis word counter provide?

The text analysis word counter provides output clarity by returning both a human-readable string and a numerical count. This allows you to directly use the numerical value for content metrics or display the string for user feedback.