[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C1QDRHBJ4YEPHDY2CRJEX4":3,"skill-same:01M7C1QDRHBJ4YEPHDY2CRJEX4":49},{"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},"01M7C1QDRHBJ4YEPHDY2CRJEX4","economic-dispatch",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\u002Fenergy-market-pricing\u002Frepaired_run\u002Finputs\u002Fskills\u002Feconomic-dispatch\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Verifier-Aligned OPF Market Report Writer (Minimal-Dependency, Schema-Gated)\n\n## Purpose\nProduce a verifier-ready JSON report (for DC-OPF market clearing, optionally with reserves and base vs counterfactual comparison) by (1) discovering the exact required output protocol and schema from the task environment, (2) selecting an environment-supported solve route with bounded setup, and (3) writing and validating `report.json` at the verifier-visible path with strict schema checks.\n\n## When to Use\nUse when a task asks for a specific JSON artifact (commonly `report.json`) summarizing OPF\u002Fmarket outcomes and comparisons, and the runtime may be a minimal Python environment with restricted package installation and a strict verifier that checks exact file paths and JSON structure.\n\n## Procedure\n- 1) Contract and environment discovery (no installs, no irreversible actions)\n- Locate the task-declared required output filename\u002Fpath and the required JSON structure:\n- Search the task statement, README, and any visible tests\u002Fconfig for the exact output path (for example, `report.json`) and the required keys\u002Ftypes.\n- If the output path is not explicitly stated, discover how the verifier locates outputs (for example, by scanning the working directory or a declared output directory). Record the discovered rule.\n- Dependency preflight (execution anchor):\n- Attempt imports in this order: `json` (required), then optional numeric\u002Foptimization deps (for example `numpy`, `scipy`, `cvxpy`, any solver libs).\n- Decide the solve route within a small fixed time budget:\n- Route A (preferred): use already-available installed solver stack.\n- Route B (fallback): if no solver stack is available, do not attempt long installs. Only attempt a single lightweight alternative if it is already present (for example, a bundled CLI\u002Ftool provided by the environment).\n- If neither route is possible, stop early with a protocol-aligned failure outcome only if the task allows it; otherwise do not guess results.\n- 2) Input loading and schema sanity checks (before modeling)\n- Discover and load the provided input artifacts (do not assume fixed paths; list the working directory and search by extension\u002Fnames referenced in the task).\n- Validate minimal required fields and shapes before computing:\n- For MATPOWER-style data: confirm presence and consistent dimensions for bus, gen, branch, gencost, plus any reserve requirement fields if the task includes reserves.\n- Build a bus-id to internal-index map if bus IDs are non-contiguous.\n- Quick branch limit convention check (keep it lightweight):\n- Identify which branch rating columns exist.\n- If exactly one column is fully populated with positive limits for in-service branches, select it.\n- Otherwise, select the most defensible column by a documented heuristic (highest fraction of positive finite values), and record the choice in metadata; do not run multi-scenario branches unless the task explicitly requests scenario output.\n- 3) Compute required quantities using the chosen route (decision point: solver availability)\n- If an optimizer is available (Route A):\n- Formulate DC-OPF (and reserves if required by the task) matching the task description:\n- Reference bus: choose deterministically (for example, smallest in-service bus id) and record it.\n- Enforce generator bounds, power balance, and thermal limits for in-service branches using the selected limit column.\n- If reserves are required: implement the reserve variables\u002Fconstraints exactly as described by the task text (do not invent a reserve model).\n- Solve with conservative iteration\u002Ftime limits; record status, objective, and any infeasibility flags.\n- If no optimizer is available (Route B):\n- Only proceed if the environment provides an explicit alternative solving method (for example, a provided script\u002Fbinary). Run it and capture outputs needed for the report.\n- Otherwise, stop (do not fabricate dispatch\u002FLMPs).\n- 4) Assemble report data strictly from the task schema (no extra fields unless allowed)\n- Build the JSON object to exactly match the discovered required schema:\n- Include base vs counterfactual sections only if required.\n- Include reserve results\u002Fprices only if required.\n- Include branch binding identification only if required; use a single declared tolerance and store it in metadata if the schema allows.\n- Ensure all numeric arrays have consistent lengths (for example, one entry per generator\u002Fbus\u002Fbranch as required) and contain finite numbers.\n- 5) Write and verify the output artifact (finalization gate; minimal stdout)\n- Write the JSON to the exact required output path (execution anchor):\n- Confirm the directory is writable before writing.\n- Write atomically when possible (write temp file then rename) to avoid partial files.\n- Reload-and-assert validation:\n- Re-open the written file from the required path and `json.load` it.\n- Assert required top-level keys exist and have correct types.\n- Assert required nested keys exist; assert arrays have expected lengths derived from loaded inputs (not hard-coded constants).\n- Assert required numeric fields are finite and within any task-stated ranges.\n- Termination protocol:\n- Unless the task explicitly allows narrative output, emit no extra prose beyond (at most) a single confirmation line that the file was created and validated.\n\n## Constraints \u002F Pitfalls\n- Never spend unbounded time installing packages in restricted environments; do not attempt system-wide pip installs when blocked. Use a strict, small time budget for dependency handling and prefer fail-fast over long setup.\n- Do not guess the report schema or output location: always extract required keys\u002Fpath from the task text\u002Ftests, then validate by reloading and asserting structure at the exact verifier-visible path before finishing.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fenergy-market-pricing\u002Frepaired_run\u002Finputs\u002Fskills\u002Feconomic-dispatch",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 economic-dispatch",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill economic-dispatch",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill economic-dispatch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fenergy-market-pricing\u002Frepaired_run\u002Finputs\u002Fskills\u002Feconomic-dispatch\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"references\u002Fcost-functions.md","REFERENCE","参考文档",1597,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fenergy-market-pricing\u002Frepaired_run\u002Finputs\u002Fskills\u002Feconomic-dispatch\u002Freferences\u002Fcost-functions.md",[50,57,64,71,76,81],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"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":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"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":72,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"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":77,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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":82,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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",[],[]]