create-aptos-project
Skill19 starsChanged 7 months agoMITView on GitHub
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. Before running the scaffold command, gather these inputs from the user: Derive from the user's description or ask directly. Use kebab-case (e.g., habit-tracker, nft-marketplace). 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…
- Reads credentials
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-gas-optimizationSkill
- deploy-contractsSkill
- generate-testsSkill
- modernize-moveSkill
- search-aptos-examplesSkill
- security-auditSkill
- write-contractsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Verify
.envis in.gitignore: before any git operations - Distinctive: line 30
Follow the full Build a dApp workflow: after scaffolding (contracts, tests, audit, deploy, frontend)
- Distinctive: line 43
Before running the scaffold command, gather these inputs from the user:
- Distinctive: line 73
Ask if the user has a Geomi API key.
- Distinctive: line 110
After scaffolding, complete these steps in order:
- Very specific: line 114
Run aptos init --network <network> --assume-yes (use the same network as above)
- Very specific: line 161
If that still fails, verify Node.js and npm are installed (node -v && npm -v).
- Very specific: line 165
Check contract/Move.toml has correct named addresses
- Very specific: line 166
Run aptos init --network <network> --assume-yes if not done
- Very specific: line 167
Verify my_addr is set to "_" in [addresses] section
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Use
npx create-aptos-dappto scaffold — NEVER create projects from scratch manually - Ask the user about project type, framework, and network before scaffolding
- Verify
.envis in.gitignorebefore any git operations - Use the same network for both
create-aptos-dappandaptos init - Follow the full Build a dApp workflow after scaffolding (contracts, tests, audit, deploy, frontend)
NEVER
- Skip scaffolding — even for "simple" projects, always start with
create-aptos-dapp - Create project structure manually — the boilerplate template handles this
- Display or read private keys — use
"0x..."as placeholder - Run
git add .orgit add -Awithout first verifying.envis 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 <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:
cd <project-name>- Verify
.envis in.gitignorebefore any git operations - Run
aptos init --network <network> --assume-yes(use the same network as above) - Verify:
npm run move:compile && npm run move:test 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 ...").
/create-aptos-project-> scaffold withnpx create-aptos-dapp(this skill — NEVER skip)/write-contracts-> write Move modules/generate-tests-> create test suite, verify 100% coverage/security-audit-> audit before deployment/deploy-contracts-> deploy contract to specified network/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 withMove.tomland starter modulefrontend/— React app with Aptos wallet adapter pre-configuredpackage.json— Scripts formove:compile,move:test,move:publish,dev,build.env— Environment variables for network, API key, and publisher account
Contract-Only Template
contract/— Move smart contract withMove.tomland starter modulepackage.json— Scripts formove: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
- Check
contract/Move.tomlhas correct named addresses - Run
aptos init --network <network> --assume-yesif not done - Verify
my_addris 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).
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
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.

