Skip to content
Back to skills

Word Count

ASecurity

Count words in text. Use to determine length of a document, e.g. to determine if it needs to be summarized before further use

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
businesspython

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill word-count --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Word Count?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Word Count
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-word-count/badge)](https://www.skillsdirectory.com/skills/bdambrosio-word-count)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: word-count
type: python
description: "Count words in text. Use to determine length of a document, e.g. to determine if it needs to be summarized before further use"
---

# word-count

Simple deterministic word counting for text analysis.

## Input

- `target`: Note ID or variable containing text to count

## Output

Success (`status: "success"`):
- `value`: String with word count (e.g., "Word count: 6")
- `extra.count`: Integer count

## Behavior

- Simple whitespace-based counting
- Fast and reliable
- Works on any text content

## Planning Notes

- Use to check document length before processing
- Useful for determining if summarization is needed

## Example

```json
{"type":"word-count","target":"$text","out":"$count"}
```

Files in this skill

  • Skill.md745 B
  • tool.py1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…