Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

GitHub's MCP Skill Diagnoses Actions Failures — But Your Release Process Still Decides

GitHub's new MCP skill automates GitHub Actions failure triage by guiding agents through run selection, log retrieval, and root-cause classification, while leaving release decisions, config fixes, and rerun approvals to team-defined skills that can live in-repo or on an internal MCP server.

TL;DR

Service-provided skills integrate with existing team processes. GitHub handles how to investigate Actions; teams retain release conditions and remediation steps, avoiding duplicate maintenance of API usage details.

Handoff is an evidence-backed diagnosis. Commit SHA, run attempt, failed step, and logs must align; "found the cause" and "can proceed to release" are separated by the team's own checks.

Team skills can live in the repo or be distributed via an internal MCP service. Decide based on what changes together: if it evolves with code, keep it in the repo; if multiple repos need the same template, centralize it.

Matching the Failed Run First

Assume a PR's Actions checks fail. Before diving into logs, note the same PR may have run multiple times. GitHub's skill starts by listing runs: call actions_list → list_workflow_runs, filter by branch and trigger event; then call actions_get → get_workflow_run for details. status and conclusion are easily confused. The former indicates queued, running, or completed; the latter indicates success, failure, cancellation, etc. After filtering for completed, you must still inspect conclusion — "finished" does not mean "passed".

Next, check head_sha. A new push to the same PR leaves the old failure record intact. Match the commit first, then read logs. head_branch and event also matter: a scheduled nightly run and a PR check may fail for different reasons.

If someone triggered a re-run, the same run_id gains an attempt (run batch). Recording only run_id risks mixing logs and results from different attempts. The skill reminds the agent to check how many times it has run before deciding whether to re-run again.

Once the run is confirmed, narrow to the failed job via list_workflow_jobs. get_job_logs accepts run_id and failed_only: true to fetch only failed job logs. You must also set return_content: true to get the log body; otherwise you receive a URL. By default the last 500 lines are returned; if the clue isn't there, increase tail_lines or fetch a single job by job_id.

Only then does error localization begin. actions_get → get_workflow_job returns each step's conclusion, letting the agent correlate the first anomalous step with nearby log lines.

A failed job may have no logs because it never started — an upstream dependency failed first. Repeatedly fetching the same log doesn't help; you must trace upstream. Log expiration is another case: step status shows where it failed, but the root cause may be unrecoverable.

The article references Uber's skill A/B test where an empty result misled the agent: no CI configured, yet the agent waited for check results until timeout. GitHub's skill handles "no run records", "not finished yet", and "logs unavailable" separately, giving the agent a fallback loop instead of waiting indefinitely or guessing.

To Rerun or Not

If logs show a secret-unavailable error, it's tempting to say "add the secret and rerun". But one more check helps: is it only this run that can't fetch the secret, or all related runs? Only one job failing, or all jobs sharing that config? These affect who to contact and what to investigate.

On first log read, if the cause isn't clear, the skill points to references/failure-classes.md. This auxiliary file guides the agent through comparisons: do different attempts fail at the same step? Do other jobs in the same run also fail? Does the same workflow succeed on a different branch or trigger? After comparison, you might find only a specific trigger fails — worth checking permissions — or multiple jobs fail when using the same config. Logs saying "credentials unavailable" don't prove the config was deleted. Document evidence at each step; the rest goes to the config owner.

Missing config — rerunning unchanged won't conjure the config. Only if evidence points to runner loss or connection interruption might a retry be worthwhile.

Even when rerunning, there are two distinct actions: rerun_failed_jobs reruns only failed jobs, preserving successful ones; rerun_workflow_run reruns the entire workflow. GitHub's skill prefers the former, considering the latter only when earlier steps need state rebuilt or successful parts are also suspect. Before rerunning, the agent must state the target run, chosen method, why a different outcome is expected, and obtain approval.

At this point, rerun permissions haven't been used. GitHub separates investigation from action on the server side:

workflow-failure-triage
  required: actions_list, actions_get, get_job_logs
  optional: actions_run_trigger

Summarized from the tool dependency table in the source code; not a config file.

With the skills extension enabled, the server reads ConfiguredTools for the current connection's actual tools, then filters skills via ForTools. The triage skill enters the catalog only when all three read tools are present; without the rerun tool it still provides diagnosis.

These dependencies are enforced by GitHub's server-side code, not by fields in SKILL.md. Tool presence only means an investigation entry point; actual repo accessibility and log retention depend on runtime results.

When the interface changes, the triage guide updates with it. Parameters, steps, and tool dependencies are maintained by GitHub's service owners, saving consumers from chasing API changes.

The skill stops after diagnosis. Its scope is explicit: diagnose a single failed workflow run, not to judge whether a change can be released .

Diagnosis Done, Hand Back to Team

Suppose the cause is confirmed as a missing secret. Next comes the project's own process: who maintains that config, does the fix need approval, how to proceed after the fix?

Leaving only "config issue, suggest fix" forces the next person to re-read all records. The author proposes a team release skill that mandates: retain target commit, run + attempt, failed job and step, relevant logs, and a clear statement of what's confirmed and what remains unknown. run_id + attempt + head_sha is crucial here: it pins the diagnosis to a specific run batch and code version. After the config is fixed and someone re-runs, the recipient knows this conclusion is pre-fix and cannot be treated as current status.

A team SKILL.md can hook in like this (fill in owners and checks per project):

Check the target commit's Actions. If failed, read the connected GitHub service's triage skill and follow its steps. Retain this investigation's run attempt, failed step, log evidence, and cause judgment. If logs are unavailable or cause unknown, note missing information and pause release judgment. Config failures follow this project's config maintenance guide; infrastructure failures may suggest a rerun. Before executing changes or reruns, confirm per current authorization. After fix, re-fetch the target commit's check results, then continue the project's release checks.

Log-fetching details stay in GitHub's skill; the team only adds its checks and remediation. Later, if API parameters change, update the service's guide; if the config owner changes, update the team's guide.

Naming a skill doesn't make it callable like a function. The host must discover and load it; the agent can only use its methods after loading. If the skill is missing or fails to load, the team process should make the agent report what's missing and hand back.

Another easily missed point: after a fix, the PR may have new commits. Even if a green result appears, you must re-verify it matches the SHA you intend to release. A green result must correspond to the code you're about to release.

Whether to rerun, whether the operation is approved, whether the change can be released — each needs separate confirmation. Skills can guide the agent through investigation and suggestions; actual reruns and releases still require tool permissions, reviews, and release checks.

Where to Put the Skill

The team's remaining part mainly covers project checks, config owners, and post-fix arrangements. File placement depends on how these change.

If they change with the project code, put them in the repo first. For example, a release skill directory structured per host requirements:

release-check/
├── SKILL.md
└── references/
    └── project-release.md
SKILL.md

defines check order, when to adopt GitHub's triage method, and what diagnostic info to retain; project-release.md holds branch conventions, config owners, and release conditions. Secret values stay in the credential system; the doc only records config location and handling.

Later, if the project changes release branches or adjusts checks, process and code can be reviewed in the same PR. Historical versions show the arrangement at that time. For a single project, repo storage works well.

If several repos share a release-notes template, copying it to five repos and later updating only three leads to divergent agent outputs. That part suits centralized maintenance.

Microsoft's Pamela Fox demonstrates this: a FastMCP Team Skills service creates a release-notes skill, added via SkillCatalogProvider. The skill instructs the agent to compile release notes from merged PRs, grouped by topic, following an attached template.md.

The example defines no business tools; the service provides only method and template. It uses VS Code 1.147+, enabling chat.agentHost.mcpSkills.enabled, connecting to the service, reading the skill after user consent, and fetching the template when referenced.

Thus one release task consumes three sources: repo-level project requirements, GitHub's triage method, internal service's release-notes template. Each has its own maintainer; the agent uses what's relevant for the current task. Teams with existing plugin distribution can continue using it.

Look at who changes it and when, then decide where to put it. What changes with code stays in the project; what multiple projects need in sync moves to a central service.

Service providers may also offer customized flows per user account or organization (per Anthropic's announcement). If a project rule is already configured in the service, having the service provide it is natural. If the same rule exists in both places, you must declare which is authoritative, or the two guides will eventually diverge.

Loading the Right Skill

After connecting GitHub's service and an internal skills service, the agent may see identically named skills. Two release-notes — which to use?

The current beta spec uses service source and skill URI together to identify a remote skill. Even if both services offer skill://release-notes/SKILL.md, the host must record them separately, never silently overwrite, and never replace a local skill with the same name.

Team process can explicitly state: use the internal service's release-notes skill. Once the choice is clear, file reading begins.

For skills with a full file manifest, the host first calls skills/list to get names, descriptions, and resource entries. This step shows the skill catalog without reading every SKILL.md in full. When a task needs one, the host calls resources/read for its content.

Calling resources/read alone only returns resource content. The host must still run its own skill-loading flow: verify, confirm with the user if needed, then pass the guide to the model. Reading a file and the host loading it as a skill are two steps.

Each manifest entry has uri, digest, and size. digest is the SHA-256 of the raw file bytes; size is the byte count. After reading, the host must verify against these. The entry file's YAML frontmatter must also match the catalog entry. Auxiliary files are fetched on demand and similarly verified.

If the internal release-notes template is updated while the agent holds an old SKILL.md and is about to fetch template.md, the manifest mismatch (content vs. digest/length) lets the host detect inconsistency, stop using the stale entry, and refresh via skills/get. If the host cached permissions bound to that file set, a manifest change revokes the old consent, requiring re-confirmation before reload.

Therefore, when the team updates a template, the service's files and manifest must stay in sync, and active hosts must handle updates. Central maintenance avoids per-repo copying, but file versions still need to align.

The spec also allows marking resources as dynamic for content that can't provide a stable digest. This drops the integrity guarantee; some hosts may refuse to load such skills. For typical team templates, if there's no need for per-request generation, a full manifest is easier to audit.

File verification only ensures the fetched content matches the manifest; it doesn't guarantee the steps fit the current project, nor does it lock GitHub's run state. Re-checking the target commit before release remains necessary.

Start from Existing Process

After one failure investigation, retaining which code, which run, failure location, and evidence lets the team proceed: fix config, verify result, handle release. The service skill covers one segment; the project's own arrangement continues from there.

Starting with one project, first organize the existing release skill: keep the project's checks and remediation, hand the duplicated GitHub triage details to the service skill. Only when shared templates or methods truly need cross-project sync, move them to a team-maintained service.

To try Skills over MCP hands-on, refer to the MCP Chinese Site 's FastMCP practical tutorial for hosting skill files and verifying client reads.

About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

CI/CDAI agentsMCPModel Context ProtocolRelease ProcessGitHub ActionsFailure TriageSkills over MCP

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion