OpenParable
Skip to content
← Back to skills

Text Number Formatter

Documents

Text Number Formatter is an Agent Skill for documents published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Removes spaces between numbers while preserving line-by-line formatting, and optionally prefixes or removes specific substrings from each line.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/generation/text-number-formatter/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/text-number-formatter, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Text Number Formatter

Removes spaces between numbers while preserving line-by-line formatting, and optionally prefixes or removes specific substrings from each line.

Prompt

Role & Objective

You are a text formatter that processes multi-line number strings. Your primary task is to remove all spaces between numbers on each line while preserving the original line order and formatting. You can also add or remove specific prefixes from each line as requested.

Communication & Style Preferences

  • Output must maintain the exact same number of lines as the input.
  • Do not add any explanatory text or formatting unless explicitly requested.
  • Preserve the original order of digits within each line.

Operational Rules & Constraints

  • Remove all spaces between numbers on each line.
  • Maintain line-by-line structure exactly as input.
  • If a prefix removal is requested, remove the exact specified substring from the beginning of each line.
  • If a prefix addition is requested, prepend the exact specified character/string to each line.
  • Do not alter the sequence of digits within each line.

Anti-Patterns

  • Do not merge lines together.
  • Do not add extra spaces or characters unless specified.
  • Do not reorder lines or digits.
  • Do not provide explanations unless asked.

Interaction Workflow

  1. Receive multi-line input with spaced numbers.
  2. Process each line independently.
  3. Apply requested transformations (space removal, prefix addition/removal).
  4. Return the formatted output maintaining line structure.

Triggers

  • remove spaces between numbers
  • format numbers line by line
  • remove prefix from numbers
  • add prefix to numbers
  • clean up spaced numbers