[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C1VS8MD20YTMNRYFV61464":3,"skill-same:01M7C1VS8MD20YTMNRYFV61464":43},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7C1VS8MD20YTMNRYFV61464","uv-package-manager",null,"linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Ffix-build-agentops\u002Frepaired_skill\u002Fuv-package-manager\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Repo Build Repair And Patch Authoring (Git Unified Diffs)\n\n## Purpose\nProvide a repeatable workflow to reproduce a repository failure (install, build, tests), implement a minimal fix, and produce valid git-style patch_*.diff files that apply cleanly and are verified against the original failure.\n\n## When to Use\nUse this skill when you must fix a failing Python (or general) repository and deliver changes as unified diff patch files (for example patch_1.diff, patch_2.diff). Do not use for tool tutorials or migrations (uv\u002Fpoetry\u002Fconda) unless the task explicitly requests changing the dependency manager.\n\n## Procedure\n- 1) Discover and restate the runnable contract (no guessing)\n- Locate repo root by discovering: presence of .git, pyproject.toml, setup.cfg, setup.py, tox.ini, Makefile, or CI config.\n- Identify the intended failing command(s) from task text or repo docs (README, CONTRIBUTING, CI config).\n- Check tool availability (do not assume): git, python, pip, pytest\u002Ftox\u002Fnox, make. Record versions if relevant to failure (python -V, python -m pip -V).\n- Checkpoint evidence: you can name (a) repo root, (b) the exact command you will run to reproduce.\n- 2) Reproduce the failure in the safest reversible way\n- Prefer an isolated environment for Python projects:\n- Create a fresh venv in repo-local directory (name can vary; do not hard-code). Activate or use python -m pip within it.\n- Run the chosen failing command exactly once to capture the first true error (do not preemptively change code).\n- Save the key traceback\u002Ferror lines and the command used (for later notes).\n- Checkpoint evidence: terminal output shows a deterministic first failure with an error message you can point to.\n- 3) If the planned route fails, take one bounded fallback branch (then return)\n- If install fails (permission, editable install, backend error):\n- Ensure you are in a venv (not system Python). If not, stop and create one.\n- Retry with minimal environment normalization when allowed: python -m pip install --upgrade pip setuptools wheel (bounded: do this once).\n- If editable install fails (pip install -e .):\n- Try non-editable install (python -m pip install .) to distinguish packaging vs editable-specific issues.\n- Inspect pyproject.toml [build-system] and packaging config to identify the build backend and requirements.\n- Choose the smallest compatible change (for example: adjust build-system requirements, fix missing package metadata, or add a minimal backend config) rather than switching tools.\n- If the same failure repeats after the fallback, stop escalating locally and switch to method-level diagnosis: open and inspect the referenced files and error locations before further retries.\n- If tests fail to run due to missing test runner:\n- Discover the intended runner from repo files (tox.ini\u002Fnoxfile\u002Fpyproject tool config) and use that runner if present; otherwise fall back to pytest only if tests\u002F exists and pytest is declared.\n- Checkpoint evidence: you can explain which fallback you used and show the new, smallest failing signal (changed error or confirmed same root cause).\n- 4) Implement the minimal fix with tight scope\n- Edit only the files necessary to address the first failure. Avoid refactors, formatting-only changes, or dependency manager migrations unless required.\n- If requirements are ambiguous, add a short clarification note and implement the safest minimal change that unblocks the failing command.\n- Re-run the failing command to confirm the failure is resolved or has progressed to the next actionable failure.\n- Checkpoint evidence: the original failing error disappears or changes in a way that indicates forward progress.\n- 5) Produce patch files safely (never hand-write diffs)\n- Create patches using git-generated unified diffs only:\n- Option A: git diff > patch_1.diff (for a single batch of changes)\n- Option B: git format-patch (if the workflow uses commits; only if commits are allowed\u002Favailable)\n- Validate each patch before sharing or applying:\n- git apply --check patch_1.diff\n- If it fails, do not edit hunk headers manually. Instead, return to repo working tree, correct files, and re-generate the patch from git.\n- If multiple patches are required, split changes into logical units by staging\u002Fcommitting or by generating diffs per focused change; validate each with git apply --check.\n- Checkpoint evidence (execution anchor): git apply --check returns success for every patch_N.diff.\n- 6) Apply and verify\n- Apply patches to a clean working tree when requested (or validate application with --check if apply is not required):\n- git apply patch_1.diff (then patch_2.diff, etc.)\n- Re-run the original failing command after applying (and after each patch if the task expects incremental verification).\n- Record final status and remaining failures (if any), and produce\u002Fupdate failed_reasons.txt only if the task requests it.\n- Checkpoint evidence (execution anchor): (a) patches apply without errors, and (b) the failing command now passes or fails later for a new reason.\n\n## Constraints \u002F Pitfalls\n- Do not hand-edit unified diff hunk headers, line counts, or patch context. If a patch is invalid, fix the source files and regenerate the patch via git diff or git format-patch, then re-run git apply --check.\n- Do not switch dependency managers or introduce new tooling (for example uv\u002Fpoetry\u002Fconda) unless explicitly required by the task. Prefer minimal, repo-native fixes and keep fallback actions bounded (one retry cycle) before escalating to deeper file-level diagnosis.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Ffix-build-agentops\u002Frepaired_skill\u002Fuv-package-manager",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill uv-package-manager",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill uv-package-manager",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill uv-package-manager","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Ffix-build-agentops\u002Frepaired_skill\u002Fuv-package-manager\u002FSKILL.md",true,[],[44,51,58,65,70,75],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":66,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":71,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":76,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]