[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C262DY5QDH6K4WTVGFM7R8":3,"skill-same:01M7C262DY5QDH6K4WTVGFM7R8":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},"01M7C262DY5QDH6K4WTVGFM7R8","cvss-score-extraction",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\u002Fsoftware-dependency-audit\u002Frepaired_run\u002Finputs\u002Fskills\u002Fcvss-score-extraction\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Dependency Security Audit CSV (Trivy JSON to CSV)\n\n## Purpose\nProduce a verifier-aligned security audit CSV by scanning a project for vulnerabilities, extracting CVE and CVSS data with stable fallbacks, filtering to the required severities, writing the CSV to the task-specified path, and validating the artifact and schema before finishing.\n\n## When to Use\nUse this when a task requires a machine-readable CSV deliverable (often at a specific path) summarizing HIGH\u002FCRITICAL vulnerabilities from a dependency scan (commonly Trivy), including identifiers, package info, CVSS score selection, and remediation fields.\n\n## Procedure\n- Step 1: Discover the contract and inputs (do not assume)\n- Identify the required output path and required CSV columns from the task statement; if either is not explicit, pause and infer from nearby task scaffolding (e.g., README, provided verifier script) or ask for clarification.\n- Discover the dependency target(s): locate lockfiles\u002Fmanifests by listing the working directory and searching for common files (package-lock.json, yarn.lock, pnpm-lock.yaml, requirements.txt, poetry.lock, Pipfile.lock, go.mod, Cargo.lock, Gemfile.lock).\n- Check tool availability: confirm whether a scanner (prefer Trivy) exists in PATH; if not, look for an allowed alternative already present (do not install unless explicitly allowed).\n- Step 2: Run a scan with a reproducible, inspectable output\n- Run the scanner in a mode that emits structured output (JSON preferred) and captures dependency vulnerabilities for the discovered target.\n- Save the raw scan output to a local file (path discovered at runtime); record how to reproduce it.\n- Checkpoint: confirm the JSON file exists and is parseable (load it with a JSON parser). If parse fails, re-run with correct output flags or switch scanner mode.\n- Step 3: Parse and normalize vulnerability records (schema-driven)\n- Load the JSON and discover where vulnerabilities live (commonly Results[*].Vulnerabilities[*]); do not hard-code the nesting until confirmed by inspection of keys.\n- For each vulnerability record, construct a normalized row object using the required CSV columns; typical fields include:\n- Vulnerability ID (e.g., CVE), package name, installed version, fixed version (or \"N\u002FA\"), severity, title\u002Fdescription, URL, CVSS score, CVSS version, CVSS source.\n- CVSS selection rule (keep minimal, behavior-changing logic):\n- Prefer CVSS v3\u002Fv3.1 base score when present; use source priority: nvd then ghsa then redhat (only among sources actually present in the record).\n- If no v3 score exists, optionally fall back to v2 score from the highest-priority available source (commonly nvd) if the task allows; otherwise set \"N\u002FA\".\n- Accept only numeric scores (int\u002Ffloat); otherwise treat as missing and continue fallback.\n- URL selection fallback:\n- Prefer a primary URL field if present (often PrimaryURL).\n- Else use the first item in a References list\u002Farray if present.\n- Else set \"N\u002FA\".\n- Filtering decision point:\n- Apply the task-required filter. If the requirement is \"HIGH and CRITICAL only\", filter by severity label (case-insensitive match).\n- If the requirement is score-threshold-based, filter by numeric CVSS when available; if missing, fall back to severity label only if the task explicitly permits.\n- Checkpoint: report counts (total vulns found, rows after filtering). If zero rows remain, keep going (still write a CSV with header), but note the reason.\n- Step 4: Write CSV to the required path and validate (hard completion gate)\n- Write the CSV to the exact task-specified output path. Do not silently change directories or substitute a different path.\n- Use a CSV writer that quotes\u002Fescapes fields and writes a single header row matching the required column names exactly.\n- Post-write validation (must pass before completion):\n- Existence\u002Freadability: stat and read the file from the exact required path.\n- Schema: parse the CSV back in and assert the header contains all required columns (and no unexpected header mismatches if the contract is exact).\n- Content: assert every row satisfies the filter condition (e.g., severity in {HIGH, CRITICAL}); assert CVSS values are either numeric or \"N\u002FA\" per schema.\n- Sanity: if the scan reported at least one HIGH\u002FCRITICAL vuln, assert row count > 0; otherwise allow 0 rows but keep header.\n- If any validation fails: do not claim completion. Fix mapping, filter logic, or write location, then re-run Step 4.\n\n## Constraints \u002F Pitfalls\n- Never assume JSON schema, vulnerability nesting, required CSV headers, or output path; always discover from task instructions and by inspecting the scan output before coding the parser.\n- Do not complete until the CSV is written to the exact required path and passes a reload-and-assert validation (existence, header\u002Fschema, and filter correctness); printing to stdout or writing to an alternate path is not acceptable.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fsoftware-dependency-audit\u002Frepaired_run\u002Finputs\u002Fskills\u002Fcvss-score-extraction",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 cvss-score-extraction",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill cvss-score-extraction",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill cvss-score-extraction","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fsoftware-dependency-audit\u002Frepaired_run\u002Finputs\u002Fskills\u002Fcvss-score-extraction\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",[],[]]