|
| 1 | +--- |
| 2 | +title: "Aptos Agent Skills" |
| 3 | +description: "Pre-built AI skills for Claude Code, Cursor, and GitHub Copilot to write Move smart contracts, use the Aptos TypeScript SDK, and build full Aptos dApps." |
| 4 | +sidebar: |
| 5 | + label: "Agent Skills" |
| 6 | +--- |
| 7 | + |
| 8 | +import { LinkCard } from '@astrojs/starlight/components'; |
| 9 | + |
| 10 | +[Aptos Agent Skills](https://github.com/aptos-labs/aptos-agent-skills) is a collection of pre-built AI skills that give coding assistants like Claude Code, Cursor, and GitHub Copilot deep expertise in Aptos development. The skills cover Move smart contracts, the TypeScript SDK, and full-stack dApp scaffolding. |
| 11 | + |
| 12 | +<LinkCard href="https://github.com/aptos-labs/aptos-agent-skills" title="Aptos Agent Skills on GitHub" description="Browse the source code, skill definitions, and contribution guidelines" /> |
| 13 | + |
| 14 | +## Installation |
| 15 | + |
| 16 | +### Using the Skills CLI (recommended) |
| 17 | + |
| 18 | +```bash |
| 19 | +npx skills add aptos-labs/aptos-agent-skills |
| 20 | +``` |
| 21 | + |
| 22 | +This installs the skills into your project so your AI coding assistant can use them automatically. |
| 23 | + |
| 24 | +### Claude Code Plugin |
| 25 | + |
| 26 | +```bash |
| 27 | +claude plugin add aptos-labs/aptos-agent-skills |
| 28 | +``` |
| 29 | + |
| 30 | +### Manual Installation |
| 31 | + |
| 32 | +Clone the repository and copy the skills into your project's `.claude/skills/` directory: |
| 33 | + |
| 34 | +```bash |
| 35 | +git clone https://github.com/aptos-labs/aptos-agent-skills.git |
| 36 | +cp -r aptos-agent-skills/skills/ .claude/skills/aptos/ |
| 37 | +``` |
| 38 | + |
| 39 | +## Available Skills |
| 40 | + |
| 41 | +### Move Skills |
| 42 | + |
| 43 | +These skills help AI assistants write, test, audit, and deploy Move smart contracts: |
| 44 | + |
| 45 | +| Skill | Description | |
| 46 | +| ---------------------------- | --------------------------------------------------------------------- | |
| 47 | +| **write-contracts** | Write Move smart contracts following Aptos best practices | |
| 48 | +| **generate-tests** | Generate comprehensive unit and integration tests for Move modules | |
| 49 | +| **security-audit** | Audit Move contracts for common vulnerabilities and security issues | |
| 50 | +| **deploy-contracts** | Deploy Move modules to Aptos devnet, testnet, or mainnet | |
| 51 | +| **search-aptos-examples** | Search official Aptos example contracts for reference implementations | |
| 52 | +| **analyze-gas-optimization** | Analyze and optimize Move code for gas efficiency | |
| 53 | +| **modernize-move** | Upgrade Move code to use the latest Aptos Move features | |
| 54 | + |
| 55 | +### TypeScript SDK Skills |
| 56 | + |
| 57 | +These skills help AI assistants use the Aptos TypeScript SDK correctly: |
| 58 | + |
| 59 | +| Skill | Description | |
| 60 | +| ------------------------- | ----------------------------------------------------------- | |
| 61 | +| **use-ts-sdk** | General guidance for using the Aptos TypeScript SDK | |
| 62 | +| **ts-sdk-client** | Configure and use the Aptos client for network interactions | |
| 63 | +| **ts-sdk-account** | Create and manage Aptos accounts and key pairs | |
| 64 | +| **ts-sdk-address** | Work with Aptos addresses and address formats | |
| 65 | +| **ts-sdk-transactions** | Build, simulate, sign, and submit transactions | |
| 66 | +| **ts-sdk-view-and-query** | Query on-chain data and call view functions | |
| 67 | +| **ts-sdk-types** | Use TypeScript types from the SDK correctly | |
| 68 | +| **ts-sdk-wallet-adapter** | Integrate wallet connections in frontend applications | |
| 69 | + |
| 70 | +### Project Skills |
| 71 | + |
| 72 | +| Skill | Description | |
| 73 | +| ------------------------ | ------------------------------------------------------------------------------ | |
| 74 | +| **create-aptos-project** | Scaffold a new Aptos project with Move contracts, TypeScript SDK, and frontend | |
| 75 | + |
| 76 | +## Recommended Workflow |
| 77 | + |
| 78 | +For a typical Aptos dApp, use the skills in this order: |
| 79 | + |
| 80 | +1. **Scaffold** — Use `create-aptos-project` to set up the project structure |
| 81 | +2. **Write** — Use `write-contracts` to create your Move smart contracts |
| 82 | +3. **Test** — Use `generate-tests` to create comprehensive test coverage |
| 83 | +4. **Audit** — Use `security-audit` to check for vulnerabilities |
| 84 | +5. **Deploy** — Use `deploy-contracts` to publish to devnet or testnet |
| 85 | +6. **Frontend** — Use `ts-sdk-wallet-adapter` and other SDK skills to build the UI |
| 86 | + |
| 87 | +## Community Skills |
| 88 | + |
| 89 | +The repository includes a `community-skills/` directory where anyone can contribute additional skills. To add your own: |
| 90 | + |
| 91 | +1. Create a new skill file following the existing format |
| 92 | +2. Submit a pull request to the [aptos-agent-skills repository](https://github.com/aptos-labs/aptos-agent-skills) |
| 93 | + |
| 94 | +See the [CONTRIBUTING.md](https://github.com/aptos-labs/aptos-agent-skills/blob/main/CONTRIBUTING.md) for details on the contribution process. |
0 commit comments