Repository navigation
Generate the per-host box skill copies from shared/skills/box, with a CI sync check - #84
Draft
chenchenSimular wants to merge 1 commit into
Draft
chenchenSimular wants to merge 1 commit into
chenchenSimular wants to merge 1 commit into
Conversation
Each host folder ships its own copy of the box skill, and the copies had drifted: cursor/, grok/, openai/, hermes/, openclaw/, pi/ and gemini/ still pinned box CLI 1.2.1 after claude-code/ moved to 1.2.2 (#74). shared/skills/box/SKILL.md now holds the common text, variants/ the parts that differ on purpose per host, and hosts.json which host gets which. scripts/gen-skills.mjs (Node, no dependencies) writes every host's file and reads the CLI pin from claude-code/skills/box-offload/SKILL.md. claude/ is reproduced byte for byte (no generated header), since it is the version under Claude directory review. CI regenerates and fails when the committed copies differ, and warns when a PR changes claude/. Hosts whose skill text changed get a version bump. Closes #83
chenchenSimular
marked this pull request as draft
November 27, 2026 07:38
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #83
What
Every host folder still ships its own copy of the box skill, because each folder is installed on its own and symlinks aren't allowed. From now on those copies are generated from one source:
shared/skills/box/SKILL.mdholds the common text. The parts that differ on purpose are marked<!-- name -->default<!-- /name -->.shared/skills/box/variants/<name>.<variant>.mdholds the per-host replacement text.shared/skills/box/hosts.jsonmaps each host to its output file and its variants.scripts/gen-skills.mjs(Node, no dependencies) writes every host's file. It fills{{CLI_VERSION}}fromclaude-code/skills/box-offload/SKILL.md, the pin that e2e and box-cli's bump workflow already read. Each generated file gets an HTML comment after its frontmatter saying it is generated. claude/ is the one exception (see below).skillsjob that runs the generator and fails if any committed copy differs, untracked files included. It also prints a warning, not a failure, when a PR changesclaude/.shared/**,scripts/**,cursor/**,openai/**andgemini/**are now in the PR path filters, so a hand edit to any copy is caught. Side effect: a PR that only touches cursor/, openai/ or gemini/ now runs the full CI.shared/, runnode scripts/gen-skills.mjs, commit the outputs, and bump only the hosts whose file changed.claude/ is not touched
claude/is the version under Claude directory review, so this PR leaves it byte-identical to 806ee69 (git diff origin/main -- claude/is empty). It has its own variants: the stricter "never a secret (... cloud or ssh config)" rule, and "sign in in the box's live view" with no Chrome import tip. It also has"header": false, so no generated comment is added, and its version is not bumped.What users of each host will see
The only accidental drift was the CLI pin. These hosts move from
npx -y @simular-ai/box@1.2.1to@1.2.2in the four file-transfer commands (download, upload, rsync, login), and each gets a version bump:release_notesApart from the pin and the generated comment, every generated file is byte-identical to main. I checked this by diffing each file against HEAD with the pin normalized and the comment removed.
What stays per host (intentional)
MCP_BOX_API_KEY), openclaw (Settings > Plugins > Connect), pi (mcp__box__<tool>names,/mcp login box). Everyone else uses the default OAuth sentence.box_viewand sendingview_url): hermes and openclaw only, as OpenClaw, Hermes: hand the user the live screen with box_view #71 decided ("Limit box_view guidance to OpenClaw and Hermes").Not done here (needs a human)
shaPR, grok marketplace PR, pipi-v0.1.3tag, openclawclawhub package publish.bump-pins.ymlstill edits onlyclaude/and readsclaude/skills/box-offload/SKILL.md. That file no longer exists after Split the Claude directory plugin (claude/) from the marketplace plugin (claude-code/) #82, so the bot already fails as it stands. When it is fixed, it should editclaude-code/(andclaude/only if the directory version should move), then runnode scripts/gen-skills.mjsand add the regenerated host folders. Otherwise this PR's new CI check will fail its PRs.🤖 Generated with Claude Code