[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C1MV03HVH06M2FCAZQWFCS":3,"skill-same:01M7C1MV03HVH06M2FCAZQWFCS":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},"01M7C1MV03HVH06M2FCAZQWFCS","scip-opt",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\u002Fbike-rebalance\u002Frepaired_skill\u002Fscip-opt\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Robust Optimization Modeling (SCIP optional, contract-driven)\n\n## Purpose\nProduce a correct, verifier-aligned solution artifact for optimization-style tasks (objective + constraints), using PySCIPOpt\u002FSCIP when available and a deterministic heuristic-with-repair fallback when it is not, with mandatory discovery and post-write validation.\n\n## When to Use\nUse this skill when the task describes an optimization problem (min\u002Fmax objective with hard constraints, possibly with soft penalties) and the evaluation likely depends on a JSON (or similar) output artifact whose schema and internal consistency must match a validator.\n\n## Procedure\n- 1) Discover the environment contract (before modeling)\n- List the working directory and locate: input files (often *.json), required output filename(s) mentioned in instructions\u002FREADME, and any validator\u002Ftests (e.g., test_*.py, validate*.py, scripts).\n- Open and parse the primary input file(s) as JSON.\n- Extract and record a minimal contract snapshot used for later validation:\n- required entity IDs (e.g., all stations\u002Fjobs\u002Fitems),\n- declared counts (e.g., vehicle_count),\n- any bounds\u002Fcapacities,\n- required output path\u002Fname (if explicitly stated).\n- Checkpoint: if the required output path\u002Fschema is not explicit, search for it in repo docs\u002Ftests; if still ambiguous, proceed but keep output validation derived from discovered input structure and any validator code found.\n- 2) Validate inputs and assumptions (fail fast on non-recoverable issues)\n- Assert input JSON parses; required top-level keys exist (as discovered); IDs are unique; numeric fields are finite numbers.\n- If any key\u002Ffield is missing or ambiguous, stop and request clarification only if the task interface allows; otherwise choose the least-committal interpretation and record it for validation.\n- 3) Select solution method with a bounded fallback gate\n- Try importing PySCIPOpt. If import succeeds, run a sanity optimization (tiny model) to confirm the backend works (optimize, status feasible\u002Foptimal, at least one solution).\n- Decision:\n- If PySCIPOpt works: use the solver path (step 4).\n- If PySCIPOpt is missing\u002Fbroken OR solver later yields no incumbent: use the heuristic + repair path (step 5).\n- Constraint: do not install packages or assume system binaries unless the environment contract explicitly allows it.\n- 4) Solver path (SCIP via PySCIPOpt), kept minimal and safe\n- Build the smallest model that matches the discovered contract:\n- decision variables for the required decisions (binary\u002Finteger\u002Fcontinuous),\n- hard constraints for feasibility,\n- explicit slack variables for any soft rules (no abs() on expressions).\n- Set limits (time and optional gap) and suppress verbose output when allowed.\n- Optimize and checkpoint:\n- If model.getNSols() == 0, capture status and switch to step 5 (fallback) rather than failing.\n- Otherwise extract solution values with numeric tolerances (e.g., binary > 0.5).\n- Reconstruct key quantities outside the solver (objective components and each hard constraint LHS\u002FRHS) for later validation.\n- 5) Heuristic + repair fallback (deterministic, bounded)\n- Construct an initial feasible (or near-feasible) solution using greedy rules grounded in the input:\n- prioritize satisfying hard constraints first; treat soft penalties as tie-breakers.\n- Add a bounded repair loop:\n- detect violations (capacity, balance, coverage, route continuity, etc. as applicable),\n- apply local fixes (swap, move, clamp, add slack\u002Funmet variables),\n- stop after a small fixed number of passes or when violations do not decrease.\n- If strict feasibility is impossible due to input bounds, produce the best-effort solution that still respects non-negotiable format requirements, and represent unmet quantities via explicit slack\u002Funmet fields if the contract\u002Fvalidator supports them; otherwise keep values within bounds and document shortfall in optional metadata fields only if allowed by schema discovery.\n- 6) Build the output artifact from the solution (no assumptions about schema)\n- Create the output JSON structure by following (in order of priority):\n- explicit task instruction schema,\n- discovered validator expectations (read validator code to learn required keys),\n- pattern from any provided example output file,\n- otherwise mirror input entity IDs with per-entity records plus an objective summary.\n- Ensure ID coverage: every required ID from the input snapshot must appear exactly once where expected.\n- Ensure internal consistency: totals equal sums over records; derived fields are recomputed from primitives (do not copy solver objective without reconstruction).\n- 7) Post-write schema and consistency validation (mandatory final gate)\n- Write the output JSON to the required path\u002Fname if specified; otherwise to the task-specified default if discovered; otherwise to a conservative default like report.json only if no other evidence exists.\n- Reload the written file and validate:\n- JSON parses,\n- required top-level keys exist and have correct types,\n- list lengths match declared counts (e.g., vehicle_count),\n- all required IDs are present with no extras\u002Fduplicates,\n- numeric fields are within discovered bounds (capacities, non-negativity, etc.),\n- recomputed objective\u002Ftotals match reported values within a small tolerance.\n- If validation fails: fix the minimal issue and rewrite once (bounded). If it still fails, stop and surface the specific failing assertion and the discovered contract snapshot.\n\n## Constraints \u002F Pitfalls\n- Never hard-require PySCIPOpt: if import, sanity solve, or optimization fails to produce an incumbent, you must switch to a bounded heuristic + repair path and still produce a valid artifact.\n- Do not hard-code paths, schema keys, or counts unless they are explicitly stated in instructions or discovered from input\u002Fvalidator; always perform discovery preflight and a post-write reload validation before declaring completion.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fbike-rebalance\u002Frepaired_skill\u002Fscip-opt",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 scip-opt",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill scip-opt",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill scip-opt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fbike-rebalance\u002Frepaired_skill\u002Fscip-opt\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",[],[]]