[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69979ENN9XYV6AZACX1RK06":3,"skill-same:01M69979ENN9XYV6AZACX1RK06":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":61,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M69979ENN9XYV6AZACX1RK06","lit-to-bazel","MLIR lit 测试转 Bazel 命令","Converts MLIR lit test files to `bazel run` commands. Use when you need to convert a failing MLIR lit test target (containing RUN lines) to a shell command whose flags can be modified for further analysis and debugging.","将 MLIR lit 测试文件转换为 `bazel run` 命令。当需要将某个失败的 MLIR lit 测试目标（包含 RUN 行）转换为可修改标志的 shell 命令，以便进一步分析和调试时使用。","google\u002Fheir","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M69973GM7GX7K1C2GYBW099F",948,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fheir\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flit_to_bazel\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"lit to bazel","bazel","lit","failing","mlir","when","shell command","for","can","you","commands","files","use","command","convert","shell","analysis","run","debugging","test","2026-11-10 10:12:30",false,"---\nname: lit-to-bazel\ndescription: >-\n  Converts MLIR lit test files to `bazel run` commands. Use when you need to\n  convert a failing MLIR lit test target (containing RUN lines) to a shell\n  command whose flags can be modified for further analysis and debugging.\n---\n\n# Lit To Bazel\n\n## Overview\n\nThis skill guides the agent in using the `lit_to_bazel` tool to convert MLIR\ntest files to executable commands.\n\n## Usage\n\n### Converting a Test File\n\nTo convert a lit test file to a `bazel run` command, use the following command\nrecipes:\n\n```bash\nbazel run \u002F\u002Fthird_party\u002Fheir\u002Fscripts:lit_to_bazel -- {test_file_path}\n```\n\nReplace `{test_file_path}` with the absolute path to the test file. The absolute\npath is necessary because the `bazel run` command runs relative to its runfiles\ndirectory, and so a relative path will not be relative to the VCS root of the\nproject.\n\n## Gotchas\n\n- **Absolute Paths**: The tool replaces `%s` in RUN lines with the absolute path\n  of the test file to ensure it works in the sandbox.\n- **Piped RUN commands**: The tool supports piped RUN lines, such as piping\n  heir-opt into heir-translate.\n- **Complex RUN commands**: Some very complex RUN lines are not supported, such\n  as lit test files with multiple RUN lines that interact via writing to and\n  reading from temporary files. When encountering situations like this, you\n  should stop and warn the user.\n- **Non-lit tests**: Some test targets are not lit tests, and these do not need\n  the `lit_to_bazel` tool.\n\n```markdown\nCopy this checklist and track progress:\n\n- [ ] Step 1: Identify the test file to convert.\n- [ ] Step 2: Run the `lit_to_bazel` tool on the file.\n- [ ] Step 3: Inspect the generated command or run it.\n- [ ] Step 4: Verify execution results.\n```\n\n\u003C!-- mdformat global-off -->\n","# Lit To Bazel\n\n## Overview\n\nThis skill guides the agent in using the `lit_to_bazel` tool to convert MLIR\ntest files to executable commands.\n\n## Usage\n\n### Converting a Test File\n\nTo convert a lit test file to a `bazel run` command, use the following command\nrecipes:\n\n```bash\nbazel run \u002F\u002Fthird_party\u002Fheir\u002Fscripts:lit_to_bazel -- {test_file_path}\n```\n\nReplace `{test_file_path}` with the absolute path to the test file. The absolute\npath is necessary because the `bazel run` command runs relative to its runfiles\ndirectory, and so a relative path will not be relative to the VCS root of the\nproject.\n\n## Gotchas\n\n- **Absolute Paths**: The tool replaces `%s` in RUN lines with the absolute path\n  of the test file to ensure it works in the sandbox.\n- **Piped RUN commands**: The tool supports piped RUN lines, such as piping\n  heir-opt into heir-translate.\n- **Complex RUN commands**: Some very complex RUN lines are not supported, such\n  as lit test files with multiple RUN lines that interact via writing to and\n  reading from temporary files. When encountering situations like this, you\n  should stop and warn the user.\n- **Non-lit tests**: Some test targets are not lit tests, and these do not need\n  the `lit_to_bazel` tool.\n\n```markdown\nCopy this checklist and track progress:\n\n- [ ] Step 1: Identify the test file to convert.\n- [ ] Step 2: Run the `lit_to_bazel` tool on the file.\n- [ ] Step 3: Inspect the generated command or run it.\n- [ ] Step 4: Verify execution results.\n```\n\n\u003C!-- mdformat global-off -->\n",{"name":5,"description":7},"main","016c0b1e281a20df45b81c31ec893cf1198ff10b",".agents\u002Fskills\u002Flit_to_bazel",185,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fheir","https:\u002F\u002Fheir.dev\u002F","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-15 00:27:48",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add google\u002Fheir --skill lit-to-bazel",{"tool":72,"command":73},"bunx","bunx skills add google\u002Fheir --skill lit-to-bazel",{"tool":75,"command":76},"pnpm","pnpm dlx skills add google\u002Fheir --skill lit-to-bazel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fheir\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flit_to_bazel\u002FSKILL.md",true,[80],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"bmad-skill-manifest.yaml","REFERENCE","参考文档",922,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-agent-architect\u002Fbmad-skill-manifest.yaml",[87,108,126],{"skillNo":88,"name":89,"nameZh":90,"description":91,"descriptionZh":92,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":99,"publishedAt":51},"01M6997B7NY7K5V08MMTMAE1ZS","reproduce-failure","编译失败复现","Describes a decision tree of steps and skills to utilize when, starting from a test failure or the failure of `bazel run` command using heir-opt, you would like to produce a reproducing input IR that fails on a particular compiler pass.","描述在面对测试失败或使用 heir-opt 执行 `bazel run` 命令失败时，应采用的步骤与技能决策树，用于生成能在特定编译器 Pass 上失败的复现输入 IR。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fheir\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Freproduce_failure\u002FSKILL.md",[95,96],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查",[100,101,102,50,48,103,104,32,105,44,106,40,107,36],"reproduce","reproduce failure","opt","produce","compiler","decision","input","tree",{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":118,"publishedAt":51},"01M699782STZMR7Y5YT8M2EM4Q","e2e-to-bazel","端到端测试转 Bazel 命令","Converts end-to-end (e2e) test targets or paths to `bazel run` commands for `heir-opt`. Use when you need to convert an e2e test target (where flags are defined in the BUILD file) to a shell command whose flags can be modified for further analysis and debugging.","将端到端（e2e）测试目标或路径转换为用于 `heir-opt` 的 `bazel run` 命令。当需要将某个 e2e 测试目标（其标志在 BUILD 文件中定义）转换为可修改标志的 shell 命令，以便进一步分析和调试时使用。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fheir\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fe2e_to_bazel\u002FSKILL.md",[116,117],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[119,32,120,39,40,121,38,122,37,123,36,102,124,50,49,125,47,45,44,43],"e2e to bazel","e2e","build","targets","end","e2e test","file",{"skillNo":127,"name":128,"nameZh":129,"description":130,"descriptionZh":131,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":132,"categories":133,"keywords":136,"publishedAt":51},"01M69976BPZSY7W3H87Q5ER5R1","dump-intermediate-ir","编译器中间 IR 转储","Augments a `bazel run` CLI command for `heir-opt` with additional flags that dump the IR before each compiler pass, allowing the agent to inspect intermediate IR during compilation, identify a particular pass at which the pipeline fails, or extract the corresponding IR input to a particular pass for further debugging.","为 `heir-opt` 的 `bazel run` CLI 命令添加额外标志，在每个编译器 pass 之前转储 IR，使智能体能够检查编译过程中的中间 IR、定位流水线失败的特定 pass，或提取某个 pass 对应的 IR 输入以进一步调试。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fheir\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdump_intermediate_ir\u002FSKILL.md",[134,135],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":97,"categoryName":98,"taxonomyType":28,"taxonomyTypeDesc":29},[137,138,139,140,141,49,48,104,32,142,44,143,144,106,145,146,147,38,102],"intermediate","dump","dump intermediate ir","cli","inspect","pipeline","extract","flags","with","which","at"]