Skip to content

mr-cal/craft-build-debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Craft Build Debugger

An agent skill for diagnosing and fixing failing snapcraft, charmcraft, and rockcraft builds.

What it does

When a craft build fails, this skill guides the agent to:

  • Find and read the relevant log file
  • Use craft's built-in debug flags (--shell, --shell-after, --debug) to drop into the build environment and inspect state
  • Iterate efficiently by targeting specific parts instead of rebuilding everything
  • Diagnose common error patterns (missing packages, scriptlet failures, linter warnings, YAML validation errors)
  • Understand the build provider (LXD/Multipass) and how to override it

Installation

Copy SKILL.md to your agent's skills directory:

# For Claude Code
cp SKILL.md ~/.claude/skills/craft-debug/SKILL.md

# For Codex / GitHub Copilot CLI
cp SKILL.md ~/.agents/skills/craft-debug/SKILL.md

Contents

SKILL.md          # The skill
eval/
  train_queries.json   # Training eval queries for description testing
  val_queries.json     # Validation eval queries

Eval queries

The eval/ directory contains trigger eval queries following the optimizing descriptions methodology. Use them to verify the skill's description triggers correctly after any edits.

All 7 sampled queries passed at time of writing (4 train, 3 validation).

About

Agent skill for debugging failing craft builds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors