Skip to content
Back to skills

Javascript Sequential Substring Removal

ASecurity

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.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsjavascriptjava

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill javascript-sequential-substring-removal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Javascript Sequential Substring Removal?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Javascript Sequential Substring Removal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-javascript-sequential-substring-removal/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-javascript-sequential-substring-removal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "afe5f6fe-c94b-46e1-8aa5-893b5d695e93"
name: "JavaScript sequential substring removal"
description: "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."
version: "0.1.0"
tags:
  - "javascript"
  - "string"
  - "substring"
  - "removal"
  - "text-processing"
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"
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.