Borrowing it
Nothing to install: this file belongs to divinevideo/divine-mobile. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/divinevideo/divine-mobile/main/.agents/skills/curl-head-vs-get-header-debugging/SKILL.mdgit clone --depth 1 https://github.com/divinevideo/divine-mobileWrote 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/divinevideo/divine-mobile/curl-head-vs-get-header-debugging)<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/curl-head-vs-get-header-debugging"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/curl-head-vs-get-header-debugging.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Data Exfiltration · line 4 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
- medium Data Exfiltration · line 51 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00116 | $0.00784 |
| Opus 5 | $0.00058 | $0.00392 |
| Sonnet 5 | $0.00023 | $0.00157 |
| Haiku 4.5 | $0.00012 | $0.00078 |
Grade A, and why
curl-head-vs-get-header-debugging scanned grade A with 1 finding 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 8d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
name: curl-head-vs-get-header-debugging How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
curl -I Sends HEAD, Not GET — Header Debugging Trap
Problem
When debugging HTTP response headers with curl -I or curl -sI, the response may show
different header values than what actual GET requests receive. This is because -I sends
a HEAD request, and server middleware that only processes GET requests will be skipped.
Context / Trigger Conditions
- Testing cache headers with
curl -sIand seeing unexpected values - Middleware that checks
method == GETbefore setting headers (common in cache middleware) - Headers appear correct in automated tests but wrong in manual curl testing
Cache-Control,Surrogate-Control, orSurrogate-Keyvalues don't match expectations- Axum/Express/any framework middleware with method guards
Solution
Use curl -s -D - -o /dev/null instead of curl -I to get response headers from a GET request:
# WRONG — sends HEAD request, middleware may skip processing
curl -sI https://example.com/api/endpoint
# CORRECT — sends GET request, dumps headers, discards body
curl -s -D - -o /dev/null https://example.com/api/endpoint
If you need just specific headers:
curl -s -D - -o /dev/null https://example.com/api/endpoint | grep -iE 'cache-control|surrogate'
Verification
Compare output from both methods:
echo "=== HEAD (curl -I) ==="
curl -sI https://example.com/api/endpoint | grep cache-control
echo "=== GET (curl -D) ==="
curl -s -D - -o /dev/null https://example.com/api/endpoint | grep cache-control
If the values differ, your middleware has a GET-only guard (which is correct behavior).
Example
Axum middleware that only sets cache headers for GET requests:
async fn cache_middleware(request: Request, next: Next) -> Response {
let method = request.method().clone();
let mut response = next.run(request).await;
// HEAD requests skip this — curl -I won't see these headers!
if method != Method::GET {
return response;
}
response.headers_mut().insert("cache-control", ...);
response.headers_mut().insert("surrogate-control", ...);
response
}
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.
- 8d ago First seen · 82 lines · 116 tokens per session scan A c9e81d097107
curl-head-vs-get-header-debugging is a skill published in the GitHub repository divinevideo/divine-mobile (265 stars, last pushed today), licensed MPL-2.0. It adds 116 tokens to every session and 784 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
systematic-debugging
Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.
diagnose
Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.
repro-admin
Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.
log-error-digest
Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…
byted-util-volcengine-detect-retry
An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.