blockchain-patterns

blockchain-patterns is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 122 tokens per session (7,172 once invoked), scanned A, original, MIT.

A catalogue of common blockchain design patterns, including token formats, upgradeable smart contracts, scaling systems, and ways for blockchains to communicate.

In plain words
What is it for?
Use it to select standards such as ERC-20 or ERC-721, proxy designs, oracle and bridge patterns, rollups, and other contract architectures.
Why use it?
It helps choose an established structure and understand its trade-offs and security implications before implementation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/j4flmao/agent-skills/blockchain-patterns
Any agent
npx skills add j4flmao/agent-skills --skill blockchain-patterns
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills

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 blockchain-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/blockchain-patterns.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/blockchain-patterns)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/blockchain-patterns"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/blockchain-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,172 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00122 $0.07172
Opus 5 $0.00061 $0.03586
Sonnet 5 $0.00024 $0.01434
Haiku 4.5 $0.00012 $0.00717

Measured 2d ago against content hash 374765c777d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

blockchain-patterns scanned grade A with 0 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/blockchain/blockchain-patterns/SKILL.md · 619 lines

How it starts

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

Blockchain Patterns

Purpose

Catalog and guide the selection of blockchain design patterns covering token standards, contract upgradeability, scaling solutions, cross-chain communication, and protocol architecture. This skill enforces standardized pattern selection with documented trade-offs and security implications.

Agent Protocol

Trigger

"blockchain pattern", "token standard", "ERC-20", "ERC-721", "ERC-1155", "ERC-4626", "ERC-4337", "ERC-2612", "ERC-3525", "ERC-3643", "ERC-4907", "ERC-5192", "permit", "upgradeable contract", "proxy pattern", "UUPS", "oracle pattern", "bridge pattern", "layer 2", "state channel", "sidechain", "MEV", "cross-chain", "blockchain design pattern", "smart contract pattern", "vault pattern", "yield-bearing vault", "semi-fungible", "soulbound", "rollup", "validium", "optimistic rollup", "zk-rollup", "IBC", "LayerZero", "light client", "AMM", "constant product", "lending pool", "compound fork", "aave fork", "flash loan", "governance token", "veToken", "vote escrow", "factory pattern", "minimal proxy", "EIP-1167", "EIP-1967", "EIP-1822", "EIP-2535", "diamond pattern", "multi-facet", "federated sidechain", "ZK-bridge", "optimistic bridge", "PBS", "MEV-Boost", "ePBS", "ERC-5218", "NFT rental", "soulbound token", "account abstraction", "ERC-6551", "TBA", "token bound account", "ERC-6909"

Input Context

  • Requirement type (token/upgrade/oracle/bridge/scaling)
  • Target platform (EVM/Solana/Cosmos)
  • Security requirements (trust assumptions, upgradeability need)
  • Performance requirements (throughput, latency, cost budget)
  • Existing infrastructure (current contracts, bridges, oracles in use)

Output Artifact

Pattern recommendation with:

  • Selected pattern with justification against alternatives
  • Architecture diagram showing component interactions
  • Implementation approach with key contract/system interfaces
  • Security analysis with known attacks and mitigations
  • Integration guide for existing systems

Response Format

  1. Pattern category (token/upgrade/oracle/bridge/scaling)
  2. Problem statement + when to use
  3. Implementation approach with trade-offs
  4. Security considerations and known pitfalls
  5. Code example or reference to canonical implementation

Read the full file on GitHub · 619 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. 2d ago First seen · 619 lines · 122 tokens per session scan A 374765c777d4

Subscribe to this mod's changes

blockchain-patterns is a skill published in the GitHub repository j4flmao/agent-skills (21 stars, last pushed yesterday), licensed MIT. It adds 122 tokens to every session and 7,172 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

web3-accessibility-guide

Guide to W3AG (Web3 Accessibility Guidelines) — accessibility standards and patterns for Web3 applications. Covers wallet connect UX, transaction confirmation patterns, error handling, screen reader support, and inclusive design for dApps. Making DeFi usable by everyone.

nirholas/three.ws · 57 tokens

design-expert

Expert-level system design, architecture patterns, scalability, and distributed systems. Use when the user mentions system design, architecture, scalability, distributed systems, or patterns, or when the task involves Architecture Patterns or Design Principles.

personamanagmentlayer/pcl · 47 tokens

frontend-design

Create distinctive, production-grade Stellar dApp UI. Combines bold aesthetic direction with smart contract integration patterns — wallet connection flows, transaction UX, contract data displays, and agentic kit hook wiring. No generic "AI slop" aesthetics.

rylsherdamz-rgb/stellar-forge · 51 tokens

cloud-design-patterns

Choose and compare cloud design patterns for distributed systems. Use when reviewing architecture, selecting workload patterns, or mapping reliability, performance, messaging, security, and migration concerns to concrete design options.

PracticalSwan/agent-skills · 42 tokens

solana-dev

Solana development: Anchor and Pinocchio programs, Kit clients, wallet flows, testing. Use when building a Solana dapp or program (e.g. write Anchor escrow, create SPL token, wallet-standard login, debug PDA, deploy to devnet).

Starchild-ai-agent/official-skills · 57 tokens

web3-ux-feedback

Analyzes web3 project landing pages and frontend UI to deliver structured UX feedback and actionable landing page redesign concepts grounded in the 5-part SaaS Messaging Framework. Evaluates visual design, web3-specific UI patterns (wallet connection, trust signals, jargon), messaging gaps, and generates copy-ready…

XSpoonAi/spoon-awesome-skill · 105 tokens