craft-build
Refresh the Craft macOS app builds — pull, cargo-build, package a .dmg for each app in the suite on the build Mac, and publish the artifacts to a fileserver. Use when asked to "refresh the craft builds", "rebuild the craft/mac apps", "update the open-source app builds", "deploy/publish the craft apps", or to add a new app repo to the set. Builds run on the configured build host over ssh, NOT inside a primate. Host, workspace root, repo manifest and deploy destination come from env or ~/.config/craft-build.conf (never hardcoded here).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- craft-build
- license
- Apache-2.0
- metadata
- { "author": "ooe", "version": "1.1.1" }
- description
- Refresh the Craft macOS app builds — pull, cargo-build, package a .dmg for each app in the suite on the build Mac, and publish the artifacts to a fileserver. Use when asked to "refresh the craft builds", "rebuild the craft/mac apps", "update the open-source app builds", "deploy/publish the craft apps", or to add a new app repo to the set. Builds run on the configured build host over ssh, NOT inside a primate. Host, workspace root, repo manifest and deploy destination come from env or ~/.config/craft-build.conf (never hardcoded here).
02 资源文件 3
- 参考文档CHANGELOG.md1.9 KB
- 其他craft-build.conf.example1.7 KB
- 脚本scripts/craft-all.sh7.8 KB
03 SKILL.md 正文
craft-build
Pull, build and package the suite of macOS app workspaces (the "Craft" apps and any peers) into
.dmg artifacts. The build runs on a specific build Mac, reached over ssh — not inside a primate
(macOS packaging, the cargo toolchain and the signing tools only exist there). An agent working from a
Linux primate drives it remotely.
This skill hardcodes no hostnames, usernames, paths or repo URLs — the public repo carries none.
The real values live in ~/.config/craft-build.conf (or env), private to each machine; see
craft-build.conf.example. The per-repo list lives in a private manifest on the build host.
When to use
- "refresh the craft builds", "rebuild the mac apps", "update the open-source app builds", "repackage the dmgs" — pull every app repo and repackage.
- "add <repo> to the builds" — add it to the manifest; the next refresh clones and builds it.
- You just want the current
.dmgof one app (--only <app>).
The shape of it (no private data)
- Each app is a Rust workspace repo cloned under one ROOT dir on the build Mac. The deliverable is
a signed
.dmg(plus a-cli-*.zip) in each app'sdist/release/, which is then published to a fileserver (an rsync-over-ssh destination) so others can download it. "Build and deploy the same way" means: package and publish it like the others. - Apps are discovered, not listed:
craft-all.shbuilds every sibling dir under ROOT that haspackaging/macos/package.sh, reading its version from[workspace.package]inCargo.toml. So an app that follows that convention needs no script change — only to be present under ROOT. - A private manifest (
name = git-remotelines) records every repo so a fresh Mac can re-clone the whole set, and so "add an app" is one line. The manifest may span orgs (the apps are not all the same author); that is fine — the build does not care who owns a repo.
Configuration
The scripts read, in order: environment variables, then ${CRAFT_BUILD_CONF:-~/.config/craft-build.conf}
if present. Nothing is baked into the repo. Copy craft-build.conf.example to
~/.config/craft-build.conf and fill it in (that file is private — never commit it):
BUILD_HOST=<the Mac where the app repos live and packaging runs>
BUILD_USER=<ssh user on that host> # optional; else your ssh default
CRAFT_ROOT=<absolute path to the workspace root holding the app repos, on the build host>
CRAFT_ARCH=aarch64 # aarch64 | x86_64 | universal
CRAFT_MANIFEST=<path to the manifest on the build host, default $CRAFT_ROOT/craft.manifest>
CRAFT_DEPLOY_DEST=<rsync-over-ssh publish target, user@host:/path; blank = build-only>
The manifest itself lives on the build host (co-located with the repos), e.g.
$CRAFT_ROOT/craft.manifest:
# name = git remote
designcraft = git@github.com:<org>/designcraft.git
solidcraft = git@github.com:<other-org>/solidcraft.git
How to run it
-
Load config. Read
~/.config/craft-build.conf(or env). You needBUILD_HOSTandCRAFT_ROOTat minimum. Build the ssh target as${BUILD_USER:+$BUILD_USER@}$BUILD_HOST. The config is read here (agent-side); the script runs on the host over ssh and does NOT see it — so forward the values the host needs on the command line (--root,--arch, and--deploy-dest "$CRAFT_DEPLOY_DEST"when publishing). Without--deploy-dest, the host has noCRAFT_DEPLOY_DESTand deploy stays off (the report/--listshowdeploy: <off>). -
Sync the script to the host. The versioned copy is this skill's
scripts/craft-all.sh. Push it so the host always runs the current one (this also replaces any older loose copy):scp scripts/craft-all.sh "$TARGET:$CRAFT_ROOT/craft-all.sh" -
Dry-run first to show the plan (what would clone / build / deploy) — no network, no build:
ssh "$TARGET" "bash '$CRAFT_ROOT/craft-all.sh' --root '$CRAFT_ROOT' ${CRAFT_DEPLOY_DEST:+--deploy-dest '$CRAFT_DEPLOY_DEST'} --list" -
Run it. Packaging all apps takes many minutes, so launch it detached and poll — do not hold the ssh connection open for the whole build:
ssh "$TARGET" "cd '$CRAFT_ROOT' && nohup bash craft-all.sh --root '$CRAFT_ROOT' --arch '${CRAFT_ARCH:-aarch64}' ${CRAFT_DEPLOY_DEST:+--deploy-dest '$CRAFT_DEPLOY_DEST'} > craft-all.console.log 2>&1 & echo pid=\$!"Then poll
pgrep -f craft-all.shon the host until it is gone (a background waiter is ideal), and report$CRAFT_ROOT/craft-all.report.txt— per-app version, commit drift, build rc, the.dmg, and the deploy status. WhenCRAFT_DEPLOY_DESTis set, each rc=0 app is published there automatically (.dmg+-cli-*.zip, rsync-over-ssh from the build host, old versions kept); pass--no-deployto build without publishing, or--deploy-destto override. One app (--only <app>), skip pulling (--no-pull) or skip packaging (--no-package) as needed.
Hard rules (where agents get stuck — don't)
- Builds are host-side. Never try to
cargo/package inside a primate — the toolchain and signing are only on the build Mac. Reach it over ssh and run there. - Non-login ssh drops PATH on macOS, so brew tools and shims come back "command not found".
craft-all.shsets a robust PATH itself (/opt/homebrew/bin:/usr/local/bin:~/.local/bin:~/.cargo/bin- system); keep that if you edit it.
--ff-onlypulls only. The script never merges or resets — an app with real local commits that can't fast-forward is reportedPULL-FAILEDand still built at its current HEAD, never force-updated. Untracked junk (.DS_Store) does not block a fast-forward.- Adding an app = a manifest line, not a code change. As long as the repo has
packaging/macos/package.shand a[workspace.package]version, discovery handles the rest. - Publish is rsync-over-ssh, not a mount. The deploy writes to
CRAFT_DEPLOY_DESTdirectly over ssh from the build host (which must have ssh access to it), as the ssh user. Don't reintroduce an NFS/SMB mount for this — a mount silently breaks on an auth/path change and the publish stops happening unnoticed (which is exactly how it lapsed before). The build host uses macOSopenrsync, so the deploy uses only portable flags (-rtz, no--chmod); set the destination dir setgid if you want a consistent group.
Tests
007/skills/tests/test_craft_build.py covers the pure logic (manifest parse → clone plan, discovery,
the --list dry run) against a fixture tree, with no network and no real build.
04 同仓库更多 Skills
spark-build
Build the cuda-* primate images (cuda-llama-cpp, cuda-comfy, cuda-vllm — the shared base for g.deceiver's six vLLM services) on a Blackwell GB10, freeing that box's unified memory first by stopping whatever it runs, then restarting it. NOTE the standalone coding cluster (qwen3-coder-next) was RETIRED 2026-09-05, so a "drain" is no longer a coding outage — it's a g.deceiver-service outage (hutch = memory stack; starsky = the live 27B brain, never build there mid-stream). Checks memory BEFORE stopping anything; --allow-outage / --skip-drain control the trade.
spark-bench
Run LLM evaluation harnesses (AIME 25, GPQA, LiveCodeBench v6, tau2-bench, SWE-Bench Verified via SWE-agent) against the spark-cluster from a dedicated x86 bench host (intel-nuc.tworivers). The harness runs in the spark-bench primate; only the OpenAI-compatible endpoint URL needs to change between baseline (cluster LB) and test (ad-hoc model server) runs.
secret-ops
Decrypt/encrypt this project's SOPS+age secrets and manage the private hemlighet repo. Use whenever a task reads or changes a secret — sops, age, vault, hemlighet, a *.sops file, personal/* dotfiles. Crypto runs on the configured secret host over ssh, NOT inside a primate. Host/identity come from env or ~/.config/secret-ops.conf (never hardcoded here).
sdlc
The default software development lifecycle every agent follows — intake, plan, isolate, implement, verify, review, land, deploy, observe, release. Use at the start of any coding task, and whenever deciding whether work is ready to deploy or ready to merge.
review-adversarial
Adversarial code review with structured findings and a review loop. Use when asked to critically review code, diffs, or design docs with an adversarial mindset.
math-fibonacci
Create a fibonacci sequence, as a list, as ascii art to display the divine proportions, etc...