[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C26C7VZ0NT706M2598B71Y":3,"skill-same:01M7C26C7VZ0NT706M2598B71Y":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},"01M7C26C7VZ0NT706M2598B71Y","vulnerability-csv-reporting",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_skill\u002Fvulnerability-csv-reporting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# vulnerability-csv-reporting\n\n## Purpose\nGenerate a verifier-visible CSV security audit report from vulnerability scan data by discovering inputs in the live environment, applying an explicit filter and field mapping, writing the CSV to the task-required path, and validating the produced artifact by reloading it and asserting schema\u002Fshape before claiming completion.\n\n## When to Use\nUse this skill when a task requires producing a CSV report from vulnerability findings (often JSON from a scanner) and the environment expects an actual file on disk at a specific path. Do not use for narrative security summaries or when the required output is not a CSV artifact.\n\n## Procedure\n- Step 1: Discover requirements and paths before doing work\n- Identify the required output CSV path from the task\u002Fverifier; if none is specified, ask or discover a conventional location and confirm it.\n- Discover the available inputs by listing the working directory and locating candidate vulnerability data files (for example, *.json, scanner output directories).\n- Checkpoint: confirm the input file you will parse exists and is readable (size > 0), and confirm you have write permission to the output directory.\n- Step 2: Ground tool availability and choose the minimal working route\n- Prefer Python for parsing and CSV writing (standard library). Verify availability: run python3 --version or python --version via the terminal tool.\n- If python3 is missing but python exists, use python. If neither exists, stop and request an environment-supported alternative rather than emitting unexecuted code.\n- Optional: if you intend to run a scanner first, verify the scanner binary exists and that required flags are supported; otherwise, proceed with converting existing scan output only.\n- Step 3: Convert findings to CSV records (mapping + filtering)\n- Inspect the top-level structure of the input JSON (print keys and a small sample) to avoid hard-coded assumptions.\n- Define the CSV header (fieldnames) explicitly and keep it stable.\n- Implement a mapping function that:\n- Produces exactly one flat dict per vulnerability row.\n- Uses safe defaults (for example, N\u002FA) when fields are missing or null.\n- Applies the requested severity filter only if the task asks for it; otherwise include all severities.\n- Decision point: if the expected vulnerabilities list is missing (for example, no \"Vulnerabilities\" key or it is empty), still write a CSV with the header row and zero data rows unless the task requires otherwise.\n- Step 4: Write the CSV to the required path using an actual terminal tool call\n- Write via Python csv.DictWriter with newline=\"\" and UTF-8 encoding.\n- Do not paste a \"tool call\" blob into chat. Execute the write using the platform terminal tool so the file is created on disk.\n- Checkpoint: the command must exit successfully (return code 0) before proceeding.\n- Step 5: Post-write verification (must pass before finalizing) [EXECUTION ANCHOR]\n- In the terminal tool, verify the artifact is present at the exact required path:\n- ls -l \u003Ccsv_path> (or equivalent) shows the file exists and is non-empty if rows were expected.\n- Reload and validate the CSV schema\u002Fshape using Python:\n- Assert the first row header equals the expected fieldnames exactly (same names and order).\n- Assert every subsequent row has exactly the same number of columns as the header.\n- If severity filtering is requested, assert all output Severity values are within the requested set.\n- If any assertion fails: do not claim success; fix mapping\u002Fheader\u002Fpaths and re-run only the minimal failing step, then re-run this verification.\n\n## Constraints \u002F Pitfalls\n- Never claim the report is generated unless the CSV exists and is readable at the task-specified output path and the post-write reload validation passes. Do not silently write to a different directory if permission\u002Fpath issues occur; instead, diagnose and resolve or ask.\n- Avoid brittle assumptions about scanner JSON structure (fixed keys, nested shapes, or CVSS locations). Always inspect the input structure first and implement a single bounded fallback for missing keys (write header-only CSV or map alternate key paths) rather than expanding into an unbounded troubleshooting guide.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fsoftware-dependency-audit\u002Frepaired_skill\u002Fvulnerability-csv-reporting",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 vulnerability-csv-reporting",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill vulnerability-csv-reporting",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill vulnerability-csv-reporting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fsoftware-dependency-audit\u002Frepaired_skill\u002Fvulnerability-csv-reporting\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",[],[]]