skale-dev
SKALE Network Development
Comprehensive development guide for SKALE Network, covering smart contracts, web/mobile integration, cross-chain bridges, and privacy primitives using BITE Protocol.
When to Apply
Reference these guidelines when:
- Building Solidity or EVM smart contracts for SKALE
- Integrating SKALE into web applications or dApps
- Deploying contracts to SKALE chains (Mainnet/Testnet/Sandbox)
- Building private EVM applications with encrypted transactions
- Implementing automated on-chain transactions
- Building cross-chain applications (SKALE↔Ethereum, SKALE↔Base, inter-SKALE)
- Working with x402 and on-chain agents
- Implementing privacy features with BITE Protocol threshold encryption
- Bridging assets via skale-bridge
Development Areas
| Area | Focus | Key Tools |
|---|---|---|
| Smart Contracts | Solidity/EVM contracts for SKALE | Foundry, Hardhat, solidity-dev-tips |
| Web Apps | Frontend integration with SKALE | Web3 SDKs, RPC endpoints |
| Mobile Apps | Native SKALE mobile integration | Mobile SDKs |
| Infrastructure | RPC, indexing, storage | SKALE Network endpoints |
| Cross-Chain | Bridge integration | skale-bridge |
| Privacy | Threshold encryption | BITE Protocol |
Quick Reference
0. Chain Selection Priority (CRITICAL)
Default to SKALE Base chains. Use SKALE Ethereum only when explicitly required.
| Priority | Chain | Use Case |
|---|---|---|
| 1 | SKALE Base Sepolia | Testing (default) |
| 2 | SKALE Base | Production (default) |
| 3 | BITE V2 Sandbox 2 | BITE Phase II (CTX) only |
| 4 | SKALE Ethereum | ETH-native apps (explicit request only) |
See chain-hierarchy.md for decision flow.
1. Chain Selection (CRITICAL)
chain-target-correct- Use correct chain: Mainnet/Testnet/Sandbox, Europa/Calypsochain-gas-terminology- Use "gas" terminology correctly for SKALE (zero gas fee context)chain-naming- Use "SKALE" not "skale" in all references
2. Smart Contract Development (HIGH)
contracts-compiler-settings- Use correct Solidity compiler: Shanghai (≤0.8.24) for standard, Istanbul (≤0.8.20) for CTXcontracts-solidity-patterns- Apply solidity-dev-tips when using Foundry/Hardhatcontracts-deployment- Follow proper deployment sequences for SKALE chains (use--legacy --slowfor Foundry)contracts-cross-chain- Handle cross-chain message passing patterns
3. Privacy (HIGH)
privacy-bite-protocol- Use BITE Protocol for threshold encryption of transaction data
4. Bridge Integration (MEDIUM-HIGH)
bridge-skale-bridge- Use skale-bridge for asset movement to/from SKALEbridge-cross-chain-validation- Validate cross-chain transactions properlybridge-error-handling- Handle bridge failures and retries
5. Web Application Integration (MEDIUM)
web-rpc-endpoints- Use correct SKALE RPC endpointsweb-wallet-connection- Implement wallet connection for SKALE chainsweb-transaction-handling- Handle zero-gas transaction patterns
6. Native Features (MEDIUM)
random-number-generation- Use SKALE native RNG at precompile 0x18
7. x402 & Agents (MEDIUM)
x402-onchain-agents- Build with x402 on-chain agent standardsx402-automation- Implement automated transaction patterns
8. Infrastructure (LOW-MEDIUM)
infra-indexing- Set up indexing for SKALE chainsinfra-storage- Configure storage solutions for SKALEinfra-rpc-fallback- Implement RPC endpoint fallback
9. Chain-Specific Guides (MEDIUM)
chain-hierarchy- Chain selection priority and decision flowskale-on-base- SKALE Base chain (recommended for most apps)skale-on-ethereum- SKALE Ethereum chains (ETH-native only)
How to Work
Problem-Solving Workflow
-
Identify Development Area
- Web Application, Mobile, Smart Contracts, Infrastructure, or External SDK
-
Clarify and Plan
- Ask necessary questions for full clarity
- Create task list (verbose PRDs for new features)
-
Select Resources
- Pull in context for tools/libraries/frameworks
- Access knowledge for your specific Area
- Identify correct blockchain target
-
Implement
- Stay focused, avoid unapproved changes
- Use SKALE specifics: RPC endpoints, "SKALE" naming, "gas" terminology
- Use Foundry with
--legacy --slowfor SKALE deployments - Use Shanghai compiler (≤0.8.24) for standard contracts, Istanbul (≤0.8.20) for CTX
- Build clean, simple, self-documenting code
- Provide exact file changes and commands
-
Deliverables
- Code changes: Exact file changes, no rambling
- Research: Short, concise output with clear actions
- Answers: Brief, clear responses
Compiler Settings Summary
| Feature | Compiler Version | Notes |
|---|---|---|
| Standard contracts | Shanghai or lower (≤ 0.8.24) | Recommended: 0.8.24 |
| Conditional TX (CTX) | Istanbul (≤ 0.8.20) | CTX requires Istanbul compiler |
| BITE Phase I | Any supported version | No special requirements |
Foundry Deployment
Always use SKALE-specific flags:
forge script script/Deploy.s.s \
--rpc-url $SKALE_RPC_URL \
--private-key $PRIVATE_KEY \
--legacy \
--slow \
--broadcast
Related Skills
solidity-dev-tips- Solidity best practices for Foundry/HardhatBITE Protocol- Threshold encryption for transaction privacyskale-bridge- Asset bridging to/from SKALE
More from thegreataxios/agent-skills
arktype
TypeScript type validation with ArkType, ArkEnv, and ArkRegex. Use for schemas, environment variables, and type-safe regex.
10x402
x402 protocol v2 for internet-native payments. Use when building x402 servers, clients, facilitators, or integrating x402 payment flows. Triggers: x402, payment required, 402, paywall, micropayment, EIP-3009, payment protocol, facilitator, PaymentPayload, PaymentRequirements.
9zod
TypeScript-first schema validation with Zod v4. Use for schemas, type inference, validation, transformations, and JSON Schema generation.
9bite-dev
BITE Protocol development for encrypted and conditional transactions on SKALE. Use for privacy features, threshold encryption, CTX, and Rock-Paper-Scissors style games.
4skale-docs
Search and reference SKALE documentation. Use when looking up API references, chain configurations, or BITE Protocol details.
3bite
BITE Protocol development for encrypted and conditional transactions on SKALE. Use for privacy features, threshold encryption, CTX, and Rock-Paper-Scissors style games.
1