investigate-cilisted
Install: claude install-skill mostafa-drz/claude-skills
# Investigate CI
Investigate GitHub Actions failures — fetch logs, diagnose root causes, suggest fixes.
## Preferences
_Read `~/.claude/skills/investigate-ci/preferences.md` using the Read tool. If not found, no preferences are set._
## Context
_On startup, use Bash to detect: current repo (`gh repo view --json nameWithOwner -q .nameWithOwner`) and default org (`gh repo view --json owner -q .owner.login`). Skip any that fail._
## Command Routing
Check `$ARGUMENTS` for subcommands:
### `help`
If `$ARGUMENTS` is "help" (case-insensitive), display:
```
Investigate CI — diagnose GitHub Actions failures
Usage:
/investigate-ci <workflow-url> Investigate a specific workflow
/investigate-ci <run-url> Investigate a specific run
/investigate-ci <repo> [workflow] Investigate by repo name
/investigate-ci config Set preferences
/investigate-ci reset Clear preferences
/investigate-ci help This help
Examples:
/investigate-ci https://github.com/org/repo/actions/workflows/deploy.yml
/investigate-ci https://github.com/org/repo/actions/runs/12345678
/investigate-ci ai-stacks deploy.yml
/investigate-ci ai-stacks All failing workflows
/investigate-ci 12345678 Run ID (uses current/default repo)
Current preferences:
[show from preferences.md or "defaults"]
```
Then stop.
### `config`
If