build-on-base

작성자: base

완전한 Base 개발 플레이북. 포함 내용: (1) 네트워크 — Base RPC URL, 체인 ID(8453/84532), 탐색기 설정, 테스트넷 설정, Base 연결, Base Sepolia;…

npx skills add https://github.com/base/skills --skill build-on-base

Base Development

Complete playbook for building on Base L2 — network setup, smart contracts, wallet auth, payments, developer tool attribution, and framework migrations.

Default Stack

LayerDefault
NetworkBase Mainnet (8453) / Base Sepolia testnet (84532)
ContractsFoundry (forge create + BaseScan verification)
Wallet authBase Account SDK (@base-org/account)
PaymentsBase Pay — USDC, gasless, settles in <2s
Transactionswagmi + viem
AttributionBuilder Codes — ERC-8021 via ox/erc8021
RPC (prod)Dedicated node provider or self-hosted Reth

Safety Guardrails

  • Never commit private keys — use cast wallet import for Foundry keystores
  • Never expose RPC API keys or CDP credentials client-side — proxy through backend
  • Never skip server-side payment verification — always call getPaymentStatus() server-side and verify sender, amount, recipient; track processed tx IDs to prevent replay attacks
  • Never send transactions without Builder Code attribution — silent data loss, no errors, no warnings
  • Validate all user-provided shell inputs before constructing forge/cast commands (no spaces, semicolons, pipes)
  • COOP headers for Base Account popups — use same-origin-allow-popups, not same-origin

Task Routing

Read the reference for your task:

TaskWhen to UseReference
Network configRPC URLs, chain IDs, explorer links, testnet setupreferences/network.md
Deploy contractsFoundry deployment, BaseScan verification, faucetreferences/deploy-contracts.md
Run a Base nodeSelf-hosted RPC, Reth, hardware requirementsreferences/run-node.md
Builder CodesAdd ERC-8021 attribution to transactionsreferences/builder-codes/overview.md
Base Account SDKSIWB, Base Pay, subscriptions, sub-accountsreferences/base-account/overview.md
Register AI agent/botRegister wallet, get builder code, wire attributionreferences/agents/register.md
Migrate from OnchainKitOnchainKitProvider → wagmi, wallet/tx componentsreferences/migrations/onchainkit/overview.md
MiniKit → Farcaster SDK@coinbase/onchainkit/minikit@farcaster/miniapp-sdkreferences/migrations/minikit-to-farcaster/overview.md
Farcaster miniapp → regular appRemove Mini App host coupling, convert to Base/web appreferences/migrations/farcaster-miniapp-to-app.md

Operating Procedure

  1. Classify the task using the table above
  2. Read the relevant reference before implementing
  3. Confirm the framework with the user when multiple options exist (e.g., Privy vs wagmi for Builder Codes)
  4. Implement with explicit chain ID, security requirements, and all required validations
  5. Deliver diffs, install commands, and any manual steps (env vars, API key setup, wallet registration)

For Edge Cases and Latest API Changes

Installation

npx skills add base/skills --skill build-on-base

base의 다른 스킬

adding-builder-codes
base
웹3 애플리케이션에 Base Builder Codes(ERC-8021)를 통합하여 온체인 트랜잭션 속성 추적 및 추천 수수료 수익을 얻습니다. 프로젝트가 추가해야 할 때 사용합니다.
official
base-mcp
base
Base MCP — Base MCP 서버(mcp.base.org)를 통해 AI 어시스턴트가 Base 계정에 접근할 수 있도록 합니다. 지갑, 포트폴리오, 전송, 스왑, 서명, x402…
official
building-with-base-account
base
Base Account SDK를 통합하여 인증 및 결제를 처리합니다. Base 로그인(SIWB), Base Pay, Paymasters, 서브 계정, 지출 권한, Prolinks 등을 다룹니다.
official
connecting-to-base-network
base
Base 네트워크 구성(RPC 엔드포인트, 체인 ID, 탐색기 URL 포함)을 제공합니다. 지갑 연결, 개발 환경 구성 시 사용하세요.
official
deploying-contracts-on-base
base
Foundry를 사용하여 Base에 스마트 계약을 배포합니다. forge create 명령어, 계약 검증, CDP를 통한 테스트넷 faucet 설정, BaseScan API 키 등을 다룹니다…
official
migrating-an-onchainkit-app
base
@coinbase/onchainkit에서 독립형 wagmi/viem 컴포넌트로 앱을 마이그레이션하여 OnchainKit 의존성을 완전히 제거합니다.
official
plugin-review
base
Validate and review Base MCP plugin files against the Plugin Specification. Use when writing a new plugin, preparing a plugin PR for submission, self-checking…
official
registering-agent-base-dev
base
사용자가 Base에서 자동화된 트랜잭션 전송기를 구축하거나 실행할 때 이 스킬을 호출하세요(트레이딩 봇, 차익거래 봇, 스나이퍼 봇, 수확 봇, AI 에이전트 등).
official