
fetching-circleci-logs
Fetches CircleCI job logs through the v1.1 API with step-level output and failure analysis.
- version
- 1.0.0
- GitHub stars
- 365
What it does
- Covers retrieving CircleCI job logs using the v1.1 API rather than the newer v2 endpoints
- Provides step-level output so each failing command in a job can be inspected separately
- Supports failure analysis that summarizes why a CircleCI job failed from its logs
Add marketplace
/plugin marketplace add NTCoding/claude-skillzRun it inside Claude Code once, then install the plugin below.
Install
/plugin install fetching-circleci-logs@claude-skillzRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceFetching 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:
git remote get-url origin | sed -E 's|.*github\.com[:/]([^/]+)/([^/.]+).*|\1/\2|'
Fetch logs
Step 1: Get the CircleCI token
grep 'token' ~/.circleci/cli.yml | awk '{print $2}'
If the file doesn't exist or has no token, tell the user to run circleci setup or set the token manually.
Step 2: Fetch job data and display step output
Run this as a single command, substituting {org}, {repo}, and {job_number}:
TOKEN=$(grep 'token' ~/.circleci/cli.yml | awk '{print $2}') && \
curl -s -H "Circle-Token: $TOKEN" \
"https://circleci.com/api/v1.1/project/gh/{org}/{repo}/{job_number}" | \
python3 -c "
import sys, json, urllib.request
data = json.load(sys.stdin)
for step in data.get('steps', []):
for action in step.get('actions', []):
status = action.get('status', '')
name = action.get('name', '')
exit_code = action.get('exit_code')
failed = action.get('failed', False)
print(f'STEP: {name} | status: {status} | exit: {exit_code}')
if failed and action.get('output_url'):
with urllib.request.urlopen(action['output_url']) as r:
for msg in json.load(r):
print(msg.get('message', '')[:2000])
"
Step 3: Analyze the output
After fetching, summarize:
- Which steps failed and why
- The relevant error messages (not the full log)
- Suggested fix if the cause is clear
Important notes
- Use API v1.1 — v2 does not return step-level output with log URLs.
- The
output_urlis a pre-signed S3 URL — no additional auth needed to fetch it. - Truncate log messages to 2000 chars per action to avoid context window bloat.
- If the API returns 404, the job number is likely wrong or the token lacks access to that project.
Mandatory Checklist
When fetching CircleCI logs, complete this checklist:
- Verify the CircleCI token exists in
~/.circleci/cli.yml - Verify org, repo, and job number are correctly extracted from the URL or git remote
- Verify you are using the v1.1 API (not v2)
- Verify you summarized the failure cause, not just dumped raw logs
Do not proceed to suggest fixes until all checks pass.
From the NTCoding/claude-skillz README
Claude Skills & Composable Personas
Reusable skills and composable system prompts for Claude Code.
Claude Launcher
Interactive system prompt and model selector for Claude Code.
Start Claude with your chosen persona and model in seconds:
# Interactive 2-step selection (persona → model)
$ cl
# Direct shortcuts (order-independent)
$ cl tdd opus # Super TDD Developer + Opus
$ cl opt sonn # Claude Code Optimizer + Sonnet
$ cl haik # Generalist Robot + Haiku (default persona + model)
# Model-only (uses generalist-robot)
$ cl sonn
$ cl opus
Features:
- Order-independent shortcuts:
cl tdd sonn=cl sonn tdd - Frontmatter-based shortcuts (add your own personas instantly)
- Automatic skill loading via @ references
- Conflict detection with prominent warnings
- Exports CLAUDE_PERSONA for status line display
Setup:
alias cl='python3 /path/to/claude-skillz/claude-launcher/claude-launcher.py'
# Optional: Install fzf for interactive fuzzy search
brew install fzf # macOS
See available personas below. You can add your own.
OpenCode Launcher
Generates OpenCode agents from the same personas used by Claude Launcher.
This repo contains system prompts that work with both Claude Code and OpenCode:
- Claude Launcher (
cl) - for Claude Code - OpenCode Launcher - generates agents for OpenCode
# Generate OpenCode agents (run once or after changing personas)
python3 opencode-launcher/generate-opencode-agents.py
# Then use OpenCode - agents appear in agent selector
opencode
See opencode-launcher/README.md for details.
Installation
Per-project
Add the plugin to your settings.json. See Claude Plugin Settings.
Globally Setup Marketplace
Local:
/plugin marketplace add file:///absolute/path/to/claude-skillz
GitHub:
/plugin marketplace add ntcoding/claude-skillz
Install Plugins
Interactive:
- Run
/plugin - Select
Browse and install plugins - Select
claude-skillzmarketplace - Select desired plugin
- Select
Install now
Direct:
/plugin install <plugin-name>@claude-skillz
Available Skills
Skills are reusable behavioral instructions loaded into personas. Load them with @ references in your system prompts.
Research & Evidence
- independent-research - Research-driven investigation. Never guess—validate solutions before presenting. Use WebFetch, WebSearch, testing.
- confidence-honesty - Force honest confidence assessment. Express confidence as percentage, explain gaps, validate assumptions before presenting.
Communication & Output
- concise-output - Signal-over-noise. Eliminate verbose phrases, prioritize density. Every word must carry information.
- critical-peer-personality - Professional, skeptical communication. Challenge constructively, propose instead of asking, coach rather than serve.
- questions-are-not-instructions - Answer questions literally. Don't interpret as hidden instructions. STOP after answering, let user decide.
Code & Design
- software-design-principles - Object calisthenics, dependency inversion, fail-fast error handling, feature envy detection, intention-revealing naming.
- lightweight-implementation-analysis-protocol - Trace execution paths before implementing. Create lightweight diagrams. Prevent wasted effort from assumptions.
- lightweight-design-analysis - Systematic design review across 8 dimensions: Naming, Object Calisthenics, Coupling & Cohesion, Immutability, Domain Integrity, Type System, Simplicity, Performance.
Development Processes
- tdd-process - Strict TDD state machine: red-green-refactor with 11 enforced rules. Meaningful failures, minimum implementations, full verification.
- writing-tests - Principles for effective tests. Naming conventions, assertion best practices, comprehensive edge case checklists (based on BugMagnet).
- observability-first-debugging - Systematic debugging. Add instrumentation to gather specific data. Evidence before hypothesis.
Workflows & Tools
- switch-persona - Mid-conversation persona switching without restart. Lists personas, reads file, switches immediately.
- lightweight-task-workflow - Task list state machine for multi-session work. Tracks status, prevents auto-advancement, enforces state transitions.
- create-tasks - Convert requirements into actionable tasks following a structured template. Engineering-ready work items.
Specialized
- data-visualization - Build charts, graphs, dashboards. Visual execution, technical implementation, perceptual foundations, chart selection, layout algorithms, library guidance.
- typescript-backend-project-setup - NX monorepo setup for TypeScript backend projects optimized for AI-assisted development.
System Prompts
12 pre-built personas ready to use via cl shortcuts:
Composability
System prompts use @ references to load skills. See CLAUDE.md for composability guidelines and launcher docs for creating custom personas.a
Plugins
- track-and-improve - Capture mistakes and improvement opportunities with automatic 5 whys root cause analysis
- automatic-code-review - Automatic semantic code review on session stop with configurable project-specific rules. Auto-initializes with default rules, supports any language.
Details
- Marketplace
- NTCoding/claude-skillz
- Source
- fetching-circleci-logs
- Category
- Development
- Keywords
- circleci, ci, build-logs, debugging, pr-checks
- Listed since
- Apr 7, 2026
More from NTCoding/claude-skillz
All 13Similar to fetching-circleci-logs
More DevOps & Cloud
diagnose-ci-failuresSkillwarpdotdev/common-skills28.7K installsStructured CI failure triage for a PR using the GitHub CLI, covering status, logs, and fix planning.
analyze-ciSkillmlflow/mlflow28.9K starsSummarizes failed GitHub Action jobs from job, workflow-run, or PR URLs with root cause and log paths.
ci-debuggerPluginrohitg00/awesome-claude-code-toolkit2.8K starsDebug CI/CD pipeline failures and fix configurations
ci-triageMCP serverwjddidi-1Triage red GitHub Actions runs by root cause, separating real regressions from flaky failures.
khuym:debuggingPluginhoangnb24/skills120 starsSystematic debugging for blocked workers, test failures, and build errors
fix-ciPluginfumiya-kume/claude-code216 starsAutomatically diagnose and fix CI failures using sub-agent exploration