[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KHHHBYQCSMRCSETZQ5B42R":3,"skill-same:01M6KHHHBYQCSMRCSETZQ5B42R":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6KHHHBYQCSMRCSETZQ5B42R","fill_pdf_form",null,"Fills a PDF form with provided data. It maps field keys to their respective pages and applies values. It handles multi-line text areas by assigning specific strings to the identified sequential keys. For checkboxes, it uses the precise export values found during inspection. All dates must be formatted as 'xxxx-xx-xx'.","cxcscmu\u002FSkillLearnBench","cxcscmu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142838272?v=4","01M6KCQDFQWPDSN0MKZY96MSQP","01M6KCQDM7G70TKJ28NTSQC0RZ",93,"MIT","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fb3-teacher-feedback-gemini-3-flash-preview\u002Fcourt-form-filling\u002Frun3_fill_pdf_form\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"fill pdf form","fill","form","PDF","multi","for","keys","values","strings","with","it","line","as","pages","maps","export","text","data","2026-11-10 10:12:30",false,"---\nname: fill_pdf_form\ndescription: Fills a PDF form with provided data. It maps field keys to their respective pages and applies values. It handles multi-line text areas by assigning specific strings to the identified sequential keys. For checkboxes, it uses the precise export values found during inspection. All dates must be formatted as 'xxxx-xx-xx'.\n---\n\nimport pypdf\n\ndef fill_pdf_form(input_pdf_path: str, output_pdf_path: str, data: dict):\n    \"\"\"\n    Fills a PDF form. \n    'data' should be a flat dictionary where keys match the PDF field names.\n    The function automatically identifies the page for each key and updates it.\n    \"\"\"\n    reader = pypdf.PdfReader(input_pdf_path)\n    writer = pypdf.PdfWriter()\n    writer.append_pages_from_reader(reader)\n\n    # Create a mapping of field keys to page indices\n    field_to_page = {}\n    for page_index, page in enumerate(reader.pages):\n        if \"\u002FAnnots\" in page:\n            for annot in page[\"\u002FAnnots\"]:\n                obj = annot.get_object()\n                if \"\u002FT\" in obj:\n                    field_to_page[obj[\"\u002FT\"]] = page_index\n\n    # Group data by page index for update_page_form_field_values\n    page_updates = {}\n    for key, value in data.items():\n        if key in field_to_page:\n            p_idx = field_to_page[key]\n            if p_idx not in page_updates:\n                page_updates[p_idx] = {}\n            page_updates[p_idx][key] = value\n\n    # Apply updates page by page\n    for p_idx, fields in page_updates.items():\n        writer.update_page_form_field_values(writer.pages[p_idx], fields)\n\n    with open(output_pdf_path, \"wb\") as output_file:\n        writer.write(output_file)","import pypdf\n\ndef fill_pdf_form(input_pdf_path: str, output_pdf_path: str, data: dict):\n    \"\"\"\n    Fills a PDF form. \n    'data' should be a flat dictionary where keys match the PDF field names.\n    The function automatically identifies the page for each key and updates it.\n    \"\"\"\n    reader = pypdf.PdfReader(input_pdf_path)\n    writer = pypdf.PdfWriter()\n    writer.append_pages_from_reader(reader)\n\n    # Create a mapping of field keys to page indices\n    field_to_page = {}\n    for page_index, page in enumerate(reader.pages):\n        if \"\u002FAnnots\" in page:\n            for annot in page[\"\u002FAnnots\"]:\n                obj = annot.get_object()\n                if \"\u002FT\" in obj:\n                    field_to_page[obj[\"\u002FT\"]] = page_index\n\n    # Group data by page index for update_page_form_field_values\n    page_updates = {}\n    for key, value in data.items():\n        if key in field_to_page:\n            p_idx = field_to_page[key]\n            if p_idx not in page_updates:\n                page_updates[p_idx] = {}\n            page_updates[p_idx][key] = value\n\n    # Apply updates page by page\n    for p_idx, fields in page_updates.items():\n        writer.update_page_form_field_values(writer.pages[p_idx], fields)\n\n    with open(output_pdf_path, \"wb\") as output_file:\n        writer.write(output_file)",{"name":5,"description":7},"main","726e1f79b96b0cb3d729d0e55a1c847e0b5353ae","skills\u002Fb3-teacher-feedback-gemini-3-flash-preview\u002Fcourt-form-filling\u002Frun3_fill_pdf_form",8,"https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench","https:\u002F\u002Fcxcscmu.github.io\u002FSkillLearnBench","https:\u002F\u002Fgithub.com\u002Fcxcscmu","2026-10-02 22:55:36",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add cxcscmu\u002FSkillLearnBench --skill fill_pdf_form",{"tool":60,"command":61},"bunx","bunx skills add cxcscmu\u002FSkillLearnBench --skill fill_pdf_form",{"tool":63,"command":64},"pnpm","pnpm dlx skills add cxcscmu\u002FSkillLearnBench --skill fill_pdf_form","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fb3-teacher-feedback-gemini-3-flash-preview\u002Fcourt-form-filling\u002Frun3_fill_pdf_form\u002FSKILL.md",true,[],[69,85,108,126,146,158],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":78,"publishedAt":41},"01M6KM5KH175P5ABP5JMX2SBDQ","object_counter","Count occurrences of an object in the image using computer vision algorithm.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Fvideo-object-counting\u002Fobject_counter\u002FSKILL.md",[75],{"categoryNo":76,"categoryName":77,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000016","图像与多媒体",[79,80,81,82,83,84],"object counter","object","vision","computer","Computer Vision","image",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":94,"publishedAt":41},"01M6KM51TMVXG79MMPCS6Y8G86","travel-planning-workflow","Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftravel-planning\u002Ftravel-planning-workflow\u002FSKILL.md",[91],{"categoryNo":92,"categoryName":93,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[95,96,97,98,99,100,101,102,103,28,104,33,105,106,107],"workflow","planning","planning workflow","travel","travel planning","travel planning workflow","structured","performing","plan","user","requirements","essential","itineraries",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":41},"01M6KM4DY820XHS9YTSK5QP5HD","bundled-dataset-search-tool","invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftravel-planning\u002Fbundled-dataset-search-tool\u002FSKILL.md",[],[115,116,117,118,119,120,121,98,122,123,99,124,28,125,96],"search","tool","dataset","bundled dataset search tool","restaurants","Tools","up","look","flights","you","database",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":41},"01M6KM465BB9PQ0B548HQSVAWZ","glm-output","Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final \u002Froot\u002Fmetrics.json.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-output\u002FSKILL.md",[],[133,134,135,28,136,137,138,139,140,141,142,143,124,144,145],"glm output","output","glm","tasks","metrics","json","basics","guidance","matching","verifier","processing","root","calibration",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":153,"publishedAt":41},"01M6KM40KY3QWDW5W97S39R2BC","glm-calibration","Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-calibration\u002FSKILL.md",[152],{"categoryNo":92,"categoryName":93,"taxonomyType":20,"taxonomyTypeDesc":21},[154,145,135,134,140,139,136,155,156,28,157],"glm calibration","setup","companion","metric",{"skillNo":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":41},"01M6KM3VHHVSGMGHJQB3PPT6YG","glm-basics","A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-basics\u002FSKILL.md",[],[165,135,139,166,154,145,28,134,167,168,169,170,171,172,136],"glm basics","inspect","relevant","files","good","use","how","Evaluation"]