Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

create-aptos-project创建 aptos 项目

Agent Skill

create-aptos-project 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,927

周安装

252

GitHub Stars

公开资料未说明

下载量

2,076
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-aptos-project(创建 aptos 项目)
来源仓库:https://github.com/iskysun96/create-aptos-project
安装命令:
openclaw skills install create-aptos-project
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install create-aptos-project

简介

使用 npx create-aptos-dapp 快速搭建 Aptos 区块链应用项目。

  • 提供全栈(Vite/Next.js)与合约专属两种初始化模板选择。
  • 内置网络选择与合约部署辅助功能简化开发调试流程。
  • 需确保 Node.js 环境已安装且具备 npm/yarn 包管理能力。
  • 首次运行可能因镜像源差异导致依赖下载速度较慢现象。

SKILL.md

name
create-aptos-project
description
license
MIT
metadata
author
aptos-labs
version
1.0
category
project
tags
["scaffold", "create-aptos-dapp", "boilerplate", "project-setup", "fullstack", "vite", "nextjs"]
priority
critical

Create Aptos Project Skill

Purpose

Scaffold new Aptos projects using npx create-aptos-dapp. This is the mandatory first step when a user wants to build any new Aptos app, dApp, or project — regardless of how they phrase it.

ALWAYS

  1. Use npx create-aptos-dapp to scaffold — NEVER create projects from scratch manually
  2. Ask the user about project type, framework, and network before scaffolding
  3. Verify .env is in .gitignore before any git operations
  4. Use the same network for both create-aptos-dapp and aptos init
  5. Follow the full Build a dApp workflow after scaffolding (contracts, tests, audit, deploy, frontend)

NEVER

  1. Skip scaffolding — even for "simple" projects, always start with create-aptos-dapp
  2. Create project structure manually — the boilerplate template handles this
  3. Display or read private keys — use "0x..." as placeholder
  4. Run git add . or git add -A without first verifying .env is in .gitignore

Decision Tree

Before running the scaffold command, gather these inputs from the user:

1. Project Name

Derive from the user's description or ask directly. Use kebab-case (e.g., habit-tracker, nft-marketplace).

2. Project Type

OptionWhen to Use
Fullstack (default)User wants a frontend + smart contracts
Contract-onlyUser only wants Move smart contracts (no frontend)

3. Framework (fullstack only)

OptionWhen to Use
Vite (default)Default choice, lighter setup
Next.jsUser asks for Next.js or SSR

4. Network

OptionWhen to Use
devnet (default)Development and testing
testnetPre-production, user explicitly asks
mainnetProduction, user explicitly asks

5. API Key (optional)

Ask if the user has a Geomi API key. It's optional for devnet but recommended for testnet/mainnet to avoid rate limits. Get one at https://geomi.dev (create project -> API Resource -> copy key).


Scaffolding Commands

# Fullstack dApp with Vite (frontend + contracts)
npx create-aptos-dapp <project-name> \
  --project-type fullstack \
  --template boilerplate-template \
  --framework vite \
  --network <network>

# Fullstack dApp with Next.js
npx create-aptos-dapp <project-name> \
  --project-type fullstack \
  --template boilerplate-template \
  --framework nextjs \
  --network <network>

# Contract-only (Move project)
npx create-aptos-dapp <project-name> \
  --project-type move \
  --network <network>

Optional flags:

  • --api-key <key> — Pass a Geomi API key during scaffolding
  • --use-surf — Enable Surf for type-safe contract interactions

Post-Scaffold Checklist

After scaffolding, complete these steps in order:

  1. cd <project-name>
  2. Verify .env is in .gitignore before any git operations
  3. Run aptos init --network <network> --assume-yes (use the same network as above)
  4. Verify: npm run move:compile && npm run move:test
  5. git init && git add . && git commit -m "Initial commit"

Build a dApp Workflow

ALWAYS follow this workflow when the user wants to build a new Aptos app, dApp, or project. This applies regardless of how the user phrases it ("build me a ...", "create a ...", "make a ...", "I want to build ...").

  1. /create-aptos-project -> scaffold with npx create-aptos-dapp (this skill — NEVER skip)
  2. /write-contracts -> write Move modules
  3. /generate-tests -> create test suite, verify 100% coverage
  4. /security-audit -> audit before deployment
  5. /deploy-contracts -> deploy contract to specified network
  6. /use-ts-sdk -> orchestrates frontend integration (routes to ts-sdk-client, ts-sdk-transactions,

ts-sdk-view-and-query, ts-sdk-wallet-adapter as needed)


What the Boilerplate Includes

Fullstack Template

  • contract/ — Move smart contract with Move.toml and starter module
  • frontend/ — React app with Aptos wallet adapter pre-configured
  • package.json — Scripts for move:compile, move:test, move:publish, dev, build
  • .env — Environment variables for network, API key, and publisher account

Contract-Only Template

  • contract/ — Move smart contract with Move.toml and starter module
  • package.json — Scripts for move:compile, move:test, move:publish
  • .env — Environment variables for network and publisher account

Troubleshooting

npx create-aptos-dapp command not found

# Auto-confirm the npx package install prompt
npx --yes create-aptos-dapp <project-name> ...

If that still fails, verify Node.js and npm are installed (node -v && npm -v).

Compile failures after scaffold

  1. Check contract/Move.toml has correct named addresses
  2. Run aptos init --network <network> --assume-yes if not done
  3. Verify my_addr is set to "_" in [addresses] section

Named address errors

The boilerplate uses my_addr = "_" which gets resolved from .env at compile time. Ensure VITE_MODULE_PUBLISHER_ACCOUNT_ADDRESS is set in .env (populated by aptos init).

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.69%
按下载量换算1,530

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills