A deterministic utility to count string length for text with strict character limits using Python-based measurement.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install character-count
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install character-count using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Character Count skill is a portable and self-contained tool designed for developers and AI agents who need to ensure text adheres to strict character boundaries. Unlike manual estimation which can be prone to error, this Openclaw Skills utility uses a dedicated Python script to provide exact measurements of final drafts, including spaces, punctuation, and hashtags.
By integrating this skill into your workflow, you can prevent truncation and submission errors on platforms like X (Twitter), GitHub, or internal CMS systems. It acts as a deterministic local gate, ensuring that any text—from commit messages to social media replies—is validated before being finalized or posted.
To use this component of Openclaw Skills, ensure you have Python 3.8 or newer installed. You can invoke the script directly from the skill directory:
# Standard usage via stdin (recommended to preserve formatting)
printf '%s' "Your text here" | python3 scripts/character_count.py --limit 280 --json
# Alternative usage via argument
python3 scripts/character_count.py --limit 280 --json --text "Hello world"
The skill provides structured output to facilitate easy parsing by other tools or agents. When using the --json flag, the schema is as follows:
| Field | Type | Description |
|---|---|---|
chars |
Integer | The exact number of characters in the provided text. |
limit |
Integer | The maximum character threshold configured. |
remaining |
Integer | The difference between the limit and the actual count. |
ok |
Boolean | Returns true if the count is less than or equal to the limit. |
printf to avoid the common trailing newline issues associated with echo.Loading
An intelligent presentation assistant that leverages Baidu AI to transform topics into fully designed slide decks with context-aware styling.

A professional-grade market intelligence skill for querying news, policy changes, and supply-demand events in the bulk commodity industry.

A specialized AI image generation skill that interfaces with the Neta API to create custom furry artwork from text descriptions.

A versatile file transformation tool for converting documents, images, audio, and video between dozens of industry-standard formats.

A professional AI agent team deployment skill designed to automate Xiaohongshu content formatting, browser-based publishing, and operations management.

A comprehensive B2B lead tracking and visitor identification skill that helps AI agents qualify prospects and monitor website activity.








































