Command Palette

Search for a command to run...

Назад к скиллам
скилл № 77457

remy-ci

Analyze CI/CD failure logs to diagnose build, test, and gate failures. Supports GitHub Actions (gh CLI), local log files, and pasted logs. Produces evidence…

БесплатноБез исполняемых скриптов
MyPeacefulValentineот MyPeacefulValentine★ 28 звёзд на GitHub

Установить remy-ci в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Remy CI Protocol

CI/CD failure log analysis skill. Parses build/test/gate failure logs, localizes errors to source files, and produces a structured diagnosis report plus an evidence packet compatible with /remy-patch. Does NOT modify source code.

0. Configuration

Environment Variable Default Description
CI_LOG_MAX_LINES 500 Maximum lines to retain per failed step when truncating logs.

Argument Parsing

/remy-ci [run_id | log_file_path | --paste]
  1. If argument is a numeric string: treat as GitHub Actions run ID (Mode C).
  2. If argument is a file path that exists on disk: treat as local log file (Mode B).
  3. If argument is --paste: treat as paste mode (Mode A) — prompt user to provide log text.
  4. If no argument provided: enter Guided Mode (Phase 0.1).

Phase 0: Log Acquisition

Goal: Obtain CI failure log content for analysis.

0.1 Guided Mode (no arguments)

Use AskUserQuestion to ask:

  • Input source? Options:
    • "GitHub Actions (gh CLI)" → proceed to 0.2
    • "Local log file" → proceed to 0.3
    • "Paste log text" → proceed to 0.4

0.2 GitHub Actions Mode (Mode C)

Prerequisite Check:

  1. Run Bash("gh --version 2>/dev/null && echo GH_OK || echo GH_MISSING").
  2. If GH_MISSING: report "gh CLI not available. Use Mode A (paste) or Mode B (file) instead." → return to 0.1.
  3. Run Bash("gh auth status 2>&1 | head -3") to verify authentication.
  4. If not authenticated: report authentication issue → return to 0.1.

Log Retrieval:

If run_id was provided:

  1. Fetch structured metadata: Bash("gh run view {run_id} --json jobs,conclusion,name,headBranch").
  2. Parse JSON output. Identify failed jobs and steps.
  3. Fetch failed step logs: Bash("gh run view {run_id} --log-failed 2>&1 | tail -n {CI_LOG_MAX_LINES}").

If no run_id:

  1. Detect current branch: Bash("git branch --show-current").
  2. Find latest failed run: Bash("gh run list --branch {branch} --status failure -L 1 --json databaseId,name,conclusion,event").
  3. If no failed runs found: report "No failed CI runs found on branch {branch}." → HALT.
  4. Extract databaseId and proceed as if run_id was provided.

Record the structured metadata as CI Metadata and the log text as Raw Log.

0.3 File Mode (Mode B)

  1. Read the specified file path.
  2. If file exceeds CI_LOG_MAX_LINES lines: apply Phase 1 truncation strategy.
  3. Record content as Raw Log. CI Metadata is unavailable.

0.4 Paste Mode (Mode A)

  1. Use AskUserQuestion: "Paste the CI failure log below (or provide the key error messages)."
  2. Record user input as Raw Log. CI Metadata is unavailable.

Phase 0 Exit: Raw Log exists (and optionally CI Metadata). Proceed to Phase 1.


Phase 1: Classification & Truncation

Goal: Identify the failure type(s) and reduce log volume.

1.1 Structured Classification (Mode C only)

If CI Metadata is available:

  1. Parse job/step names to infer failure categories (e.g., step named "Build" → compile_error, step named "Test" → test_failure).
  2. Map each failed step to a failure type from parsers.json.
  3. If mapping succeeds: skip keyword classification (1.2) for those steps.

1.2 Keyword Classification (All modes, fallback)

  1. Read the file skills/remy-ci/parsers.json.
  2. For each registered parser entry, scan the Raw Log for its keywords (case-insensitive).
  3. Count keyword matches per type. Assign the type(s) with the most matches.
  4. If no keywords match any type: assign unknown.

1.3 Log Truncation

If Raw Log exceeds CI_LOG_MAX_LINES:

  1. Extract all lines matching error/failure keywords across all matched parser types.
  2. Extract the last CI_LOG_MAX_LINES / 2 lines of the Raw Log (tail context).
  3. Merge (deduplicate) these two sets, preserving original line order.
  4. Record the result as Filtered Log.

If Raw Log is within limits: use Raw Log directly as Filtered Log.

Phase 1 Exit: Failure type(s) identified. Filtered Log available. Proceed to Phase 2.


Phase 2: Type-Specific Parsing

Goal: Extract structured error information from the Filtered Log.

For each identified failure type, apply the corresponding parsing rules:

2.1 Compile Error (compile_error)

  • Pattern: {file}:{line}:{col}: error: {message} or {file}:{line}: error: {message}
  • Extract: file path, line number, column (if present), error message.

2.2 Link Error (link_error)

  • Pattern: undefined reference to '{symbol}', multiple definition of '{symbol}'
  • Extract: symbol name, referencing object file (if present).

2.3 Test Failure (test_failure)

  • Patterns: pytest (FAILED {test_id}), gtest ([ FAILED ] {test_name}), kunit (not ok {n} - {test_name}), TAP format.
  • Extract: test name, assertion message, file path and line (if present).

2.4 QEMU/Emulation Failure (qemu_failure)

  • Patterns: Kernel panic, BUG:, Unable to mount root fs, timeout, QEMU ex
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Grep
  3. 03Glob
  4. 04Bash
  5. 05PowerShell
  6. 06Write
  7. 07AskUserQuestion

Вложенные файлы

  • README.md
  • README_zh.md
  • diagnosis_template.md
  • output_schema.json
  • parsers.json

FAQ

Что делает скилл remy-ci?

Analyze CI/CD failure logs to diagnose build, test, and gate failures. Supports GitHub Actions (gh CLI), local log files, and pasted logs. Produces evidence packets for /remy-patch.

Как установить скилл remy-ci?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл remy-ci запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить remy-ci с