agentleFS
abdullahkhawerabdullahkhawer/devops-skills/skills/appdynamics-cli/SKILL.md

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

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
  1. Distinctive:

    Use the instance and rules below when constructing all AppDynamics API commands.

    line 8
  2. Distinctive:

    Update the table below with your AppDynamics controller URLs and credential file paths:

    line 12
  3. Distinctive:

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

    line 19
  4. Distinctive:

    NEVER target any AppDynamics controller not listed in the instance table above.

    line 72
  5. Distinctive:

    NEVER print, display, log, or store the client secret, credential file contents, or issued bearer token.

    line 73
  6. Distinctive:

    Always fetch a fresh bearer token per session rather than caching it in a file — it is short-lived and sensitive.

    line 74
  7. Very specific:

    Always pass -s (silent) to curl and pipe through jq for readable output.

    line 75
  8. Distinctive:

    NEVER run DELETE endpoints without explicit user instruction — these are irreversible.

    line 76
  9. Distinctive:

    If an application ID or node ID is unfamiliar, look it up with a read-only call first.

    line 77

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

EnvironmentController URLAccountCredential File
Productionhttps://<your-controller>.saas.appdynamics.com<your-prod-account>~/.appdynamics/prod.token
Staginghttps://<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)

EndpointMethodDescription
/controller/rest/applicationsGETList applications
/controller/rest/applications/<id>/metricsGETQuery metric data
/controller/rest/applications/<id>/problems/healthrule-violationsGETList health rule violations
/controller/rest/applications/<id>/eventsGETList events
/controller/rest/applications/<id>/nodesGETList monitored nodes

Mutating operations (confirm with user before running)

EndpointMethodDescription
/controller/rest/applications/<id>/healthrulesPOSTCreate a health rule
/controller/alerting/rest/v1/applications/<id>/policiesPOSTCreate an alerting policy

Never run — requires explicit human approval

EndpointMethodReason
/controller/rest/applications/<id>/healthrules/<id>DELETEIrreversible health rule deletion
/controller/rest/applications/<id>DELETEIrreversibly deletes an application and its data
/controller/rest/applications/<id>/nodes/<id>DELETERemoves 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) to curl and pipe through jq for 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.