build-and-package
Use when building and packaging the project for deployment, including frontend build, backend JAR, and creating distribution zip
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when building and packaging the project for deployment, including frontend build, backend JAR, and creating distribution zip
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
CodingHub 工具广场操作指南。当用户要求搜索/安装/发布/更新 CodingHub 工具,发帖到论坛,管理知识库,或与 CodingHub 平台交互时使用。支持双通道:MCP 优先,HTTP 直连自动降级(Python 或 Node.js CJS CLI 封装,跨平台)。
使用 CodeWiki-CN MCP 工具为代码仓库生成 Wiki 文档并管理 LLM Wiki 知识库。支持三层增强模式:codebase-memory-mcp(深度增强:Leiden 聚类、Cypher 查询、跨服务追踪、复杂度分析)、CodeGraph(调用图增强)、或纯 CodeWiki(标准模式)。自动检测可用 MCP 服务器并选择最优模式。当用户要求生成 Wiki、代码文档、仓库文档、分析代码库结构时使用。
UI/UX design intelligence with searchable database
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。
| name | build-and-package |
| description | Use when building and packaging the project for deployment, including frontend build, backend JAR, and creating distribution zip |
| allowed-tools | null |
| disable | true |
自动化项目的打包流程:前端构建、后端 JAR 打包、文件复制、压缩成 ZIP 包。
前端构建 (npm run build)
↓
后端打包 (./gradlew bootJar)
↓
复制到目标目录
↓
压缩成 ZIP
cd frontend
npm run build
产物:frontend/dist/
cd backend
./gradlew bootJar
产物:backend/build/libs/ai-tool-square-*.jar
# 复制后端 JAR
cp backend/build/libs/ai-tool-square-*.jar /path/to/deploy/
# 复制前端构建产物
rm -rf /path/to/deploy/dist
cp -r frontend/dist /path/to/deploy/
cd /path/to/parent
zip -r deploy.zip deploy/
deploy/
├── ai-tool-square-*.jar # 后端
├── dist/ # 前端
│ ├── index.html
│ └── assets/
├── config/
│ └── application.yaml
├── nginx.conf
└── start.sh
| 问题 | 解决方案 |
|---|---|
| 前端 TypeScript 错误 | 使用 npx vite build 跳过类型检查临时构建 |
| JAR 文件名变更 | 检查 backend/build/libs/ 确认实际文件名 |
| ZIP 包含不需要的文件 | 使用 zip -r --exclude 排除 |
# 一键打包
cd /Users/kirito/repos/iaihub/frontend && npm run build
cd /Users/kirito/repos/iaihub/backend && ./gradlew bootJar
cp /Users/kirito/repos/iaihub/backend/build/libs/ai-tool-square-*.jar /path/to/deploy/
rm -rf /path/to/deploy/dist && cp -r /Users/kirito/repos/iaihub/frontend/dist /path/to/deploy/
cd /path/to/parent && zip -r deploy.zip deploy/