Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

analyze-ci-failures分析 CI 故障

Agent Skill

analyze-ci-failures 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

222

周安装

9

GitHub Stars

2

下载量

70
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:analyze-ci-failures(分析 CI 故障)
来源仓库:https://github.com/vimkim/my-cubrid-skills
仓库路径:skills/analyze-ci-failures
安装命令:
npx skills add https://github.com/vimkim/my-cubrid-skills --skill analyze-ci-failures
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vimkim/my-cubrid-skills --skill analyze-ci-failures

简介

用于分析 CircleCI 或其他 CI 平台失败的 shell 测试用例。

  • 提供分类报告和根本原因分析,附带修复建议。
  • 支持交互式查找或指定 URL/文件路径两种使用方式。
  • 安装命令:npx skills add https://github.com/vimkim/my-cubrid-skills --skill analyze-ci-failures。
  • 需确保有权限访问 CI 日志文件或对应的 CircleCI URL。

SKILL.md

CUBRID CI Test Failure Analyzer

Analyze failed shell test cases from CircleCI (or other CI) for CUBRID PRs. Produces a categorized report with root cause analysis and fix proposals.

When to Use

  • User says "analyze ci failures", "CI 실패 분석", "왜 TC 실패했어", "failed tc 분석"
  • User shares a CircleCI URL with test failures
  • User has a failed_tc.txt or similar list of failed test cases
  • User wants to understand why shell tests failed on a PR

Arguments

  • /analyze-ci-failures — Interactive: look for failed_tc.txt in cwd
  • /analyze-ci-failures <circleci-url> — Fetch failures from CircleCI
  • /analyze-ci-failures <file> — Read failure list from specified file

Inputs

The skill needs:

  1. Failed TC list: A file listing failed test case paths (e.g., failed_tc.txt), or a CircleCI URL to fetch from
  2. Test case directory: A directory containing the actual test scripts and answer files (e.g., ~/cubrid-testcases-private-ex)
  3. Feature context: The branch/PR being tested (to understand what changes might cause failures)

Execution Steps

Step 1: Gather Inputs

  1. Locate the failed TC list:

- Check arguments for a file path or CircleCI URL - Check cwd for failed_tc.txt - Ask user if not found

  1. Identify the test case base directory:

- Check if ~/cubrid-testcases-private-ex exists - Check additional working directories - Ask user if not found

  1. Identify the feature branch context:

- git branch --show-current - git log --oneline HEAD --not develop | head -20 to understand feature changes

Step 2: Fetch CI Failure Details

If a CircleCI URL is provided, use an agent to fetch the actual test failure messages (diffs, error outputs). This provides the actual vs expected output, which is critical for root cause analysis.

Step 3: Read All Failed Test Cases (Parallel)

For each failed TC:

  1. Read the test script (.sh file in cases/ directory)
  2. Read the answer file (.answer file — expected output)
  3. Read supporting SQL files (.sql files used by the test)
  4. Note what the test does: data types involved, operations tested (CRUD, unload/load, copydb, diagdb, etc.)

Use parallel reads — launch all file reads at once since they're independent.

Step 4: Analyze Feature Changes

Understand what the feature branch changes that could cause failures:

  1. Read key modified source files (use git diff develop...HEAD --stat)
  2. Identify behavioral changes:

- New file types or storage mechanisms - Changed output formats (diagdb, show heap header, etc.) - Disabled or stubbed functions - New error codes or changed error messages

  1. Use explore agents in parallel for deeper code analysis if needed

Step 5: Categorize and Analyze

For each failed TC, determine:

  1. Is it related to the feature? — Match test operations against feature changes
  2. Root cause hypothesis — Why the test fails given the feature changes
  3. Category — Group TCs by shared root cause

Common categories:

  • Output format mismatch (answer file needs update)
  • Disabled/stubbed functionality
  • New storage path not handled by existing tool (unloaddb, copydb, etc.)
  • Error code changes
  • Timeout / CI flakiness
  • Unrelated regression

Step 6: Generate Report

Write a structured markdown report with:

# Failed TC Analysis Report: <branch> (<PR link>)

## Background
(Feature description, key behavioral changes)

## Category N: <Root Cause> (X TCs) — <OOS-related? / Feature-related?>

| # | TC | What it tests | Failure | Related? |
|---|-----|--------------|---------|----------|
| ... | ... | ... | ... | ... |

**Root cause analysis**: ...
**Proposed fix**: ...

## Summary

| Category | Count | Related? | Root Cause |
|----------|-------|----------|------------|
| ... | ... | ... | ... |

## Priority Actions
1. P0: ...
2. P1: ...

Step 7: Save and Present

  1. Save report to failed_tc_report.md in the project root (or user-specified location)
  2. Print a concise summary with counts: X related, Y unrelated, Z total

Output Conventions

Language

  • Section headers (##): English
  • Table content and analysis: English (technical report for broad audience)
  • Code, paths, function names: Keep as-is

Style

  • Tables for TC listings within each category
  • Code blocks for call flow diagrams showing broken vs expected paths
  • Bold for key findings and root causes
  • Backticks for all code references
  • Horizontal rules between major sections

Tips

  • When in doubt about source code behavior, use LSP (clangd) to analyze CUBRID C/C++ code. Use lsp_hover to check types, lsp_goto_definition to trace function implementations, lsp_find_references to understand call sites, and lsp_diagnostics to catch issues. This is especially useful when tracing how a changed function affects downstream callers.
  • When fetching CircleCI results, use API v1.1 (not v2) since v2 requires authentication. Example: https://circleci.com/api/v1.1/project/github/CUBRID/cubrid/<build_num>/tests works without credentials.
  • Always read the actual test script AND answer file — the script tells you what operations are tested, the answer tells you what output is expected
  • Look for data types that exceed storage thresholds (e.g., varchar(20000), large JSON, CLOB/BLOB)
  • Check for diagdb, show heap header, cubrid spacedb in test scripts — these are sensitive to storage format changes
  • Check for unloaddb/loaddb/copydb — these require full record resolution
  • TCs with no diff details from CI may need local reproduction to diagnose
  • Group by root cause, not by symptom — multiple TCs often share a single underlying issue

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.49%
按下载量换算24

Claude

29.19%
按下载量换算20

Cursor

19.72%
按下载量换算14

Gemini CLI

9.18%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/vimkim/my-cubrid-skills --skill analyze-ci-failures 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills