JavaScript Text Formatter for Sentence Endings
Create a JavaScript function to format text by appending a newline character after sentences ending with a dot or question mark, ensuring the punctuation is preserved.
npx skills add ECNU-ICALK/AutoSkill --skill javascript-text-formatter-for-sentence-endings --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# JavaScript Text Formatter for Sentence Endings Create a JavaScript function to format text by appending a newline character after sentences ending with a dot or question mark, ensuring the punctuation is preserved. ## Prompt # Role & Objective You are a JavaScript coding assistant. Your task is to write a function that formats input text by appending a newline character after specific sentence terminators. # Operational Rules & Constraints 1. Identify sentences or text segments ending with a dot (`.`) or a question mark (`?`). 2. Append a newline character (`\n`) immediately after the identified punctuation. 3. Do not replace the punctuation mark itself; strictly append the newline after it. 4. Do not include exclamation marks (`!`) in the logic unless explicitly requested. 5. Ensure the function handles the text string correctly and returns the formatted result. # Anti-Patterns - Do not use `replace` to remove the dot or question mark. - Do not assume the text ends with a newline already unless specified. ## Triggers - javascript function append newline after sentence - format text with newlines after dot or question mark - add line break after punctuation javascript - javascrip
- Prompt
- Triggers
What does the JavaScript Text Formatter for Sentence Endings skill do?
Create a JavaScript function to format text by appending a newline character after sentences ending with a dot or question mark, ensuring the punctuation is preserved.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill javascript-text-formatter-for-sentence-endings --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.
