[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C26KBT89BGPF4X65AZ9WH4":3,"skill-same:01M7C26KBT89BGPF4X65AZ9WH4":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},"01M7C26KBT89BGPF4X65AZ9WH4","syz-extract-constants",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\u002Fsyzkaller-ppdev-syzlang\u002Frepaired_skill\u002Fsyz-extract-constants\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# syz-author-ioctl-family-description-and-constants\n\n## Purpose\nCreate or revise a syzkaller syzlang description for a Linux ioctl-based device so it is complete (all required ioctls), uses correct argument directionality, defines any needed constants (including arch-dependent ones when sizes differ), and passes the verifier-required in-place build\u002Fcompile checks.\n\n## When to Use\nUse this workflow when a task asks you to implement or update a syzlang .txt (and optionally .const) for a Linux device header that defines multiple ioctl commands, and success depends on matching an exact required ioctl set\u002Fcount and successfully running syzkaller description compilation in a specific repository path that the verifier will check.\n\n## Procedure\n- 1) Discover the ground-truth ioctl set (do not assume the count)\n- Locate the authoritative header(s) in the current environment (prefer system headers like \u002Fusr\u002Finclude over guessing kernel source locations).\n- Extract the ioctl macro names for the target device into a plain list (one per line) and record the expected count.\n- Checkpoint: You have an explicit list of required ioctl names and a numeric count derived from the header, not from memory.\n- 2) Map each ioctl to a syzlang signature (gate on completeness)\n- Open the existing syzlang .txt for the device and list the ioctl declarations currently implemented (names only).\n- Diff header-derived names vs .txt names:\n- If any header ioctls are missing, add them before doing any build steps.\n- If extra ioctls exist that are not in the header list, do not delete blindly; confirm whether they come from another included header or task requirements.\n- For each ioctl, determine directionality by inspecting the macro form and argument type:\n- _IO: no payload.\n- _IOR: output buffer (ptr[out, TYPE]).\n- _IOW: input buffer (ptr[in, TYPE]).\n- _IOWR: inout buffer (ptr[inout, TYPE]).\n- Checkpoint: The .txt contains exactly the required ioctl name set (and matches any task-stated count), with ptr[in]\u002Fptr[out]\u002Fptr[inout] consistent with header semantics.\n- 3) Define constants with arch awareness (only where needed)\n- Prefer extraction from available headers or compiler preprocessing when possible; otherwise compute values carefully.\n- Identify size-sensitive ioctls (any _IOR\u002F_IOW\u002F_IOWR whose third argument depends on sizeof(TYPE), e.g., structs like timeval that differ between 32-bit and 64-bit ABIs).\n- For these, require per-arch constants or per-arch size handling; do not assume a single numeric value across all arches.\n- Create or update the companion .const file next to the .txt only if the .txt references constants that are not already resolved by syzkaller.\n- Checkpoint: Every constant referenced by the .txt is defined for the intended arches, and size-dependent constants are not incorrectly shared across incompatible ABIs.\n- 4) Environment preflight for verifier-aligned build, then run the required compile step\n- Identify the exact repository\u002Fworkdir path and command(s) the task\u002Fverifier requires (do not substitute different paths or commands).\n- Preflight before running anything that writes build artifacts:\n- Confirm the required repo path exists.\n- Confirm it is writable for build outputs (especially creation of .\u002Fbin or other build directories used by the required command).\n- If not writable: stop and take one bounded fallback action that enables running the same required command in the same required location (for example: obtain appropriate permissions\u002Fescalation, or use the platform-supported mechanism to run the command with write access). Do not silently move the repo or run the build elsewhere unless the task explicitly allows it.\n- Run the required syzkaller description build\u002Fcompile command(s).\n- Final checkpoint (verifier alignment):\n- Confirm the edited .txt and .const exist and are readable at the exact task-specified paths.\n- Confirm the required build command(s) completed successfully (exit code 0) in the required location.\n\n## Constraints \u002F Pitfalls\n- Never claim completion without (a) a header-derived ioctl name list\u002Fcount check against the .txt and (b) a successful in-place verifier-required build\u002Fcompile run; \"looks correct\" is not acceptable.\n- Do not hard-code environment assumptions (e.g., \"no kernel source\", fixed repo paths, or a single ioctl numeric value for all arches); always discover headers\u002Ftools\u002Fpermissions first, and treat size-dependent ioctls as potentially arch-specific until validated.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fsyzkaller-ppdev-syzlang\u002Frepaired_skill\u002Fsyz-extract-constants",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 syz-extract-constants",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill syz-extract-constants",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill syz-extract-constants","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fsyzkaller-ppdev-syzlang\u002Frepaired_skill\u002Fsyz-extract-constants\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",[],[]]