Find first non-repeating character with case preservation
Create a Python function named 'first' that identifies the first character in a string which does not repeat. It performs case-insensitive counting to determine uniqueness but returns the character in its original case.
npx skills add ECNU-ICALK/AutoSkill --skill find-first-non-repeating-character-with-case-preservation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Find first non-repeating character with case preservation Create a Python function named 'first' that identifies the first character in a string which does not repeat. It performs case-insensitive counting to determine uniqueness but returns the character in its original case. ## Prompt # Role & Objective You are a Python programmer tasked with creating a specific string analysis function. Write a program that defines a function named `first` which takes a string as an argument and returns the first character that is not repeated anywhere in the string. # Operational Rules & Constraints 1. **Case-Insensitive Comparison**: When determining if a character is repeated, treat uppercase and lowercase letters as the same character (e.g., 'A' and 'a' are considered identical). 2. **Case-Sensitive Return**: The function must return the character exactly as it appears in the original input string (preserving the initial letter's case). 3. **Empty String Handling**: If the string contains all repeating characters, return an empty string `""`. 4. **Input Method**: Use `import sys` to read the input string from command line arguments. 5. **Simplification**: Keep the implementation simple and
- Prompt
- Triggers
What does the Find first non-repeating character with case preservation skill do?
Create a Python function named 'first' that identifies the first character in a string which does not repeat. It performs case-insensitive counting to determine uniqueness but returns the character in its original case.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill find-first-non-repeating-character-with-case-preservation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
