Rpm Examine logo

Rpm Examine

Organization
opendatahub-io
rpm-examine

Analyze RPM build.log failures

Overview

Publisheropendatahub-io
Repositoryai-helpers
Skill namerpm-examine
Stars
39
Forks
76
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by opendatahub-io on GitHub. Read the source before you install it.

Installation

Install the Rpm Examine AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-rpm/skills/rpm-examine
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rpm Examine in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rpm Examine on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rpm Examine is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Frequently asked questions

What does the Rpm Examine AI skill do?

Analyze RPM build.log failures

Why use Rpm Examine on TypingMind?

Because you install it once and use it with any model. Rpm Examine is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rpm Examine in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-rpm/skills/rpm-examine. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Rpm Examine?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rpm Examine?

As many as you like. As long as a model supports skills, you can use Rpm Examine with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rpm Examine AI skill free?

Yes. It is published on GitHub by opendatahub-io under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇