newrelic-cli
Skill8 starsChanged 6 months agoApache-2.0View on GitHub
Perform New Relic operations using the newrelic CLI and NerdGraph API. Use for querying entities, applications, alerts, and NRQL data.
- Installs packages
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the profile table and rules below when constructing all newrelic CLI commands.
- Distinctive: line 12
Update the table below with your New Relic CLI profile names:
- Distinctive: line 19
If the target environment is unclear, ask the user before running any command.
- Distinctive: line 23
If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually.
- Very specific: line 33
Always pass --profile explicitly — never rely on the default profile:
- Distinctive: line 83
NEVER target a profile not listed in the configuration table above.
- Very specific: line 84
Always pass --profile explicitly on every command — never rely on the default profile, which may point to the wrong account.
- Distinctive: line 85
NEVER run delete operations without explicit user instruction — these are irreversible.
- Very specific: line 86
NEVER print, display, or store New Relic API/license/ingest keys.
- Very specific: line 88
If an entity GUID, policy ID, or account ID is unfamiliar, look it up with entity search or alerts policy list first.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 listCommand 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 |
Never run — requires explicit human approval
| Command | Reason |
newrelic alerts policy delete | Irreversible policy deletion |
newrelic alerts condition delete | Irreversible condition deletion |
newrelic apm application delete | Removes an application entity |
newrelic entity delete | Irreversibly deletes an entity |
Rules
- NEVER target a profile not listed in the configuration table above. If a command references an unfamiliar profile, stop and ask the user to confirm.
- Always pass
--profileexplicitly on every command — never rely on the default profile, which may point to the wrong account. - NEVER run delete operations without explicit user instruction — these are irreversible.
- NEVER print, display, or store New Relic API/license/ingest keys.
- For NRQL queries, always include a
SINCE/UNTILtime bound and a reasonableLIMITto avoid excessive result sets. - If an entity GUID, policy ID, or account ID is unfamiliar, look it up with
entity searchoralerts policy listfirst.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- tkolleh/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- oci-cliSkill
- packer-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

