Get the FREE Ultimate OpenClaw Setup Guide →

simple-formatter

npx machina-cli add skill cisco-ai-defense/skill-scanner/simple-formatter --openclaw
Files (1)
SKILL.md
615 B

Simple Text Formatter

This skill formats text according to style guidelines.

Features

  • Capitalize sentences
  • Fix spacing
  • Apply punctuation rules

Usage

When the user provides text to format, apply the following rules:

  1. Capitalize first letter of sentences
  2. Ensure single space after periods
  3. Remove trailing whitespace

Example

Input: "hello world.this is a test." Output: "Hello world. This is a test."

Source

git clone https://github.com/cisco-ai-defense/skill-scanner/blob/main/evals/test_skills/safe/simple-formatter/SKILL.mdView on GitHub

Overview

Simple-formatter formats text according to style guidelines. It focuses on capitalizing sentences, fixing spacing, and applying punctuation rules to produce clean, publication-ready text. This makes user-generated content consistent and easier to read.

How This Skill Works

The skill reads input text and applies three rules: capitalize the first letter of each sentence, ensure a single space after periods, and remove trailing whitespace. It then outputs the reformatted text, preserving the core content while improving readability.

When to Use It

  • Cleaning and standardizing user-submitted content before display
  • Preparing notes or transcripts for publication or documentation
  • Formatting blog drafts or articles for consistent presentation
  • Post-OCR text cleanup to fix spacing after sentences
  • Formatting chat messages or app responses for readability

Quick Start

  1. Step 1: Feed the text you want formatted into the simple-formatter skill.
  2. Step 2: Run the formatter to apply capitalization, spacing, and trailing whitespace rules.
  3. Step 3: Use the resulting clean text in your document, UI, or publication.

Best Practices

  • Test with strings of varying sentence lengths to validate capitalization
  • Include inputs with missing or extra spaces after periods to verify spacing fixes
  • Trim trailing whitespace and verify output has no trailing spaces
  • Run on multi-line or paragraph text to ensure consistent formatting across lines
  • Review results in the target UI or document to confirm readability

Example Use Cases

  • Input: 'hello world.this is a test.' Output: 'Hello world. This is a test.'
  • Input: 'great product.very useful.' Output: 'Great product. Very useful.'
  • Input: 'note: results are ready.please review.' Output: 'Note: Results are ready. Please review.'
  • Input: ' multi line text. second line.' Output: 'Multi line text. Second line.'
  • Input: 'hello. world.' Output: 'Hello. World.'

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers