# Blockchain

> Expert guidelines for blockchain development including CosmWasm, Cosmos, and cross-chain patterns

- **Type:** Skill
- **Install:** `agentstack add skill-mindrally-skills-blockchain`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Mindrally](https://agentstack.voostack.com/s/mindrally)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [Mindrally](https://github.com/Mindrally)
- **Source:** https://github.com/Mindrally/skills/tree/main/blockchain

## Install

```sh
agentstack add skill-mindrally-skills-blockchain
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Mindrally](https://github.com/Mindrally)
- **Source:** [Mindrally/skills](https://github.com/Mindrally/skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mindrally-skills-blockchain
- Seller: https://agentstack.voostack.com/s/mindrally
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
