blockchain — Claude Code skill: what it does, how to install
Development guidelines for CosmWasm smart contracts and Cosmos cross-chain patterns. Focuses on Rust safety, IBC messaging, and gas efficiency.
npx skills add Mindrally/skills --skill blockchain -a claude-codeWhat blockchain does
This skill guides the agent through building decentralized software with deterministic execution. It concentrates on CosmWasm contracts in the Cosmos ecosystem. Security comes before premature optimization. The rules enforce idiomatic Rust typing, explicit error handling with custom types, and standard entry points like instantiate, execute, and query.
Storage management uses Item, Map, and IndexedMap to curb gas consumption. For cross-chain communication, the skill establishes IBC standards. Message handlers must stay idempotent with replay protection. Without proper timeout handling and packet acknowledgments, cross-chain calls fail unpredictably.
Testing requires unit tests, integration checks against simulated state, and fuzzing. The agent must also document public interfaces, maintain deployment guides, and track architecture decision records.
What it helps with
- write CosmWasm contracts with instantiate, execute, and query handlers
- implement cross-chain message passing and timeout handling over IBC
- structure contract state using Item, Map, or IndexedMap to save gas
- set up fuzzing and integration tests with simulated blockchain state
Example prompts for the agent
- Write a CosmWasm contract in Rust with instantiate and query entry points
- Implement an idempotent IBC packet handler with replay protection
- Set up storage using IndexedMap and plan a state migration path
How to install blockchain
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill blockchain -a claude-code2Manually: put the files in place
~/.claude/skills/blockchain/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/blockchain/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill blockchain -a codex2Manually: put the files in place
.agents/skills/blockchain/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill blockchain -a cursor2Manually: put the files in place
.cursor/skills/blockchain/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills blockchain2Manually: put the files in place
.github/skills/blockchain/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill blockchain -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path blockchainManually: put the files in place
.devin/skills/blockchain/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill blockchain -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about blockchain
How do I install blockchain in Claude Code?
Run npx skills add Mindrally/skills --skill blockchain -a claude-code. The skill configuration is placed in ~/.claude/skills/blockchain/SKILL.md.
What does the blockchain skill do?
It provides architecture principles for smart contracts in the Cosmos network. The agent follows guidelines for Rust safety, CosmWasm storage patterns, and IBC communication.
What cross-chain patterns does it enforce?
It requires idempotent message handlers, incoming packet validation, replay protection, and time-locked actions for sensitive operations. It also requires explicit timeout and acknowledgment handling in IBC.
Source text
SKILL.md · Apache-2.0
--- name: blockchain description: Expert guidelines for blockchain development including CosmWasm, Cosmos, and cross-chain patterns metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Blockchain Development You are an expert in blockchain development, smart contracts, and distributed systems. ## Core Principles - Prioritize security and correctness over premature optimization - Design for immutability and deterministic execution - Implement comprehensive testing and auditing practices - Follow established patterns for the target blockchain ecosystem ## CosmWasm Development (Cosmos) ### Rust Best Practices - Use Rust's type system for safety guarantees - Leverage CosmWasm's contract model for state management - Implement proper entry points (instantiate, execute, query) - Handle errors explicitly with custom error types ### IBC Integration - Follow IBC protocol standards for cross-chain communication - Implement proper packet handling and acknowledgments - Test with multiple chains in development - Handle timeout scenarios gracefully ### State Management - Use efficient storage patterns (Item, Map, IndexedMap) - Minimize storage operations for gas efficiency - Implement proper migration paths for upgrades ## Cross-Chain Patterns ### Message Passing - Design idempotent message handlers - Implement proper replay protection - Handle partial failures gracefully - Log all cross-chain operations ### Security Considerations - Validate all incoming messages - Implement proper access controls - Use time-locked operations for sensitive actions - Monitor for unusual activity patterns ## Testing Strategies - Unit tests for all contract logic - Integration tests with simulated blockchain state - Fuzz testing for edge cases - Security audits before mainnet deployment ## Documentation - Document all public interfaces - Maintain deployment and upgrade guides - Keep architecture decision records - Provide clear examples for integration
© Mindrally · Apache-2.0 · Mindrally/skills