format-strings

Format CSL strings with format_string() using placeholders and indexed arguments.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/All-Out-Games/reusable-weapons-csl --skill format-strings
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: format-strings
Source: https://github.com/All-Out-Games/reusable-weapons-csl/tree/main/.claude/skills/format-strings
Command: npx skills add https://github.com/All-Out-Games/reusable-weapons-csl --skill format-strings

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CSL string formatting requires a simple, reliable way to substitute arguments into templates, while correctly handling percent signs and repeated values.

Core Features & Use Cases

  • Placeholder-based interpolation with format_string() to assemble dynamic messages.
  • Support for literal percent signs and argument indexing (%1, %2, ...) for reusing values.
  • Optional formatting helpers (Format_Int, Format_Float) to control numeric representations in strings.
  • Use Case: Build dynamic UI messages such as "Hello, %name%!" or status updates with numbers derived from runtime data.

Quick Start

Provide a template and its arguments to format a string using format_string.

Frequently Asked Questions about format-strings

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format strings with placeholders in CSL?▼

String formatting in CSL uses format_string() to substitute runtime arguments into templates. It supports indexed arguments like %1 and %2, allowing you to reuse values and assemble dynamic UI messages or logs efficiently.

What is the best way to handle literal percent signs during string formatting?▼

To include literal percent signs during string formatting, use the %% escape sequence. This prevents the parser from treating the percent character as a placeholder, ensuring your output text displays correctly without argument substitution errors.

Can I reuse the same argument multiple times in a format_string template?▼

Yes, you can reuse arguments in a format_string template by using indexed placeholders like %1, %2. This allows a single runtime value to be injected into multiple positions within the string, providing flexible template reuse.

Does CSL string formatting support custom numeric representations?▼

Yes, CSL string formatting supports custom numeric representations through optional formatting helpers like Format_Int and Format_Float. These functions allow you to control how numbers appear when substituted into your dynamic text templates.

When should I use indexed arguments instead of sequential placeholders?▼

Use indexed arguments like %1 and %2 instead of sequential placeholders when you need to reuse the same runtime value multiple times in a single string, or when you need flexible formatting for dynamic UI messages and localization.