一键导入
1k-dev-commands
Development commands — yarn scripts for dev servers, building, linting, testing, and troubleshooting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Development commands — yarn scripts for dev servers, building, linting, testing, and troubleshooting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create or regenerate a patch-package patch in this monorepo. Use when you edit anything under node_modules/ and need a persisted .patch, or when `npx patch-package <pkg>` fails with "Couldn't find any versions for ... matches ^x@x". Keywords: patch-package, patch a package, regenerate patch, resolutions error.
App-side OneKey Trade/Swap/Market guide for Swap core, Swap Pro, Market speed-swap, K-line/chart, token selectors, cold-start frame-by-frame validation, quote/build/send flows, history/status, provider channels, PrivateSend-like channels, stock-trading channels, limit/order flows, fees, slippage, ETA, and cross-module funding handoffs.
Creates a Pull Request from current changes for OneKey app-monorepo. Use when user wants to create PR, submit changes, or merge feature branch. Handles branch creation, commit, push, and PR creation with conversation context extraction for code review AI.
AI-agent-driven UI verification for OneKey. Use to actually drive the running app and confirm a visual/interactive change works — Electron desktop via Chrome DevTools Protocol (CDP) on port 9222 with playwright-core, and React Native (iOS/Android) via callstack agent-device. Triggers on "verify the UI", "drive the app", "screenshot the change", "check it on desktop/simulator", "CDP 9222", "agent-device", "UI 验证", "跑一下看看", "截图确认".
App-side OneKey DeFi guide for Earn, Borrow, Staking, vaults, lending, protocol integrations, ABI-backed operations, native/provider-backed operations, pending transactions, history, route handoffs, risk display, and DeFi regression review.
Use only for explicit OneKey Perps/Hyperliquid (`views/Perp`, ServiceHyperLiquid, perpetuals, 永续/合约, Perps trading). Covers orderbook/L2/BBO, TWAP, scale/TIF/trigger/reduce-only, Perps TradingView/K-line, Perps Relay deposit, token selector, positions/account state/PnL/funding/margin/liquidation. Exclude generic Swap/Market/TradingView; Swap Relay quote/status/pending/requestId alone is not enough unless Perps deposit/Hyperliquid/`views/Perp`/`usePerpDeposit`/`fetchPerpDeposit*`/`perpsDepositOrderAtom` is explicit.
| name | 1k-dev-commands |
| description | Development commands — yarn scripts for dev servers, building, linting, testing, and troubleshooting. |
| allowed-tools | Bash, Read |
PLATFORM-SPECIFIC DEVELOPMENT:
yarn app:desktop:rspack - Start desktop Electron app development
yarn clean && yarn reinstall if startup failsyarn app:web:rspack - Start web development server (port 3000)
yarn app:ext:rspack - Start browser extension development
yarn app:ios - Start iOS mobile development
yarn app:android - Start Android mobile development
yarn app:web-embed - Start embeddable components development
PRODUCTION BUILDS (Use for final validation):
yarn app:desktop:build - Build desktop app for all platforms
apps/desktop/dist/yarn app:ext:build - Build browser extension
apps/ext/dist/yarn app:web:build - Build web application
apps/web/dist/yarn app:native-bundle - Bundle React Native app
Use these for fast pre-commit validation:
yarn lint:staged - Lint only staged files (fast, recommended for pre-commit)yarn tsc:staged - Type check (same as tsc:only)Pre-commit workflow:
yarn lint:staged && yarn tsc:staged && git commit -m "your message"
These run in CI pipeline or for comprehensive validation:
yarn lint - Comprehensive linting (TypeScript, ESLint, folder structure, i18n)
yarn test - Jest test execution
yarn clean - Clean all build artifacts and node_modulesyarn reinstall - Full clean install (use when dependency issues occur)jest.config.jsjest-setup.js@tests/ directories within packagesjest-expo preset