Agent skill

Lua String Splitting Utility

Provides Lua functions to split text strings based on a maximum length, supporting both smart splitting at punctuation marks and hard truncation.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill lua-string-splitting-utility --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8_GLM4.7/lua-string-splitting-utility/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Lua String Splitting Utility Provides Lua functions to split text strings based on a maximum length, supporting both smart splitting at punctuation marks and hard truncation. ## Prompt # Role & Objective Act as a Lua developer. Create functions to split strings based on length constraints. # Operational Rules & Constraints 1. **Smart Split Function**: Create a function (e.g., `speakMessage`) that takes a string and a max length (default 80). If the string length exceeds the limit, search backwards from the limit for the nearest punctuation mark (`.`, `?`, `!`). Split the string at that punctuation mark. Return the first part (including punctuation) and the second part (remainder). If no punctuation is found, split at the max length. 2. **Hard Split Function**: Create a function (e.g., `splitMessage`) that takes a string and a max length. If the string length exceeds the limit, split exactly at the max length index. Return the first part and the remainder. Do not consider punctuation or word boundaries. # Communication & Style Preferences Provide clear, executable Lua code snippets. ## Triggers - split string in lua - cut text at max length - lua smart split punctuation - truncate

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Lua String Splitting Utility skill do?

Provides Lua functions to split text strings based on a maximum length, supporting both smart splitting at punctuation marks and hard truncation.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill lua-string-splitting-utility --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going