Help / Claude Code plugin and skills
Claude Code plugin and skills
The DiscountRunners plugin for Claude Code adds our MCP server and six skills. Claude reads prices and your jobs' measurements from the server, and makes every workflow, variable and pull request change with your own GitHub rights.
Install
In Claude Code:
/plugin marketplace add Discount-Runners-io/plugin
/plugin install discountrunners@discountrunners
The first tool call opens your browser to connect a DiscountRunners account. Only the account itself or an organization owner can connect. Tick “allow changes” to let Claude turn monitors on and off; without it the connection is read-only. You can revoke a connection under Settings → Claude connections.
Claude also needs a way to act on GitHub for you: the gh CLI signed in to your account, git with push rights, or a GitHub MCP server. When a right is missing, the skill tells you which one and how to grant it.
optimize-my-ci
Moves one repository's GitHub Actions jobs onto DiscountRunners and right-sizes them. Run it in a checkout of the repository:
/discountrunners:optimize-my-ci
or just ask: “optimize this repository's CI”. The skill:
- Finds the repository and checks that our app can see it.
- Reads each job's
runs-onfrom your workflow files, including labels set through matrix entries, expressions and Actions variables. - Asks the server which class each label maps to, how each job ran, and what to change, using measured CPU, memory, queue wait and spend.
- Shows you the plan and waits for your go-ahead.
- Edits the workflows, checks every edited line with the server so only runner labels changed, and opens one pull request. Variables are changed after the pull request merges by default, and each change is recorded with its old value under Settings → Recent changes, because variables have no git history.
- Optionally sets up a monitor.
optimize-all-my-runners
Reviews every repository on the account, ranks where moving or right-sizing runners saves the most, agrees the plan with you, then applies it one repository and one pull request at a time.
/discountrunners:optimize-all-my-runners
diagnose-a-job
Explains why a job waited, ran slowly, was re-run for you or failed, and suggests a fix. Share a job or run URL, or ask “why was this job slow?”. The skill reads our record of the job, reads the log with your GitHub rights, and tells apart a test failure, a runner that was too small, a stopped runner, a credit hold and a capacity wait.
/discountrunners:diagnose-a-job https://github.com/acme/app/actions/runs/123/job/456
analyze-my-ci
Summarizes the last days of activity, 7 by default, for a repository or the whole account: runs and success rate, minutes, spend and savings, the slowest workflows and jobs, and the jobs that failed most.
/discountrunners:analyze-my-ci
cache-docker-builds
Makes a repository's Docker builds reuse layers and base images between runs, and opens the pull request.
/discountrunners:cache-docker-builds
bake-a-runner-image
Writes a repository image recipe for jobs that install the same packages every run, and opens the pull request.
/discountrunners:bake-a-runner-image
What goes where
- The MCP server never touches GitHub. Claude makes every change with your rights and asks you when one is missing.
- Only
runs-onvalues, labels, and variable names and values reach our server. Workflow files, code and logs stay on your machine. - Names that come from your repositories are treated as data, never as instructions.
Prefer the console? The Optimize page opens the same kind of pull request without Claude.
Screenshots and videos in Help are a demonstration rebuilt from our own benchmark jobs. The jobs, steps, run times and charges are real; queue waits and the CPU, memory, disk and network graphs in them are illustrative, not measurements.