[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699G4NG1GVGM4FCDJMH4RKJ":3,"skill-same:01M699G4NG1GVGM4FCDJMH4RKJ":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M699G4NG1GVGM4FCDJMH4RKJ","pr-review-comments",null,"Guide for submitting\u002Fposting inline PR review comments to GitHub. Use this when you need to post code review comments on specific lines of a Pull Request.","microsoft\u002Fsemantic-link-labs","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699FKMT63C17BFNH8WHZN2K",600,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-review-comments\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"review","pr review comments","pr review","pr","comments","when","code review","request","inline","for","you","post","posting","use","guide","pull","code","pull request","github","2026-11-10 10:12:30",false,"---\nname: pr-review-comments\ndescription: Guide for submitting\u002Fposting inline PR review comments to GitHub. Use this when you need to post code review comments on specific lines of a Pull Request.\n---\n\n# Posting Inline PR Review Comments to GitHub\n\nThis skill documents how to post inline review comments to GitHub Pull Requests using the GitHub CLI (`gh`) and GitHub API. Inline comments appear directly on specific lines of code in the PR diff, making it easier for PR authors to identify and address issues.\n\n## When to Use This Skill\n\nUse this skill when you need to:\n- Post inline review comments on specific lines of a PR\n- Automate code review feedback with targeted comments\n- Submit batch review comments via the GitHub API\n\n---\n\n## Prerequisites\n\n1. **GitHub CLI installed**: Check with `gh --version`\n   - If not installed on Linux:\n     ```bash\n     curl -fsSL https:\u002F\u002Fcli.github.com\u002Fpackages\u002Fgithubcli-archive-keyring.gpg | sudo dd of=\u002Fusr\u002Fshare\u002Fkeyrings\u002Fgithubcli-archive-keyring.gpg\n     sudo chmod go+r \u002Fusr\u002Fshare\u002Fkeyrings\u002Fgithubcli-archive-keyring.gpg\n     echo \"deb [arch=$(dpkg --print-architecture) signed-by=\u002Fusr\u002Fshare\u002Fkeyrings\u002Fgithubcli-archive-keyring.gpg] https:\u002F\u002Fcli.github.com\u002Fpackages stable main\" | sudo tee \u002Fetc\u002Fapt\u002Fsources.list.d\u002Fgithub-cli.list > \u002Fdev\u002Fnull\n     sudo apt update && sudo apt install gh -y\n     ```\n\n2. **GitHub CLI authenticated**: Check with `gh auth status`\n   - If not authenticated: `gh auth login -h github.com -p https --web`\n   - Follow the device code flow to complete authentication\n\n---\n\n## Method: Using GitHub API with JSON Payload\n\n### Step 1: Get the PR's Head Commit SHA\n\n```bash\nCOMMIT_SHA=$(gh api repos\u002F{OWNER}\u002F{REPO}\u002Fpulls\u002F{PR_NUMBER} --jq '.head.sha')\necho \"Commit SHA: $COMMIT_SHA\"\n```\n\n### Step 2: Create the Review JSON Payload\n\nCreate a JSON file with the review comments. Each comment needs:\n- `path`: The file path relative to repository root\n- `line`: The line number in the **new version** of the file (right side of diff)\n- `body`: The comment content (supports Markdown)\n\n```bash\ncat > \u002Ftmp\u002Freview.json \u003C\u003C 'EOF'\n{\n  \"commit_id\": \"YOUR_COMMIT_SHA_HERE\",\n  \"event\": \"COMMENT\",\n  \"comments\": [\n    {\n      \"path\": \"src\u002Fpath\u002Fto\u002Ffile.py\",\n      \"line\": 40,\n      \"body\": \"? **Critical:** Description of the issue.\\n\\n**Suggested fix:**\\n```python\\n# your code here\\n```\"\n    },\n    {\n      \"path\": \"src\u002Fpath\u002Fto\u002Fanother_file.py\",\n      \"line\": 21,\n      \"body\": \"? **Minor:** Another issue description.\"\n    }\n  ]\n}\nEOF\n```\n\n### Step 3: Post the Review\n\n```bash\ngh api repos\u002F{OWNER}\u002F{REPO}\u002Fpulls\u002F{PR_NUMBER}\u002Freviews --method POST --input \u002Ftmp\u002Freview.json\n```\n\n---\n\n## Important Notes\n\n### Line Numbers\n- The `line` field refers to the line number in the **new version** of the file (right side of the diff)\n- For deleted lines, use `side: \"LEFT\"` and the line number from the old version\n- Make sure the line number exists in the diff, otherwise the API will reject the comment\n\n### Event Types\n| Event | Description |\n|-------|-------------|\n| `\"COMMENT\"` | Just add comments without approving\u002Frequesting changes |\n| `\"APPROVE\"` | Approve the PR with comments |\n| `\"REQUEST_CHANGES\"` | Request changes with comments |\n\n### Comment Body Formatting\n- Supports full GitHub Markdown\n- Use `\\n` for newlines in JSON\n- Escape special characters properly\n- Use emoji prefixes for severity: ? Critical\u002FHigh, ? Medium\u002FMinor, ? Suggestion\n\n### Multi-line Comments\n\nFor commenting on a range of lines:\n\n```json\n{\n  \"path\": \"src\u002Ffile.py\",\n  \"start_line\": 10,\n  \"line\": 15,\n  \"body\": \"This comment spans lines 10-15\"\n}\n```\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| **\"Validation Failed\" error** | Check that the line number exists in the PR diff; verify the file path is correct |\n| **\"Resource not accessible\" error** | Ensure you have write access to the repository; re-authenticate with `gh auth login` |\n| **Comments not appearing on specific lines** | The line must be part of the diff (added, modified, or within context lines) |\n\n---\n\n## Alternative: Using `gh pr review` Command\n\nFor simpler reviews without inline comments:\n\n```bash\ngh pr review {PR_NUMBER} --repo {OWNER}\u002F{REPO} --comment --body \"Your review comment here\"\n```\n\nThis posts a general review comment but does **not** support inline comments on specific lines.\n\n---\n\n## Repository-Specific Information\n\n- **Repository**: `microsoft\u002Fsemantic-link-labs`\n- **Common file paths**:\n  - `src\u002Fsempy_labs\u002F{module}\u002F_items.py`\n  - `src\u002Fsempy_labs\u002F{module}\u002F__init__.py`\n- **Review comment conventions**:\n  - Use severity emojis: ? Critical, ? Medium, ? Minor\n  - Include \"Suggested fix\" with code blocks\n  - Reference specific line numbers\n\n---\n\n## Examples\n\nSee the [examples\u002F](examples\u002F) folder for complete working scripts:\n\n- [post_pr1059_review.sh](examples\u002Fpost_pr1059_review.sh) - Example script posting inline review comments to PR #1059\n","# Posting Inline PR Review Comments to GitHub\n\nThis skill documents how to post inline review comments to GitHub Pull Requests using the GitHub CLI (`gh`) and GitHub API. Inline comments appear directly on specific lines of code in the PR diff, making it easier for PR authors to identify and address issues.\n\n## When to Use This Skill\n\nUse this skill when you need to:\n- Post inline review comments on specific lines of a PR\n- Automate code review feedback with targeted comments\n- Submit batch review comments via the GitHub API\n\n---\n\n## Prerequisites\n\n1. **GitHub CLI installed**: Check with `gh --version`\n   - If not installed on Linux:\n     ```bash\n     curl -fsSL https:\u002F\u002Fcli.github.com\u002Fpackages\u002Fgithubcli-archive-keyring.gpg | sudo dd of=\u002Fusr\u002Fshare\u002Fkeyrings\u002Fgithubcli-archive-keyring.gpg\n     sudo chmod go+r \u002Fusr\u002Fshare\u002Fkeyrings\u002Fgithubcli-archive-keyring.gpg\n     echo \"deb [arch=$(dpkg --print-architecture) signed-by=\u002Fusr\u002Fshare\u002Fkeyrings\u002Fgithubcli-archive-keyring.gpg] https:\u002F\u002Fcli.github.com\u002Fpackages stable main\" | sudo tee \u002Fetc\u002Fapt\u002Fsources.list.d\u002Fgithub-cli.list > \u002Fdev\u002Fnull\n     sudo apt update && sudo apt install gh -y\n     ```\n\n2. **GitHub CLI authenticated**: Check with `gh auth status`\n   - If not authenticated: `gh auth login -h github.com -p https --web`\n   - Follow the device code flow to complete authentication\n\n---\n\n## Method: Using GitHub API with JSON Payload\n\n### Step 1: Get the PR's Head Commit SHA\n\n```bash\nCOMMIT_SHA=$(gh api repos\u002F{OWNER}\u002F{REPO}\u002Fpulls\u002F{PR_NUMBER} --jq '.head.sha')\necho \"Commit SHA: $COMMIT_SHA\"\n```\n\n### Step 2: Create the Review JSON Payload\n\nCreate a JSON file with the review comments. Each comment needs:\n- `path`: The file path relative to repository root\n- `line`: The line number in the **new version** of the file (right side of diff)\n- `body`: The comment content (supports Markdown)\n\n```bash\ncat > \u002Ftmp\u002Freview.json \u003C\u003C 'EOF'\n{\n  \"commit_id\": \"YOUR_COMMIT_SHA_HERE\",\n  \"event\": \"COMMENT\",\n  \"comments\": [\n    {\n      \"path\": \"src\u002Fpath\u002Fto\u002Ffile.py\",\n      \"line\": 40,\n      \"body\": \"? **Critical:** Description of the issue.\\n\\n**Suggested fix:**\\n```python\\n# your code here\\n```\"\n    },\n    {\n      \"path\": \"src\u002Fpath\u002Fto\u002Fanother_file.py\",\n      \"line\": 21,\n      \"body\": \"? **Minor:** Another issue description.\"\n    }\n  ]\n}\nEOF\n```\n\n### Step 3: Post the Review\n\n```bash\ngh api repos\u002F{OWNER}\u002F{REPO}\u002Fpulls\u002F{PR_NUMBER}\u002Freviews --method POST --input \u002Ftmp\u002Freview.json\n```\n\n---\n\n## Important Notes\n\n### Line Numbers\n- The `line` field refers to the line number in the **new version** of the file (right side of the diff)\n- For deleted lines, use `side: \"LEFT\"` and the line number from the old version\n- Make sure the line number exists in the diff, otherwise the API will reject the comment\n\n### Event Types\n| Event | Description |\n|-------|-------------|\n| `\"COMMENT\"` | Just add comments without approving\u002Frequesting changes |\n| `\"APPROVE\"` | Approve the PR with comments |\n| `\"REQUEST_CHANGES\"` | Request changes with comments |\n\n### Comment Body Formatting\n- Supports full GitHub Markdown\n- Use `\\n` for newlines in JSON\n- Escape special characters properly\n- Use emoji prefixes for severity: ? Critical\u002FHigh, ? Medium\u002FMinor, ? Suggestion\n\n### Multi-line Comments\n\nFor commenting on a range of lines:\n\n```json\n{\n  \"path\": \"src\u002Ffile.py\",\n  \"start_line\": 10,\n  \"line\": 15,\n  \"body\": \"This comment spans lines 10-15\"\n}\n```\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| **\"Validation Failed\" error** | Check that the line number exists in the PR diff; verify the file path is correct |\n| **\"Resource not accessible\" error** | Ensure you have write access to the repository; re-authenticate with `gh auth login` |\n| **Comments not appearing on specific lines** | The line must be part of the diff (added, modified, or within context lines) |\n\n---\n\n## Alternative: Using `gh pr review` Command\n\nFor simpler reviews without inline comments:\n\n```bash\ngh pr review {PR_NUMBER} --repo {OWNER}\u002F{REPO} --comment --body \"Your review comment here\"\n```\n\nThis posts a general review comment but does **not** support inline comments on specific lines.\n\n---\n\n## Repository-Specific Information\n\n- **Repository**: `microsoft\u002Fsemantic-link-labs`\n- **Common file paths**:\n  - `src\u002Fsempy_labs\u002F{module}\u002F_items.py`\n  - `src\u002Fsempy_labs\u002F{module}\u002F__init__.py`\n- **Review comment conventions**:\n  - Use severity emojis: ? Critical, ? Medium, ? Minor\n  - Include \"Suggested fix\" with code blocks\n  - Reference specific line numbers\n\n---\n\n## Examples\n\nSee the [examples\u002F](examples\u002F) folder for complete working scripts:\n\n- [post_pr1059_review.sh](examples\u002Fpost_pr1059_review.sh) - Example script posting inline review comments to PR #1059\n",{"name":5,"description":7},"main","2ddf46109c1209ceffa88149f4631e7b2275f9a1",".claude\u002Fskills\u002Fpr-review-comments",204,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-13 04:54:42",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add microsoft\u002Fsemantic-link-labs --skill pr-review-comments",{"tool":63,"command":64},"bunx","bunx skills add microsoft\u002Fsemantic-link-labs --skill pr-review-comments",{"tool":66,"command":67},"pnpm","pnpm dlx skills add microsoft\u002Fsemantic-link-labs --skill pr-review-comments","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-review-comments\u002FSKILL.md",true,[71],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"examples\u002Fpost_pr1059_review.sh","SCRIPT","脚本",1709,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-review-comments\u002Fexamples\u002Fpost_pr1059_review.sh",[78,105,137,154,171,184],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":95,"publishedAt":43},"01M699GKE0WWT6YVHBS06KM8AH","write-tests","Guide for writing unit tests. Use this when creating tests to verify Python logic.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwrite-tests\u002FSKILL.md",[84,87,90],{"categoryNo":85,"categoryName":86,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":88,"categoryName":89,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":91,"categoryName":92,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[96,97,98,33,99,29,100,101,102,103,37,38,104],"write tests","write","tests","unit","logic","writing","python","unit tests","verify",{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":120,"publishedAt":43},"01M699GGVJHWCJNW68P08VWCMA","ui-styling","Guide for the visual style, structure, and shared building blocks used by Semantic Link Labs interactive UI tools (HTML widgets and anywidget-based widgets). Use this when adding a new interactive UI, modifying an existing one, or adding shared visual components.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fui-styling\u002FSKILL.md",[111,114,117],{"categoryNo":112,"categoryName":113,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",{"categoryNo":115,"categoryName":116,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":118,"categoryName":119,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000032","设计师",[121,122,123,37,124,125,126,38,127,128,129,130,131,132,133,134,135,33,136,29],"ui styling","ui","styling","visual","structure","html","interactive","Building Blocks","Tools","components","shared","widgets","style","visual style","blocks","Existing",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":43},"01M699GEZ3YRK8PCPVZF4NEEWF","tom-operations","Guide for working with the TOM (Tabular Object Model) wrapper. Use this when modifying semantic models programmatically.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftom-operations\u002FSKILL.md",[],[144,145,38,146,33,147,148,149,150,151,37,29,152,153],"operations","tom operations","tabular","object","with","semantic","models","Wrapper","model","semantic models",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":166,"publishedAt":43},"01M699GCWWBZM2XFNW5PTGRFJP","sql_to_dax","Guide for translating SQL aggregation expressions into DAX measures.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsql_to_dax\u002FSKILL.md",[160,163],{"categoryNo":161,"categoryName":162,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":164,"categoryName":165,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000033","数据分析师",[167,168,169,33,38,170],"sql","sql to dax","dax","aggregation",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":43},"01M699GAY10VVK66E4QGT94A93","run-tests","Guide for running pytest tests locally. Use this when running tests to verify code changes.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frun-tests\u002FSKILL.md",[],[98,178,179,33,180,37,38,104,181,40,182,183,29],"run","run tests","pytest","running tests","changes","running",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":194,"publishedAt":43},"01M699G8V718EXYE8BR7NX734G","rest-api-patterns","Guide for implementing REST API wrapper functions. Use this when adding new API wrappers or troubleshooting API calls.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fsemantic-link-labs\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frest-api-patterns\u002FSKILL.md",[190,191],{"categoryNo":161,"categoryName":162,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":192,"categoryName":193,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000030","开发工程师",[195,196,197,198,199,200,33,29,201,202,203,151,37,38,204],"REST","api patterns","rest api","rest api patterns","api","patterns","implementing","calls","functions","troubleshooting"]