diagnose-ci-failures

द्वारा warpdotdev

GitHub CLI का उपयोग करके PR के लिए CI विफलताओं का निदान करें, त्रुटि लॉग निकालें, और उन्हें ठीक करने की योजना बनाएं। इसका उपयोग तब करें जब उपयोगकर्ता CI स्थिति जांचने, CI समस्याएं खींचने, परीक्षण विफलताओं को वर्गीकृत करने, या PR बिल्ड विफलताओं की जांच करने के लिए कहे।

npx skills add https://github.com/warpdotdev/common-skills --skill diagnose-ci-failures

diagnose-ci-failures

Programmatically diagnose CI failures for a PR and generate a plan to fix them.

Overview

This skill provides a deterministic workflow to check CI status for a PR, extract failure logs, analyze errors, and create a plan (not code changes) to resolve issues. The output is always a plan document that can be reviewed before execution.

Workflow

1. Verify PR exists for current branch

Get the current branch and check if a PR exists:

# Get current branch
git branch --show-current

# Check for PR
gh --no-pager pr view <branch-name> --json number,title,url,state

If no PR exists, inform the user and offer to create one using the create-pr skill.

2. Check CI status

Fetch the status of all CI checks:

gh pr view <branch-name> --json statusCheckRollup

Parse the output to identify:

  • Completed checks vs. in-progress checks
  • Successful checks
  • Failed checks with their names and details URLs

If CI is still running, inform the user which checks have already failed or passed, highlight the checks that are still running, and suggest waiting for completion before diagnosis.

3. Extract failure logs

For each failed check, pull the logs using the run ID from the status check:

gh run view <run-id> --log-failed

Focus on extracting:

  • Error messages and their locations (file paths, line numbers)
  • Compilation errors (unused imports, type mismatches, etc.)
  • Linting/clippy errors with specific lint names
  • Test failure messages and stack traces
  • Build failures and their root causes

4. Categorize errors

Group errors by type:

  • Formatting issues: cargo fmt failures
  • Linting issues: cargo clippy warnings/errors
  • Compilation errors: Type errors, missing imports, signature mismatches
  • Test failures: Failing tests with their names and failure reasons
  • Platform-specific issues: WASM, Linux, macOS, Windows-specific failures

5. Generate fix plan

Create a plan document (using create_plan tool) with:

  • Problem Statement: Summary of failing checks
  • Current State: What errors were found and where
  • Proposed Changes: Specific fixes needed for each error category
  • Validation Steps: Commands to verify fixes (fmt, clippy, tests, presubmit)

The plan should reference the fix-errors skill for detailed guidance on resolving specific error types.

Important Notes

  • Always create a plan first: Never make code changes directly. Generate a plan for user review
  • Check test status in CI: Even if tests fail locally, verify they passed in CI before flagging as issues
  • Unrelated test failures: If tests passed in CI but fail locally, they may be environment-specific or flaky
  • Multiple error types: Fix one category at a time (e.g., all clippy errors before tests)
  • Cross-reference fix-errors skill: For detailed error resolution strategies, use the fix-errors skill

Common CI Check Names

  • Formatting + Clippy (MacOS)
  • Formatting + Clippy (Linux)
  • Run MacOS tests
  • Run Linux tests
  • Run Windows tests
  • Check CI results (summary check)
  • WASM build

Example Commands

Get PR status with details:

gh --no-pager pr view --json number,title,state,statusCheckRollup

Get logs from specific failed run:

gh run view 12345678 --log-failed

Check for specific error in logs:

gh run view 12345678 --log-failed 2>&1 | grep -A 5 "error:"

warpdotdev की और Skills

council
warpdotdev
एक मॉडल-विविध उप-एजेंट परिषद चलाकर एक ही समस्या की विभिन्न दृष्टिकोणों से जांच करें, निष्कर्षों की तुलना करें, और अंतिम सिफारिश तैयार करें। इस कौशल का उपयोग तब करें जब उपयोगकर्ता परिषद, दूसरी राय, एक प्रश्न का मूल्यांकन करने के लिए कई एजेंट/मॉडल, समानांतर जांच, रेड-टीम/ब्लू-टीम तुलना, या प्रतिस्पर्धी तकनीकी दृष्टिकोणों के बीच निर्णय लेने में सहायता मांगे।
researchcommunicationproject-management
spec-driven-implementation
warpdotdev
बड़ी सुविधाओं के लिए स्पेक-प्रथम कार्यप्रवाह अपनाएँ: कार्यान्वयन से पहले PRODUCT.md लिखें, जब आवश्यक हो तो TECH.md लिखें, और कार्यान्वयन के विकास के साथ दोनों स्पेक्स को अद्यतन रखें। इसका उपयोग तब करें जब कोई महत्वपूर्ण सुविधा शुरू कर रहे हों, एजेंट-संचालित कार्यान्वयन की योजना बना रहे हों, या जब उपयोगकर्ता उत्पाद और तकनीकी स्पेक्स को स्रोत नियंत्रण में शामिल करना चाहता हो।
developmentdocumentproject-management
review-pr
warpdotdev
पुल रिक्वेस्ट डिफ की समीक्षा करें और वर्कफ़्लो को प्रकाशित करने के लिए review.json में संरचित फीडबैक लिखें। इसका उपयोग तब करें जब pr_diff.txt और pr_description.txt जैसे स्थानीय आर्टिफैक्ट से चेक-आउट किए गए PR की समीक्षा कर रहे हों और सीधे GitHub पर पोस्ट करने के बजाय मशीन-पठनीय समीक्षा आउटपुट तैयार कर रहे हों।
code-reviewdevelopment
create-pr
warpdotdev
वर्तमान शाखा के लिए warp रिपॉजिटरी में एक पुल रिक्वेस्ट बनाएँ। इसका उपयोग तब करें जब उपयोगकर्ता PR खोलने, पुल रिक्वेस्ट बनाने, समीक्षा के लिए परिवर्तन सबमिट करने, या मर्ज के लिए कोड तैयार करने का उल्लेख करे।
developmentcode-review
implement-specs
warpdotdev
PRODUCT.md और TECH.md से स्वीकृत सुविधा को लागू करें, स्पेक्स और कोड को उसी PR में संरेखित रखें जैसे-जैसे कार्यान्वयन विकसित होता है। उत्पाद और तकनीकी स्पेक्स स्वीकृत होने के बाद और अगला कदम सुविधा का निर्माण होने पर उपयोग करें।
developmentcode-reviewapi
cross-critique
warpdotdev
एक विवादित प्रश्न पर दूसरा दौर चलाएँ, प्रत्येक उप-एजेंट के स्वतंत्र प्रस्ताव को अन्य ल
resolve-merge-conflicts
warpdotdev
Resolve Git merge conflicts by extracting only unresolved paths, conflict hunks, and compact diffs instead of loading whole files into context. Use when a merge, rebase, cherry-pick, or stash pop stops on conflicts, when `git status` shows unmerged paths, or when files contain conflict markers.
developmentcode-review
brandalf
warpdotdev
Warp या Oz ब्रांडेड एसेट्स के निर्माण, संशोधन और समीक्षा का मार्गदर्शन करता है। लॉन्च पेजों, डॉक्स, HTML/CSS घटकों, UI मॉकअप्स, प्रॉम्प्ट्स, सोशल एसेट्स, कॉपी, प्रेजेंटेशन्स या किसी भी अन्य ब्रांडेड डिलिवरेबल पर काम करते समय उपयोग करें, जो निस्संदेह Warp या Oz जैसा दिखना और सुनाई देना चाहिए।
designcreativemarketing