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.
curl -O https://raw.githubusercontent.com/ruaan-deysel/unraid-management-agent/main/.github/prompts/Add Collector.prompt.mdgit clone --depth 1 https://github.com/ruaan-deysel/unraid-management-agentWrote 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.
[](https://agentmods.dev/commands/ruaan-deysel/unraid-management-agent/add-collector)<a href="https://agentmods.dev/commands/ruaan-deysel/unraid-management-agent/add-collector"><img src="https://agentmods.dev/badge/commands/ruaan-deysel/unraid-management-agent/add-collector/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.
<a href="https://agentmods.dev/commands/ruaan-deysel/unraid-management-agent/add-collector"><img src="https://agentmods.dev/badge/commands/ruaan-deysel/unraid-management-agent/add-collector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.00742 |
| Opus 5 | $0.00005 | $0.00371 |
| Sonnet 5 | $0.00002 | $0.00148 |
| Haiku 4.5 | $0.00001 | $0.00074 |
Grade A, and why
Add Collector 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add a New Collector
Follow these steps to add a new data collector to the Unraid Management Agent.
Step 1: Define the DTO
Create or update a struct in daemon/dto/ for the data this collector will produce.
- Use
json:"field_name"tags on all exported fields - Use
json:"field_name,omitempty"for optional fields
Step 2: Create the Collector
Create a new file in daemon/services/collectors/ (e.g., myfeature.go).
Follow the pattern from system.go:
package collectors
import (
"context"
"time"
"unraid-management-agent/daemon/domain"
"unraid-management-agent/daemon/dto"
"unraid-management-agent/daemon/logger"
)
type MyFeatureCollector struct {
ctx *domain.Context
}
func NewMyFeatureCollector(ctx *domain.Context) *MyFeatureCollector {
return &MyFeatureCollector{ctx: ctx}
}
func (c *MyFeatureCollector) Collect() {
// Collect data from system sources
data := dto.MyFeatureInfo{
// populate fields
}
c.ctx.Hub.Pub(data, "my_feature_update")
}
func (c *MyFeatureCollector) Start(ctx context.Context, interval time.Duration) {
func() {
defer func() {
if r := recover(); r != nil {
logger.Error("MyFeature collector PANIC on startup: %v", r)
}
}()
c.Collect()
}()
ticker := time.NewTicker(interval)
defer ticker.Stop()
for {
select {
case <-ctx.Done():
return
case <-ticker.C:
func() {
defer func() {
if r := recover(); r != nil {
logger.Error("MyFeature collector PANIC in loop: %v", r)
}
}()
c.Collect()
}()
}
}
}
Step 3: Define the Interval
Add a constant in daemon/constants/const.go for the collection interval. Choose an appropriate interval considering CPU/power impact.
Step 4: Register the Collector
In daemon/services/collector_manager.go RegisterAllCollectors(), register the new collector.
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.
- 4d ago First seen · 125 lines · 10 tokens per session scan A a1e3cdcbfed6
Add Collector is a command published in the GitHub repository ruaan-deysel/unraid-management-agent (53 stars, last pushed 3d ago), licensed MIT. It adds 10 tokens to every session and 742 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.
Other commands, from other repositories
jaz-capabilities
What Jaz can do — the full operation map.
init
Initialize configurations for Supabase local development.
publish-api-docs
Generate interactive API documentation from blueprint specs (Swagger UI, Redoc, AsyncAPI).
flow-nexus-auth
Flow Nexus authentication and user management.
multi-backend
Backend-focused workflow (Research → Ideation → Plan → Execute → Optimize → Review), Codex-led.
checklist
Generate a custom checklist for the current feature based on user requirements.