near-smart-contracts
NEAR Protocol smart contract development in Rust. Use when writing, reviewing, or deploying NEAR smart contracts. Covers contract structure, state management, cross-contract calls, testing, security, and optimization patterns. Based on near-sdk v5.x with modern macro syntax.
npx skills add internet-court/internet-court-skill --skill near-smart-contracts --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# NEAR Smart Contracts Development Comprehensive guide for developing secure and efficient smart contracts on NEAR Protocol using Rust and the NEAR SDK (v5.x). ## When to Apply Reference these guidelines when: - Writing new NEAR smart contracts in Rust - Reviewing existing contract code for security and optimization - Implementing cross-contract calls and callbacks - Managing contract state and storage - Testing and deploying NEAR contracts - Optimizing gas usage and performance ## Getting Started ### Prerequisites Install the required tools before starting development: ```bash # Install Rust (if not already installed) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # Add wasm32 target for compiling contracts rustup target add wasm32-unknown-unknown # Install cargo-near (build, deploy, and manage contracts) curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh # Install near-cli-rs (interact with NEAR network) curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh ``` ### Create a New Project > **CRITICAL**: ALWAYS run `ca
- When to Apply
- Getting Started
- Prerequisites
- Create a New Project
- Project Structure
- Deploy to Testnet
- Rule Categories by Priority
- 1. Security & Safety (CRITICAL)
- 2. Contract Structure (HIGH)
- 3. State Management (HIGH)
- 4. Cross-Contract Calls (MEDIUM-HIGH)
- 5. Contract Upgrades & Migration (MEDIUM-HIGH)
- 6. Chain Signatures (MEDIUM-HIGH)
- 7. Gas Optimization (MEDIUM)
Install Rust (if not already installed) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Add wasm32 target for compiling contracts rustup target add wasm32-unknown-unknown Install cargo-near (build, deploy, and manage contracts) curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh Install near-cli-rs (interact with NEAR network) curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/latest/download/near-cli-rs-installer.sh | sh cargo near new my-contract Navigate to project directory
What does the near-smart-contracts skill do?
NEAR Protocol smart contract development in Rust. Use when writing, reviewing, or deploying NEAR smart contracts. Covers contract structure, state management, cross-contract calls, testing, security, and optimization patterns. Based on near-sdk v5.x with modern macro syntax.
How do I install it?
Run `npx skills add internet-court/internet-court-skill --skill near-smart-contracts --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From internet-court/internet-court-skill, a repository with 1,536 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.