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★ 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]
- If argument is a numeric string: treat as GitHub Actions run ID (Mode C).
- If argument is a file path that exists on disk: treat as local log file (Mode B).
- If argument is
--paste: treat as paste mode (Mode A) — prompt user to provide log text. - 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:
- Run
Bash("gh --version 2>/dev/null && echo GH_OK || echo GH_MISSING"). - If
GH_MISSING: report "gh CLI not available. Use Mode A (paste) or Mode B (file) instead." → return to 0.1. - Run
Bash("gh auth status 2>&1 | head -3")to verify authentication. - If not authenticated: report authentication issue → return to 0.1.
Log Retrieval:
If run_id was provided:
- Fetch structured metadata:
Bash("gh run view {run_id} --json jobs,conclusion,name,headBranch"). - Parse JSON output. Identify failed jobs and steps.
- Fetch failed step logs:
Bash("gh run view {run_id} --log-failed 2>&1 | tail -n {CI_LOG_MAX_LINES}").
If no run_id:
- Detect current branch:
Bash("git branch --show-current"). - Find latest failed run:
Bash("gh run list --branch {branch} --status failure -L 1 --json databaseId,name,conclusion,event"). - If no failed runs found: report "No failed CI runs found on branch {branch}." → HALT.
- Extract
databaseIdand 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)
Readthe specified file path.- If file exceeds
CI_LOG_MAX_LINESlines: apply Phase 1 truncation strategy. - Record content as Raw Log. CI Metadata is unavailable.
0.4 Paste Mode (Mode A)
- Use
AskUserQuestion: "Paste the CI failure log below (or provide the key error messages)." - 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:
- Parse job/step names to infer failure categories (e.g., step named "Build" → compile_error, step named "Test" → test_failure).
- Map each failed step to a failure type from
parsers.json. - If mapping succeeds: skip keyword classification (1.2) for those steps.
1.2 Keyword Classification (All modes, fallback)
Readthe fileskills/remy-ci/parsers.json.- For each registered parser entry, scan the Raw Log for its
keywords(case-insensitive). - Count keyword matches per type. Assign the type(s) with the most matches.
- If no keywords match any type: assign
unknown.
1.3 Log Truncation
If Raw Log exceeds CI_LOG_MAX_LINES:
- Extract all lines matching error/failure keywords across all matched parser types.
- Extract the last
CI_LOG_MAX_LINES / 2lines of the Raw Log (tail context). - Merge (deduplicate) these two sets, preserving original line order.
- 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
Bash - 05
PowerShell - 06
Write - 07
AskUserQuestion
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…