appdynamics-cli
Skill8 starsChanged 7 months agoApache-2.0View on GitHub
Perform AppDynamics operations using the AppDynamics HTTP API via curl. Use for querying applications, metrics, health rules, and events.
- Sends data out
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-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
- newrelic-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
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use the instance and rules below when constructing all AppDynamics API commands.
- Distinctive: line 12
Update the table below with your AppDynamics controller URLs and credential file paths:
- Distinctive: line 19
If the target instance is unclear, ask the user before running any command.
- Distinctive: line 72
NEVER target any AppDynamics controller not listed in the instance table above.
- Distinctive: line 73
NEVER print, display, log, or store the client secret, credential file contents, or issued bearer token.
- Distinctive: line 74
Always fetch a fresh bearer token per session rather than caching it in a file — it is short-lived and sensitive.
- Very specific: line 75
Always pass -s (silent) to curl and pipe through jq for readable output.
- Distinctive: line 76
NEVER run DELETE endpoints without explicit user instruction — these are irreversible.
- Distinctive: line 77
If an application ID or node ID is unfamiliar, look it up with a read-only call first.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
AppDynamics CLI Skill
Use the instance and rules below when constructing all AppDynamics API commands.
Instances
Update the table below with your AppDynamics controller URLs and credential file paths:
| Environment | Controller URL | Account | Credential File |
| Production | https://<your-controller>.saas.appdynamics.com | <your-prod-account> | ~/.appdynamics/prod.token |
| Staging | https://<your-controller>.saas.appdynamics.com | <your-staging-account> | ~/.appdynamics/staging.token |
If the target instance is unclear, ask the user before running any command.
Prerequisites (one-time setup by user)
Generate an AppDynamics API client (Administration → API Clients) for each environment and save <client-id>@<account>:<client-secret> to the corresponding credential file. Never print or display credential values. Do not perform these steps yourself.
mkdir -p ~/.appdynamics && echo "<client-id>@<account>:<client-secret>" > <CREDENTIAL_FILE> && chmod 600 <CREDENTIAL_FILE>Command Format
AppDynamics uses OAuth — obtain a short-lived bearer token first, then call the API:
TOKEN=$(curl -s -X POST "<CONTROLLER_URL>/controller/api/oauth/access_token" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "client_id=$(cut -d: -f1 <CREDENTIAL_FILE>)" \
--data-urlencode "client_secret=$(cut -d: -f2 <CREDENTIAL_FILE>)" | jq -r '.access_token')
curl -s -H "Authorization: Bearer $TOKEN" \
"<CONTROLLER_URL>/controller/rest/<endpoint>?output=JSON" | jq .Available API Endpoints
Read-only (safe, no confirmation needed)
| Endpoint | Method | Description |
/controller/rest/applications | GET | List applications |
/controller/rest/applications/<id>/metrics | GET | Query metric data |
/controller/rest/applications/<id>/problems/healthrule-violations | GET | List health rule violations |
/controller/rest/applications/<id>/events | GET | List events |
/controller/rest/applications/<id>/nodes | GET | List monitored nodes |
Mutating operations (confirm with user before running)
| Endpoint | Method | Description |
/controller/rest/applications/<id>/healthrules | POST | Create a health rule |
/controller/alerting/rest/v1/applications/<id>/policies | POST | Create an alerting policy |
Never run — requires explicit human approval
| Endpoint | Method | Reason |
/controller/rest/applications/<id>/healthrules/<id> | DELETE | Irreversible health rule deletion |
/controller/rest/applications/<id> | DELETE | Irreversibly deletes an application and its data |
/controller/rest/applications/<id>/nodes/<id> | DELETE | Removes a monitored node |
Rules
- NEVER target any AppDynamics controller not listed in the instance table above. If a URL references a different host, stop and ask the user to confirm.
- NEVER print, display, log, or store the client secret, credential file contents, or issued bearer token.
- Always fetch a fresh bearer token per session rather than caching it in a file — it is short-lived and sensitive.
- Always pass
-s(silent) tocurland pipe throughjqfor readable output. - NEVER run DELETE endpoints without explicit user instruction — these are irreversible.
- If an application ID or node ID is unfamiliar, look it up with a read-only call first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

