Agent skill · Security

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.

Internet Court1,389★ · +222/wk · 1 repos on radarProfile →
claude-codecodexNOASSERTION
Install
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.

Facts
Files in the skill folder: 11
SKILL.md size: 14 KB
Bundled scripts: none
Version: 1.0.0
Declared author: near
Path: vendored/near/near-smart-contracts/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,536 · +147 this week
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. When to Apply
  2. Getting Started
  3. Prerequisites
  4. Create a New Project
  5. Project Structure
  6. Deploy to Testnet
  7. Rule Categories by Priority
  8. 1. Security & Safety (CRITICAL)
  9. 2. Contract Structure (HIGH)
  10. 3. State Management (HIGH)
  11. 4. Cross-Contract Calls (MEDIUM-HIGH)
  12. 5. Contract Upgrades & Migration (MEDIUM-HIGH)
  13. 6. Chain Signatures (MEDIUM-HIGH)
  14. 7. Gas Optimization (MEDIUM)
Ships with 10 files
  • LICENSE
  • rules/best-contract-tools.md
  • rules/chain-signatures.md
  • rules/security-storage-checks.md
  • rules/state-collections.md
  • rules/structure-near-bindgen.md
  • rules/testing-integration-tests.md
  • rules/upgrade-migration.md
  • rules/xcc-promise-chaining.md
  • rules/yield-resume.md
Commands it runs
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
More from internet-court-skill
All skills →
About this skill
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.

Keep going