MCP HubMCP Hub
スキル一覧に戻る

curl

majiayu000
更新日 2 days ago
17 閲覧
58
9
58
GitHubで表示
その他general

について

このスキルは、ダウンロード、POSTリクエスト、API連携など、一般的なHTTP操作の実用的なcurlコマンド例を提供します。コマンドラインからエンドポイントを素早くテストしたり、ファイルを転送したり、ウェブサービスのデバッグを行う際に役立ちます。例では、認証、JSONの扱い、ヘッダー、プロキシ、FTP操作についても網羅しています。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/majiayu000/claude-skill-registry
Git クローン代替
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/curl

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

curl — Handy Examples

Download Files

# Download a file and save with original filename
curl -O http://example.com/file.txt

# Download a file with specific name
curl -o filename.ext http://example.com/file.txt

# Download and limit speed
curl --limit-rate 100K -O http://example.com/largefile.zip

# Resume interrupted download
curl -C - -O http://example.com/largefile.zip

# Download multiple files
curl -O http://example.com/file1.txt -O http://example.com/file2.txt

# Download all sequentially numbered files (1-24)
curl http://example.com/pic[1-24].jpg

HTTP Methods & Data

# POST data
curl -d "name=value" http://example.com/resource

# POST JSON data
curl -H "Content-Type: application/json" -d '{"key":"value"}' http://example.com/resource

# Send URL-encoded data
curl --data-urlencode "key=value" http://example.com/resource

# Custom HTTP method
curl -X PUT http://example.com/resource
curl -X DELETE http://example.com/resource

Headers & Authentication

# Include headers in output
curl -i http://example.com

# Show only HTTP headers
curl -I http://example.com

# Custom header
curl -H "Custom-Header: Value" http://example.com

# Basic authentication
curl -u username:password http://example.com

# Save response headers to file
curl -D headers.txt http://example.com

Proxy & Advanced

# Use proxy
curl -x http://proxy-server:port http://example.com

# Get HTTP status code only
curl -o /dev/null -w '%{http_code}\n' -s -I URL

# Get external IP as JSON
curl http://ifconfig.me/all.json

# Follow redirects
curl -L http://example.com

# Download and pipe to grep
curl http://example.com/file.txt | grep "search-string"

FTP Operations

# Upload file via FTP
curl -T localfile.txt ftp://ftp.example.com/upload/

# Download via FTP with auth
curl -u username:password -O ftp://example.com/pub/file.zip

# List FTP directory
curl ftp://username:[email protected]

Original Examples

curl --resolve example.com:443:127.0.0.1 https://example.com
curl --output example.html "https://example.com/"
curl --header "PRIVATE-TOKEN: ?" https://example.com/
curl --basic --user 'test:test' https://example.com/
curl -fsSL https://example.com/install.sh | sh
curl --ftp-ssl --user "test:test" -l sftp://example.com:22/ --key ./id_rsa --pubkey ./id_rsa.pub
curl --request POST --data "A=B&C=D" https://example.com
curl --request POST --form "A=B" --form "C=D" https://example.com
curl --upload-file test.txt https://example.com
curl --ftp-ssl --user test:test -l ftp://example.com:21

GitHub リポジトリ

majiayu000/claude-skill-registry
パス: skills/curl

関連スキル

algorithmic-art

メタ

This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.

スキルを見る

subagent-driven-development

開発

This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.

スキルを見る

executing-plans

デザイン

Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.

スキルを見る

cost-optimization

その他

This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.

スキルを見る