Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

httpiehttpie 命令行

Agent Skill

httpie 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

256

周安装

11

GitHub Stars

13

下载量

90
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:httpie(httpie 命令行)
来源仓库:https://github.com/jpcaparas/skills
仓库路径:skills/httpie
安装命令:
npx skills add https://github.com/jpcaparas/skills --skill httpie
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jpcaparas/skills --skill httpie

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • httpie 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

httpie

Prefer http and https over curl for human-operated HTTP work, but treat HTTPie as ephemeral infrastructure rather than ambient machine state.

Verified locally against HTTPie 3.2.4 on April 15, 2026. The guidance is repo-agnostic, but the examples assume a Unix-like shell with http, https, and mktemp on PATH.

Decision Tree

What are you trying to do?

  • Call an HTTP or HTTPS endpoint from the shell and HTTPie is installed

- Prefer http or https - Run it inside the disposable wrapper from references/transient.md - Then read references/commands.md

  • Translate a curl example into something easier to read or edit

- Translate the intent, not the flags one-for-one - Start with references/patterns.md

  • Send JSON, form fields, query parameters, files, auth headers, or a short-lived session

- Prefer HTTPie's request-item syntax, auth helpers, offline mode, and transient session-file paths - Read references/commands.md - Then read references/transient.md

  • Reuse auth or cookies briefly without leaving leftovers behind

- Use a temporary session-file path inside a disposable config dir - Read references/transient.md

  • Use HTTPie CLI features such as export-args or plugin listing

- Keep those calls inside a disposable config dir too - Read references/configuration.md

  • The task needs non-HTTP protocols, libcurl-specific behavior, byte-exact output, or an environment without HTTPie

- Do not force HTTPie - Fall back to curl or a more suitable tool - Read references/gotchas.md

Why Prefer HTTPie

  1. Request items are easier to read and safer to edit than layered curl -H/-d/-F flags.
  2. JSON is first-class, including non-string values and file-backed fields, without hand-quoting shell JSON blobs.
  3. Auth, selective output, offline previews, redirect inspection, streaming, and downloads are built into one CLI.
  4. Short-lived session files let you reuse auth or cookies without teaching every shell snippet to manage a cookie jar manually.

Default Operating Rules

  1. If command -v http >/dev/null 2>&1 succeeds, use HTTPie first for HTTP and HTTPS work.
  2. Never rely on the user's ambient HTTPie state. Wrap every invocation in a disposable HTTPIE_CONFIG_DIR; use references/transient.md or templates/httpie-fallback.sh.
  3. In automation or non-interactive harnesses, add --ignore-stdin unless stdin is intentionally the request body.
  4. Prefer request items over raw JSON strings when the structure is simple:

- Header:value for headers - name=value for JSON strings - count:=42 for non-string JSON values - query==value for query parameters

  1. Use --form for HTML form semantics and file uploads. Do not assume name=value means form data unless --form is set.
  2. Use --offline, --body, --headers, --meta, --print=, --all, --follow, and --stream to exploit HTTPie's readability and debugging advantages over curl.
  3. For multi-request workflows, use a temporary session-file path such as --session="$tmpdir/session.json" or --session-read-only="$tmpdir/session.json" and delete the temp dir on exit.
  4. Treat httpie cli features as read-only unless the user explicitly wants mutation. Even for read-only subcommands, keep them inside a disposable config dir because HTTPie may still write metadata under that directory.
  5. Do not recommend persistent config files, plugin installation, or long-lived named sessions as the default behavior of this skill.
  6. Fall back to curl when the user explicitly needs curl, when HTTPie is unavailable, or when the task depends on behavior HTTPie does not cover cleanly.

Quick Reference

NeedHTTPie ShapeNotes
Basic GEThttp --ignore-stdin --check-status --body GET https://api.example.com/itemsRun inside the disposable wrapper from references/transient.md
Query parametershttp --ignore-stdin GET https://api.example.com/items page==2 q==search== appends to the URL
JSON bodyhttp --ignore-stdin POST https://api.example.com/items name=JP active:=trueJSON is the default body mode
Form bodyhttp --ignore-stdin --form POST https://api.example.com/login username=jp password=secret--form changes serialization
Headerhttp --ignore-stdin GET https://api.example.com Token:abc123Header:value syntax
Bearer tokenhttp --ignore-stdin -A bearer -a "$TOKEN" GET https://api.example.com/meCleaner than spelling the header yourself
Headers onlyhttp --ignore-stdin --headers GET https://api.example.com/health-h means headers, not help
Redirect chainhttp --ignore-stdin --all --follow GET https://example.comGood replacement for curl -L -i inspection
Streamed responsehttp --ignore-stdin --stream GET https://api.example.com/eventsUseful for long-lived responses
Offline previewhttp --ignore-stdin --offline POST https://api.example.com/items name=JPBuilds the request without sending it
Temporary session reusehttp --ignore-stdin --session="$tmpdir/session.json"...Keep the session file under a temp dir and clean it up
Download to a filehttp --ignore-stdin --download --output report.csv GET https://example.com/report.csvSimilar intent to wget, but keep it transient

Reading Guide

TaskRead
Request-item syntax, output flags, downloads, redirects, streams, and common commandsreferences/commands.md
Disposable wrappers, temp config dirs, temp session files, and cleanup patternsreferences/transient.md
Install checks, config directory behavior, read-only CLI surface, TLS, proxies, and what not to persistreferences/configuration.md
Prefer-over-curl flow, shell automation, request translation, and repeatable workflowsreferences/patterns.md
--ignore-stdin, curl -I confusion, config leftovers, redirect surprises, and other trapsreferences/gotchas.md

Verified Behaviors

  1. A one-off GET run inside a disposable shell wrapper cleaned up its temporary HTTPIE_CONFIG_DIR after exit.
  2. http --ignore-stdin --offline POST... name=JP active:=true built a JSON request body without sending network traffic.
  3. http --ignore-stdin --body GET https://pie.dev/get hello==world produced a successful JSON response with the query string attached.
  4. http --ignore-stdin --body --form POST https://pie.dev/post hello=World serialized the request as application/x-www-form-urlencoded.
  5. http --ignore-stdin --download --output test.png GET https://httpbin.org/image/png downloaded a file successfully inside a disposable config dir.
  6. A transient session-file path reused Basic auth across requests and disappeared when the surrounding temp dir was cleaned up.
  7. httpie cli export-args and httpie cli plugins list both ran successfully inside disposable config dirs.
  8. The https alias, raw JSON-from-file body flow, header-only output, redirect-chain inspection, and finite stream handling all worked against live endpoints.
  9. Every helper in templates/httpie-fallback.sh executed successfully and cleaned up its temporary HTTPie directories.
  10. --check-status mapped a 404 response to exit code 4.

Gotchas

  1. HTTPie can write metadata such as version_info.json even during read-only usage, so ambient config directories are not stateless enough for this skill.
  2. In non-interactive harnesses, HTTPie may still try to read stdin even when the real request body is expressed with request items. Add --ignore-stdin unless stdin is intentional.
  3. curl -I does not translate to http -I. In HTTPie, -I means --ignore-stdin. For headers, use --headers, HEAD, or both.
  4. name=value is JSON by default. If the endpoint expects form semantics, add --form.
  5. Session reuse is still possible, but the session file should live under a temp dir instead of a long-lived host directory.
  6. A curl fallback only makes sense when there is a clean semantic mapping. Do not pass arbitrary HTTPie request-item syntax straight through to curl.

Helper Files

  • scripts/probe_httpie.py runs a repeatable probe suite against the real CLI and verifies transient cleanup patterns.
  • scripts/validate.py checks structure, frontmatter, cross-references, required files, and syntax where relevant.
  • scripts/test_skill.py runs validation, eval coverage checks, cross-reference checks, and the HTTPie probe suite.
  • templates/httpie-fallback.sh shows transient wrappers that prefer HTTPie when installed and only fall back to curl where the mapping is real.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.08%
按下载量换算33

Claude

32.31%
按下载量换算29

Cursor

16.55%
按下载量换算15

Gemini CLI

8.45%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills