[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ACCKMYNAYBF9NAVTT18S4A":3,"skill-same:01M6ACCKMYNAYBF9NAVTT18S4A":72},{"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":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":17,"updatedAt":57,"install":58,"resources":71},"01M6ACCKMYNAYBF9NAVTT18S4A","be-code-style","BE C++代码格式化","Fix BE (C++) code formatting issues using clang-format","使用 clang-format 修复 BE（C++）代码格式问题","apache\u002Fdoris","apache","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F47359?v=4","01M6AC83E6K4FDKK7HZ8WNMQKE","The Apache Software Foundation","01M6ACCEGVA78JF5SFGHJXS1H0",16216,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fbe-code-style\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRXQPYT60FQ3976GDV4Q","C++ 开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43],"code style","code","be code style","be code","style","issues","format","fix","opencode","c++","formatting","clang","code formatting","2026-11-10 10:12:30",false,"---\nname: be-code-style\ndescription: Fix BE (C++) code formatting issues using clang-format\ncompatibility: opencode\n---\n\n## What I do\n\nFix C++ code formatting issues in the BE and Cloud modules using the project's clang-format configuration (v16).\n\n## When to use me\n\n- Before committing BE\u002FCloud C++ code changes\n- When CI reports clang-format failures\n- When you need to check or fix C++ code style\n\n## Prerequisites\n\nYou need to confirm that the major version of the called clang-format is 16. If the current environment's default does not meet this requirement, try the following:\n\n1. If `.vscode\u002Fsettings.json` exists, use the clang-format.executable item in it.\n2. If it is a worktree directory, use the `.vscode\u002Fsettings.json` from the main directory.\n3. Check the path to the compiler toolchain by trying to find it from the `PATH` environment variable, the current directory, and the main directory's `custom_env.sh`. Look for a clang-format with the major version number 16 in that path and its parent directory.\n\n## Procedure\n\n### Step 1: Auto-fix formatting\n\nRun the project's formatting script, which enforces clang-format v16:\n\n```bash\nbuild-support\u002Fclang-format.sh\n```\n\nThis formats all C++ files under `be\u002Fsrc`, `be\u002Ftest`, `cloud\u002Fsrc`, `cloud\u002Ftest` in-place, respecting `.clang-format` and `.clang-format-ignore`.\n\n**Important**: Always use this script instead of invoking `clang-format` directly. The script checks that clang-format version 16 is installed and exits with an error if the wrong version is found. Using a different version will produce inconsistent formatting.\n\n### Step 2: Check-only (no modification)\n\nTo verify formatting without modifying files:\n\n```bash\nbuild-support\u002Fcheck-format.sh\n```\n\nThis outputs a diff of any formatting violations and exits non-zero if there are any.\n\n### Step 3: Review and commit\n\nAfter running `clang-format.sh`, review the changes with `git diff` to verify only formatting was changed, then stage and commit.\n\n## Key Configuration\n\n| File | Purpose |\n|------|---------|\n| `.clang-format` | Main formatting rules (Google-based, 100 col, 4-space indent) |\n| `.clang-format-ignore` | Files excluded from formatting (third-party, generated) |\n| `build-support\u002Frun_clang_format.py` | Python wrapper for parallel execution |\n\n## Excluded Directories\n\nThe following are excluded from formatting (see `.clang-format-ignore`):\n\n- `be\u002Fsrc\u002Fapache-orc\u002F*`, `be\u002Fsrc\u002Fclucene\u002F*`, `be\u002Fsrc\u002Fgutil\u002F*`\n- `be\u002Fsrc\u002Fglibc-compatibility\u002F*`\n- Specific third-party vendored files (mustache, sse2neon, utf8_check)\n- `cloud\u002Fsrc\u002Fcommon\u002Fdefer.h`\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| `clang-format not found` | Install clang-format v16 or set `CLANG_FORMAT_BINARY` env var |\n| `version is not 16` | Install clang-format v16; on macOS: `brew install llvm@16` |\n| Files not being formatted | Check `.clang-format-ignore` for exclusions |\n","## What I do\n\nFix C++ code formatting issues in the BE and Cloud modules using the project's clang-format configuration (v16).\n\n## When to use me\n\n- Before committing BE\u002FCloud C++ code changes\n- When CI reports clang-format failures\n- When you need to check or fix C++ code style\n\n## Prerequisites\n\nYou need to confirm that the major version of the called clang-format is 16. If the current environment's default does not meet this requirement, try the following:\n\n1. If `.vscode\u002Fsettings.json` exists, use the clang-format.executable item in it.\n2. If it is a worktree directory, use the `.vscode\u002Fsettings.json` from the main directory.\n3. Check the path to the compiler toolchain by trying to find it from the `PATH` environment variable, the current directory, and the main directory's `custom_env.sh`. Look for a clang-format with the major version number 16 in that path and its parent directory.\n\n## Procedure\n\n### Step 1: Auto-fix formatting\n\nRun the project's formatting script, which enforces clang-format v16:\n\n```bash\nbuild-support\u002Fclang-format.sh\n```\n\nThis formats all C++ files under `be\u002Fsrc`, `be\u002Ftest`, `cloud\u002Fsrc`, `cloud\u002Ftest` in-place, respecting `.clang-format` and `.clang-format-ignore`.\n\n**Important**: Always use this script instead of invoking `clang-format` directly. The script checks that clang-format version 16 is installed and exits with an error if the wrong version is found. Using a different version will produce inconsistent formatting.\n\n### Step 2: Check-only (no modification)\n\nTo verify formatting without modifying files:\n\n```bash\nbuild-support\u002Fcheck-format.sh\n```\n\nThis outputs a diff of any formatting violations and exits non-zero if there are any.\n\n### Step 3: Review and commit\n\nAfter running `clang-format.sh`, review the changes with `git diff` to verify only formatting was changed, then stage and commit.\n\n## Key Configuration\n\n| File | Purpose |\n|------|---------|\n| `.clang-format` | Main formatting rules (Google-based, 100 col, 4-space indent) |\n| `.clang-format-ignore` | Files excluded from formatting (third-party, generated) |\n| `build-support\u002Frun_clang_format.py` | Python wrapper for parallel execution |\n\n## Excluded Directories\n\nThe following are excluded from formatting (see `.clang-format-ignore`):\n\n- `be\u002Fsrc\u002Fapache-orc\u002F*`, `be\u002Fsrc\u002Fclucene\u002F*`, `be\u002Fsrc\u002Fgutil\u002F*`\n- `be\u002Fsrc\u002Fglibc-compatibility\u002F*`\n- Specific third-party vendored files (mustache, sse2neon, utf8_check)\n- `cloud\u002Fsrc\u002Fcommon\u002Fdefer.h`\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| `clang-format not found` | Install clang-format v16 or set `CLANG_FORMAT_BINARY` env var |\n| `version is not 16` | Install clang-format v16; on macOS: `brew install llvm@16` |\n| Files not being formatted | Check `.clang-format-ignore` for exclusions |\n",{"name":5,"description":7,"compatibility":39},"master","8e10b235cf030d486b6840cfd64b6218ab515e6d",".claude\u002Fskills\u002Fbe-code-style",4021,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris","https:\u002F\u002Fdoris.apache.org","https:\u002F\u002Fgithub.com\u002Fapache","https:\u002F\u002Fwww.apache.org\u002F","2026-11-14 23:19:36",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add apache\u002Fdoris --skill be-code-style",{"tool":64,"command":65},"bunx","bunx skills add apache\u002Fdoris --skill be-code-style",{"tool":67,"command":68},"pnpm","pnpm dlx skills add apache\u002Fdoris --skill be-code-style","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fbe-code-style\u002FSKILL.md",true,[],[73,89,112,127],{"skillNo":74,"name":75,"nameZh":76,"description":77,"descriptionZh":78,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":79,"categories":80,"keywords":85,"publishedAt":44},"01M6ACD1DMYFDN35VTW0XXTT9D","fe-code-style","FE Java 代码风格修复","Fix FE (Java) code style issues using Checkstyle","使用 Checkstyle 修复 FE（Java）代码风格问题","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Ffe-code-style\u002FSKILL.md",[81,82],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":83,"categoryName":84,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[32,31,86,35,36,87,38,39,88],"fe code style","java","checkstyle",{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":103,"publishedAt":44},"01M6ACCYN7KSG5HW2DJQV9KQVN","doris-docker-regression","Doris Docker 回归测试","Run Doris docker-based regression tests from a clean package","从干净的安装包运行基于 Docker 的 Doris 回归测试","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fdoris-docker-regression\u002FSKILL.md",[97,100],{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":101,"categoryName":102,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[104,105,106,107,108,109,110,39,111],"docker","doris docker regression","doris","regression","tests","run","clean","package",{"skillNo":113,"name":114,"nameZh":115,"description":116,"descriptionZh":117,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":122,"publishedAt":44},"01M6ACCVT0JJA0J15W3ERJ17FX","code-review","Doris 代码审查","Review code with Doris-specific checklists","使用 Doris 专项检查清单审查代码","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fcode-review\u002FSKILL.md",[120,121],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":83,"categoryName":84,"taxonomyType":28,"taxonomyTypeDesc":29},[123,32,124,125,39,126,106],"code review","review","with","review code",{"skillNo":128,"name":129,"nameZh":130,"description":131,"descriptionZh":132,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":133,"categories":134,"keywords":137,"publishedAt":44},"01M6ACCS6GWR9FSEMARV8WS0CC","clang-tidy-check","clang-tidy代码检查","Run clang-tidy on newly added\u002Fmodified BE C++ code","对新添加\u002F修改的 BE C++ 代码运行 clang-tidy","https:\u002F\u002Fgithub.com\u002Fapache\u002Fdoris\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fclang-tidy-check\u002FSKILL.md",[135,136],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[42,138,139,140,109,40,39,32],"check","tidy","clang tidy check"]