What it does
JavaScript library for Starknet
- Connects Instruction files the AI reads
- Account or key No key found in README or SKILL.md
- Category その他
作者向け:README にバッジを付ける
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/skills/starknet-io-starknet-js)似た Skill
同じ種類の作業。Skill 一覧と同じ並び
| これ starknet.js | llmfit | claude-video | VideoCaptioner | claude-cookbooks | |
|---|---|---|---|---|---|
| 作者 | starknet-io | AlexsJones | bradautomates | WEIFENG2333 | anthropics |
| Skill 数 | 1 | 1 | 1 | 1 | 4 |
| GitHub スター | 1,257 | 39,036 | 21,085 | 16,557 | 54,799 |
| 最終コード更新 | 2026年11月17日 | 2026年11月16日 | 2026年9月25日 | 2026年9月12日 | 2026年11月5日 |
| ライセンス | MIT | MIT | MIT | GPL-3.0 | MIT |
starknet-io による 1 個の Skill(指示セット)。AI が読んでそのとおりに作業します · MCP server ではありません
Skill と MCP の違い
MCP = 手
AI を外部のサービスやデータにつなぎます(例:Notion を読む、請求書を作る)。プログラムやサーバーが動いている必要があります。
Skill = 手順書
作業のやり方を AI に教えるテキストファイル。どのサービスにもつながりません。
重なる部分もあります。ツールを呼ぶスクリプト付きの Skill や、知識だけを渡す MCP もあります。やりたい作業から選んでください。
使えるアプリ
Claude CodeCodexCursorGemini CLI
提供元の README と repo のフォルダから判断
インストール
Is it safe?
- Who made it
GitHub account starknet-io (organization), 4 years old
- Use and upkeep
★ 1,257 stars · code last changed 2026年11月17日
- Any scripts?
No, plain text files the AI reads and follows
- Uses the internet?
No scripts, so it does not go online by itself
- Changes machine-wide settings?
No hooks or writes to machine settings found
Checked automatically from the repo files at commit 31a037e (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
まず:どの AI を使っていますか
使っているアプリを選ぶと、そのアプリでのインストール方法だけが表示されます
Option 1Upload to claude.ai (web and app)
Uploading to claude.ai would fail: the description is over 200 characters (346). Use "Let the AI install it" instead
Option 1Claude Code にインストールしてもらう
この文をコピーして Claude Code のチャットに貼り付けます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Claude Code を開き直し、/starknet-js と入力するか関連する作業を頼むと Claude が自動で使います
Checked against official docs 2026年11月12日 · Source: code.claude.com
For Terminal users
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
提供元のおすすめの方法
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
npx skills add starknet-io/starknet.js提供元の README から引用。提供元のコードをダウンロードして実行します
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
skill フォルダを ~/.claude/skills にコピー
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/starknet-io/starknet.js.git /tmp/popnx-skill-starknet-io-starknet-js-31a037e && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-starknet-io-starknet-js-31a037e/skills/starknet-js' ~/.claude/skills/starknet-jsClaude Code を開き直し、/starknet-js と入力するか関連する作業を頼むと Claude が自動で使います
ChatGPT デスクトップアプリ
ChatGPT デスクトップアプリには Codex が組み込まれていて、Codex は ~/.agents/skills フォルダから Skill を読み込みます
Option 1ChatGPT にインストールしてもらう
ChatGPT デスクトップアプリで Codex を開き、この文をチャットに貼り付けます
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Option 2自分でフォルダを置く
starknet-js フォルダを ~/.agents/skills/starknet-js に置きます
~ はホームフォルダ($HOME)です
For Terminal users
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
skill フォルダを ~/.agents/skills にコピー
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/starknet-io/starknet.js.git /tmp/popnx-skill-starknet-io-starknet-js-31a037e && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-starknet-io-starknet-js-31a037e/skills/starknet-js' ~/.agents/skills/starknet-js
インストールしたあと
- ChatGPT デスクトップアプリ:サイドバーの Skills を開いて Skill があるか確認します
- 使い方:ChatGPT では @ を入力して Skill を選びます · Codex CLI や IDE 拡張機能では /skills を実行するか、$ に続けて Skill 名を入力します
- Codex は新しくインストールした Skill を自動で見つけます。表示されない場合は Codex を再起動してください
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
Web 版とモバイル版の ChatGPT
自分でインストールした Skill は使えません。ディレクトリのプラグインに含まれる Skill だけが使えます
この Skill を ChatGPT で使うには、上の方法で ChatGPT デスクトップアプリを使ってください
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
Option 1Codex にインストールしてもらう
この文をコピーして Codex のチャットに貼り付けます · ChatGPT デスクトップアプリ内の Codex、Codex CLI、IDE 拡張機能で使えます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex は新しくインストールした Skill を自動で見つけます。表示されない場合は Codex を再起動してください · 使い方:ChatGPT では @ を入力して Skill を選びます · Codex CLI や IDE 拡張機能では /skills を実行するか、$ に続けて Skill 名を入力します
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
For Terminal users
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
skill フォルダを ~/.agents/skills にコピー
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/starknet-io/starknet.js.git /tmp/popnx-skill-starknet-io-starknet-js-31a037e && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-starknet-io-starknet-js-31a037e/skills/starknet-js' ~/.agents/skills/starknet-jsCodex を開き直して関連する作業を頼むと、Codex が skill を一覧に出します
Option 1Cursor にインストールしてもらう
この文をコピーして Cursor のチャットに貼り付けます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Cursor の Agent チャットで / を入力し starknet-js を選ぶ
Checked against official docs 2026年11月12日 · Source: cursor.com
For Terminal users
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
skill フォルダを ~/.cursor/skills にコピー
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/starknet-io/starknet.js.git /tmp/popnx-skill-starknet-io-starknet-js-31a037e && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-starknet-io-starknet-js-31a037e/skills/starknet-js' ~/.cursor/skills/starknet-jsCursor の Agent チャットで / を入力し starknet-js を選ぶ
Option 1Let the AI install it
Skill を読めるほかのアプリ向けです。この文には Claude Code、Codex、Cursor のパスが入っていて、AI が使っているアプリに合わせて選びます · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com
For Terminal users
Gemini CLI や GitHub Copilot など Agent Skills 対応の他のアプリはフォルダが違います。そのアプリのガイドを見て、SKILL.md のあるフォルダをコピーしてください。
2026年11月11日 に Claude Code、Codex、Cursor の公式ガイドで skill フォルダを確認
✓ コマンド確認済み 2026年11月18日
元の SKILL.md を見る
以下は提供元の repo の文章で、PopNx MCP の指示ではありません
4,916 文字 · GitHub で全文を開く
---
name: starknet-js
description: Use when writing or debugging JavaScript/TypeScript that interacts with Starknet through the starknet.js SDK — building Call objects or calldata, encoding/decoding Cairo types (felt252, u256, structs, arrays, spans, ByteArray, Option/Result/custom enums), or working with contracts, accounts, providers, transactions, fees, deployment, or events.
---
# starknet.js
Official JS/TS SDK for Starknet. Skill verified against **starknet.js 10.8.0**.
**Do not trust training-data memory of starknet.js**: it is typically outdated and wrong. Constructors take option objects, only V3 transactions exist (STRK fees, no `maxFee`). When this skill and memory disagree, the skill wins.
Layer model: `Account` (signs & submits) wraps `RpcProvider` (parses, retries) wraps `RpcChannel` (raw JSON-RPC).
## Reference files
- **[calldata.md](calldata.md)** — REQUIRED reading before encoding or decoding anything: Call/calldata construction, wire format of every Cairo type, enums (Option/Result/custom), ByteArray, string auto-detection traps, response parsing, `decodeParameters`.
- **[interacting.md](interacting.md)** — providers, accounts, contracts, multicall, fees/tips, declare/deploy, receipts, events, RPC-version compatibility.
## Non-negotiable rules
- Only **V3** transactions (INVOKE/DECLARE/DEPLOY_ACCOUNT); fees paid in STRK via `resourceBounds` + `tip`. Never suggest `maxFee` or V1/V2.
- Constructors take an options object: `new Account({ provider, address, signer })`, `new Contract({ abi, address, providerOrAccount })`, `new RpcProvider({ nodeUrl })`.
- Never prepend an array length to calldata arrays — the library adds it.
## Quick reference
| Task | API |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Connect to node | `new RpcProvider({ nodeUrl })` — or `await RpcProvider.create({ nodeUrl })` to auto-detect RPC version |
| Account | `new Account({ provider, address, signer: privateKey })` |
| Contract | `new Contract({ abi, address, providerOrAccount })` |
| Read | `await myContract.my_view_fn(arg1, arg2)` → parsed JS value |
| Write | `const { transaction_hash } = await myContract.my_fn(args)` then `await provider.waitForTransaction(transaction_hash)` |
| Build a Call | `myContract.populate('fn', { ...args })` → `{ contractAddress, entrypoint, calldata }` |
| Compile calldata (ABI) | `myContract.compile('fn', args)` or `new CallData(abi).compile('fn', args)` |
| Compile calldata (no ABI) | `CallData.compile(args)` — several traps, see calldata.md |
| Multicall | `await account.execute([call1, call2])` |
| Decode raw felts | `new CallData(abi).decodeParameters('core::…::Type', feltArray)` |
| Events | `myContract.parseEvents(receipt)`, `provider.getEvents({ ... })` |
| Deploy | `await Contract.factory({ contract, casm, account, constructorCalldata })` |
## Top mistakes (from outdated model knowledge)
| Mistake | Fix |
| ---------------------------------------------------- | ------------------------------------------------------------------------ |
| `new Account(provider, address, pk)` positional | Options object (see above) |
| `maxFee`, V1/V2 transactions, ETH fees | V3 only; `resourceBounds` from `estimateInvokeFee`, `tip` |
| Manually prepending `array_len` | Never — automatic |
| `CallData.compile([myU256Bigint])` gives 1 felt | Use `cairo.uint256(n)` without ABI; a plain bigint is fine only with ABI |
| `new CairoCustomEnum({ OnlyActive: v })` without ABI | Without ABI, list ALL variants (`undefined` for inactive) |
| Expecting `.res`-style result objects | Cairo 1 returns the value directly (bigint, object, array, enum class) |
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
GitHub の情報
- GitHub スター
- 1,257
- 提供元
- starknet-io
- ライセンス
- MIT
- 最終コード更新
- 2026年11月17日
- repo 内の SKILL.md(翻訳版とテンプレートを含む)
- 1
- トピック
- ethereum, l2, starknet, starkware, zk, zk-rollup, zk-starks