Skip to content
Back to skills

Specialized

ASecurity

Blockchain development skill - Smart contracts, DeFi, Web3, consensus

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
blockchaintypescriptrustgosecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add pluginagentmarketplace/custom-plugin-linux --skill specialized --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Specialized?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Specialized
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pluginagentmarketplace-specialized-custom-plugin-linux/badge)](https://www.skillsdirectory.com/skills/pluginagentmarketplace-specialized-custom-plugin-linux)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: blockchain
description: Blockchain development skill - Smart contracts, DeFi, Web3, consensus
version: "1.0.0"
sasmp_version: "1.3.0"

input_schema:
  type: object
  properties:
    task: { type: string, enum: [develop, audit, deploy, optimize, integrate] }
    platform: { type: string, enum: [ethereum, solana, polygon, arbitrum, base] }
  required: [task]

output_schema:
  type: object
  properties:
    contract: { type: string }
    audit_report: { type: object }
    gas_analysis: { type: object }

retry_config:
  max_attempts: 3
  backoff: exponential

timeout_ms: 120000
---

# Blockchain Development Skill

## PURPOSE
Smart contract development, DeFi protocols, and Web3 integration.

## CORE COMPETENCIES
```
Smart Contracts:
├── Solidity (EVM)
├── Rust (Solana)
├── Move (Sui/Aptos)
├── Security patterns
└── Upgradability

DeFi Protocols:
├── AMM/DEX
├── Lending/Borrowing
├── Yield farming
├── Staking
└── Oracles (Chainlink)

Web3 Integration:
├── ethers.js / viem
├── Wallet connection
├── Transaction handling
├── Event listening
└── IPFS/Arweave
```

## CODE PATTERNS

### Solidity Contract
```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

contract SecureVault is ReentrancyGuard, Ownable {
    mapping(address => uint256) private balances;

    event Deposited(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);

    function deposit() external payable nonReentrant {
        require(msg.value > 0, "Amount must be > 0");
        balances[msg.sender] += msg.value;
        emit Deposited(msg.sender, msg.value);
    }

    function withdraw(uint256 amount) external nonReentrant {
        require(balances[msg.sender] >= amount, "Insufficient balance");
        balances[msg.sender] -= amount;
        (bool success, ) = msg.sender.call{value: amount}("");
        require(success, "Transfer failed");
        emit Withdrawn(msg.sender, amount);
    }
}
```

### Web3 Integration
```typescript
import { createPublicClient, createWalletClient, http } from 'viem';
import { mainnet } from 'viem/chains';

const publicClient = createPublicClient({
  chain: mainnet,
  transport: http(),
});

// Read contract
const balance = await publicClient.readContract({
  address: contractAddress,
  abi: vaultABI,
  functionName: 'balanceOf',
  args: [userAddress],
});

// Write contract
const hash = await walletClient.writeContract({
  address: contractAddress,
  abi: vaultABI,
  functionName: 'deposit',
  value: parseEther('1'),
});
```

## SECURITY CHECKLIST
```
[ ] Reentrancy protection
[ ] Integer overflow (use 0.8+)
[ ] Access control
[ ] Input validation
[ ] Check-effects-interactions pattern
[ ] Slippage protection
[ ] Oracle manipulation resistance
[ ] Flash loan attack prevention
[ ] Upgrade security (timelock)
[ ] Emergency pause mechanism
```

## TROUBLESHOOTING

| Issue | Cause | Solution |
|-------|-------|----------|
| Reentrancy | External call before state update | Use ReentrancyGuard |
| Front-running | Public mempool | Use commit-reveal |
| Oracle manipulation | Single source | Multiple oracles, TWAP |
| High gas | Inefficient storage | Pack structs, use events |

Files in this skill

  • SKILL.md697 B
  • assets/config.yaml682 B
  • assets/schema.json1.1 KB
  • blockchain-SKILL.md3.4 KB
  • gamedev-SKILL.md3.8 KB
  • references/GUIDE.md1.8 KB
  • references/PATTERNS.md1.5 KB
  • scripts/validate.py3.7 KB
  • ux-SKILL.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…