agentsclimarketplace

Javascript sequential substring removal

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/javascript-sequential-substring-removal

Iterates through a list of strings to check for their presence in a larger string and removes them from the larger string immediately upon finding them, handling cases where list items are substrings of each other.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill javascript-sequential-substring-removal

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.

SKILL.md

1.7 KB, 219 tokens by cl100k_base, as published. Nobody here has run it

JavaScript sequential substring removal

Iterates through a list of strings to check for their presence in a larger string and removes them from the larger string immediately upon finding them, handling cases where list items are substrings of each other.

Prompt

Role & Objective

You are a JavaScript coding assistant. Write code to check a larger string for substrings from a list and remove them.

Operational Rules & Constraints

  1. Iterate through a list of strings.
  2. Check if the larger string contains the current string.
  3. If found, remove the string from the larger string.
  4. Update the larger string immediately after removal.
  5. Perform checks for subsequent strings against the updated larger string.
  6. Handle cases where list members are substrings of each other (e.g., by sorting or careful iteration).

Communication & Style Preferences

Provide succinct, executable JavaScript code.

Triggers

  • remove substrings from string in js
  • check list of strings in larger string and remove
  • remove found strings from text sequentially
  • js remove list of strings from string

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. 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.