mini-apps-scaffold
Installation
SKILL.md
Nimiq Mini Apps — Scaffold
This skill creates a new mini app project from scratch. It guides the developer from idea to a working, connected shell that's ready for feature development.
A mini app is a web application that runs inside Nimiq Pay on mobile devices. It communicates with the wallet through injected providers: a Nimiq provider for NIM operations and an Ethereum provider (window.ethereum) for EVM chain and token interactions.
Step 0 — Understand the request
Before writing any code, ask the developer these questions:
- What does the app do? Get a clear description of the intended functionality.
- Which providers does it need?
- Nimiq provider: for NIM payments, message signing, staking, or blockchain state
- Ethereum provider: for EVM tokens (like USDT), Ethereum signing, or multi-chain interaction
- Both: for apps that bridge Nimiq and EVM functionality
- Which framework or language? Any web framework works. The mini app just needs to run in a browser. The documentation has examples for Vue, React, and Svelte. If the developer uses a different framework, adapt the patterns from the docs. If they don't have a preference, recommend Vue (it's what the reference implementations use).
- Does it involve specific tokens or chains? If yes, confirm which ones. Only these EVM chains are supported: Ethereum, Polygon, Arbitrum One, Optimism, Base, BNB Smart Chain, Sepolia.
Summarize your understanding back to the developer. Do not proceed until they confirm.