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.
git clone --depth 1 https://github.com/ccashwell/evm-cortexnpx agentmods add skills/ccashwell/evm-cortex/ipfs-deploymentWrote 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/ccashwell/evm-cortex/ipfs-deployment)<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.
<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>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.00046 | $0.01757 |
| Opus 5.5 | $0.00018 | $0.00703 |
| Sonnet 5.5 | $0.00009 | $0.00351 |
| Haiku 4.5 | $0.00005 | $0.00176 |
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" \ 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
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.
- 1mo ago First seen · 241 lines · 46 tokens per session scan C ca726fbfe37c
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.
Other skills, from other repositories
signature-replay
Signature replay attacks — missing nonces, missing chain ID, ecrecover zero address, signature malleability, cross-chain replay.
official-sui-skills
Pointer to the official Mysten Labs skills for building on Sui — language fundamentals, object model, PTBs, SDKs, publishing, upgrades, frontend integration, accessing on-chain data. Maintained upstream at github.com/MystenLabs/skills; pinned to the same ref the audit catalog derives from (see…
bridge
Cross-chain token transfers using Wormhole and CCTP.
onchainkit
Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.
marginfi
MarginFi — Solana lending and borrowing.
devtools-event-client
Create typed EventClient for a library. Define event maps with typed payloads, pluginId auto-prepend namespacing, emit()/on()/onAll()/onAllPluginEvents() API. Connection lifecycle (5 retries, 300ms), event queuing, enabled/disabled state, SSR fallbacks, singleton pattern. Unique pluginId requirement to avoid event…