tejas0111/pharos/spn-development
Claude Code and agent skill by tejas0111/pharos
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install tejas0111/pharos/spn-developmentSKILL.md
The same SKILL.md was published earlier as tejas0111/pharos/spn-development.
SPN Development
Overview
Special Processing Networks (SPNs) are Pharos's answer to scalable, specialized execution environments. Each SPN is an independent TEE-backed network that can process specific workloads (ML inference, gaming, DeFi, etc.) while settling to the Pharos main chain.
Architecture
SPN Lifecycle
1. Contract Layer
Every SPN needs smart contracts on the main chain for coordination:
Deployed on Atlantic testnet. To connect an SPN, deploy aCrossChainMessageinstance and register the peer SPN's contract address.
2. Mailbox Integration
The CrossChainMessage contract (contracts/CrossChainMessage.sol) implements the pull-over-push pattern for SPN-to-SPN communication:
3. SPN Paymaster Integration
SPNs can sponsor transactions for their users via contracts/PharosSPNPaymaster.sol:
4. Staking & Economics
Validators running SPN nodes must stake tokens. The contracts/StakingPool.sol handles reward distribution:
Deployment Sequence
Real Deployments
| Contract | Atlantic (688689) | Pacific (1672) | |
|---|---|---|---|
| CrossChainMessage | Not deployed | Not deployed | |
| PharosSPNPaymaster | Not deployed | Not deployed | |
| StakingPool | Not deployed | Not deployed |
Deploy to Atlantic testnet:forge script script/DeployCrossChain.s.sol --rpc-url https://atlantic.dplabs-internal.com --broadcast
Security Considerations
- Escrow Hatches: Every SPN should have an escape hatch — a time-locked function that lets users exit if the SPN goes rogue. Use
contracts/PharosTimelockController.solfor this. - Mailbox Trust: Only register peer contracts you control. A malicious peer could inject fake messages.
- SPN Paymaster Budgets: Set conservative budgets. A buggy SPN could drain the paymaster.
- Staking Slashing: Validators that miss checkpoints get slashed. Monitor via PharosScan.
References
contracts/CrossChainMessage.sol— Mailbox implementationcontracts/PharosSPNPaymaster.sol— Gas sponsorshipcontracts/StakingPool.sol— Staking rewardscontracts/PharosTimelockController.sol— Time-locked governance
MCP Tool Integration
When developing SPNs, AI agents should use the following MCP tools:
| Task | MCP Tool | Example | |
|---|---|---|---|
| Deploy CrossChainMessage | pharos_deploy_contract | script/DeployCrossChain.s.sol | |
| Deploy SPN Paymaster | pharos_deploy_contract | script/DeploySPNPaymaster.s.sol | |
| Whitelist SPN users | pharos_spn_configure | addSponsors([user1, user2]) | |
| Set sponsorship budget | pharos_spn_fund | setGlobalBudget(1000 ETH) | |
| Check paymaster status | pharos_spn_status | canSponsor(user) | |
| Verify deployment | pharos_verify_contract | Verify on PharosScan | |
| Security audit | pharos_run_security_check | Slither analysis | |
| Timelock governance | pharos_create_safe_tx | Multi-sig proposal |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/subskills/spn-development/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tejas0111/pharos/spn-development)