[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C26QGTS05SRGG2BHM38P45":3,"skill-same:01M7C26QGTS05SRGG2BHM38P45":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},"01M7C26QGTS05SRGG2BHM38P45","syzlang-ioctl-basics",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\u002Fsyzlang-ioctl-basics\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# syzlang-ioctl-authoring-workflow\n\n## Purpose\nProvide an environment-aware, checkpointed procedure to add or modify ioctl-related syzlang descriptions (ioctl variants, structs, flags) with validation or bounded fallback checks, ensuring edits land in the correct syzkaller descriptions tree.\n\n## When to Use\nUse when you must author or update syzkaller syzlang files for ioctl syscalls (new ioctl$VARIANT entries, supporting structs\u002Fflags\u002Fresources) and you need to ensure the changes are syntactically valid and applied to the correct on-disk description files in the current environment (which may be read-only or offline).\n\n## Procedure\n- 1) Discover the descriptions tree and the target file(s)\n- Locate the syzkaller descriptions directory by discovery (do not assume a fixed path):\n- Search for a \"sys\u002Flinux\" directory that contains multiple \"*.txt\" description files.\n- If the task specifies an exact file path, treat it as the target and verify it exists.\n- Checkpoint evidence: print the resolved path(s) you will edit (e.g., repo_root and sys\u002Flinux path) and confirm the target file is inside that tree.\n- 2) Preflight: verify write access and avoid irreversible detours\n- For each target file, verify it is writable (or the directory is writable if creating a new file):\n- Perform a minimal write test adjacent to the target (create then remove a temporary file), or use an equivalent non-destructive permission check.\n- If not writable:\n- Do not attempt repo-wide hacks (e.g., editing go.mod, changing toolchains, relocating outputs).\n- Stop and report the specific permission constraint and the exact path that is blocked; proceed only if the task provides an alternate writable location that the verifier will accept.\n- Checkpoint evidence: write test succeeds (or fails with a captured permission error that triggers the stop\u002Fask branch).\n- 3) Author the ioctl description with strict local syntax rules\n- Model ioctl lines using consistent patterns:\n- cmd is typically const[CMD] (or flags[...] if appropriate).\n- arg uses ptr[in|out|inout, type] when it is a pointer; use intptr[...] only for immediate-value style ioctls.\n- Define structs with one field per line as: \"field_name    field_type\" (no leading punctuation, no empty field names).\n- Add\u002Fupdate any required resources\u002Fflag sets only if the ioctl signature requires them.\n- Checkpoint evidence: after edits, show a small excerpt of the changed lines from the target file(s).\n- 4) Validate, then ground outputs at the exact edited path(s)\n- Preferred validation (only if tools and environment support it):\n- Check whether a syzkaller description validator is available in the environment (for example, a built syz-sysgen binary or a repo build target that validates descriptions).\n- If available, run the narrowest validator that checks description parsing and require exit code 0.\n- Bounded fallback if validator cannot run (offline toolchain mismatch, missing build tools, etc.):\n- Do static sanity checks that catch common authoring errors:\n- Grep for malformed struct field lines (e.g., lines in structs that do not match \"name type\" shape, or fields with missing names\u002Ftypes).\n- Grep for ioctl lines missing required commas\u002Fparentheses, or ptr[...] missing direction.\n- Record the exact blocker preventing full validation (e.g., toolchain download refused, version mismatch) and do not claim full validation passed.\n- Final grounding check (must always run):\n- Verify the exact target file path(s) exist and are readable.\n- Print an excerpt (head\u002Fsed) from the exact path(s) containing the new\u002Fchanged definitions.\n- Checkpoint evidence: validator exit code 0 OR fallback checks produce no findings; and ls\u002Fread excerpt confirms content at the exact path(s).\n\n## Constraints \u002F Pitfalls\n- Do not hard-code repository roots, description paths, or validation commands. Always discover paths and gate commands on tool availability and write permissions.\n- Do not \"fix\" validation failures by editing unrelated repo\u002Ftoolchain files (e.g., go.mod) unless the task explicitly requires it and you have confirmed you can write those files; otherwise, report the blocker and use the bounded static fallback.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fsyzkaller-ppdev-syzlang\u002Frepaired_skill\u002Fsyzlang-ioctl-basics",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 syzlang-ioctl-basics",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill syzlang-ioctl-basics",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill syzlang-ioctl-basics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fsyzkaller-ppdev-syzlang\u002Frepaired_skill\u002Fsyzlang-ioctl-basics\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",[],[]]