Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add abdullahkhawer/devops-skills --skill grafana-loki-cligit clone --depth 1 https://github.com/abdullahkhawer/devops-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/abdullahkhawer/devops-skills/grafana-loki-cli)<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/grafana-loki-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/grafana-loki-cli/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/grafana-loki-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/grafana-loki-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.00916 |
| Opus 5.5 | $0.00015 | $0.00366 |
| Sonnet 5.5 | $0.00007 | $0.00183 |
| Haiku 4.5 | $0.00004 | $0.00092 |
Grade B, and why
grafana-loki-cli scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
mkdir -p ~/.loki && echo "<your-api-token>" > <TOKEN_FILE> && chmod 600 <TOKEN_FILE> Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
description: Query Grafana Loki logs using the Loki HTTP API via curl or logcli. Use for LogQL queries, label exploration, and tailing log streams. How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Grafana Loki CLI Skill
Use the instance and rules below when constructing all Loki API/logcli commands.
Instances
Update the table below with your Loki instance URLs and token file paths:
| Environment | Base URL | Token File |
|---|---|---|
| Production | https://<your-loki-prod-url> |
~/.loki/prod.token |
| Staging | https://<your-loki-staging-url> |
~/.loki/staging.token |
If the target instance is unclear, ask the user before running any command.
Prerequisites (one-time setup by user)
Obtain a Loki API token (or basic-auth credentials, depending on setup) for each instance and save it to the corresponding token file. Never print or display token values. Do not perform these steps yourself.
brew install logcli
mkdir -p ~/.loki && echo "<your-api-token>" > <TOKEN_FILE> && chmod 600 <TOKEN_FILE>
Command Format
Via curl:
curl -s -H "Authorization: Bearer $(cat <TOKEN_FILE>)" \
"<BASE_URL>/loki/api/v1/<endpoint>" | jq .
Via logcli:
logcli --addr="<BASE_URL>" --bearer-token="$(cat <TOKEN_FILE>)" <command>
Available API Endpoints / Commands
Read-only (safe, no confirmation needed)
Endpoint / logcli command |
Description |
|---|---|
/loki/api/v1/query / logcli query '<LogQL>' |
Run an instant LogQL query |
/loki/api/v1/query_range / logcli query '<LogQL>' --from=<t> --to=<t> |
Run a LogQL range query |
/loki/api/v1/labels / logcli labels |
List all label names |
/loki/api/v1/label/<name>/values / logcli labels <name> |
List values for a label |
/loki/api/v1/series?match[]=<selector> / logcli series '<selector>' |
Find streams matching a selector |
/ready |
Check readiness/health |
logcli query '<LogQL>' --tail |
Tail a live log stream (read-only) |
Example Queries
# Instant query — errors in the last 5 minutes for a job
curl -s -H "Authorization: Bearer $(cat <TOKEN_FILE>)" \
"<BASE_URL>/loki/api/v1/query_range?query={job=\"<job-name>\"}|=\"error\"&start=$(( $(date -u +%s) - 300 ))000000000&end=$(date -u +%s)000000000&limit=100" | jq .
# logcli equivalent
logcli --addr="<BASE_URL>" --bearer-token="$(cat <TOKEN_FILE>)" \
query '{job="<job-name>"} |= "error"' --since=5m --limit=100
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 23d ago First seen · 77 lines · 37 tokens per session scan B a1619e8274db
grafana-loki-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (8 stars, last pushed 24d ago), licensed Apache-2.0. It adds 37 tokens to every session and 916 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.
Other skills, from other repositories
proposal-troubleshoot
Diagnose a problem with the proposal skills themselves — a script that fails, a rule applied wrongly, output that contradicts the skill's own stated mandate — and assemble a bug report when it turns out to be a real defect. Use when a skill misbehaved, not when the proposal needs improving.
agents-sdk-dotnet-debugging
Use when troubleshooting an agent built with the Microsoft Agents SDK (Microsoft.Agents.Hosting.AspNetCore and related packages) in C# / .NET. Trigger on any of these symptoms: build or C# compile errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, appsettings.json…
observability
Periodic health sweep of the running system via the debug pipeline (cloud logs / k8s / daemon / DB slices). On a real anomaly, open a bug task (--kind workitem) carrying the evidence refs so it re-enters the bugfix loop. A healthy sweep opens NO task — never fabricate a bug.
prismer-python-debugpy
Debug Python: pdb REPL + debugpy remote (DAP).
fetch-url
Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.
workthreads
SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…