near-smart-contracts
NEARスマートコントラクトを安全に構築
NEARコントラクトの開発では、ストレージ、呼び出し、マイグレーション、テスト、セキュリティに関する正確なRustパターンが必要です。このスキルは、コントラクトの構築とレビューに役立つ実践的なNEAR SDKガイダンスをCodex、Claude、Claude Codeに提供します。
この Skill を自動インストールしないでください。
基準ポリシーにより、インストール操作の前にオペレーターのレビューが必要です。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "near-smart-contracts" from https://skillstore.io/skills/internet-court-near-smart-contracts.md and its manifest at https://skillstore.io/api/skills/internet-court-near-smart-contracts/manifest. Verify the artifact. Do not auto-install. Inspect the skill and report your findings, then wait for an operator or manual installation decision.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「near-smart-contracts」を使用しています。 ユーザーデータを書き込む支払い可能なメソッドをレビューしてください。
期待される結果:
- 書き込み前にpredecessorの検証が必要です。
- 書き込み前後のストレージ使用量を計算します。
- 十分なattached depositを要求し、余分なNEARを払い戻します。
- デポジット不足と権限のない呼び出し元のケースをテストします。
「near-smart-contracts」を使用しています。 新しい状態フィールドを含むコントラクトのアップグレードを計画してください。
期待される結果:
- デプロイ前に古い状態の構造を定義します。
- 新しい状態用のプライベートなマイグレーションエントリーポイントを追加します。
- 1つの管理されたフローでコードをデプロイし、マイグレーションを呼び出します。
- 本番環境のアップデートには、ガバナンスまたはマルチシグによる承認を使用します。
「near-smart-contracts」を使用しています。 Ethereum向けのMPC署名フローを設計してください。
期待される結果:
- 資金を送る前に外部チェーンのアドレスを導出します。
- 未署名トランザクションをオフチェーンまたはコントラクトロジック内で構築します。
- 十分なGasとコールバックを指定してMPC署名をリクエストします。
- 署名済みトランザクションをオフチェーンで完成させてブロードキャストします。
セキュリティ監査
重大Most static findings are false positives caused by Markdown formatting, educational code examples, and NEAR-specific terminology. Three installation commands download and execute unpinned remote scripts or installers, which presents a critical supply-chain execution risk. The skill contains no evidence of prompt injection or credential exfiltration.
確認済みのセキュリティ上の懸念 (3)
リスク要因
🌐 ネットワークアクセス (32)
⚙️ 外部コマンド (50)
検出されたパターン
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/internet-court-near-smart-contracts/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/internet-court-near-smart-contracts?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/internet-court-near-smart-contracts?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/internet-court-near-smart-contracts/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/internet-court-near-smart-contracts.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
internet-court. (2026). near-smart-contracts security audit report (audit version 2) [Author version 1.0.0]. Skillstore. https://skillstore.io/skills/internet-court-near-smart-contracts/audits/2BibTeX形式の引用
@techreport{internet-court-internet-court-near-smart-contracts-2026,
author = {internet-court},
title = {near-smart-contracts security audit report (audit version 2)},
institution = {Skillstore},
year = {2026},
number = {2},
url = {https://skillstore.io/skills/internet-court-near-smart-contracts/audits/2},
note = {Author version 1.0.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "near-smart-contracts security audit report (audit version 2)"
version: "1.0.0"
type: report
authors:
- name: "internet-court"
date-released: "2026-07-21"
url: "https://skillstore.io/skills/internet-court-near-smart-contracts/audits/2"
identifiers:
- type: other
value: "skillstore:internet-court-near-smart-contracts:audit:2"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 中作成できるもの
NEARコントラクトを作成
開発者はこのスキルを使用して、実装前にコントラクトの構造を設計し、SDKマクロを選択して、ストレージチェックを追加します。
クロスコントラクト動作をレビュー
エンジニアは、アップデートをデプロイする前に、Promiseチェーン、コールバック、Gas割り当て、マイグレーション計画を確認します。
統合テストを計画
テスターは、デプロイ、呼び出し、残高、コールバック、失敗、時間依存の動作を検証するnear-sandboxシナリオを設計します。
これらのプロンプトを試す
near-smart-contractsスキルを使用して、[purpose]のためのRust NEARコントラクトの概要を作成してください。状態、初期化、ストレージチェック、テストを含めてください。
near-smart-contractsスキルを使用して、次のストレージ更新フローをレビューしてください:[describe flow]。不足しているデポジット、払い戻し、アクセスチェックを特定してください。
near-smart-contractsスキルを使用して、[contract A]と[contract B]の間のPromiseチェーンを設計してください。Gas、コールバック、失敗処理を含めてください。
near-smart-contractsスキルを使用して、[old state]から[new state]へのマイグレーションを計画し、その後[target chain]向けのMPC署名を追加してください。
ベストプラクティス
- cargo-nearテンプレートを使用し、ビジネスロジックを追加する前に生成された設定を確認します。
- プライベートコールバック内でPromiseの結果を確認した後にのみ状態を更新します。
- 秘密鍵と署名者の認証情報をオフチェーンのシークレットとして扱い、明示的な取り扱いルールを設けます。
回避
- 検証せずにリモートインストーラーを直接シェルへパイプすること。
- マイグレーションメソッドとロールバック計画を用意せずに、変更された状態レイアウトをデプロイすること。
- 外部データに対して保護されていないresumeメソッドやコールバックメソッドを使用すること。
よくある質問
このスキルはコードを自動的に作成しますか?
どのバージョンのNEAR SDKを対象としていますか?
セキュリティレビューに役立ちますか?
チェーン署名をサポートしていますか?
メインネットにデプロイできますか?
インストールガイダンスに警告が付いているのはなぜですか?
開発者情報
作成者
internet-courtライセンス
MIT
作者バージョン
v1.0.0
Skillstore リビジョン
r1
リポジトリ
https://github.com/internet-court/internet-court-skill/tree/main/vendored/near/near-smart-contracts参照
3f6e026a3363e0954ede7bef0cfe88d4475de137
メンテナンスの新しさ
2026/7/21
利用状況
1 ダウンロード · 0 閲覧