[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78GRHTENEX0V3805F0DQS8C":3,"skill-same:01M78GRHTENEX0V3805F0DQS8C":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M78GRHTENEX0V3805F0DQS8C","lcx-contribute-bug-fix",null,"Contribute a verified bug fix for LazyZ, lazycodex-ai, omo-codex, bundled ZCode\u002FCodex skills, or upstream Codex CLI bugs. Opens a fork PR only for upstream openai\u002Fcodex; LazyZ-owned defects become a verified-fix issue on the LazyZ repo (never a PR — that repo is a generated distribution mirror). Use ONLY when the user EXPLICITLY asks to fix, contribute, or open a PR for a LazyZ\u002FCodex defect — this is a contributor\u002Fmaintenance tool and does not auto-trigger on ordinary coding work.","younghai\u002Flazyz","younghai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10753869?v=4","01M78GJ5KADQ959GDR0ZM7DDNF","young kwon","01M78GJ5M3F6D2YKVXCNX3WMR9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Frelease\u002Flazyz-0.11.0-20261007\u002Fskills\u002Flcx-contribute-bug-fix\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: lcx-contribute-bug-fix\ndescription: \"Contribute a verified bug fix for LazyZ, lazycodex-ai, omo-codex, bundled ZCode\u002FCodex skills, or upstream Codex CLI bugs. Opens a fork PR only for upstream openai\u002Fcodex; LazyZ-owned defects become a verified-fix issue on the LazyZ repo (never a PR — that repo is a generated distribution mirror). Use ONLY when the user EXPLICITLY asks to fix, contribute, or open a PR for a LazyZ\u002FCodex defect — this is a contributor\u002Fmaintenance tool and does not auto-trigger on ordinary coding work.\"\nmetadata:\n  short-description: Contribute verified LazyCodex or Codex bug fixes\n---\n\n# lcx-contribute-bug-fix\n\nUse this skill to debug a concrete LazyCodex or Codex defect, implement the smallest correct fix in a fresh temporary workspace, and deliver it. Work in English, keep the body short, and support every claim with runtime or source evidence.\n\nRoute ownership the same way as `$lcx-report-bug`, but the deliverable differs by target:\n\n- `code-yeongyu\u002Flazycodex` for LazyCodex, lazycodex-ai, omo-codex, bundled skills, hooks, MCP wiring, installer behavior, marketplace sync, docs, or packaging. Deliverable: a verified-fix issue with the patch embedded. NEVER open a PR or push a branch against this repo — its contents are regenerated from the source tree on every release, so PRs there cannot be merged and will be closed.\n- `openai\u002Fcodex` for upstream Codex CLI bugs that reproduce without LazyCodex or come from Codex core behavior. Deliverable: a PR from a fork.\n\n## Required Outcome\n\nFor `openai\u002Fcodex`, create a fork PR that includes:\n\n- a focused branch from a fresh `${TMPDIR:-\u002Ftmp}` clone\u002Fworktree\n- reproduction logs from before the fix\n- the smallest implementation that fixes the defect\n- verification logs from after the fix\n- apply `lazycodex-generated` when label management is available\n- the required LazyCodex footer tag `Tag: lazycodex-generated`\n- cleanup of temporary worktrees and clones\n\nFor `code-yeongyu\u002Flazycodex`, create an issue (never a PR) that includes:\n\n- reproduction logs from before the fix\n- the root cause with source evidence\n- the verified patch as a unified diff, produced and tested in a fresh `${TMPDIR:-\u002Ftmp}` clone\u002Fworktree\n- verification logs from after the fix\n- the `lazycodex-generated` label and the footer tag `Tag: lazycodex-generated`\n- cleanup of temporary worktrees and clones\n\n## Required Workflow\n\n1. Read the user's bug report and identify the affected surface.\n2. Invoke `$omo:debugging` for the investigation. If only unqualified skill names are exposed, invoke `$debugging` and state that it is the OMO debugging skill.\n3. Materialize the latest sources under `LAZYCODEX_SOURCE_ROOT=\"${LAZYCODEX_SOURCE_ROOT:-${TMPDIR:-\u002Ftmp}\u002Flazycodex-sources}\"`, then decide the target repository. Sync both checkouts on every run and compare them before choosing. Validate cached checkouts before reuse so an incomplete `.git` directory cannot route the fix to the wrong repo:\n\n```bash\nLAZYCODEX_SOURCE_ROOT=\"${LAZYCODEX_SOURCE_ROOT:-${TMPDIR:-\u002Ftmp}\u002Flazycodex-sources}\"\nmkdir -p \"$LAZYCODEX_SOURCE_ROOT\"\n\nvalid_source_checkout() {\n  DEST=\"$1\"\n  git -C \"$DEST\" rev-parse --is-inside-work-tree >\u002Fdev\u002Fnull 2>&1 &&\n    git -C \"$DEST\" config --get remote.origin.url >\u002Fdev\u002Fnull 2>&1\n}\n\nrecover_corrupt_source_checkout() {\n  DEST=\"$1\"\n  if [ -e \"$DEST\" ] && ! valid_source_checkout \"$DEST\"; then\n    QUARANTINED=\"$DEST.corrupt.$(date +%Y%m%d%H%M%S)\"\n    mv \"$DEST\" \"$QUARANTINED\"\n    echo \"Moved corrupt source cache $DEST to $QUARANTINED\" >&2\n  fi\n}\n\nsync_latest_source() {\n  REPO=\"$1\"; DEST=\"$2\"\n  recover_corrupt_source_checkout \"$DEST\"\n  if [ ! -d \"$DEST\" ]; then\n    gh repo clone \"$REPO\" \"$DEST\" -- --depth=1 \\\n      || git clone --depth=1 \"https:\u002F\u002Fgithub.com\u002F$REPO\" \"$DEST\"\n  fi\n  if ! valid_source_checkout \"$DEST\"; then\n    echo \"Source cache $DEST is not a usable git checkout after clone\" >&2\n    return 1\n  fi\n  git -C \"$DEST\" remote set-url origin \"https:\u002F\u002Fgithub.com\u002F$REPO.git\" >\u002Fdev\u002Fnull 2>&1 || true\n  DEFAULT_BRANCH=\"$(git -C \"$DEST\" remote show origin | sed -n '\u002FHEAD branch\u002Fs\u002F.*: \u002F\u002Fp')\"\n  if [ -z \"$DEFAULT_BRANCH\" ]; then\n    DEFAULT_BRANCH=\"$(git -C \"$DEST\" symbolic-ref --short refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's#^origin\u002F##')\"\n  fi\n  if [ -z \"$DEFAULT_BRANCH\" ]; then\n    echo \"Could not determine default branch for $REPO in $DEST\" >&2\n    return 1\n  fi\n  git -C \"$DEST\" fetch --depth=1 origin \"$DEFAULT_BRANCH\"\n  git -C \"$DEST\" checkout -B \"$DEFAULT_BRANCH\" FETCH_HEAD\n}\nsync_latest_source code-yeongyu\u002Flazycodex \"$LAZYCODEX_SOURCE_ROOT\u002Flazycodex-source\"\nsync_latest_source openai\u002Fcodex \"$LAZYCODEX_SOURCE_ROOT\u002Fopenai-codex-source\"\n```\n4. Create a fresh temporary clone and branch under `${TMPDIR:-\u002Ftmp}`. Do not modify the user's current repository for the target fix unless the current repository is itself the requested target and the user explicitly asked for local edits.\n\n```bash\nTARGET_REPO=\"code-yeongyu\u002Flazycodex\" # or openai\u002Fcodex\nWORK_ROOT=\"$(mktemp -d \"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-XXXXXX\")\"\ngh repo clone \"$TARGET_REPO\" \"$WORK_ROOT\u002Frepo\" -- --depth=1\ncd \"$WORK_ROOT\u002Frepo\"\nBASE_BRANCH=\"$(git remote show origin | sed -n '\u002FHEAD branch\u002Fs\u002F.*: \u002F\u002Fp')\"\ngit fetch origin \"$BASE_BRANCH\" --depth=1\nBRANCH_NAME=\"lazycodex\u002Fbug-fix-\u003Cshort-slug>\"\ngit worktree add \"$WORK_ROOT\u002Fworktree\" -b \"$BRANCH_NAME\" \"origin\u002F$BASE_BRANCH\"\ncd \"$WORK_ROOT\u002Fworktree\"\n```\n\nIf `gh` cannot clone, use `git clone --depth=1 \"https:\u002F\u002Fgithub.com\u002F$TARGET_REPO\" \"$WORK_ROOT\u002Frepo\"` and continue with the same worktree flow.\n\n5. Reproduce the bug in the worktree through the real surface. Save exact command output to `${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>-repro.log`.\n6. Write or update a failing regression test before production changes. Confirm it fails for the bug, not for a missing fixture or typo.\n7. Implement the smallest correct fix. Avoid refactors unless the fix cannot be made safely without one.\n8. Run the regression test, adjacent tests, and the smallest real-surface QA command that proves the user-visible behavior changed.\n9. Commit the verified fix in the worktree. Inspect the status first so the delivered diff cannot be empty or stale:\n\n```bash\ngit status --short\ngit add -A\ngit commit -m \"fix: \u003Cshort bug-fix summary>\"\ngit log --oneline \"origin\u002F$BASE_BRANCH..HEAD\"\n```\n\n10. Build the delivery body for the target:\n   - `openai\u002Fcodex`: generate the PR body with `scripts\u002Fcreate-pr-body.mjs`.\n   - `code-yeongyu\u002Flazycodex`: export the verified patch and write the issue body from the Verified-Fix Issue Template below:\n\n```bash\nPATCH_FILE=\"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>.patch\"\ngit diff \"origin\u002F$BASE_BRANCH\"..HEAD > \"$PATCH_FILE\"\n```\n\n11. Ensure the generated label exists when the target repo allows label management. Keep the footer tag even when label creation is unavailable:\n\n```bash\nLABEL_ARGS=()\nif gh label create lazycodex-generated --repo \"$TARGET_REPO\" --color \"7C3AED\" --description \"Created by LazyCodex\" --force; then\n  LABEL_ARGS=(--label lazycodex-generated)\nelse\n  echo \"Label management unavailable for $TARGET_REPO; keeping the footer tag only.\"\nfi\n```\n\n12. Deliver the fix.\n   - `code-yeongyu\u002Flazycodex`: create the verified-fix issue. Never push a branch to this repo and never run `gh pr create` against it:\n\n```bash\nISSUE_BODY=\"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>-issue.md\"\ngh issue create --repo code-yeongyu\u002Flazycodex --title \"\u003Cshort fix title>\" \"${LABEL_ARGS[@]}\" --body-file \"$ISSUE_BODY\"\n```\n\n   - `openai\u002Fcodex`: fork, push the branch to the fork, and create the PR:\n\n```bash\ngh repo fork openai\u002Fcodex --remote --remote-name fork\nGH_USER=\"$(gh api user --jq .login)\"\ngit push -u fork \"$BRANCH_NAME\"\ngh pr create --repo openai\u002Fcodex --base \"$BASE_BRANCH\" --head \"$GH_USER:$BRANCH_NAME\" --title \"\u003Cshort fix title>\" \"${LABEL_ARGS[@]}\" --body-file \"$PR_BODY\"\n```\n\n13. Clean up:\n\n```bash\ncd \u002F\ngit -C \"$WORK_ROOT\u002Frepo\" worktree remove \"$WORK_ROOT\u002Fworktree\"\nfind \"$WORK_ROOT\" -mindepth 1 -maxdepth 1 -exec rm -r -- {} +\nrmdir \"$WORK_ROOT\"\n```\n\nReturn the PR or issue URL, the reproduction command, the verification command, and the cleanup receipt.\n\n## Verified-Fix Issue Template (code-yeongyu\u002Flazycodex)\n\nWrite the issue body in English. Embed the patch verbatim so a maintainer can apply it to the source tree:\n\n````markdown\n## Problem Situation\n[What failed for the user.]\n\n## Reproduction Logs\n[Exact failing command and relevant log excerpt.]\n\n## Root Cause\n[Confirmed cause with runtime and source evidence.]\n\n## Verified Fix\n[What changed and why this is the smallest correct fix.]\n\n```diff\n[Contents of $PATCH_FILE.]\n```\n\n## Verification\n- [RED test output or repro before the fix]\n- [GREEN test output after the fix]\n- [Manual QA command and result]\n\n---\nThis fix was debugged, implemented, and verified with [LazyCodex](https:\u002F\u002Fgithub.com\u002Fcode-yeongyu\u002Flazycodex).\nTag: lazycodex-generated\n````\n\n## PR Body Generator (openai\u002Fcodex)\n\nUse the bundled script to generate the PR body. Create a JSON file with this shape:\n\n```json\n{\n  \"title\": \"Fix short user-visible failure\",\n  \"targetRepository\": \"openai\u002Fcodex\",\n  \"problem\": \"What is broken for the user.\",\n  \"reproductionLogs\": \"Exact failing command, log excerpt, or trace.\",\n  \"approach\": \"What changed and why this is the smallest correct fix.\",\n  \"confidence\": \"Why the diagnosis and fix are strongly supported.\",\n  \"risks\": \"Risk level and what could regress.\",\n  \"userVisibleBehaviorChanges\": \"What changes for the user after the PR.\",\n  \"verification\": [\"failing test before fix\", \"passing test after fix\", \"manual QA command\"]\n}\n```\n\nRun:\n\n```bash\nPR_INPUT=\"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>-pr.json\"\nPR_BODY=\"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>-pr.md\"\nnode \"\u003Cskill-root>\u002Fscripts\u002Fcreate-pr-body.mjs\" \"$PR_INPUT\" \"$PR_BODY\"\n```\n\n## PR Body Template (openai\u002Fcodex)\n\nThe generated body must follow this structure:\n\n```markdown\n## Problem Situation\n[What failed for the user.]\n\n## Reproduction Logs\n[Exact failing command and relevant log excerpt.]\n\n## Approach\n[What changed and why.]\n\n## Why I Am Confident\n[Evidence that proves the root cause and fix.]\n\n## Risks\n[Risk level and possible regressions.]\n\n## User-Visible Behavior Changes\n[What users experience after this PR.]\n\n## Verification\n- [RED test output or repro before the fix]\n- [GREEN test output after the fix]\n- [Manual QA command and result]\n\n---\nThis PR was debugged, implemented, and created with [LazyCodex](https:\u002F\u002Fgithub.com\u002Fcode-yeongyu\u002Flazycodex).\nTag: lazycodex-generated\n```\n\n## Stop Conditions\n\nStop and ask one narrow question only when:\n\n- the bug cannot be reproduced from available information\n- target repository ownership remains ambiguous after comparing LazyCodex and upstream Codex evidence\n- authentication is missing for creating the issue or pushing and creating the PR\n- the fix requires a product decision rather than a technical correction\n\nDo not open:\n\n- a PR or pushed branch targeting `code-yeongyu\u002Flazycodex` — deliver the verified-fix issue instead, always\n- a PR or verified-fix issue without a failing-before and passing-after test\n- a PR or verified-fix issue without a real-surface QA command\n- a PR or issue without the `Tag: lazycodex-generated` footer\n- a verified-fix issue without the patch embedded in a `diff` block\n- a vague fix that does not identify the root cause\n- a broad refactor disguised as a bug fix\n","# lcx-contribute-bug-fix\n\nUse this skill to debug a concrete LazyCodex or Codex defect, implement the smallest correct fix in a fresh temporary workspace, and deliver it. Work in English, keep the body short, and support every claim with runtime or source evidence.\n\nRoute ownership the same way as `$lcx-report-bug`, but the deliverable differs by target:\n\n- `code-yeongyu\u002Flazycodex` for LazyCodex, lazycodex-ai, omo-codex, bundled skills, hooks, MCP wiring, installer behavior, marketplace sync, docs, or packaging. Deliverable: a verified-fix issue with the patch embedded. NEVER open a PR or push a branch against this repo — its contents are regenerated from the source tree on every release, so PRs there cannot be merged and will be closed.\n- `openai\u002Fcodex` for upstream Codex CLI bugs that reproduce without LazyCodex or come from Codex core behavior. Deliverable: a PR from a fork.\n\n## Required Outcome\n\nFor `openai\u002Fcodex`, create a fork PR that includes:\n\n- a focused branch from a fresh `${TMPDIR:-\u002Ftmp}` clone\u002Fworktree\n- reproduction logs from before the fix\n- the smallest implementation that fixes the defect\n- verification logs from after the fix\n- apply `lazycodex-generated` when label management is available\n- the required LazyCodex footer tag `Tag: lazycodex-generated`\n- cleanup of temporary worktrees and clones\n\nFor `code-yeongyu\u002Flazycodex`, create an issue (never a PR) that includes:\n\n- reproduction logs from before the fix\n- the root cause with source evidence\n- the verified patch as a unified diff, produced and tested in a fresh `${TMPDIR:-\u002Ftmp}` clone\u002Fworktree\n- verification logs from after the fix\n- the `lazycodex-generated` label and the footer tag `Tag: lazycodex-generated`\n- cleanup of temporary worktrees and clones\n\n## Required Workflow\n\n1. Read the user's bug report and identify the affected surface.\n2. Invoke `$omo:debugging` for the investigation. If only unqualified skill names are exposed, invoke `$debugging` and state that it is the OMO debugging skill.\n3. Materialize the latest sources under `LAZYCODEX_SOURCE_ROOT=\"${LAZYCODEX_SOURCE_ROOT:-${TMPDIR:-\u002Ftmp}\u002Flazycodex-sources}\"`, then decide the target repository. Sync both checkouts on every run and compare them before choosing. Validate cached checkouts before reuse so an incomplete `.git` directory cannot route the fix to the wrong repo:\n\n```bash\nLAZYCODEX_SOURCE_ROOT=\"${LAZYCODEX_SOURCE_ROOT:-${TMPDIR:-\u002Ftmp}\u002Flazycodex-sources}\"\nmkdir -p \"$LAZYCODEX_SOURCE_ROOT\"\n\nvalid_source_checkout() {\n  DEST=\"$1\"\n  git -C \"$DEST\" rev-parse --is-inside-work-tree >\u002Fdev\u002Fnull 2>&1 &&\n    git -C \"$DEST\" config --get remote.origin.url >\u002Fdev\u002Fnull 2>&1\n}\n\nrecover_corrupt_source_checkout() {\n  DEST=\"$1\"\n  if [ -e \"$DEST\" ] && ! valid_source_checkout \"$DEST\"; then\n    QUARANTINED=\"$DEST.corrupt.$(date +%Y%m%d%H%M%S)\"\n    mv \"$DEST\" \"$QUARANTINED\"\n    echo \"Moved corrupt source cache $DEST to $QUARANTINED\" >&2\n  fi\n}\n\nsync_latest_source() {\n  REPO=\"$1\"; DEST=\"$2\"\n  recover_corrupt_source_checkout \"$DEST\"\n  if [ ! -d \"$DEST\" ]; then\n    gh repo clone \"$REPO\" \"$DEST\" -- --depth=1 \\\n      || git clone --depth=1 \"https:\u002F\u002Fgithub.com\u002F$REPO\" \"$DEST\"\n  fi\n  if ! valid_source_checkout \"$DEST\"; then\n    echo \"Source cache $DEST is not a usable git checkout after clone\" >&2\n    return 1\n  fi\n  git -C \"$DEST\" remote set-url origin \"https:\u002F\u002Fgithub.com\u002F$REPO.git\" >\u002Fdev\u002Fnull 2>&1 || true\n  DEFAULT_BRANCH=\"$(git -C \"$DEST\" remote show origin | sed -n '\u002FHEAD branch\u002Fs\u002F.*: \u002F\u002Fp')\"\n  if [ -z \"$DEFAULT_BRANCH\" ]; then\n    DEFAULT_BRANCH=\"$(git -C \"$DEST\" symbolic-ref --short refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's#^origin\u002F##')\"\n  fi\n  if [ -z \"$DEFAULT_BRANCH\" ]; then\n    echo \"Could not determine default branch for $REPO in $DEST\" >&2\n    return 1\n  fi\n  git -C \"$DEST\" fetch --depth=1 origin \"$DEFAULT_BRANCH\"\n  git -C \"$DEST\" checkout -B \"$DEFAULT_BRANCH\" FETCH_HEAD\n}\nsync_latest_source code-yeongyu\u002Flazycodex \"$LAZYCODEX_SOURCE_ROOT\u002Flazycodex-source\"\nsync_latest_source openai\u002Fcodex \"$LAZYCODEX_SOURCE_ROOT\u002Fopenai-codex-source\"\n```\n4. Create a fresh temporary clone and branch under `${TMPDIR:-\u002Ftmp}`. Do not modify the user's current repository for the target fix unless the current repository is itself the requested target and the user explicitly asked for local edits.\n\n```bash\nTARGET_REPO=\"code-yeongyu\u002Flazycodex\" # or openai\u002Fcodex\nWORK_ROOT=\"$(mktemp -d \"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-XXXXXX\")\"\ngh repo clone \"$TARGET_REPO\" \"$WORK_ROOT\u002Frepo\" -- --depth=1\ncd \"$WORK_ROOT\u002Frepo\"\nBASE_BRANCH=\"$(git remote show origin | sed -n '\u002FHEAD branch\u002Fs\u002F.*: \u002F\u002Fp')\"\ngit fetch origin \"$BASE_BRANCH\" --depth=1\nBRANCH_NAME=\"lazycodex\u002Fbug-fix-\u003Cshort-slug>\"\ngit worktree add \"$WORK_ROOT\u002Fworktree\" -b \"$BRANCH_NAME\" \"origin\u002F$BASE_BRANCH\"\ncd \"$WORK_ROOT\u002Fworktree\"\n```\n\nIf `gh` cannot clone, use `git clone --depth=1 \"https:\u002F\u002Fgithub.com\u002F$TARGET_REPO\" \"$WORK_ROOT\u002Frepo\"` and continue with the same worktree flow.\n\n5. Reproduce the bug in the worktree through the real surface. Save exact command output to `${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>-repro.log`.\n6. Write or update a failing regression test before production changes. Confirm it fails for the bug, not for a missing fixture or typo.\n7. Implement the smallest correct fix. Avoid refactors unless the fix cannot be made safely without one.\n8. Run the regression test, adjacent tests, and the smallest real-surface QA command that proves the user-visible behavior changed.\n9. Commit the verified fix in the worktree. Inspect the status first so the delivered diff cannot be empty or stale:\n\n```bash\ngit status --short\ngit add -A\ngit commit -m \"fix: \u003Cshort bug-fix summary>\"\ngit log --oneline \"origin\u002F$BASE_BRANCH..HEAD\"\n```\n\n10. Build the delivery body for the target:\n   - `openai\u002Fcodex`: generate the PR body with `scripts\u002Fcreate-pr-body.mjs`.\n   - `code-yeongyu\u002Flazycodex`: export the verified patch and write the issue body from the Verified-Fix Issue Template below:\n\n```bash\nPATCH_FILE=\"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>.patch\"\ngit diff \"origin\u002F$BASE_BRANCH\"..HEAD > \"$PATCH_FILE\"\n```\n\n11. Ensure the generated label exists when the target repo allows label management. Keep the footer tag even when label creation is unavailable:\n\n```bash\nLABEL_ARGS=()\nif gh label create lazycodex-generated --repo \"$TARGET_REPO\" --color \"7C3AED\" --description \"Created by LazyCodex\" --force; then\n  LABEL_ARGS=(--label lazycodex-generated)\nelse\n  echo \"Label management unavailable for $TARGET_REPO; keeping the footer tag only.\"\nfi\n```\n\n12. Deliver the fix.\n   - `code-yeongyu\u002Flazycodex`: create the verified-fix issue. Never push a branch to this repo and never run `gh pr create` against it:\n\n```bash\nISSUE_BODY=\"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>-issue.md\"\ngh issue create --repo code-yeongyu\u002Flazycodex --title \"\u003Cshort fix title>\" \"${LABEL_ARGS[@]}\" --body-file \"$ISSUE_BODY\"\n```\n\n   - `openai\u002Fcodex`: fork, push the branch to the fork, and create the PR:\n\n```bash\ngh repo fork openai\u002Fcodex --remote --remote-name fork\nGH_USER=\"$(gh api user --jq .login)\"\ngit push -u fork \"$BRANCH_NAME\"\ngh pr create --repo openai\u002Fcodex --base \"$BASE_BRANCH\" --head \"$GH_USER:$BRANCH_NAME\" --title \"\u003Cshort fix title>\" \"${LABEL_ARGS[@]}\" --body-file \"$PR_BODY\"\n```\n\n13. Clean up:\n\n```bash\ncd \u002F\ngit -C \"$WORK_ROOT\u002Frepo\" worktree remove \"$WORK_ROOT\u002Fworktree\"\nfind \"$WORK_ROOT\" -mindepth 1 -maxdepth 1 -exec rm -r -- {} +\nrmdir \"$WORK_ROOT\"\n```\n\nReturn the PR or issue URL, the reproduction command, the verification command, and the cleanup receipt.\n\n## Verified-Fix Issue Template (code-yeongyu\u002Flazycodex)\n\nWrite the issue body in English. Embed the patch verbatim so a maintainer can apply it to the source tree:\n\n````markdown\n## Problem Situation\n[What failed for the user.]\n\n## Reproduction Logs\n[Exact failing command and relevant log excerpt.]\n\n## Root Cause\n[Confirmed cause with runtime and source evidence.]\n\n## Verified Fix\n[What changed and why this is the smallest correct fix.]\n\n```diff\n[Contents of $PATCH_FILE.]\n```\n\n## Verification\n- [RED test output or repro before the fix]\n- [GREEN test output after the fix]\n- [Manual QA command and result]\n\n---\nThis fix was debugged, implemented, and verified with [LazyCodex](https:\u002F\u002Fgithub.com\u002Fcode-yeongyu\u002Flazycodex).\nTag: lazycodex-generated\n````\n\n## PR Body Generator (openai\u002Fcodex)\n\nUse the bundled script to generate the PR body. Create a JSON file with this shape:\n\n```json\n{\n  \"title\": \"Fix short user-visible failure\",\n  \"targetRepository\": \"openai\u002Fcodex\",\n  \"problem\": \"What is broken for the user.\",\n  \"reproductionLogs\": \"Exact failing command, log excerpt, or trace.\",\n  \"approach\": \"What changed and why this is the smallest correct fix.\",\n  \"confidence\": \"Why the diagnosis and fix are strongly supported.\",\n  \"risks\": \"Risk level and what could regress.\",\n  \"userVisibleBehaviorChanges\": \"What changes for the user after the PR.\",\n  \"verification\": [\"failing test before fix\", \"passing test after fix\", \"manual QA command\"]\n}\n```\n\nRun:\n\n```bash\nPR_INPUT=\"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>-pr.json\"\nPR_BODY=\"${TMPDIR:-\u002Ftmp}\u002Flazycodex-fix-\u003Cshort-slug>-pr.md\"\nnode \"\u003Cskill-root>\u002Fscripts\u002Fcreate-pr-body.mjs\" \"$PR_INPUT\" \"$PR_BODY\"\n```\n\n## PR Body Template (openai\u002Fcodex)\n\nThe generated body must follow this structure:\n\n```markdown\n## Problem Situation\n[What failed for the user.]\n\n## Reproduction Logs\n[Exact failing command and relevant log excerpt.]\n\n## Approach\n[What changed and why.]\n\n## Why I Am Confident\n[Evidence that proves the root cause and fix.]\n\n## Risks\n[Risk level and possible regressions.]\n\n## User-Visible Behavior Changes\n[What users experience after this PR.]\n\n## Verification\n- [RED test output or repro before the fix]\n- [GREEN test output after the fix]\n- [Manual QA command and result]\n\n---\nThis PR was debugged, implemented, and created with [LazyCodex](https:\u002F\u002Fgithub.com\u002Fcode-yeongyu\u002Flazycodex).\nTag: lazycodex-generated\n```\n\n## Stop Conditions\n\nStop and ask one narrow question only when:\n\n- the bug cannot be reproduced from available information\n- target repository ownership remains ambiguous after comparing LazyCodex and upstream Codex evidence\n- authentication is missing for creating the issue or pushing and creating the PR\n- the fix requires a product decision rather than a technical correction\n\nDo not open:\n\n- a PR or pushed branch targeting `code-yeongyu\u002Flazycodex` — deliver the verified-fix issue instead, always\n- a PR or verified-fix issue without a failing-before and passing-after test\n- a PR or verified-fix issue without a real-surface QA command\n- a PR or issue without the `Tag: lazycodex-generated` footer\n- a verified-fix issue without the patch embedded in a `diff` block\n- a vague fix that does not identify the root cause\n- a broad refactor disguised as a bug fix\n",{"name":5,"metadata":24,"description":7},{"short-description":25},"Contribute verified LazyCodex or Codex bug fixes","main","0a99b5b62ebd3726d465f7e319e2b8ec84c8aa6e","release\u002Flazyz-0.11.0-20261007\u002Fskills\u002Flcx-contribute-bug-fix","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz","https:\u002F\u002Fgithub.com\u002Fyounghai","http:\u002Fbzengage.co","Bizmatrixx co-founder & CEO \r\n","2026-11-01 13:58:56",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add younghai\u002Flazyz --skill lcx-contribute-bug-fix",{"tool":40,"command":41},"bunx","bunx skills add younghai\u002Flazyz --skill lcx-contribute-bug-fix",{"tool":43,"command":44},"pnpm","pnpm dlx skills add younghai\u002Flazyz --skill lcx-contribute-bug-fix","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Frelease\u002Flazyz-0.11.0-20261007\u002Fskills\u002Flcx-contribute-bug-fix\u002FSKILL.md",true,[48,54],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Fopenai.yaml","REFERENCE","参考文档",669,"https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Frelease\u002Flazyz-0.11.0-20261007\u002Fskills\u002Flcx-contribute-bug-fix\u002Fagents\u002Fopenai.yaml",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"scripts\u002Fcreate-pr-body.mjs","SCRIPT","脚本",2865,"https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Frelease\u002Flazyz-0.11.0-20261007\u002Fskills\u002Flcx-contribute-bug-fix\u002Fscripts\u002Fcreate-pr-body.mjs",[61,68,75,82,89,95],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M78GVSC3PZBHQQ5HPRNQ3AMN","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M78GVRB79BN9BQ5MAZ43XJWX","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M78GVQ2319BDGJA2QXMM2DM3","nested-child","Nested skill should be ignored.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002Fnested-child\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M78GVP5HC2C9B3VN8D8QWEFG","root-skill-preferred","Root skill should win.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M78GVNAR8R5XF3W00182ZWZH","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M78GVK58G788T2TRHPCA8Y64","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002Fyounghai\u002Flazyz\u002Fblob\u002Fmain\u002Fxcode\u002Fagent\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[]]