用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/RocketChat/Rocket.Chat.Electron --skill electron-build命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | electron-build |
| description | Build and test the Electron app with proper worktree isolation |
Build, lint, and test the Rocket.Chat Electron app. Uses git worktrees to avoid disrupting the user's working directory.
platform (optional): Target platform - mac, win, linux, or all. Defaults to current platform.skip-worktree (optional): If "true", build in the current directory instead of creating a worktree.If skip-worktree is not "true":
mkdir -p ../Rocket.Chat.Electron-worktrees
git worktree add ../Rocket.Chat.Electron-worktrees/build-$(git branch --show-current) HEAD
yarnyarn lint
Fix any lint errors before proceeding.
yarn test
All tests must pass before building.
Build the app bundle:
yarn build
Then build platform packages if requested:
| Platform | Command |
|---|---|
| macOS | yarn build-mac |
| Windows | yarn build-win (includes --x64 --ia32 --arm64) |
| Linux | yarn build-linux |
If changes touch workspaces/desktop-release-action/:
yarn workspaces:build
rm -rf workspaces/desktop-release-action/dist/dist
If a worktree was created:
git worktree remove ../Rocket.Chat.Electron-worktrees/build-$(git branch --show-current)
After completion, report: