Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
starknet-react-rules - Skill - OpenSmartRoute
Skillv1.0.0
starknet-react-rules
Specific rules for Starknet React projects, focusing on blockchain integration.
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
NEVER interact with Starknet contracts without validating the connected wallet and chain ID
ALWAYS handle transaction pending, confirmed, and rejected states explicitly
NEVER hardcode contract addresses — always use environment variables or config files
ALWAYS use TypeScript types generated from ABI for contract interactions
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
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.
Installed into a catalogue, chosen by a router
Install starknet-react-rules and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"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": [
"coding",
"legal"
],
"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"
},
"tools": [
"Read",
"Write",
"Edit"
],
"model": "sonnet",
"applies_to": "starknet/**/*.tsx"
},
"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 React hooks for transaction status management\n- Provide clear UI feedback for blockchain interactions\n- Implement comprehensive error handling for blockchain operations\n </instructions>\n\n<examples>\nExample usage:\n```\nUser: \"Review this code for starknet react rules compliance\"\nAgent: [Analyzes code against guidelines and provides specific feedback]\n```\n</examples>\n\n## Iron Laws\n\n1. **NEVER** interact with Starknet contracts without validating the connected wallet and chain ID\n2. **ALWAYS** handle transaction pending, confirmed, and rejected states explicitly\n3. **NEVER** hardcode contract addresses — always use environment variables or config files\n4. **ALWAYS** use TypeScript types generated from ABI for contract interactions\n5. **NEVER** skip error handling for wallet connection failures and transaction reverts\n\n## Anti-Patterns\n\n| Anti-Pattern | Why It Fails | Correct Approach |\n| ----------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------- |\n| Skipping chain ID validation | Wallet connected to wrong network silently corrupts transactions | Always validate chainId matches expected Starknet network |\n| Hardcoding contract addresses | Breaking changes when deploying to different environments | Use environment variables or config files for all contract addresses |\n| Missing transaction state handling | Users see blank UI during pending/rejected states | Implement loading, confirmed, and rejected state for all transactions |\n| Direct ABI calls without TypeScript types | Runtime errors from wrong argument types | Use TypeScript types generated from ABI for all contract calls |\n| Ignoring wallet connection errors | Silent failures create confusing UX | Always handle ConnectionError, UserRejectedRequestError, and RejectedRequestError |\n\n## Memory Protocol (MANDATORY)\n\n**Before starting:**\n\n```bash\ncat .claude/context/memory/learnings.md\n```\n\n**After completing:** Record any new patterns or exceptions discovered.\n\n> ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.",
"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.