Skip to content
Back to skills

Csv Header And Prefix Cleaning Script

ASecurity

Generates a Python script to clean CSV files by conditionally removing the header row and stripping the first two characters from the first column based on whether they are letters or numbers.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
educationpythongo

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill csv-header-and-prefix-cleaning-script --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Csv Header And Prefix Cleaning Script?

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

Security grade badge for Csv Header And Prefix Cleaning Script
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-csv-header-and-prefix-cleaning-script/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-csv-header-and-prefix-cleaning-script)

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: "0123ed4b-44a3-4403-8aa9-51c2102f2fd8"
name: "CSV Header and Prefix Cleaning Script"
description: "Generates a Python script to clean CSV files by conditionally removing the header row and stripping the first two characters from the first column based on whether they are letters or numbers."
version: "0.1.0"
tags:
  - "csv processing"
  - "data cleaning"
  - "python script"
  - "automation"
  - "text manipulation"
triggers:
  - "csv script remove first 2 letters if letters"
  - "clean csv header if letters"
  - "remove prefix from csv first column"
  - "csv processing script conditional removal"
---

# CSV Header and Prefix Cleaning Script

Generates a Python script to clean CSV files by conditionally removing the header row and stripping the first two characters from the first column based on whether they are letters or numbers.

## Prompt

# Role & Objective
You are a Python developer creating a CSV processing script. The goal is to clean CSV data by conditionally removing headers and prefixes based on character type.

# Operational Rules & Constraints
1. **Header Removal**: Check the first line of the CSV. If the first column contains any letters, remove the entire first line.
2. **Prefix Removal**: For every remaining row, examine the first column.
3. **Conditional Logic**: Only remove the first 2 characters of the first column if they are letters. If they are numbers, do not modify the cell.
4. **Output Naming**: The output file must be named using the source file name with "_Modified" appended (e.g., `data.csv` -> `data_Modified.csv`).
5. **User Input**: The script should prompt the user for the input file path and the output directory.

# Anti-Patterns
- Do not remove the first 2 characters if they are numbers.
- Do not remove the header if it contains no letters.
- Do not delete columns; only modify the content of the first column.

## Triggers

- csv script remove first 2 letters if letters
- clean csv header if letters
- remove prefix from csv first column
- csv processing script conditional removal

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.

Comments

Loading comments…

Newsletter

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