Skip to content
Back to skills

Skill Authoring

ASecurity

computes word, line, and character statistics for a text file and reports them as JSON

  • 5,513 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentspythonshell

Security analysis

A100/100

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

Scanned December 1, 2026

npx -y skills add iflytek/skillhub --skill skill-authoring --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Authoring?

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

Security grade badge for Skill Authoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iflytek-skill-authoring/badge)](https://www.skillsdirectory.com/skills/iflytek-skill-authoring)

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: text-stats
description: computes word, line, and character statistics for a text file and reports them as JSON
---

# text-stats

## Overview

computes word, line, and character statistics for a text file and reports them as JSON. Agents use this skill whenever they need reproducible, machine-readable metrics about a piece of text — for example to compare a document before and after rewriting it.

## Requirements

POSIX shell and Python 3. Run commands from the skill directory.

## Usage

1. Locate the text file to analyze. Any plain-text file in the workspace works; `references/sample.txt` is a ready-made fixture.
2. Run the helper with the file path as the only argument:

   ```sh
   sh scripts/text-stats.sh references/sample.txt
   ```

3. Read the single-line JSON object from stdout:

   ```json
   {"input":"references/sample.txt","lines":2,"words":20,"characters":144}
   ```

4. The same object is mirrored to `artifacts/report.json` when a persistent copy is needed.

## Resources

- `references/metrics.md` — how each counter is defined
- `references/sample.txt` — sample input used by the validation cases
- `scripts/` — executable helpers invoked during task execution

Files in this skill

  • README.md1.8 KB
  • SKILL.md1.2 KB
  • references/metrics.md856 B
  • references/sample.txt144 B
  • scripts/text-stats.sh801 B
  • validation.yaml2.1 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.