# Wordcount

> Word Count

- Skill: `duthaho/wordcount-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add duthaho/wordcount-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/duthaho/wordcount-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: duthaho (https://skillmd.com/u/duthaho)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/duthaho/wordcount-2

---


# Word Count

Count the words in a file the user specifies.

## Procedure

1. Identify the file path the user mentioned. If no path is given, ask for one — do not guess.
2. Read the file with the Read tool.
3. Split the content on whitespace. A "word" is a non-empty token between whitespace runs.
4. Reply with exactly one line: `<N> words in <path>`.

## Constraints

- Do not output anything else.
- If the file is empty, reply `0 words in <path>`.
- If the file cannot be read, reply `cannot read <path>`.

