submodule-dev-flow
Opinionated workflow for submodule development + PRs + control-center pointer bumps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Opinionated workflow for submodule development + PRs + control-center pointer bumps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | submodule-dev-flow |
| description | Opinionated workflow for submodule development + PRs + control-center pointer bumps. |
Put this line near the top of any prompt where you plan to ship product changes via submodules:
@submodule-dev-flow
Enable parallel feature work across multiple submodules without Git submodule checkout collisions, while keeping control-center master clean.
Opinionated defaults:
worktrees/ (inside this repo).vendor/<name> is treated as read-only.master.mastergit fetch origin --prune
git pull --ff-only origin master
Example: OpenWork.
mkdir -p worktrees
# Fetch latest refs in the submodule repo.
git -C vendor/openwork fetch origin --prune
# Create a dedicated dev checkout under worktrees/.
git -C vendor/openwork worktree add \
-b feat/<name> \
../../worktrees/sub-openwork-<name> \
origin/dev
Always install first, then run minimal checks:
pnpm -C worktrees/sub-openwork-<name> install
pnpm -C worktrees/sub-openwork-<name> typecheck
pnpm -C worktrees/sub-openwork-<name> build:web
Optional heavier tests:
pnpm -C worktrees/sub-openwork-<name> test:e2e
git -C worktrees/sub-openwork-<name> status
git -C worktrees/sub-openwork-<name> add -A
git -C worktrees/sub-openwork-<name> commit -m "..."
git -C worktrees/sub-openwork-<name> push -u origin feat/<name>
gh pr create --repo different-ai/openwork --base main --head feat/<name>
Merge the PR (squash is fine).
master# Update the pinned checkout to the merged tip.
git -C vendor/openwork switch main
git -C vendor/openwork pull --ff-only
# Record the new gitlink on control-center master.
git add vendor/openwork
git commit -m "chore: bump openwork submodule"
git push origin master
Create multiple submodule worktrees under worktrees/:
worktrees/sub-openwork-<a>worktrees/sub-openwork-<b>worktrees/sub-openwork-landing-<c>Submodule PRs can proceed independently.
Pointer bumps land on control-center master one-at-a-time as PRs merge.
pnpm typecheck + pnpm build:webmasterCreate and manage isolated git worktrees safely.
Store Apple notarization IDs in Keychain and notarize/staple OpenWork DMGs locally.
Sync control-center master and update submodule pointers safely.
Require every OpenCode plugin to expose get_skills and get_version tools.
Use client.app.log() instead of console.log in OpenCode plugins
Guide for creating effective skills. Use when users want to create or update a skill that extends Claude with specialized knowledge, workflows, or tool integrations.