← 返回 Skills 市场
iskysun96

Create Aptos Project

作者 iskysun96 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
202
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install create-aptos-project
功能描述
Scaffolds new Aptos projects using npx create-aptos-dapp. Supports fullstack (Vite or Next.js) and contract-only templates with network selection and optiona...
使用说明 (SKILL.md)

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

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

3. Framework (fullstack only)

Option When to Use
Vite (default) Default choice, lighter setup
Next.js User asks for Next.js or SSR

4. Network

Option When to Use
devnet (default) Development and testing
testnet Pre-production, user explicitly asks
mainnet Production, 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 \x3Cproject-name> \
  --project-type fullstack \
  --template boilerplate-template \
  --framework vite \
  --network \x3Cnetwork>

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

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

Optional flags:

  • --api-key \x3Ckey> — 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 \x3Cproject-name>
  2. Verify .env is in .gitignore before any git operations
  3. Run aptos init --network \x3Cnetwork> --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 \x3Cproject-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 \x3Cnetwork> --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).

安全使用建议
This skill appears coherent for scaffolding Aptos projects, but take precautions before running its recommended commands: 1) npx create-aptos-dapp will download and execute code from npm — verify the package name, inspect the package contents (or prefer a specific, audited version) and the maintainer before running it; consider running the scaffold in an isolated environment or container. 2) Do not let the agent display or transmit private keys; aptos init may create keys — store them securely and never commit .env to git. 3) The skill metadata claims 'aptos-labs' but has no homepage/source: treat the author assertion as unverified. 4) Prefer to run scaffolding commands locally under your control (or inspect the npm package) rather than giving an agent the ability to execute them autonomously. If you need help verifying the npm package or modifying commands to use a pinned version or sandbox, ask before installing.
功能分析
Type: OpenClaw Skill Name: create-aptos-project Version: 1.0.0 The skill bundle provides legitimate instructions for scaffolding Aptos blockchain projects using the standard 'npx create-aptos-dapp' utility. It incorporates security best practices, such as explicitly instructing the agent to verify that '.env' files are ignored by git and forbidding the handling of private keys. The referenced external service (geomi.dev) is a known infrastructure provider for the Aptos ecosystem, and no malicious execution or data exfiltration patterns were identified in SKILL.md or _meta.json.
能力评估
Purpose & Capability
Name, description, and instructions are consistent: the skill is an instruction-only scaffold helper for Aptos projects. Minor oddity: metadata claims author 'aptos-labs' and 'priority: critical' but source/homepage are unknown — provenance is unclear and could be impersonation.
Instruction Scope
The SKILL.md tells the agent to run npx create-aptos-dapp and aptos init, initialize git, and manipulate .env/.gitignore. That is within scaffolding scope, but npx will fetch and execute remote npm package code at runtime (remote code execution risk). The doc also references handling of sensitive data (publisher account keys in .env) but does not provide strong guidance for safe key storage beyond checking .gitignore; aptos init may generate keys that must not be exposed — the agent must not display or transmit them.
Install Mechanism
No install spec in the skill itself, but the runtime instructions rely on npx to pull and run create-aptos-dapp from npm. That implicitly causes a network download and execution of third-party code. The skill does not require or lock to a known package version or provide a trusted source URL, increasing risk.
Credentials
The skill declares no required env vars, which matches its instruction-only nature. However, the templates create an .env that may contain API keys and the publisher account (sensitive private keys). The skill properly warns to ensure .env is in .gitignore, but it does not instruct how to securely create/store the publisher key or prevent accidental exposure beyond that check.
Persistence & Privilege
Skill is instruction-only, has no install, does not request persistent privileges, and always=false. It does not modify other skills or system-wide configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install create-aptos-project
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /create-aptos-project 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the create-aptos-project skill. - Scaffolds new Aptos projects using npx create-aptos-dapp, supporting fullstack (Vite or Next.js) and contract-only templates. - Guides users through project type, framework, network selection, and optional API key setup. - Enforces best practices: always scaffold with create-aptos-dapp, never create project structures manually, and never display private keys. - Includes a detailed workflow and checklist for initializing, testing, and committing new projects. - Covers troubleshooting and recommendations for a smooth project setup experience.
元数据
Slug create-aptos-project
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Create Aptos Project 是什么?

Scaffolds new Aptos projects using npx create-aptos-dapp. Supports fullstack (Vite or Next.js) and contract-only templates with network selection and optiona... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 202 次。

如何安装 Create Aptos Project?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install create-aptos-project」即可一键安装,无需额外配置。

Create Aptos Project 是免费的吗?

是的,Create Aptos Project 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Create Aptos Project 支持哪些平台?

Create Aptos Project 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Create Aptos Project?

由 iskysun96(@iskysun96)开发并维护,当前版本 v1.0.0。

💬 留言讨论