/engine-patches:upstream-prfrom AI-DLC patches
Use to send one of the fork's AI-DLC engine patches upstream to awslabs/aidlc-workflows — file the issue first, cut a branch from upstream/main, cherry-pick the patch, check it, and open the PR from the fork. Triggers — "send this fix upstream", "open an upstream PR for patch 09", "file the upstream issue", "upstream this". Every issue and PR waits for the person's yes.
Ships in AI-DLC patches. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
FORKS, here and in the reference files, is python3 "${CLAUDE_PLUGIN_ROOT}/scripts/forks.py" --data "${CLAUDE_PLUGIN_DATA}", exactly as written on this page (the reference files show only the
name).
${CLAUDE_PLUGIN_ROOT}/references/fork.md and do what it says. Read
upstream's CONTRIBUTING.md on upstream/main: its rules for issues, PRs and commit style win.A patch goes upstream on its own when it has one cause and its own test, and depends on no other
patch of the fork. The fork's patch notes often say "upstream candidate". Check check-upstream
step 3 again: no open upstream PR or issue covers it already. If one does, link to it instead.
Upstream asks for an issue before a PR. Draft it from the fork's notes (a fork may keep a draft):
<base>, and that it is still on upstream/main at <sha>), and the
cause at core/tools/<file>.ts:<line>.No employer or private project names, nothing from a real project's state (lessons, "A public fork"). Show the person the draft. On their yes:
gh issue create --repo <upstream> --title "<title>" --body-file <draft>
From upstream's main, not the fork's:
git -C <clone> fetch upstream
git -C <clone> switch -c fix/<name> upstream/main
git -C <clone> cherry-pick <the patch's commit>
Resolve conflicts against upstream main. Nothing from the fork's own folders (its notes, fixtures, release changes) goes upstream. Then check the branch:
bun install --frozen-lockfile && bun scripts/package.ts && bun run typecheck && bun run lint
env -u CLAUDECODE -u CLAUDE_CODE_SESSION_ID bash tests/run-tests.sh --unit --filter '^<name>\.test\.ts$'
The patch's test must fail on upstream/main without the fix and pass with it.
Ask the person before pushing and opening it. Then:
git -C <clone> push -u origin fix/<name>
gh pr create --repo <upstream> --base main --head <owner>:fix/<name> \
--title "<the patch's subject>" --body-file <body>
The body: what was wrong, why, what the fix changes, the test, and Fixes #<issue>. Follow
upstream's PR template if .github has one.
Record the issue and PR links in the fork's patch notes next to the patch. When upstream merges
it, the next move to a newer upstream release drops the patch (series, "Move to a newer upstream
release"). Reviewer comments come back to the person; answer upstream only on their yes.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub maksymskuibida/mskuibida-ai-tools --plugin engine-patchesOther plugins' skills for the same job
7 skills in this plugin
/check-upstreamUse before patching the AI-DLC engine in the person's fork, and before moving the fork to a newer upstream release — check whether upstream (awslabs/aidlc-workflows) already fixes the bug or is about to — upstream main since the fork's base tag, newer stable and preview releases, and open and merged upstream PRs and issues touching the same code — then decide: drop the patch, carry upstream's PR, or write our own. Triggers — "does upstream fix this already", "is there an upstream PR for it", "check upstream before we patch", "can we drop patch 07 now"./fixUse when the person wants an AI-DLC engine bug fixed in their own fork of awslabs/aidlc-workflows, end to end — "fix this aidlc bug in my fork", "patch the engine so pin stops deadlocking", "the engine refuses report --result skipped, fix it and release". Runs the plugin's steps in order: investigate, check upstream, add the patch to the series, release, roll into projects, and offer an upstream PR. For one step alone, use that step's skill./forksUse to see, add, change or remove the forks of the AI-DLC engine (awslabs/aidlc-workflows) this person patches — "which forks do I have", "add my fork alice/aidlc-workflows", "my clone of it is at ~/src/aidlc", "forget that fork", "use the other fork" — and whenever the person names a fork of the engine this plugin has not saved yet. The list is kept in the plugin's data folder, so it survives plugin updates.