agentleFS
0xvikram0xvikram/backboard-skills/skills/dynamic/SKILL.md

dynamic

Skill1 starsChanged 24 days agoMITView on GitHub

Dynamic (dynamic.xyz) wallet login for React: DynamicWidget sign-in with email, social or wallets, embedded MPC wallets, wagmi, sending transactions, custom EVM networks (World Chain, Unichain, Arc), and server-side JWT checks. Use when the user mentions Dynamic, DynamicContextProvider, DynamicWidget, environmentId, embedded wallets, wallet login, or onboarding users to a dapp.

  • Reads credentials
  • Installs packages

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add Node globals to vite.config.ts, or the page breaks with process is not defined:

    line 28
  2. Very specific:

    Put VITE_DYNAMIC_ENVIRONMENT_ID=<YOUR_ENVIRONMENT_ID> in .env.local.

    line 32
  3. Very specific:

    Run npm run dev and open http://localhost:5173.

    line 66
  4. Distinctive:

    All in references/recipes.md:

    line 70
  5. Very specific:

    Check versions before installing: npm view @dynamic-labs/sdk-react-core version.

    line 87
  6. Distinctive:

    When this skill and the official docs disagree, the docs win.

    line 89

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dynamic

Dynamic gives a React app a ready-made login modal (DynamicWidget): email OTP, social logins, passkeys and external wallets, plus an embedded MPC wallet made for each user. Pick it when you want users signed in with a wallet in minutes, without writing auth UI.

This skill uses the React SDK (@dynamic-labs/sdk-react-core), the one with DynamicWidget and wagmi support. Dynamic now calls it "legacy" and recommends its headless JavaScript SDK (@dynamic-labs-sdk/*) for new apps. That SDK has no built-in UI, so you write every login screen yourself. For a 36-hour hackathon the widget is faster. If you want the headless SDK, follow https://www.dynamic.xyz/docs/javascript/reference/react-quickstart and don't use this skill's code.

Quickstart

  1. Sign up at https://console.dynamic.xyz and copy the Environment ID from https://console.dynamic.xyz/dashboard/developer/api (use the Sandbox environment while building).
  2. In the dashboard, add http://localhost:5173 under Security > Allowed CORS Origins, turn on the sign-in methods you want (email, Google, wallets), and turn on Embedded Wallets with "Create on Sign up". See quickstart.md.
  3. Scaffold with Vite 5. Dynamic's quickstart says vite@latest (Vite 8) does not work with the SDK:
    npm create vite@5 my-app -- --template react-ts && cd my-app
    npm i @dynamic-labs/sdk-react-core@5.12.0 @dynamic-labs/ethereum@5.12.0 viem@2.57.7
  4. Add Node globals to vite.config.ts, or the page breaks with process is not defined:
    export default defineConfig({ plugins: [react()], define: { 'process.env': {}, global: 'globalThis' } });
  5. Put VITE_DYNAMIC_ENVIRONMENT_ID=<YOUR_ENVIRONMENT_ID> in .env.local.
  6. Wrap the app and add the widget:
    // src/main.tsx
    import { createRoot } from 'react-dom/client';
    import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';
    import { EthereumWalletConnectors } from '@dynamic-labs/ethereum';
    import App from './App';
    
    createRoot(document.getElementById('root')!).render(
      <DynamicContextProvider
        settings={{
          environmentId: import.meta.env.VITE_DYNAMIC_ENVIRONMENT_ID,
          walletConnectors: [EthereumWalletConnectors],
        }}
      >
        <App />
      </DynamicContextProvider>,
    );
    // src/App.tsx
    import { DynamicWidget, useDynamicContext } from '@dynamic-labs/sdk-react-core';
    
    export default function App() {
      const { primaryWallet, user } = useDynamicContext();
      return (
        <div>
          <DynamicWidget />
          {primaryWallet && <p>{user?.email} {primaryWallet.address}</p>}
        </div>
      );
    }
  7. Run npm run dev and open http://localhost:5173. Sign in, and you get an address. primaryWallet.chain is the chain family ('EVM'), not a chain ID. Use await primaryWallet.getNetwork() for the ID.

Common tasks

All in references/recipes.md:

  • Login options: email, social, wallets
  • Embedded wallets
  • Send a transaction (viem)
  • Sign a message
  • wagmi integration + contract writes
  • Add a custom EVM network (World Chain, Unichain...)
  • Verify the JWT on your server
  • Next.js App Router

Errors and fixes: references/errors.md. Docs MCP for your editor: references/mcp.md.

Before you write more code

  • For anything not covered here, read the docs index https://www.dynamic.xyz/docs/llms.txt, then the React SDK index https://www.dynamic.xyz/docs/react/llms.txt. Any page loads as markdown if you add .md to its URL.
  • Better: add the docs MCP (claude mcp add --transport http dynamic https://www.dynamic.xyz/docs/mcp) and search it.
  • Check versions before installing: npm view @dynamic-labs/sdk-react-core version. All @dynamic-labs/* packages must be on the same version, or the SDK logs a version-mismatch error.
  • @dynamic-labs/wagmi-connector@5.12.0 declares wagmi ^2.14.11. Use wagmi v2. Some Dynamic docs pages still show wagmi v1 hooks (usePrepareContractWrite), which no longer exist.
  • When this skill and the official docs disagree, the docs win.

At ETHGlobal Mumbai

  • Sponsor chains: World Chain and Unichain work as EVM networks (Dynamic lists both by chain ID). Arc has native embedded-wallet and gas-sponsorship support. Hedera, 0G and Whitechain are not named in Dynamic's docs and need the custom-network route. Details and sources: references/chains.md.
  • Dynamic may help with prize tracks that need easy onboarding, embedded wallets, or consumer apps on a sponsor chain. Check the tracks and their rules at https://ethglobal.com/events/mumbai/prizes.
  • Help: Dynamic's official Slack, https://dynamic.xyz/slack (#bug-report for bugs), and support at https://www.dynamic.xyz/talk-to-us. To check whether a bug is yours or theirs, try it on https://demo.dynamic.xyz.

About

Hand-written for Backboard (https://backboard.0xvikram.me), an independent project not affiliated with ETHGlobal or Dynamic. Tested 2026-10-19 with @dynamic-labs/sdk-react-core@5.12.0, @dynamic-labs/ethereum@5.12.0, @dynamic-labs/wagmi-connector@5.12.0, viem@2.57.7, wagmi@2.19.5, @tanstack/react-query@5.104.4, react@18.3.1, vite@5.4.21, jsonwebtoken@9.0.3, jwks-rsa@4.1.0.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.