ipfs-deployment

ipfs-deployment is a skill for Claude Code, Codex from ccashwell/evm-cortex. It costs 46 tokens per session (1,757 once invoked), scanned C, original, MIT.

A deployment guide for putting decentralised application frontends on IPFS, a distributed file network, and connecting them to gateways or ENS.

In plain words
What is it for?
Use it to configure and build Next.js, Vite, or Create React App frontends, pin files with services such as Pinata or Fleek, and set up IPFS gateway hosting.
Why use it?
It helps avoid broken navigation and asset links when a static site is served from IPFS instead of a normal web server.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/update-ens.js ${{ env.CID }}.

Good fit Use it to configure and build Next.js, Vite, or Create React App frontends, pin files with services such as Pinata or Fleek, and set up IPFS gateway hosting.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ccashwell/evm-cortex
agentmods
npx agentmods add skills/ccashwell/evm-cortex/ipfs-deployment

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 ipfs-deployment

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccashwell/evm-cortex/ipfs-deployment/github.svg)](https://agentmods.dev/skills/ccashwell/evm-cortex/ipfs-deployment)
Your own site
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/ipfs-deployment"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/ipfs-deployment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ipfs-deployment

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccashwell/evm-cortex/ipfs-deployment"><img src="https://agentmods.dev/badge/skills/ccashwell/evm-cortex/ipfs-deployment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,757 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00046 $0.01757
Opus 5.5 $0.00018 $0.00703
Sonnet 5.5 $0.00009 $0.00351
Haiku 4.5 $0.00005 $0.00176

Measured 1mo ago against content hash ca726fbfe37c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

ipfs-deployment scanned grade C with 2 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf out/ dist/ .next/

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST "https://api.pinata.cloud/pinning/pinFileToIPFS" \
skills/ipfs-deployment/SKILL.md · 241 lines

How it starts

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

IPFS / Decentralized Frontend Deployment

Overview

Deploying a dApp frontend to IPFS ensures censorship resistance and permanence. The frontend is served via IPFS gateways or ENS+IPFS resolution. Critical for truly decentralized protocols.

Building for IPFS

Next.js Static Export

// next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
  output: 'export',
  trailingSlash: true,  // CRITICAL: IPFS serves directories, needs index.html in each
  images: {
    unoptimized: true,   // No image optimization server on IPFS
  },
  assetPrefix: './',     // Relative paths for IPFS gateway compatibility
};

module.exports = nextConfig;

Why trailingSlash: true is critical: IPFS resolves /about as a file, but /about/ as a directory containing index.html. Without trailing slashes, navigation breaks on IPFS gateways.

Vite Static Build

// vite.config.ts
import { defineConfig } from 'vite';

export default defineConfig({
  base: './',  // Relative paths
  build: {
    outDir: 'dist',
  },
});

Create React App

{
  "homepage": "."
}

Build and Clean

# ALWAYS clean before building for IPFS
rm -rf out/ dist/ .next/

# Build
npm run build

# Verify the output
ls -la out/  # or dist/
# Should contain index.html and all static assets

IPFS Pinning

Pinata

# Install Pinata CLI
npm install -g @pinata/cli

# Pin a directory
pinata upload ./out

# Or via API
curl -X POST "https://api.pinata.cloud/pinning/pinFileToIPFS" \
  -H "Authorization: Bearer $PINATA_JWT" \
  -F "file=@./out"
// Programmatic pinning
import PinataSDK from '@pinata/sdk';

const pinata = new PinataSDK({ pinataJWTKey: process.env.PINATA_JWT });

const result = await pinata.pinFromFS('./out', {
  pinataMetadata: { name: 'my-dapp-v1.2.0' },
  pinataOptions: { cidVersion: 1 },
});

console.log('IPFS Hash:', result.IpfsHash);
// e.g., bafybeie5gq4jxvzmsym6hjlwxej4rwdoxt7wadqvmmwbqqblsm54ceyaiq

Read the full file on GitHub · 241 lines

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. 1mo ago First seen · 241 lines · 46 tokens per session scan C ca726fbfe37c

Subscribe to this mod's changes

ipfs-deployment is a skill published in the GitHub repository ccashwell/evm-cortex (131 stars, last pushed 17d ago), licensed MIT. It adds 46 tokens to every session and 1,757 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.