ワンクリックで
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 職業分類に基づく
Analytics event tracking for OneKey. Use when adding tracking events, logging to server, user behavior tracking, or business metrics. Covers the @LogToServer decorator pattern, logger scope/scene architecture, and common pitfalls. Triggers on "埋点", "统计", "打点", "数据追踪", "日志", "analytics", "tracking event", "Mixpanel", "LogToServer", "trackEvent", "defaultLogger".
Create test versions to verify app auto-update functionality and version migration.
Release branch management — checkout from release, prepare builds, pre-release diff checks, publish tracking, and sync back to x. Use this skill when managing release branches, creating branches for bundle releases, running pre-release diff checks, finalizing releases, or syncing release changes to x. Triggers on "bundle release", "release diff", "release publish", "release sync", "release checkout", "发布管理", "release 分支", "release management", "bundle-release", "bundle branch".
Code quality standards — lint (eslint/oxlint), type check (tsc), pre-commit hooks, and comment conventions. All comments must be in English.
Comprehensive PR code review for OneKey monorepo. Use when reviewing PRs, code changes, or diffs — covers security (secrets/PII leakage, supply-chain, AuthN/AuthZ), code quality (hooks, race conditions, null safety, concurrent requests), and OneKey-specific patterns (Fabric crashes, MIUI, BigNumber). Triggers on "review PR", "review this PR", "code review", "check this diff", "审查 PR", "代码审查", "review
Coding patterns and best practices — React components, promise handling, and TypeScript conventions.
| 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 - Start desktop Electron app development
yarn clean && yarn reinstall if startup failsyarn app:web - Start web development server (port 3000)
yarn app:ext - 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