Rpm Examineのロゴ

Rpm Examine

組織
opendatahub-io
rpm-examine

RPMのbuild.logにある失敗を分析します

Add to TypingMind

概要

公開者opendatahub-io
リポジトリai-helpers
スキル名rpm-examine
スター
39
フォーク
76
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    opendatahub-ioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Rpm Examine」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-rpm/skills/rpm-examine
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-rpm/skills/rpm-examine .claude/skills/rpm-examine
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでRpm Examineを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にRpm Examineを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Rpm Examineは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Name

odh-ai-helpers:rpm-examine

Synopsis

/rpm:examine <copr-chroot-url>
/rpm:examine <build-log-url> <srpm-url>
/rpm:examine <build.log> <specfile|dist-git> [sources]

Description

Analyze RPM build.log failures. Provide a comprehensive analysis with error summary, root cause, and actionable fixes.

Mode 1: Copr Results URL or Direct URLs to build.log and SRPM

Provide a single Copr build results URL to automatically fetch all build artifacts or provide two URLs - one for build.log and one for SRPM.

What gets downloaded:

  • build-live.log.gz or build.log - Main build log
  • *.src.rpm - Source RPM containing spec file, sources, and patches
  • root.log.gz, state.log - Additional context logs (optional)

Mode 2: Local Files

Provide paths to local build artifacts.

Arguments:

  1. <build.log> - Path to build log file (required)
  2. <specfile|dist-git> - Path to spec file or dist-git repo clone (required)
  3. [sources] - Path to source tarball or unpacked sources (optional)

Context gathering: If sources not provided, search in:

  • build.log parent directory
  • specfile parent directory
  • dist-git clone directory

Implementation

1. Input Detection

  • If single URL: Copr results directory → continue to step 2a
  • If two URLs: Direct URLs to build.log and SRPM (Koji/Brew) → download both directly, then follow 2a steps 3-5
  • If local path(s): Local workflow → continue to step 2b

2. Artifact Collection

2a. URL Workflow
  1. Create temporary working directory
  2. Download files from Copr URL:
    bash
    curl -LO <copr-url>/builder-live.log.gz
    curl -LO <copr-url>/*.src.rpm
    curl -LO <copr-url>/root.log.gz      # optional
    curl -LO <copr-url>/state.log        # optional
  3. Decompress logs: gunzip *.log.gz (if needed)
  4. Extract SRPM: rpm2cpio *.src.rpm | cpio -idmv
  5. Locate extracted spec file
2b. Local Workflow
  1. Verify build.log exists and is readable
  2. Verify specfile/dist-git path exists
  3. Search for sources if not provided:
    • Check build.log parent directory for *.tar.* or *.src.rpm
    • Check specfile parent directory
    • If dist-git repo, check for sources in repo

3. Context Gathering

Collect all relevant information before analysis:

Spec file analysis:

  • BuildRequires dependencies
  • Patches and their application order
  • Macros and their expansions
  • Build steps (%prep, %build, %install, %check, %files)

Additional context:

  • For dist-git repos: Run git diff to check uncommitted changes
  • Examine patch files for conflicts or application failures
  • Look for auxiliary files: %{name}.conf, %{name}.desktop, systemd units
  • Check for additional logs: root.log, state.log, mock.log

Source code (if needed):

  • For compiler errors: Unpack sources to examine code
  • For test failures: Locate test files and configurations
  • For build system issues: Check CMakeLists.txt, Makefile.am, setup.py, etc.

4. Analysis

Scan Strategy
  1. Start at the end: Scan build.log from bottom up to find failure point
  2. Identify the phase: Determine which RPM build phase failed:
    • %prep - Source unpacking and patch application
    • %build - Compilation and building
    • %install - Installation to buildroot
    • %check - Test suite execution
    • Binary RPM creation - File packaging
  3. Find the trigger: Locate exact command or operation that failed
  4. Trace backwards: Follow the chain of events leading to failure
  5. Cross-reference: Compare findings with specfile configuration
Error Keywords to Search
  • "Error:", "FAILED", "fatal error:"
  • "configure: error:", "No such file"
  • "undefined reference", "make: ***"
  • "CMake Error", "ninja: build stopped"
  • "ModuleNotFoundError", "ImportError"
  • "Ignoring extra path from command line" - May indicate broken line continuation in spec file
  • "add_subdirectory given source" + "not an existing directory" - May indicate missing options due to spec formatting
Hard To Find Error Patterns

Spec file whitespace issues:

  • Trailing space after backslash (\ instead of \) - Breaks line continuation, causing subsequent lines to be completely ignored by the shell
  • Missing backslash in multi-line constructs (especially in %if blocks)
  • Detection: Use cat -A specfile.spec to reveal trailing spaces (shows as \ $ at end of line) or grep '\\ $' specfile.spec
  • Symptoms: CMake/configure options appear ignored, features default to wrong values, mysterious "directory not found" errors

5. Cleanup

  • If URL workflow was used, clean up temporary directory after analysis
  • Ask user before cleanup if they might need files for further investigation

Output Format

Provide a clear, structured analysis:

1. Error Summary

Brief description of what failed (1-2 sentences)

2. Root Cause

Technical explanation of why it failed:

  • Which phase encountered the error
  • What operation or command triggered it
  • Underlying technical reason

3. Suggested Fixes

Specific, actionable steps to resolve:

  • Exact changes needed (with code/spec snippets if applicable)
  • Commands to run
  • Dependencies to add/modify
  • Patches to apply/modify

4. Additional Recommendations

Optional section for:

  • Related improvements
  • Potential future issues
  • Best practices
  • Warnings about side effects

よくある質問

AIスキル「Rpm Examine」では何ができますか?

RPMのbuild.logにある失敗を分析します

TypingMindでRpm Examineを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Rpm Examineはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにRpm Examineをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-rpm/skills/rpm-examineを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Rpm Examineを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Rpm Examineで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもRpm Examineを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Rpm Examine」は無料ですか?

はい。opendatahub-ioがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇