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

jaeger-cli

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Query Jaeger distributed tracing data using the Jaeger HTTP API via curl. Use for finding traces, services, operations, and dependency graphs.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

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

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

    line 8
  2. Distinctive:

    Update the table below with your Jaeger Query instance URLs before using this skill:

    line 12
  3. Distinctive:

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

    line 19
  4. Distinctive:

    If the Jaeger instance is behind an authentication proxy, obtain a token and save it to the corresponding token file (see instance table …

    line 23
  5. Very specific:

    All API calls use curl against the Jaeger Query Service API:

    line 31
  6. Very specific:

    If the instance has no auth in front of it, omit the Authorization header entirely.

    line 38
  7. Distinctive:

    NEVER target any Jaeger instance not listed in the instance table above.

    line 73
  8. Distinctive:

    Update the instance table with your actual Jaeger instance URLs before using this skill.

    line 74
  9. Distinctive:

    NEVER print, display, log, or store the contents of any token file.

    line 75
  10. Very specific:

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

    line 76
  11. Very specific:

    Always set a limit when searching for traces — an unbounded search on a busy service can return excessive data.

    line 78
  12. Very specific:

    If a trace ID or service name is unfamiliar, use /api/services and /api/services/<service>/operations to explore before querying traces.

    line 80

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

Jaeger CLI Skill

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

Instances

Update the table below with your Jaeger Query instance URLs before using this skill:

EnvironmentBase URLToken File (if auth is enforced)
Productionhttps://<your-jaeger-prod-url>~/.jaeger/prod.token
Staginghttps://<your-jaeger-staging-url>~/.jaeger/staging.token

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

Prerequisites (one-time setup by user)

If the Jaeger instance is behind an authentication proxy, obtain a token and save it to the corresponding token file (see instance table above). Never print or display token values. Do not perform these steps yourself.

mkdir -p ~/.jaeger && echo "<your-api-token>" > <TOKEN_FILE> && chmod 600 <TOKEN_FILE>

Command Format

All API calls use curl against the Jaeger Query Service API:

curl -s -H "Authorization: Bearer $(cat <TOKEN_FILE>)" \
  "<BASE_URL>/api/<endpoint>" | jq .

If the instance has no auth in front of it, omit the Authorization header entirely.

Example (production):

curl -s -H "Authorization: Bearer $(cat ~/.jaeger/prod.token)" \
  "https://<your-jaeger-prod-url>/api/services" | jq .

Available API Endpoints

Read-only (safe, no confirmation needed)

EndpointDescription
/api/servicesList all known service names
/api/services/<service>/operationsList operations for a service
/api/traces?service=<service>&operation=<op>&start=<us>&end=<us>&limit=<n>Find traces matching filters
/api/traces/<trace-id>Get a specific trace by ID
/api/dependencies?endTs=<ms>&lookback=<ms>Get the service dependency graph

Example Queries

# List services
curl -s "<BASE_URL>/api/services" | jq .

# Find traces for a service in the last hour, with a minimum duration filter
curl -s "<BASE_URL>/api/traces?service=<service-name>&start=$(( $(date -u +%s) - 3600 ))000000&end=$(date -u +%s)000000&minDuration=100ms&limit=20" | jq .

# Get a specific trace
curl -s "<BASE_URL>/api/traces/<trace-id>" | jq .

Rules

  • NEVER target any Jaeger instance not listed in the instance table above. If a URL references a different host, stop and ask the user to confirm.
  • Update the instance table with your actual Jaeger instance URLs before using this skill.
  • NEVER print, display, log, or store the contents of any token file.
  • Always pass -s (silent) to curl and pipe through jq for readable output.
  • Timestamps for /api/traces (start/end) are in microseconds since epoch; /api/dependencies (endTs/lookback) are in milliseconds — do not mix the units.
  • Always set a limit when searching for traces — an unbounded search on a busy service can return excessive data.
  • Jaeger's Query API is read-only by design (it does not accept span ingestion or deletion via this API) — there are no mutating or destructive endpoints to guard against here.
  • If a trace ID or service name is unfamiliar, use /api/services and /api/services/<service>/operations to explore before querying traces.

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.