0xobelisk/dubhe/dubhe-dapp
Claude Code and agent skill by 0xobelisk/dubhe
- community
Checking that the SKILL.md file is still in the repository.
Guides development of DApps built on top of the Dubhe framework on Sui. Use this skill whenever the user is building, configuring, deploying, or upgrading a Dubhe DApp — including writing dubhe.config.ts, running dubhe generate, writing Move system functions, deploying with dubhe publish/upgrade, or using the TypeScript client packages (@0xobelisk/client, @0xobelisk/react, @0xobelisk/sui-client). Also use when the user asks about Dubhe storage, session keys, credit management, DappStorage/UserStorage, or the ECS world client.
Install
npx vskill@latest install 0xobelisk/dubhe/dubhe-dappSKILL.md
Dubhe DApp Development
This skill covers the full lifecycle of building a DApp on the Dubhe framework: from defining the schema in dubhe.config.ts, generating Move code, writing system functions, deploying on Sui, and interacting with the chain from TypeScript.
Reference Files
Load the relevant reference file(s) based on the user's question. Each file is self-contained.
| File | When to read | |
|---|---|---|
references/quickstart.md | Getting started, project scaffolding, first deploy end-to-end | |
references/cli.md | Any dubhe CLI command (generate, publish, upgrade, test, watch, node, faucet, etc.) | |
references/dubhe-config.md | dubhe.config.ts fields — resources (with fungible/reactive/transferable/listable annotations), objects, permits, scenes, enums, errors | |
references/dapp-api.md | dapp_system public API — guards, storage, session keys, credit, admin, ownership | |
references/deployment.md | First publish flow, version guard pattern, upgrading, credit management after deploy | |
references/upgrade.md | Full upgrade lifecycle — compatible/breaking upgrades, schema migration, boundary conditions | |
references/client.md | TypeScript clients — createClient, Dubhe, DubheProvider + hooks, GraphQL, ECS, DubheChannel |
Read multiple files when the question spans several topics. When in doubt about which to load, start with quickstart.md for new-user questions and dapp-api.md for API questions.
Key Concepts
Three-tier storage: DappHub (framework global) → DappStorage (per-DApp shared) → UserStorage (per-user shared object, one per user per DApp). DApp contracts never receive a raw address to identify users; the user passes their own UserStorage object, and the framework verifies ownership via canonical_owner.
Extended storage (codegen-driven): objects in dubhe.config.ts generates ObjectStorage<T> — DApp-controlled named entities (guilds, bosses). permits generates ScenePermit<T> — participant authorization objects used to gate reactive writes and permit-type scene field writes. scenes generates SceneStorage<T> — multi-user time-bounded shared objects (PvP matches, dungeon runs).
Code generation: dubhe.config.ts drives dubhe generate to produce all boilerplate under sources/codegen/. Never edit generated files by hand — change the config and regenerate.
Version guard: Every public entry function must call dapp_system::ensure_latest_version<DappKey>(dapp_storage, migrate::on_chain_version()) to prevent stale clients from writing after an upgrade.
Credits: Storage writes consume credits from DappStorage.credit_pool. Call dapp_system::settle_writes periodically to settle user debt. Top up with recharge_credit. The per-user unsettled write limit is MAX_UNSETTLED_WRITES = 2_000.
Quick Patterns
Minimal system function
TypeScript client (recommended)
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 repositoryCheckingskills/dubhe-dapp/SKILL.md
Popularity
- Repository stars
- 73
- Repository forks
- 26
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 11 Jul 2026, 4 months ago.
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/0xobelisk/dubhe/dubhe-dapp)