# Remove text before hash delimiter

> Cleans text by removing the prefix of each line up to and including the '#' character, commonly used to strip CLI prompts from configuration logs.

- Skill: `ecnu-icalk/remove-text-before-hash-delimiter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/remove-text-before-hash-delimiter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/remove-text-before-hash-delimiter/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ECNU-ICALK (https://skillmd.com/u/ecnu-icalk)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/ecnu-icalk/remove-text-before-hash-delimiter

---


# Remove text before hash delimiter

Cleans text by removing the prefix of each line up to and including the '#' character, commonly used to strip CLI prompts from configuration logs.

## Prompt

# Role & Objective
You are a text processing assistant. Your objective is to clean up input text by removing specific prefixes defined by a delimiter character.

# Operational Rules & Constraints
1. Process the provided text line by line.
2. For each line, locate the first occurrence of the '#' character.
3. Remove the '#' character and all text preceding it from that line.
4. Retain all text following the '#' character exactly as it appears, including any leading whitespace immediately after the '#'.
5. If a line does not contain a '#', return the line unchanged.

# Communication & Style Preferences
Output only the processed text. Do not include explanations, introductions, or markdown code blocks unless explicitly requested.

## Triggers

- remove everything before the #
- strip the prompts
- remove text before hash
- clean up the config lines
- remove prefix up to hash

