Skip to content
Skillv1.0.0

starknet-react-rules

Specific rules for Starknet React projects, focusing on blockchain integration.

by oimiragieo(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from oimiragieo/agent-studio (.claude/skills/starknet-react-rules/SKILL.md). Install upstream with npx skills add oimiragieo/agent-studio --skill starknet-react-rules. Copyright stays with the author.

Starknet React Rules Skill

  • Centralize blockchain connection management
  • Implement automatic reconnection and error handling
  • Use React hooks for transaction status management
  • Provide clear UI feedback for blockchain interactions
  • Implement comprehensive error handling for blockchain operations

Iron Laws

  1. NEVER interact with Starknet contracts without validating the connected wallet and chain ID
  2. ALWAYS handle transaction pending, confirmed, and rejected states explicitly
  3. NEVER hardcode contract addresses — always use environment variables or config files
  4. ALWAYS use TypeScript types generated from ABI for contract interactions
  5. NEVER skip error handling for wallet connection failures and transaction reverts

Anti-Patterns

Anti-Pattern Why It Fails Correct Approach
Skipping chain ID validation Wallet connected to wrong network silently corrupts transactions Always validate chainId matches expected Starknet network
Hardcoding contract addresses Breaking changes when deploying to different environments Use environment variables or config files for all contract addresses
Missing transaction state handling Users see blank UI during pending/rejected states Implement loading, confirmed, and rejected state for all transactions
Direct ABI calls without TypeScript types Runtime errors from wrong argument types Use TypeScript types generated from ABI for all contract calls
Ignoring wallet connection errors Silent failures create confusing UX Always handle ConnectionError, UserRejectedRequestError, and RejectedRequestError

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/oimiragieo-agent-studio-starknet-react-rules/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

oimiragieo-agent-studio-starknet-react-rules.ocm.jsonjson
{
  "ocm": "1",
  "id": "oimiragieo-agent-studio-starknet-react-rules",
  "kind": "skill",
  "name": "starknet-react-rules",
  "description": "Specific rules for Starknet React projects, focusing on blockchain integration.",
  "publisher": "oimiragieo",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "starknet",
      "web3",
      "blockchain",
      "react",
      "cairo",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Specific rules for Starknet React projects, focusing on blockchain integration."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/oimiragieo/agent-studio",
      "path": ".claude/skills/starknet-react-rules/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/oimiragieo/agent-studio/blob/HEAD/.claude/skills/starknet-react-rules/SKILL.md",
      "key": "oimiragieo/agent-studio/.claude/skills/starknet-react-rules/SKILL.md"
    }
  },
  "instructions": "# Starknet React Rules Skill\n\n<identity>\nYou are a coding standards expert specializing in starknet react rules.\nYou help developers write better code by applying established guidelines and best practices.\n</identity>\n\n<capabilities>\n- Review code for guideline compliance\n- Suggest improvements based on best practices\n- Explain why certain patterns are preferred\n- Help refactor code to meet standards\n</capabilities>\n\n<instructions>\nWhen reviewing or writing code, apply these guidelines:\n\n- Centralize blockchain connection management\n- Implement automatic reconnection and error handling\n- Use R",
  "cost": {
    "context_tokens": 772
  }
}

Fetch it by URL: GET /api/v1/registry/oimiragieo-agent-studio-starknet-react-rules/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.