fetching-circleci-logs
Installation
SKILL.md
Fetching CircleCI Logs
Fetch step-level build logs from CircleCI jobs using the v1.1 API.
When to use
- PR checks failed and you need to see why
- User shares a CircleCI URL (e.g.
https://circleci.com/gh/org/repo/169955) - User asks to investigate a CI failure
Extract job details from URL
CircleCI URLs follow this pattern:
https://circleci.com/gh/{org}/{repo}/{job_number}
Extract org, repo, and job_number from the URL. If the user provides only a job number, ask for the org/repo or check the current git remote: