一键导入
synthcad-setup-github-project
Set up GitHub repository, Actions CI review, project-local tests, artifacts, and branch protection for SynthCAD CAD projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up GitHub repository, Actions CI review, project-local tests, artifacts, and branch protection for SynthCAD CAD projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | synthcad-setup-github-project |
| description | Set up GitHub repository, Actions CI review, project-local tests, artifacts, and branch protection for SynthCAD CAD projects. |
Use this skill when asked to prepare a SynthCAD repository for GitHub-based collaboration, pull-request review, or CI validation.
.github/workflows/.$GITHUB_STEP_SUMMARY, a static PR diff
viewer, and an upserted PR comment linking to the viewer and workflow run.projects/<project-slug>/tests/
and that CI runs both root tests and project-local tests.projects/*/generated/, BREP caches, virtualenvs, and build outputs
ignored.Set the project variables from uv run synthcad-build --list and the current
repo's build registry:
gh auth status
gh repo view --json nameWithOwner,visibility,defaultBranchRef
git status --short --ignored
uv run synthcad-build --list
PROJECT=<project-slug>
ASSEMBLY_TARGET=<assembly-target>
URDF_TARGET=<urdf-target-or-empty>
uv run python -m compileall -q -f main.py synthcad tests projects
uv run pytest
uv run pytest "projects/$PROJECT/tests"
uv run synthcad-build --project "$PROJECT" --profile
uv run synthcad-inspect --target "$ASSEMBLY_TARGET" --interference all
uv run show-interference --target "$ASSEMBLY_TARGET"
uv run synthcad-report --project "$PROJECT"
test -z "$URDF_TARGET" || uv run synthcad-urdf --target "$URDF_TARGET"
Use the local readline shim for pytest if the local uv Python crashes before
collection:
uv run python - <<'PY'
import sys
import types
sys.modules["readline"] = types.ModuleType("readline")
import pytest
raise SystemExit(pytest.main(["-q"]))
PY
Read references/github-ci-review.md when creating or changing the workflow.
It includes the expected Actions shape, artifact policy,
PR visualization/comment policy, branch protection checklist, and reusable
workflow template at references/synthcad-ci-template.yml.