newrelic-cli

newrelic-cli is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 35 tokens per session (786 once invoked), scanned A, original, Apache-2.0.

A command-line skill for New Relic, a service for monitoring applications and infrastructure. It queries monitored entities, applications, alerts, and NRQL data, which is New Relic's query language for telemetry.

In plain words
What is it for?
Use it to search monitored entities, review applications and alerts, and run NRQL queries on New Relic data.
Why use it?
It avoids relying on an unintended account or default profile when inspecting monitoring data. It gives command-line access to operational information used to investigate incidents.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search monitored entities, review applications and alerts, and run NRQL queries on New Relic data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullahkhawer/devops-skills/newrelic-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add abdullahkhawer/devops-skills --skill newrelic-cli
Clone the repo
git clone --depth 1 https://github.com/abdullahkhawer/devops-skills

Made for: Claude Code, Codex.

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 newrelic-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/newrelic-cli/github.svg)](https://agentmods.dev/skills/abdullahkhawer/devops-skills/newrelic-cli)
Your own site
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/newrelic-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/newrelic-cli/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 newrelic-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/newrelic-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/newrelic-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 786 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.00035 $0.00786
Opus 5.5 $0.00014 $0.00314
Sonnet 5.5 $0.00007 $0.00157
Haiku 4.5 $0.00003 $0.00079

Measured 23d ago against content hash 84b3608a0c15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

newrelic-cli 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 23d 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.

skills/newrelic-cli/SKILL.md · 88 lines

How it starts

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

New Relic CLI Skill

Use the profile table and rules below when constructing all newrelic CLI commands.

Configuration

Update the table below with your New Relic CLI profile names:

Environment Profile Account ID
Production <your-prod-profile> <your-prod-account-id>
Staging <your-staging-profile> <your-staging-account-id>

If the target environment is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.

brew install newrelic-cli
newrelic profile configure --profile <your-profile-name>
newrelic profile list

Command Format

Always pass --profile explicitly — never rely on the default profile:

newrelic <command> --profile <profile> [options]

Examples

# Run a NRQL query
newrelic nrql query --profile <your-staging-profile> --accountId <your-staging-account-id> --query "SELECT count(*) FROM Transaction SINCE 1 hour ago"

# List entities
newrelic entity search --profile <your-staging-profile> --name "<service-name>"

Available Commands

Read-only (safe, no confirmation needed)

Command Description
newrelic nrql query Run a NRQL query
newrelic entity search Search for entities (services, hosts)
newrelic entity get Get details of an entity
newrelic apm application list/get List or describe APM applications
newrelic alerts policy list List alert policies
newrelic alerts condition list List alert conditions
newrelic profile list List configured CLI profiles

Mutating operations (confirm with user before running)

Command Description
newrelic alerts policy create Create an alert policy
newrelic alerts condition create Create an alert condition
newrelic edge create Create an edge tracing/ingest resource
newrelic workload create Create a workload

Read the full file on GitHub · 88 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. 23d ago First seen · 88 lines · 35 tokens per session scan A 84b3608a0c15

Subscribe to this mod's changes

newrelic-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (8 stars, last pushed 24d ago), licensed Apache-2.0. It adds 35 tokens to every session and 786 once invoked, about $0.0001 per session on Opus 5.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-23.

Related

Other skills, from other repositories

proposal-troubleshoot

Diagnose a problem with the proposal skills themselves — a script that fails, a rule applied wrongly, output that contradicts the skill's own stated mandate — and assemble a bug report when it turns out to be a real defect. Use when a skill misbehaved, not when the proposal needs improving.

hutzelmann/thesis-proposal-skills · 66 tokens

agents-sdk-dotnet-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (Microsoft.Agents.Hosting.AspNetCore and related packages) in C# / .NET. Trigger on any of these symptoms: build or C# compile errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, appsettings.json…

microsoft/Agents · 136 tokens

observability

Periodic health sweep of the running system via the debug pipeline (cloud logs / k8s / daemon / DB slices). On a real anomaly, open a bug task (--kind workitem) carrying the evidence refs so it re-enters the bugfix loop. A healthy sweep opens NO task — never fabricate a bug.

Prismer-AI/PrismerCloud · 67 tokens

prismer-python-debugpy

Debug Python: pdb REPL + debugpy remote (DAP).

Prismer-AI/PrismerCloud · 19 tokens

fetch-url

Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.

arabold/docs-mcp-server · 45 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens