use-typescript-sdk
Use TypeScript SDK Skill
Important: Boilerplate Template
If the project was scaffolded with create-aptos-dapp (boilerplate template), wallet adapter and SDK setup are already done. Before writing new code, check what already exists:
frontend/components/WalletProvider.tsx— wallet adapter setup with auto-connectfrontend/constants.ts—NETWORK,MODULE_ADDRESS,APTOS_API_KEYfrom env varsfrontend/entry-functions/— existing entry function patterns (follow these for new ones)frontend/view-functions/— existing view function patterns (follow these for new ones)frontend/components/— working components (TransferAPT, MessageBoard, WalletSelector, etc.)
Do NOT recreate wallet provider, client setup, or constants if they already exist. Instead, follow the existing patterns to add new entry/view functions for your Move contracts.
Core Rules
SDK Setup
- ALWAYS use
@aptos-labs/ts-sdk(the current official SDK, NOT the deprecatedaptospackage)
More from iskysun96/aptos-agent-skills
generate-tests
Creates comprehensive test suites for Move contracts with 100% coverage requirement. Triggers on: 'generate tests',
38write-contracts
Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and
35security-audit
Audits Move contracts for security vulnerabilities before deployment using 7-category checklist. Triggers on: 'audit
32deploy-contracts
Safely deploys Move contracts to Aptos networks (devnet, testnet, mainnet) with pre-deployment verification. Triggers
32search-aptos-examples
Searches aptos-core and daily-move for reference implementations before writing contracts. Triggers on: 'search
31analyze-gas-optimization
Analyze and optimize Aptos Move contracts for gas efficiency, identifying expensive operations and suggesting
31