一键导入
build-service
Build and publish a new scientific computing service to GHCR. Use when the user wants to add a new package/service like ngspice, fenics, etc.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build and publish a new scientific computing service to GHCR. Use when the user wants to add a new package/service like ngspice, fenics, etc.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build and publish Docker services to container registry (GHCR)
Run scientific and engineering computations using containerized services
Perform thorough code review with security, quality, and test coverage analysis
| name | build-service |
| description | Build and publish a new scientific computing service to GHCR. Use when the user wants to add a new package/service like ngspice, fenics, etc. |
When the user asks to build a new service package, follow these steps in order:
registry.yaml to see if the service is already definedservices/{package}/Dockerfile already existsservices/meep/Dockerfile) for patternsUse web search to find official installation instructions. Scientific software often has specific requirements that aren't obvious.
Look up:
This step prevents trial-and-error builds and ensures we use the recommended approach.
Create services/{package}/Dockerfile (or {package}/Dockerfile for new packages) following this pattern:
Create services/{package}/.dockerignore:
__pycache__
*.pyc
*.pyo
.git
.gitignore
*.md
.DS_Store
If the package is not in registry.yaml, add an entry following the existing format:
package-name:
description: "Brief description"
image: ghcr.io/sciagent-ai/package-name
dockerfile: services/package-name/Dockerfile
license: MIT # or GPL-3.0, BSD-3-Clause, Apache-2.0, LGPL-2.1, etc.
runtime: python3 # or bash
workdir: /workspace
capabilities:
- "Capability 1"
- "Capability 2"
example: |
# Example usage code
Note: The license field should match the SPDX identifier used in the Dockerfile label.
Architecture Note: Images are built for the host machine's architecture only. If building on Apple Silicon (ARM64), the image will only run natively on ARM64 systems. Intel/AMD users would need emulation (slow) or a separate build. For multi-arch support in the future, use:
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/sciagent-ai/{package}:latest --push .
Execute these steps in order, using the TodoWrite tool to track progress:
Build locally:
cd services/{package} && docker build -t ghcr.io/sciagent-ai/{package}:latest .
Push to GHCR:
docker push ghcr.io/sciagent-ai/{package}:latest
Remove local image(s):
docker rmi ghcr.io/sciagent-ai/{package}:latest
Pull from GHCR to verify:
docker pull ghcr.io/sciagent-ai/{package}:latest
Test the image:
docker run --rm ghcr.io/sciagent-ai/{package}:latest <verification-command>
Cleanup (optional):
docker rmi ghcr.io/sciagent-ai/{package}:latest
Summarize:
ghcr.io/sciagent-ai/{package}:latest