面向 Checkly CLI 与 Monitoring as Code 的参考与路由指南,按领域分发到对应的子技能。
数据分析
New Relic CLI Skills
Monitor, query, and manage New Relic observability data via the newrelic CLI. Covers NRQL queries, APM performance triage, deployment markers, alert policy a...
它能做什么
Monitor, query, and manage New Relic observability data via the newrelic CLI. Covers NRQL queries, APM performance triage, deployment markers, alert policy and condition management, notification channel setup, infrastructure monitoring, and agent diagnostics. Use when user asks about application performance, error rates, slow transactions, deployment tracking, alert configuration, or New Relic setup.
技能文档
New Relic CLI Skills
Quick Decision Tree
Performance issue reported? → apm/SKILL.md
Need to query data with NRQL? → nrql/SKILL.md
Recording a deployment? → deployments/SKILL.md
Alert management? → alerts/SKILL.md
Infrastructure/host issues? → infrastructure/SKILL.md
Agent not reporting? → diagnostics/SKILL.md
Setup & Auth
# Install (manual or package manager)
# macOS (Homebrew)
brew install newrelic-cli
# Windows (Scoop)
scoop bucket add newrelic-cli https://github.com/newrelic/newrelic-cli.git
scoop install newrelic-cli
# Or manually download a release archive from:
# https://github.com/newrelic/newrelic-cli/releases
# Extract it, place the `newrelic` binary on your PATH, then verify with:
newrelic --version
# Configure profile
newrelic profile add \
--profile default \
--apiKey $NEW_RELIC_API_KEY \
--accountId $NEW_RELIC_ACCOUNT_ID \
--region US # US, EU, JP, GOV, or FEDRAMP (alias for GOV)
newrelic profile default --profile default
# Verify
newrelic profile list
Common One-Liners
# Search for an entity by name
newrelic entity search --name "my-app"
# Run a NRQL query
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID \
--query "SELECT average(duration) FROM Transaction WHERE appName='my-app' SINCE 1 hour ago"
# Record a deployment
newrelic apm deployment create \
--applicationId \
--revision "v1.2.3" \
--description "Feature: user auth"
# Run diagnostics
newrelic diagnose run
Entity Reference
Find entity GUIDs (needed for API calls and deployment markers):
# List all APM apps
newrelic entity search --name "" --type APPLICATION --domain APM
# Get specific entity details
newrelic entity get --guid
# List all hosts
newrelic entity search --name "" --type HOST
Environment Variables
| Variable | Description |
|---|---|
NEW_RELIC_API_KEY | User key (NRAK-...) |
NEW_RELIC_ACCOUNT_ID | Numeric account ID |
NEW_RELIC_REGION | US, EU, JP, GOV, or FEDRAMP (FEDRAMP is an alias for GOV) |
Sub-Skills
| Sub-skill | When to use |
|---|---|
apm/ | Performance triage, slow transactions, error analysis |
nrql/ | Custom queries, dashboards, ad-hoc data exploration |
deployments/ | Mark releases, correlate deploys with performance |
alerts/ | Alert policies, conditions, notification channels |
infrastructure/ | Host metrics, CPU/memory, process monitoring |
diagnostics/ | Agent health, config validation, connectivity |
Scripts
| Script | Purpose |
|---|---|
scripts/check-performance.sh | Quick health check across all apps |
scripts/deployment-marker.sh | Record a deployment event |
scripts/top-slow-transactions.sh | Find the 10 slowest transactions |
scripts/error-report.sh | Recent errors with stack traces |
References
references/nrql-patterns.md— Common NRQL query patternsreferences/performance-triage.md— Step-by-step triage guide
相关技能
通过托管 OAuth 代理调用 Apollo.io API,完成人员与公司搜索、联系人补全和销售数据管理。
通过托管的 OAuth GraphQL 接口查询与管理 Linear 的 issue、项目、团队、周期、标签和评论。
1Panel operation skill for agent runtimes. Use when the user wants an assistant to interact with a 1Panel instance for resource monitoring, websites, certifi...
Agent skill recommender. Input a user need, task description, or existing skill list; output best matching skills, install rationale, duplicate/merge candida...
通过托管 OAuth 调用 SendGrid v3 接口,发送邮件并管理联系人、模板与发件人。