app
SOLIDWORKS Bridge
Public Made by Adomby adom
Launch, model and quit SOLIDWORKS from any Adom container. Nothing is ever lost.
main
#!/usr/bin/env bash
set -euo pipefail
H="$(cd "$(dirname "$0")"&&pwd)"
for D in "$HOME/.claude/skills" "$HOME/.codex/skills"; do
[ -d "$(dirname "$D")" ] || continue
mkdir -p "$D/solidworks-bridge/references"
cp -f "$H/SKILL.md" "$D/solidworks-bridge/SKILL.md"
# SKILL.md holds the rules that never bend; the detail it points at lives here.
cp -f "$H"/references/*.md "$D/solidworks-bridge/references/"
done
# A dependent skill: the measured 3DEXPERIENCE sign-in flow (no credentials).
install_skill() { # <name> <source dir>
for D in "$HOME/.claude/skills" "$HOME/.codex/skills"; do
[ -d "$(dirname "$D")" ] || continue
mkdir -p "$D/$1"
cp -f "$2"/SKILL.md "$D/$1/SKILL.md"
done
}
install_skill solidworks-sign-in "$H/skills/solidworks-sign-in"
# A dependent skill: keeping SOLIDWORKS from running the PC out of memory.
install_skill solidworks-memory "$H/skills/solidworks-memory"
echo "[solidworks-bridge] skills installed."