http-log-stats

http-log-stats is a skill for Claude Code, Codex from scitix/siclaw. It costs 97 tokens per session (2,033 once invoked), scanned A, original, Apache-2.0.

A measurement guide for ingress-controller HTTP access logs. An ingress controller receives incoming web requests and forwards them to services; the guide counts response codes and groups request durations over a chosen time window.

In plain words
What is it for?
Use it to count status codes such as 503, measure latency ranges, and count requests slower than a specified threshold when traffic passes through an ingress.
Why use it?
It provides traffic numbers without confusing measurement with diagnosing why a request failed. It also helps ensure the correct network layer is being measured.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/scitix/siclaw/http-log-stats
Any agent
npx skills add scitix/siclaw --skill http-log-stats
Clone the repo
git clone --depth 1 https://github.com/scitix/siclaw

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for http-log-stats

README.md
[![agentmods](https://agentmods.dev/badge/skills/scitix/siclaw/http-log-stats.svg)](https://agentmods.dev/skills/scitix/siclaw/http-log-stats)
Your own site
<a href="https://agentmods.dev/skills/scitix/siclaw/http-log-stats"><img src="https://agentmods.dev/badge/skills/scitix/siclaw/http-log-stats.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,033 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00097 $0.02033
Opus 5 $0.00048 $0.01017
Sonnet 5 $0.00019 $0.00407
Haiku 4.5 $0.00010 $0.00203

Measured 4d ago against content hash 1278a9ec5e74, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

http-log-stats scanned grade A with 0 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/http-log-stats.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/core/http-log-stats/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HTTP Access Log Statistics

Answers measurement questions about HTTP traffic: how many of each status code, how the request durations distribute, how many exceeded a threshold.

This is deliberately separate from ingress-debug, which diagnoses why traffic fails (404 / 502 / TLS / no ADDRESS). Here nothing is broken necessarily — the user wants numbers.

Before you run it: identify the layer

A request usually passes through several components that can each return a status code, and the user's word for the one they mean ("router", "gateway", "entry", "网关") rarely maps to exactly one of them. Counting on the wrong layer produces a confident, wrong answer, so establish the path first:

kubectl get ingress,svc,endpoints -n <ns> | grep <service>
  • An Ingress in front → the user's "router 503" is almost certainly the ingress controller's access log. Use this skill.
  • No Ingress, traffic reaches the Service directly → there is no access log to count; the numbers must come from the application's own logs or metrics, and the format is application-specific.
  • Do not grep the application pod's log for the string 503. Application logs contain the digits 503 in request bodies, upstream error text and unrelated fields; that count is not the number of HTTP 503 responses the entry layer returned.

This step costs one command and routinely saves the entire investigation.

Tool

local_script: cluster="<cluster>", skill="http-log-stats",
              script="http-log-stats.sh", args="<args>"

Runs kubectl from the agent's own context — no debug pod, no node access.

Set cluster to the target cluster's credential name (from cluster_list). local_script resolves it to a kubeconfig and exports KUBECONFIG into the script's environment, so the kubectl calls inside the script pick it up automatically. You may omit it only when the agent is bound to exactly one cluster; with several bound, omitting it is an error listing the available names, not a silent default.

Read the full file on GitHub · 173 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 4d ago First seen · 173 lines · 97 tokens per session scan A 1278a9ec5e74

Subscribe to this mod's changes

http-log-stats is a skill published in the GitHub repository scitix/siclaw (230 stars, last pushed 6d ago), licensed Apache-2.0. It adds 97 tokens to every session and 2,033 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.