🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Character Count

by @evandataforge

Count string length deterministically for text with hard limits. Use this skill when a post, reply, caption, commit message, or other text must stay within a...

Versionv0.1.0
πŸ“‹ Tips & Best Practices

  • Count the exact final text, including spaces, punctuation, hashtags, and URLs.
  • Do not add or remove characters after counting unless you count again.
  • Use printf '%s' instead of echo to avoid introducing a trailing newline.
  • If the script receives no text, treat that as a calling error and fix the invocation before proceeding.
  • πŸ”’ Constraints

  • Never estimate character counts manually.
  • Always count the final text exactly as it will be posted or saved.
  • If the text is too long, rewrite it and count again.
  • Prefer the JSON output mode for deterministic downstream use.
  • Do not describe the result as platform-accurate unless the target platform uses plain string length.
  • View on ClawHub
    TERMINAL
    clawhub install character-count

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’