Keyphrase Counter for Openclaw

A command-line tool designed to analyze text datasets and extract the most frequently occurring keyphrases.

askjda
v1.0.0
Apr 8, 2026
0
588
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install keyphrase-counter

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install keyphrase-counter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Keyphrase Counter?

The Keyphrase Counter is an essential utility for developers working with Openclaw Skills who need to perform rapid text analysis. It takes raw text or JSON input and performs a statistical count of recurring phrases, providing a clear overview of the most prominent terms. This tool is built to be minimalist and efficient, avoiding complex GUIs in favor of a robust command-line interface that fits perfectly into developer workflows and automation scripts.

By leveraging this skill, users can quickly transform unstructured text into structured data reports. Whether you are analyzing log files, customer reviews, or technical papers, the Keyphrase Counter helps you identify patterns and key terminology with precision and speed.

Keyphrase Counter Use Cases

  • Content analysis for SEO to find recurring themes in competitor articles.
  • Log file parsing to identify the most common error messages or events.
  • Sentiment and keyword extraction from customer feedback datasets.
  • Research data processing to categorize high-frequency terminology in academic texts.

How Keyphrase Counter Works

  1. The user initializes the process by placing a data file in the skill directory.
  2. The main script is executed with parameters defining the input file, the number of results desired, and the output path.
  3. The engine parses the text, identifying unique phrases and calculating their frequency of occurrence.
  4. It ranks these phrases from highest to lowest frequency.
  5. The results are exported to the specified JSON or TXT file while simultaneously printing a summary to the standard output.

Keyphrase Counter Setup

To get started with this skill in your environment:

# Prepare your data file
touch input.txt

# Run the counter to find the top 20 phrases
python main.py --input input.txt --top-k 20 --output results.json

If you encounter issues, use the help flag to view all configuration parameters:

python main.py --help

Keyphrase Counter Data Schema & Taxonomy

Argument Description Required
--input The path to your source data file (TXT or JSON) Yes
--top-k The number of high-frequency phrases to include in the output No
--output The filename and format for the saved results (JSON/TXT) No

The output JSON structure provides a clean array of objects, each containing the phrase and its associated count, making it easy to pipe into other Openclaw Skills.

Keyphrase Counter Advanced Features

  • Full CLI support allows for integration into automated shell scripts and CI/CD pipelines.
  • Flexible output formatting supports both JSON for programmatic use and TXT for human readability.
  • Explicit data processing boundaries ensure no unexpected file modifications occur outside the specified input.
  • Error handling includes a comprehensive help menu for quick troubleshooting of parameter syntax.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*