Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

run-ephemeral-roles

Skill by ewohltman

Builds, runs, and drives the ephemeral-roles Discord bot in a headless mock setup. It is for developers and AI agents who need to exercise the voice-channel role flow, HTTP endpoints, and tests without a Discord token.

  • Score 72
  • 98 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install run-ephemeral-roles

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ewohltman/ephemeral-roles /tmp/ephemeral-roles && mkdir -p ~/.claude/skills && cp -r /tmp/ephemeral-roles/.claude/skills/run-ephemeral-roles ~/.claude/skills/run-ephemeral-roles

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install run-ephemeral-roles in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

ephemeral-roles is a Go Discord bot, built on the disgo library, that assigns and revokes voice-channel roles. The production binary opens a Discord gateway connection at startup and exits without a real BOT_TOKEN, so it cannot run headless. This skill adds a driver program that wires the real callbacks handler, metrics monitor, and HTTP server to an in-repo mock Discord client. The driver needs no token and no network. It fires one VoiceStateUpdate on startup and serves the bot's HTTP endpoints so they can be queried with curl.

The skill gives step-by-step commands for building the driver, running it in the background, checking the endpoints, and running the test suite. It is written for developers and AI agents who work on the bot's role flow or need a local way to check its endpoints.

Written from the project's SKILL.md and checked against it.

What it can do

  • Build the driverCompiles the driver by explicit path, since Go wildcard commands skip the .claude directory.
  • Run the mock botServes the bot's HTTP endpoints on 127.0.0.1:18099 by default, without a Discord token.
  • VoiceStateUpdate demoFires one real VoiceStateUpdate and prints the BEFORE and AFTER role state with -serve=false.
  • Query HTTP endpointsChecks the root health route, /guilds, /metrics, and /debug/pprof/ with curl.
  • Run testsRuns make test with gotestsum, the race detector, and coverage, or a single package.

What you need

  • Go 1.27.3 or later
  • curl
  • make, for the make build and make test targets
  • A real BOT_TOKEN, only if you run the production bot instead of the driver

Try asking

  • Start the ephemeral-roles driver and show me the /guilds output.
  • Run the VoiceStateUpdate demo and explain the role changes it prints.
  • Run the callbacks package tests with the race detector.

Good to know

  • The production bot cannot run headless and needs a valid Discord bot token.
  • The driver uses a mock Discord client, so it does not connect to real Discord.
  • The guilds and members gauges stay at 0 for the first second after startup.
  • Killing a go run process leaves the server bound to the port, so the built binary must be run instead.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/run-ephemeral-roles/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to run-ephemeral-roles

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

run-ephemeral-roles: common questions

Does ephemeral-roles need a Discord token to run here?

The driver needs no token and no network, because it uses an in-repo mock Discord client. The production binary needs a real BOT_TOKEN and a live Discord connection.

Why should I build the driver instead of using go run?

The source says go run does not forward SIGTERM to the compiled child process, so the server stays bound to the port after the go run process is killed.

What does the driver show about the role flow?

Its startup log prints the guild and member roles before and after one VoiceStateUpdate. A member joining a new voice channel gets a new ephemeral role and loses the old one.

How do I install run-ephemeral-roles?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is run-ephemeral-roles free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is run-ephemeral-roles safe to use?

It scores 72 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to run-ephemeral-roles?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

run-ephemeral-roles Install

Add to stack

Loading.