Delegating to New Relic Agent

Delegate New Relic NRQL queries and monitoring tasks to a sub-agent.

34|5|Updated Oct 15, 2025
One-click install
npx skills add https://github.com/ryancnelson/deli-gator --skill delegating-to-new-relic-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Delegating to New Relic Agent
Source: https://github.com/ryancnelson/deli-gator/tree/main/examples/4-monitoring-system/skills/delegating-to-monitoring-agent
Command: npx skills add https://github.com/ryancnelson/deli-gator --skill delegating-to-new-relic-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires newrelic-cli.

What problem does it solve?

This Skill prevents your main AI assistant from getting bogged down with complex New Relic NRQL and API details, which bloats context, increases costs, and reduces focus. It delegates specialized monitoring queries to a sub-agent, ensuring your primary AI remains efficient and cost-effective.

Core Features & Use Cases

  • NRQL Query Execution: Run custom NRQL queries to analyze logs, transactions, and metrics.
  • Alert & Application Monitoring: List active alerts and monitored applications.
  • Log Search & Pattern Analysis: Search logs, identify anomalies, and detect new log patterns.
  • Drop Rule Management: List and verify NRQL drop rules for data ingestion control.
  • Use Case: When a user asks to "show me active alerts", this Skill automatically delegates the task to a specialized sub-agent, which executes the necessary monitoring-alerts command and returns a formatted list of alerts, without exposing complex NerdGraph details to the main AI.

Quick Start

Example: Delegating a New Relic query

Task( subagent_type: "general-purpose", description: "Query New Relic monitoring", prompt: "<full agent instructions from AGENT-INSTRUCTIONS.md>

USER REQUEST: Show me active alerts

Return clean, formatted results ready to show the user." )

Frequently Asked Questions about Delegating to New Relic Agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent New Relic queries from bloating my AI assistant's context?

Delegate New Relic operations to a specialized sub-agent using task-based delegation. This keeps NRQL queries, alerts, logs, and drop rules isolated from your main AI, reducing context pollution and costs while maintaining focus.

Can I automate NRQL queries and alert monitoring without complex API details?

Yes. Delegation to a sub-agent handles NRQL query execution, active alert listing, monitored application tracking, and log searches automatically, returning clean formatted results without exposing NerdGraph complexity.

What New Relic operations can I delegate to a sub-agent?

Delegate NRQL queries, drop rule management, active alert checks, monitored application listing, and log pattern searches. Each delegates to a specialized sub-agent that executes the appropriate monitoring command and formats output.

How do I set up delegation for New Relic monitoring tasks?

Invoke a sub-agent with subagent_type set to general-purpose and pass the full AGENT-INSTRUCTIONS.md prompt containing the user request. The sub-agent executes the monitoring operation and returns formatted results ready to display.

What's the best way to handle log searches and anomaly detection in New Relic?

Use sub-agent delegation to search logs and identify patterns without blocking your main AI. The delegated task executes log queries and anomaly detection, returning structured results without context overhead.

Do I need the newrelic-cli installed to use this delegation approach?

Yes. The newrelic-cli dependency is required for the sub-agent to execute New Relic operations including NRQL queries, alert checks, drop rule verification, and log searches.