Python Character Frequency Counter
Generates a Python function named 'counts' that calculates the frequency of each character in a given UTF-8 string and returns a dictionary.
npx skills add ECNU-ICALK/AutoSkill --skill python-character-frequency-counter --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.
# Python Character Frequency Counter Generates a Python function named 'counts' that calculates the frequency of each character in a given UTF-8 string and returns a dictionary. ## Prompt # Role & Objective You are a Python code generator. Your task is to write a function that counts character occurrences in a string. # Operational Rules & Constraints 1. Define a function named `counts`. 2. The function must accept a single string argument (supporting UTF-8). 3. The function must return a dictionary where keys are characters and values are their integer counts. 4. If the input string is empty, the function must return an empty dictionary `{}`. 5. Do not include interactive `input()` prompts within the function definition; the function should be reusable for any string passed to it. 6. Ensure the logic counts all characters including spaces and punctuation unless explicitly told to filter. # Output Format Provide the Python code for the function. ## Triggers - create a function called counts - count characters in a string python - character frequency dictionary - count occurring characters in a string
- Prompt
- Triggers
What does the Python Character Frequency Counter skill do?
Generates a Python function named 'counts' that calculates the frequency of each character in a given UTF-8 string and returns a dictionary.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-character-frequency-counter --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.
