--- name: solidity-deploy description: "[AUTO-INVOKE] MUST be invoked BEFORE deploying contracts or writing deployment scripts (*.s.sol). Covers pre-flight checks, forge script commands, post-deployment validation, and verification. Trigger: any task involving forge script, contract deployment, or block explorer verification." --- # Deployment Workflow ## Language Rule - **Always respond in the same language the user is using.** If the user asks in Chinese, respond in Chinese. If in English, respond in English. ## Pre-deployment Checklist (all must pass) | Step | Command / Action | |------|-----------------| | Format code | `forge fmt` | | Run all tests | `forge test` — zero failures required | | Check gas report | `forge test --gas-report` — review critical functions | | Verify config | Manually check `config/*.json` parameters | | Dry-run | `forge script