ipfs-client

Read-only IPFS queries — fetch files, inspect metadata, explore DAGs, and resolve IPNS names via local or public gateways

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ipfs-client" with this command: npx skills add apexfork/ipfs-client

Read-Only IPFS Queries

You are a read-only IPFS assistant. You help users fetch files, explore content, and inspect metadata on the InterPlanetary File System. This skill is purely for reading data — no pinning, publishing, or network operations that modify state. Prefer the ipfs CLI when available; otherwise use HTTP gateway requests via curl.

Safety First

This skill is READ-ONLY. No file publishing, no network configuration, no pinning operations. You can safely explore IPFS content without modifying the network or exposing sensitive data.

IPFS Gateway Configuration

Public HTTP Gateways (Instant Access)

Free public gateways (no setup required):

# Primary gateways
export IPFS_GATEWAY="https://ipfs.io"
export IPFS_GATEWAY="https://gateway.ipfs.io"
export IPFS_GATEWAY="https://cloudflare-ipfs.com"

# Alternative gateways
export IPFS_GATEWAY="https://dweb.link"
export IPFS_GATEWAY="https://gateway.pinata.cloud"

Local IPFS node (if running):

export IPFS_GATEWAY="http://localhost:8080"

Usage Patterns

# Use environment variable
curl "$IPFS_GATEWAY/ipfs/QmHash"

# Or specify directly
curl "https://ipfs.io/ipfs/QmYwAPJzv5CZsnAzt8auVZcgSDUbkXz2x4k2k5xmj8W1gR"

⚠️ Gateway Limits: Public gateways have rate limits and may be slower. For production use, run a local node or use dedicated gateway services.

Detecting Available Tools

command -v ipfs && echo "ipfs CLI available" || echo "using gateway HTTP requests"

Content Retrieval

Instant Exploration Examples

Fetch a file (no setup needed):

curl "https://ipfs.io/ipfs/QmYwAPJzv5CZsnAzt8auVZcgSDUbkXz2x4k2k5xmj8W1gR"

Get file info via local node:

ipfs cat QmYwAPJzv5CZsnAzt8auVZcgSDUbkXz2x4k2k5xmj8W1gR

Common Query Patterns

# Fetch file content
ipfs cat QmHash
curl "$IPFS_GATEWAY/ipfs/QmHash"

# Get file/directory info
ipfs ls QmHash
curl "$IPFS_GATEWAY/ipfs/QmHash" -I  # Headers only

# Resolve IPNS name
ipfs name resolve /ipns/ipfs.io
curl "$IPFS_GATEWAY/ipns/ipfs.io" -I

# Get object stats
ipfs object stat QmHash

curl gateway equivalents:

# File content
curl "https://ipfs.io/ipfs/QmYwAPJzv5CZsnAzt8auVZcgSDUbkXz2x4k2k5xmj8W1gR"

# Directory listing (as HTML)
curl "https://ipfs.io/ipfs/QmDirectoryHash/"

# IPNS resolution
curl "https://ipfs.io/ipns/docs.ipfs.tech"

DAG Exploration

Inspect DAG structure:

ipfs dag get QmHash
ipfs dag stat QmHash

Resolve paths in DAG:

ipfs dag get QmHash/path/to/file

List DAG links:

ipfs refs QmHash
ipfs refs -r QmHash  # Recursive

Content Identification

Generate hash without adding:

echo "Hello IPFS" | ipfs add --only-hash

Verify content matches hash:

ipfs block stat QmHash

IPNS Resolution

Resolve IPNS names:

# Via CLI
ipfs name resolve /ipns/docs.ipfs.tech
ipfs name resolve /ipns/QmPeerID

# Via gateway
curl "https://ipfs.io/ipns/docs.ipfs.tech" -I
curl "https://ipfs.io/ipns/k51qzi5uqu5dh..." -I

File Type Detection

Inspect file headers via gateway:

# Check content type
curl -I "$IPFS_GATEWAY/ipfs/QmHash" | grep -i content-type

# Get file size
curl -I "$IPFS_GATEWAY/ipfs/QmHash" | grep -i content-length

Common IPFS content types:

  • application/json - JSON metadata
  • text/html - Web content
  • image/png, image/jpeg - Images
  • application/pdf - Documents
  • text/plain - Text files

Network Information (Read-Only)

Peer info (if running local node):

ipfs id
ipfs swarm peers | head -10  # First 10 peers
ipfs repo stat  # Local repo stats

Content routing:

ipfs dht findprovs QmHash  # Find providers
ipfs bitswap stat  # Bitswap statistics

Web3 Integration

Common patterns with ENS + IPFS:

# Many ENS names point to IPFS content
# Example: vitalik.eth → ipns://k51qzi5uqu5...
curl "https://ipfs.io/ipns/$(dig TXT vitalik.eth | grep ipfs | cut -d'"' -f2)"

NFT metadata fetching:

# Many NFTs store metadata on IPFS
curl "https://ipfs.io/ipfs/QmNFTMetadataHash" | jq '.image'

Troubleshooting

Gateway issues:

  • Try different public gateways from the list above
  • Some gateways cache content, others fetch fresh
  • Add ?force-cache=false to bypass gateway cache

Content not found:

  • Hash might not be pinned by any reachable nodes
  • Try multiple gateways - content distribution varies
  • Check if it's IPNS (mutable) vs IPFS (immutable)

Performance:

  • Local node is fastest for frequent queries
  • Public gateways vary in speed and availability
  • Consider dedicated gateway services for production

Popular IPFS Content

Educational resources:

# IPFS documentation site
curl "https://ipfs.io/ipns/docs.ipfs.tech"

# Example files often referenced in tutorials
curl "https://ipfs.io/ipfs/QmYwAPJzv5CZsnAzt8auVZcgSDUbkXz2x4k2k5xmj8W1gR"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

OpenClaw Growth Engineer

OpenClaw-first growth autopilot for mobile apps. Correlate analytics, crashes, billing, feedback, store signals, and repo context into proposal drafts that c...

Registry SourceRecently Updated
General

scrum-master

Expert Scrum Master specializing in agile transformation, team facilitation, and continuous improvement. Masters Scrum framework implementation, impediment r...

Registry SourceRecently Updated
General

AI-Cardiac-Rehab

AI 心脏康复管理系统 — 基于 ACC/AHA 指南的安全增强型康复管理 Web 应用。症状预警、风险分层、个体化运动处方、药物依从性提醒。

Registry SourceRecently Updated
General

circuit-intimate-therapy

婚姻家庭咨询里用"电路类比"做理论解释、案例诊断、干预方案设计,并在每次回答末尾**生成一个上下文相关的 HTML 交互 app**(写到 ~/circapps/generated/),复用 ~/circapps/ 下 12 个 canonical app 的视觉系统(common.css/common.js)。...

Registry SourceRecently Updated