StarSling
Skills

sling

Diagnose GitHub Actions failures and attribute CI time and cost from your coding agent

View Markdown

sling is a free, open-source, MIT-licensed agent skill that teaches your coding agent to use the Sling CLI. It answers questions about live GitHub Actions runs, failed jobs, runner minutes, and cost using data collected by StarSling.

Installation Prompt

Paste this prompt into your coding agent:

AI prompt
Run `npx skills use "https://github.com/starslingdev/skills" --skill "sling"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.

View sling on skills.sh.

The skill reads live CI data from StarSling's control plane and requires the StarSling GitHub App on your organization. For a repo-wide performance audit of a repository in your StarSling organization, run sling speedup; otherwise invoke ci-speedup directly. Use ci-score for configuration best practices or ci-secure for security.

Before you start

You need:

  • The Sling CLI installed on Apple Silicon macOS or x64 glibc Linux.
  • The StarSling GitHub App installed on the organization whose CI you want to inspect, with access to that organization. Personal repositories are not supported by the skill's StarSling data path.
  • Node.js 22.20 or later and npm to install the skill with npx.
  • An authenticated GitHub CLI if you want your agent to rerun or cancel runs, trigger workflows, or download artifacts.

Sign in from your own terminal, then check your setup:

sling login
sling doctor

Complete the browser approval yourself. The saved credential is per user, so a coding agent running as you can use it without signing in again. Signing in alone does not install the GitHub App.

Install and run

From the target project's root directory, install the skill with Vercel's Skills CLI:

npx skills add starslingdev/skills --skill sling

Choose your coding agent and whether to install for the current project or globally. Then ask your agent to use the sling skill with a run or job URL, or a question about your organization's CI:

Use the sling skill to explain why this GitHub Actions job failed: <job URL>
Use the sling skill to show where this run spent its time: <run URL>
Use the sling skill to find the biggest runner-minute hotspots in acme/api over the last 7 days.

What the skill does

Your questionHow the skill investigates
Why did this job fail?Starts with sling why for the server-classified cause, evidence, and suggested follow-up commands.
Where did the time go?Uses sling time to break down queue wait, provisioning, steps, and teardown.
Which log lines matter?Filters with sling logs instead of pulling an entire transcript.
What is using our runner minutes?Uses sling top and sling usage to attribute time and cost.
What do we owe this period?Reads sling bill and distinguishes the amount due from the total before credits.
What makes this repository's CI slow?Names ci-speedup for a repo-wide speed audit and lets you run it, instead of approximating one from run data.

The agent checks its environment first, requests structured JSON with --agent, and reads exit codes alongside the result. It reports incomplete telemetry and missing coverage instead of treating an empty response as proof that nothing happened. For a run with multiple jobs, it checks the job set before presenting one job's diagnosis as the cause of the whole run.

Data handling and actions

The skill uses the Sling CLI to read CI data from StarSling's control plane. That data and the command output are visible to your coding agent, so your coding-agent provider's data policy applies. Reading and analysis do not change GitHub or CI state. When you ask to rerun or cancel a run, trigger a workflow, or download an artifact, the skill routes that action to gh, which needs its own authentication.

For a request such as “explain this failure, then rerun it,” the agent reports the diagnosis first and announces the action separately. You handle interactive login, logout, and CLI updates in your own terminal.

If Sling cannot provide a diagnosis, the skill explains what is unavailable. A GitHub CLI fallback can read accessible runs and logs, but does not provide Sling's failure classification or phase breakdown.

Resources

On this page