Skip to content
Back to skills

Web3 Dapp

ASecurity

Use when the user asks for a web3 dapp playbook, to scaffold a full-stack dapp, or a Next.js + Solidity + indexer + Kubernetes architecture. Produces a reference stack, build order and deployment scaffold. Not for wallet integration details (use blockchain-web3) or contract security (use blockchain-security).

  • 46 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentsnextjskubernetestestingfrontendsecurity

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 27, 2026

npx -y skills add j4flmao/agent-skills --skill web3-dapp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web3 Dapp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web3 Dapp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/j4flmao-web3-dapp/badge)](https://www.skillsdirectory.com/skills/j4flmao-web3-dapp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: web3-dapp-playbook
description: >
  Use when the user asks for a web3 dapp playbook, to scaffold a full-stack dapp, or a Next.js + Solidity + indexer + Kubernetes architecture. Produces a reference stack, build order and deployment
  scaffold. Not for wallet integration details (use blockchain-web3) or contract security (use blockchain-security).
last_verified: "2026-11-17"
---

## Purpose
Reference architecture for a full-stack Web3 dApp: Next.js frontend with wallet integration, Solidity contracts, indexing, and Kubernetes deployment.

## Agent Protocol

### Trigger
User phrases: "web3 dapp playbook", "build a full-stack dapp", "Next.js + Solidity architecture", "dapp scaffold".

### Input Context
- Product requirements, scale targets, and existing stack.
- Constraints (budget, compliance, team size).

### Output Artifact
Architecture guidance and component choices (no files unless requested).

### Response Format
```
Layer: {contracts | frontend | infra}
Choice: {component + why}
Risk: {security, gas, RPC reliability}
```


# Web3 DApp Playbook

**MẠNH. CONCISE. AUTHORITATIVE.**

## 1. Architecture Map

```mermaid
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
    A["Next.js Frontend"] -->|RPC Call| B["Smart Contract (Solidity)"]
    B -->|Emits Events| C["Indexer (The Graph/Squid)"]
    C -->|GraphQL Query| A
    D["Kubernetes"] -->|Deploys| A
    D -->|Deploys| C
```

## 2. Core Directives

1. **Frontend**: Next.js (App Router). Strict typing. Server components where possible.
2. **Contracts**: Solidity. Foundry for testing: unit, fuzz and invariant tests gate CI (high line coverage is necessary, not sufficient); external audit before mainnet.
3. **Deployment**: Kubernetes. Helm charts for deterministic state.
4. **Integration**: No direct DB writes from frontend for on-chain state. Always read from indexer.

## 3. Unified Scaffold (Makefile)

```makefile
.PHONY: build deploy-contracts deploy-k8s

# Build all layers
build:
	cd frontend && npm install && npm run build
	cd contracts && forge build
	cd indexer && npm install && npm run build

# Deploy contracts to testnet/mainnet
deploy-contracts:
	# Sign with an encrypted keystore (cast wallet import) or hardware wallet, never a raw private key in env
	cd contracts && forge script script/Deploy.s.sol --rpc-url $(RPC_URL) --account $(DEPLOYER_ACCOUNT) --broadcast --verify

# Deploy infrastructure via kubectl
deploy-k8s:
	kubectl apply -f k8s/namespace.yaml
	kubectl apply -f k8s/frontend-deployment.yaml
	kubectl apply -f k8s/indexer-deployment.yaml
	kubectl rollout status deployment/frontend -n web3
```

Execute with precision. No deviations.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.