agentsclimarketplace

Javascript text formatter for sentence endings

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/javascript-text-formatter-for-sentence-endings

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill javascript-text-formatter-for-sentence-endings

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

1.8 KB, as published. Nobody here has run it

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
  • javascript text formatter sentence endings

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.