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 المهني
Create 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.
| 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:webmaster