Github

From Arvo-AI/aurora · View interactive version

Github is an AI agent skill from the GitHub repository Arvo-AI/aurora. GitHub code repository integration for investigating code changes, deployments, commits, PRs, and suggesting fixes during RCA

How to use this skill

Skill file

GitHub Integration

Overview

GitHub integration for investigating code changes during Root Cause Analysis and managing code fixes.

Connected account: {username}

Instructions

Multi-Repo Discovery

Tool Usage (use in this order)

  1. get_connected_repos — Discover available repos + descriptions. Always call first.
  2. github_rca(repo='owner/repo', action=...) — Investigate code changes for RCA:
  1. github_fix(file_path=..., edits=[{old_string, new_string, replace_all?}, ...], fix_description=..., root_cause_summary=...) — Suggest a code fix via anchored search-and-replace edits (stored for user review, not auto-applied). First call get_file_contents to read the current file so you can copy the exact old_string (with enough surrounding context to be unique).
  2. github_apply_fix(suggestion_id=...) — Create a PR from an approved fix (only after user reviews)
  3. github_commit(repo=..., commit_message=...) — Push generated Terraform (.tf) files from the IaC workflow to GitHub. This is NOT a general-purpose commit tool — it only pushes .tf files from the terraform working directory.

MCP Tools (for direct GitHub API operations beyond RCA)

RCA Investigation Workflow

Code changes are a common root cause of incidents. Investigate GitHub early in the process.

Important: Merged does not always mean deployed. Many teams have separate CI (build) and CD (deploy) steps. When concluding that a commit caused an incident, check whether it was actually deployed. If deployment status cannot be confirmed, qualify your conclusion (e.g. "this commit is the likely cause if it was deployed").

Step 1 — Discover repos:

get_connected_repos() — returns all connected repos with descriptions.

Read the descriptions to pick the repo most relevant to the alert.

Step 2 — Check deployments (did something ship?):

github_rca(repo='owner/repo', action='deployment_check', incident_time='<ISO8601>')

Finds failed workflow runs and runs completed within 2 hours of the incident.

Step 3 — Check commits (what code changed?):

github_rca(repo='owner/repo', action='commits', incident_time='<ISO8601>')

Lists commits with automatic suspicious-commit flagging (within 2 hrs of incident).

Step 4 — Inspect suspicious changes:

github_rca(repo='owner/repo', action='diff', commit_sha='<sha>')

Shows file-level additions/deletions. Prioritize config/infra files (.yaml, .env, terraform/).

Step 5 — Check merged PRs:

github_rca(repo='owner/repo', action='pull_requests', incident_time='<ISO8601>')

Finds PRs merged in the time window; recently merged PRs are flagged.

Step 6 — Suggest fix:

First read the file with get_file_contents(owner, repo, path). Then:

github_fix(file_path=..., edits=[{old_string: "...", new_string: "..."}], fix_description=..., root_cause_summary=...)

old_string must match the current file exactly (include 1–3 lines of surrounding context so the match is unique). Indentation counts. Keep old_string narrow — just the lines you're changing plus a little surrounding context. Do NOT pass the whole file as old_string; if a single edit covers more than ~half the file Aurora will reject it. For multi-section changes, send multiple smaller edits. Use replace_all: true only when old_string matches the file byte-for-byte and you want every occurrence touched. Aurora applies the edits server-side and stores the result for user review; github_apply_fix then creates the PR.

Important Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.