unraid-management-agent: Command for GitHub Copilot

.github/prompts/Debug Collector Issue.prompt.md

Debug Collector Issue is a command for GitHub Copilot from ruaan-deysel/unraid-management-agent. It costs 10 tokens per session (510 once invoked), scanned A, original, MIT.

A step-by-step guide for finding failures in hardware data collectors, which gather information from devices and system commands.

In plain words
What is it for?
Use it to investigate problems involving CPUs, disks, GPUs, UPS devices, network hardware, virtual machines, or Docker data collection.
Why use it?
It provides a path from log errors to raw command output and parser differences, helping identify why a collector crashes or misreads hardware data.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is ruaan-deysel/unraid-management-agent's own configuration. It tells GitHub Copilot how to work on unraid-management-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unraid-management-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ruaan-deysel/unraid-management-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ruaan-deysel/unraid-management-agent/main/.github/prompts/Debug Collector Issue.prompt.md
Clone the repo
git clone --depth 1 https://github.com/ruaan-deysel/unraid-management-agent

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Debug Collector Issue

README.md
[![agentmods](https://agentmods.dev/badge/commands/ruaan-deysel/unraid-management-agent/debug-collector-issue/github.svg)](https://agentmods.dev/commands/ruaan-deysel/unraid-management-agent/debug-collector-issue)
Your own site
<a href="https://agentmods.dev/commands/ruaan-deysel/unraid-management-agent/debug-collector-issue"><img src="https://agentmods.dev/badge/commands/ruaan-deysel/unraid-management-agent/debug-collector-issue/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Debug Collector Issue

Your own site · 80×15
<a href="https://agentmods.dev/commands/ruaan-deysel/unraid-management-agent/debug-collector-issue"><img src="https://agentmods.dev/badge/commands/ruaan-deysel/unraid-management-agent/debug-collector-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00510
Opus 5 $0.00005 $0.00255
Sonnet 5 $0.00002 $0.00102
Haiku 4.5 $0.00001 $0.00051

Measured 2d ago against content hash 02923e98d27b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

Debug Collector Issue scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/Debug Collector Issue.prompt.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debug a Collector Issue

Follow these steps to debug a hardware-specific collector failure.

Step 1: Identify the Failing Collector

Check the log file at /var/log/unraid-management-agent.log for errors. Look for:

  • PANIC messages (collector crashed)
  • Parse errors (unexpected output format)
  • Command execution failures

Step 2: Reproduce the Issue

If possible, get the raw command output that the collector is trying to parse. Common commands:

Collector Command / Source
System /proc/cpuinfo, /proc/meminfo, sensors
Disk smartctl output
GPU nvidia-smi, intel_gpu_top
UPS apcaccess, upsc
Hardware dmidecode
Network ethtool, /sys/class/net/
VM virsh via go-libvirt
Docker Docker Engine SDK

Step 3: Compare Expected vs Actual Output

The collector's parsing logic expects a specific format. Compare:

  1. What format does the parsing code expect?
  2. What format does this hardware actually produce?

Check the relevant parsing code in:

  • daemon/lib/parser.go — INI file parsing
  • daemon/lib/dmidecode.go — DMI/SMBIOS parsing
  • daemon/lib/ethtool.go — Network interface parsing
  • daemon/services/collectors/*.go — Collector-specific parsing

Step 4: Add Fallback Logic

When different hardware produces different output:

  1. Don't remove support for the original format
  2. Add detection for the new format
  3. Use defensive parsing (check array bounds, handle nil)
  4. Log warnings for unexpected formats (not errors)

Step 5: Test

  • Add test cases for both the original and new hardware formats
  • Use actual output samples as test fixtures
  • Run make test to verify nothing broke

Step 6: Document

  • Document the hardware details in the PR description
  • Update CHANGELOG.md with the fix
  • Consider updating docs/guides/system-requirements.md if relevant

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 67 lines · 10 tokens per session scan A 02923e98d27b

Subscribe to this mod's changes

Debug Collector Issue is a command published in the GitHub repository ruaan-deysel/unraid-management-agent (53 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 510 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.