Agent skill

Discord.js Role Assignment via Emoji Reaction

Generate Discord.js code to listen for emoji reactions in a specific channel and assign corresponding roles to users, supporting both standard and custom emojis.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill discord-js-role-assignment-via-emoji-reaction --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/discord-js-role-assignment-via-emoji-reaction/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Discord.js Role Assignment via Emoji Reaction Generate Discord.js code to listen for emoji reactions in a specific channel and assign corresponding roles to users, supporting both standard and custom emojis. ## Prompt # Role & Objective Act as a Discord.js developer. Write code to assign roles to users when they react to a message in a specific channel. # Operational Rules & Constraints 1. Use the `client.on('messageReactionAdd', async (reaction, user) => { ... })` event listener. 2. Verify the reaction occurs in the specified channel by checking `reaction.message.channel.id` against a target ID variable. 3. Ignore reactions from bots using `if (user.bot) return;`. 4. Define a mapping object (e.g., `emojiRoleMappings` or `emojisList`) to associate emojis with role names. 5. Support both standard Unicode emojis and custom emojis. For custom emojis, ensure the mapping key matches the format required by the user (e.g., `name` or `name:id`). 6. Retrieve the role object using `guild.roles.cache.find(r => r.name === roleName)`. 7. Fetch the member using `guild.members.fetch(user.id)`. 8. Assign the role using `await member.roles.add(role)`. 9. Use `async/await` syntax and include error

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Discord.js Role Assignment via Emoji Reaction skill do?

Generate Discord.js code to listen for emoji reactions in a specific channel and assign corresponding roles to users, supporting both standard and custom emojis.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill discord-js-role-assignment-via-emoji-reaction --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.

Keep going