[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EC1CC0C603VMMSDBSB1ZCB":3,"skill-same:01M7EC1CC0C603VMMSDBSB1ZCB":52},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7EC1CC0C603VMMSDBSB1ZCB","open-code-review",null,"Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba\u002Fopen-code-review. Use when the user asks to review code, review a pull request, review staged\u002Funstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply fixes when requested. With appropriate review rules, can detect various types of issues including bugs, security vulnerabilities, performance problems, and code quality concerns.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fopen-code-review\u002Fskills\u002Fopen-code-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: open-code-review\ndescription: >\n  Performs AI-powered code review on Git changes using the `ocr` CLI from\n  alibaba\u002Fopen-code-review. Use when the user asks to review code, review\n  a pull request, review staged\u002Funstaged changes, review a commit, or\n  compare branches for code quality issues. Produces line-level review\n  comments and can automatically apply fixes when requested. With appropriate\n  review rules, can detect various types of issues including bugs, security\n  vulnerabilities, performance problems, and code quality concerns.\nlicense: Apache-2.0\ncompatibility: >\n  Requires the `ocr` CLI installed (via `npm install -g\n  @alibaba-group\u002Fopen-code-review` or GitHub release binary). Requires a\n  configured supported LLM provider before first run (protocols: Anthropic,\n  OpenAI Chat Completions, OpenAI Responses, AWS Bedrock).\nmetadata:\n  author: alibaba\n  homepage: https:\u002F\u002Fgithub.com\u002Falibaba\u002Fopen-code-review\n  version: \"1.0.0\"\n---\n\n# Open Code Review\n\nA skill for invoking [open-code-review](https:\u002F\u002Fgithub.com\u002Falibaba\u002Fopen-code-review) (`ocr`) — an open-source AI code review CLI that reads Git diffs and generates structured, line-level review comments.\n\n## Workflow\n\n### Step 1: Gather Business Context\n\nAnalyze the review target (commits, branch, or changes) to extract concise business context. Pass this context via `--background` to improve review quality.\n\n### Step 2: Run Code Review\n\n**Do not pre-check whether `ocr` is installed** — skip probes like `command -v ocr` or `ocr --version`. Assume the CLI is available and run the review directly; that saves a tool call on the common path. Only if the review fails with `command not found` should you install it per Troubleshooting.\n\nRun the OCR command with appropriate flags. **Always pass business context via `--background`** when available:\n\n```bash\nocr review --audience agent --background \"business context here\" [user-args]\n```\n\n**Argument handling:**\n\n- **Background context** (RECOMMENDED): use `--background \"context\"` or `-b \"context\"` to provide business context for better review quality\n- **Default** (no user arguments): reviews staged, unstaged, and untracked changes (workspace mode)\n- **Specific commit**: use `--commit` or `-c` to review a single commit against its parent\n- **Branch comparison**: use `--from \u003Cref>` and `--to \u003Cref>` to review diff between two refs\n- **Timeout**: effective timeout per review group = `--timeout` × review rounds. Default `--timeout 15` with default effort `medium` (2 rounds) gives 30 minutes; `low`\u002F`high` give 15\u002F45 minutes.\n- **Concurrency**: default concurrency is 8 file workers; reduce with `--concurrency \u003Cn>` if rate limits are hit\n- **Preview mode**: use `--preview` or `-p` to preview which files will be reviewed without running the LLM\n- **Output file**: use `--output \u003Cpath>` to write the full result to a file instead of stdout. If the command fails with `unknown flag: --output`, do not continue the review with plain stdout. Ask the user whether to upgrade (`npm i -g @alibaba-group\u002Fopen-code-review@latest`) and wait for the answer before proceeding. After the user confirms and the upgrade succeeds, rerun with `--output`.\n- **Installation**: if `ocr` command is not found, install it by running `npm i -g @alibaba-group\u002Fopen-code-review`\n\n**Common invocation patterns:**\n\n| User says | Command to run |\n|-----------|---------------|\n| \"review my changes\" \u002F \"review the working copy\" | `ocr review --audience agent -b \"context\"` |\n| \"review this PR\" \u002F \"review feature branch\" | `ocr review --audience agent -b \"context\" --from main --to \u003Cbranch>` |\n| \"review commit abc123\" | `ocr review --audience agent -b \"context\" --commit abc123` |\n| \"what would be reviewed?\" (dry-run) | `ocr review --preview` |\n\n**Output mode:**\n\n- Always use `--audience agent` to suppress progress UI and emit only the final summary\n- **Prevent output truncation**: For large reviews or restricted tool environments, pass `--output \u002Ftmp\u002Focr_out.txt` and inspect the file in full via a file reading tool instead of piping stdout through `tail` or `head`, which drops earlier review comments.\n\n**On failure:** If `ocr review` exits non-zero (e.g. an LLM connection error), do not retry blindly — consult the Troubleshooting section below for the matching fix before re-running.\n\n### Step 3: Report\n\nOCR output includes structured `severity` (critical \u002F high \u002F medium \u002F low) and `category` (bug \u002F security \u002F performance \u002F maintainability \u002F test \u002F style \u002F documentation \u002F other) on each comment. Present results grouped by severity, discarding `low` severity items that are likely false positives or nitpicks.\n\n### Step 4: Fix\n\nBefore applying fixes, check whether the user requested automatic fixes:\n\n- If the user explicitly requested \"review and fix\" or similar, proceed with automatic fixes\n- If the user only requested \"review\" without fix intent, ask for permission before applying any changes\n\nWhen fixing issues and suggestions:\n\n- Focus on critical, high, and medium severity items\n- Apply fixes directly to the code when safe and well-defined\n- For complex fixes requiring manual intervention, clearly describe what needs to be done\n- Always verify fixes with the user before committing\n\n## Output Format\n\nEach comment in OCR's output contains:\n\n- `path`: File path\n- `content`: Review comment text\n- `start_line` \u002F `end_line`: Line range (both 0 means positioning failed)\n- `category`: Issue category (bug, security, performance, maintainability, test, style, documentation, other)\n- `severity`: Issue severity (critical, high, medium, low)\n- `suggestion_code`: Optional fix suggestion\n- `existing_code`: Optional original code snippet\n- `thinking`: Optional LLM reasoning process\n\nPresent results grouped by severity using this template:\n\n```markdown\n## Code Review Results\n\n**Files reviewed**: N\n**Issues found**: X critical, Y high, Z medium\n\n### Critical\n\n- **`path\u002Fto\u002Ffile.java:42`** [bug] — Brief description\n  > Recommendation: How to fix\n\n### High\n\n- **`path\u002Fto\u002Ffile.java:26`** [bug] — Brief description\n  > Recommendation: How to fix\n\n### Medium\n\n- **`path\u002Fto\u002Ffile.ts:88`** [performance] — Brief description\n  > Recommendation: How to fix (if applicable)\n```\n\nIf no critical, high, or medium severity issues remain after filtering, state: \"Review complete — no critical, high, or medium issues found in N files.\"\n\n**Handling mispositioned comments:**\n\nWhen `start_line` and `end_line` are both `0`, the comment failed to locate the exact position in the file. In such cases:\n\n1. Read the comment content to understand the issue\n2. Examine the target file mentioned in the comment\n3. Identify the relevant code section based on the comment's context\n4. Apply the fix or suggestion to the correct location\n\n## Custom Review Rules\n\nIf the user wants project-specific rules, OCR resolves them in this priority order:\n\n1. `--rule \u003Cpath>` flag (highest)\n2. `\u003Crepo>\u002F.opencodereview\u002Frule.json`\n3. `~\u002F.opencodereview\u002Frule.json`\n4. Built-in system defaults (lowest)\n\nBy default, the first matching user rule replaces the built-in system rule. Set `merge_system_rule: true` on a rule entry when the matched system rule and user rule should both be included.\n\nRule file format:\n\n```json\n{\n  \"rules\": [\n    {\n      \"path\": \"**\u002F*.java\",\n      \"rule\": \"All new methods must validate required parameters for null\",\n      \"merge_system_rule\": true\n    },\n    {\n      \"path\": \"**\u002F*mapper*.xml\",\n      \"rule\": \"Check SQL for injection risks and missing closing tags\"\n    }\n  ]\n}\n```\n\nTo preview which rule applies to a file before reviewing:\n\n```bash\nocr rules check src\u002Fmain\u002Fjava\u002Fcom\u002Fexample\u002FFoo.java\n```\n\n## Advanced Review Options\n\nBeyond the common flags above, `ocr review` exposes a few groups of controls. Run `ocr review --help` for the complete list.\n\n**Scoping**\n\n- `--exclude '\u003Cpatterns>'` — comma-separated gitignore-style patterns (for example `--exclude '**\u002Fgenerated\u002F*,**\u002Ftestdata\u002F*'`), merged with `rule.json` excludes.\n- `--background-file \u003Cpath>` — read review context from a Markdown file. Takes precedence over `--background`.\n\n**Output**\n\n- `--format text|json|sarif` — `text` (default) for humans; `json` for machine-readable findings; `sarif` for code-scanning integrations such as GitHub Code Scanning.\n\n**Model**\n\n- `--provider \u003Cname>` \u002F `--model \u003Cname>` — override the configured provider\u002Fmodel for this run only (for example, to recheck a diff with a different model; the user names the model, `ocr llm providers` lists the built-ins).\n\n**Budget**\n\n- `--max-tokens \u003Cn>` — per-group prompt ceiling; defaults to the configured value or the template default (`200000`).\n- `--max-tokens-budget \u003Cn>` — cap total input + output tokens for the run. Checked before every LLM round: a group already over budget gets one final round to submit findings, no further groups are dispatched, partial results are still published, and skipped files are reported as `failed(budget)`.\n- `--no-filter` — keep all review comments and skip the LLM post-filtering call.\n\n## Gotchas\n\n- **LLM must be configured first** — `ocr review` will fail loudly if no LLM is reachable. See the Troubleshooting section below if this happens.\n- **Working directory matters** — `ocr review` operates on the Git repo at the current directory. Use `--repo \u002Fpath\u002Fto\u002Frepo` to run from elsewhere.\n- **Untracked files are reviewed in workspace mode** — running bare `ocr review` includes staged, unstaged, *and* untracked changes. Stage selectively if you want narrower scope.\n- **Large diffs may hit token limits** — `MAX_TOKENS` sets the prompt budget (`200000` in the review template; `ocr scan` uses `58888`); conversation context is compressed to stay within this prompt budget. Model output is capped separately by `MAX_COMPLETION_TOKENS` (`16384`). A file whose diff alone exceeds ~80% of `MAX_TOKENS` is skipped before the LLM is called.\n- **Plan phase triggers on either of two thresholds** — a group runs an extra risk-analysis phase before main review when its largest changed file reaches `PLAN_MODE_LINE_THRESHOLD` (default `50`) **or** it holds 2+ files whose combined changed lines reach `PLAN_MODE_GROUP_LINE_THRESHOLD` (default `100`). This adds latency but improves quality.\n- **Don't pass `--audience human`** — it streams progress UI that pollutes output. Always use `--audience agent`.\n- **Comment language follows config** — the `language` config controls review comment language, defaults to `English`, and accepts any language name (for example `English` or `中文`).\n- **Avoid output truncation** — Large review runs produce verbose output. Never pipe command output to `tail` or `head` as it drops review comments from earlier sections. Use `--output \u003Cpath>` and read it in full; on older CLIs, follow the **Output file** guidance above.\n- **Resume an interrupted review** — a failed or interrupted range\u002Fcommit review can be continued with `ocr review --resume \u003Cid>` using the same `--from`\u002F`--to` or `--commit` target (the id is printed as `retry with: --resume \u003Cid>` on failure, or find it with `ocr session list`). Workspace resume is not supported.\n\n## Validation\n\nAfter the review completes, verify success by checking:\n\n1. The command exited with code 0\n2. Comments were generated (or \"No comments generated\" message appears)\n3. Warnings (if any) are displayed in stderr\n\nIf errors occurred, check the stderr warnings for details about which files failed and why.\n\n## Troubleshooting\n\n**`ocr: command not found`**\n\nInstall the CLI:\n\n```bash\nnpm install -g @alibaba-group\u002Fopen-code-review\n```\n\n**`unknown flag: --output`**\n\nThe CLI is older than v1.10.0. Do not continue the review with plain stdout. Ask the user whether to upgrade (`npm i -g @alibaba-group\u002Fopen-code-review@latest`) and wait for the answer before proceeding. After the user confirms and the upgrade succeeds, rerun with `--output`.\n\n**`ocr review` fails with LLM connection error**\n\nPrompt the user to configure an LLM provider.\n\nInteractive setup (recommended):\n\n```bash\nocr config provider\n```\n\nManual setup (alternative):\n\n```bash\nocr config set llm.url https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages\nocr config set llm.auth_token \u003Capi-key>\nocr config set llm.model claude-opus-4-6\nocr config set llm.use_anthropic true\n```\n\nVerify connectivity with `ocr llm test`. Stop here and ask the user to provide credentials — never invent or hardcode API keys.\n\n## References\n\n- Full docs: https:\u002F\u002Fgithub.com\u002Falibaba\u002Fopen-code-review\n- NPM package: https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@alibaba-group\u002Fopen-code-review\n- Issue tracker: https:\u002F\u002Fgithub.com\u002Falibaba\u002Fopen-code-review\u002Fissues\n","# Open Code Review\n\nA skill for invoking [open-code-review](https:\u002F\u002Fgithub.com\u002Falibaba\u002Fopen-code-review) (`ocr`) — an open-source AI code review CLI that reads Git diffs and generates structured, line-level review comments.\n\n## Workflow\n\n### Step 1: Gather Business Context\n\nAnalyze the review target (commits, branch, or changes) to extract concise business context. Pass this context via `--background` to improve review quality.\n\n### Step 2: Run Code Review\n\n**Do not pre-check whether `ocr` is installed** — skip probes like `command -v ocr` or `ocr --version`. Assume the CLI is available and run the review directly; that saves a tool call on the common path. Only if the review fails with `command not found` should you install it per Troubleshooting.\n\nRun the OCR command with appropriate flags. **Always pass business context via `--background`** when available:\n\n```bash\nocr review --audience agent --background \"business context here\" [user-args]\n```\n\n**Argument handling:**\n\n- **Background context** (RECOMMENDED): use `--background \"context\"` or `-b \"context\"` to provide business context for better review quality\n- **Default** (no user arguments): reviews staged, unstaged, and untracked changes (workspace mode)\n- **Specific commit**: use `--commit` or `-c` to review a single commit against its parent\n- **Branch comparison**: use `--from \u003Cref>` and `--to \u003Cref>` to review diff between two refs\n- **Timeout**: effective timeout per review group = `--timeout` × review rounds. Default `--timeout 15` with default effort `medium` (2 rounds) gives 30 minutes; `low`\u002F`high` give 15\u002F45 minutes.\n- **Concurrency**: default concurrency is 8 file workers; reduce with `--concurrency \u003Cn>` if rate limits are hit\n- **Preview mode**: use `--preview` or `-p` to preview which files will be reviewed without running the LLM\n- **Output file**: use `--output \u003Cpath>` to write the full result to a file instead of stdout. If the command fails with `unknown flag: --output`, do not continue the review with plain stdout. Ask the user whether to upgrade (`npm i -g @alibaba-group\u002Fopen-code-review@latest`) and wait for the answer before proceeding. After the user confirms and the upgrade succeeds, rerun with `--output`.\n- **Installation**: if `ocr` command is not found, install it by running `npm i -g @alibaba-group\u002Fopen-code-review`\n\n**Common invocation patterns:**\n\n| User says | Command to run |\n|-----------|---------------|\n| \"review my changes\" \u002F \"review the working copy\" | `ocr review --audience agent -b \"context\"` |\n| \"review this PR\" \u002F \"review feature branch\" | `ocr review --audience agent -b \"context\" --from main --to \u003Cbranch>` |\n| \"review commit abc123\" | `ocr review --audience agent -b \"context\" --commit abc123` |\n| \"what would be reviewed?\" (dry-run) | `ocr review --preview` |\n\n**Output mode:**\n\n- Always use `--audience agent` to suppress progress UI and emit only the final summary\n- **Prevent output truncation**: For large reviews or restricted tool environments, pass `--output \u002Ftmp\u002Focr_out.txt` and inspect the file in full via a file reading tool instead of piping stdout through `tail` or `head`, which drops earlier review comments.\n\n**On failure:** If `ocr review` exits non-zero (e.g. an LLM connection error), do not retry blindly — consult the Troubleshooting section below for the matching fix before re-running.\n\n### Step 3: Report\n\nOCR output includes structured `severity` (critical \u002F high \u002F medium \u002F low) and `category` (bug \u002F security \u002F performance \u002F maintainability \u002F test \u002F style \u002F documentation \u002F other) on each comment. Present results grouped by severity, discarding `low` severity items that are likely false positives or nitpicks.\n\n### Step 4: Fix\n\nBefore applying fixes, check whether the user requested automatic fixes:\n\n- If the user explicitly requested \"review and fix\" or similar, proceed with automatic fixes\n- If the user only requested \"review\" without fix intent, ask for permission before applying any changes\n\nWhen fixing issues and suggestions:\n\n- Focus on critical, high, and medium severity items\n- Apply fixes directly to the code when safe and well-defined\n- For complex fixes requiring manual intervention, clearly describe what needs to be done\n- Always verify fixes with the user before committing\n\n## Output Format\n\nEach comment in OCR's output contains:\n\n- `path`: File path\n- `content`: Review comment text\n- `start_line` \u002F `end_line`: Line range (both 0 means positioning failed)\n- `category`: Issue category (bug, security, performance, maintainability, test, style, documentation, other)\n- `severity`: Issue severity (critical, high, medium, low)\n- `suggestion_code`: Optional fix suggestion\n- `existing_code`: Optional original code snippet\n- `thinking`: Optional LLM reasoning process\n\nPresent results grouped by severity using this template:\n\n```markdown\n## Code Review Results\n\n**Files reviewed**: N\n**Issues found**: X critical, Y high, Z medium\n\n### Critical\n\n- **`path\u002Fto\u002Ffile.java:42`** [bug] — Brief description\n  > Recommendation: How to fix\n\n### High\n\n- **`path\u002Fto\u002Ffile.java:26`** [bug] — Brief description\n  > Recommendation: How to fix\n\n### Medium\n\n- **`path\u002Fto\u002Ffile.ts:88`** [performance] — Brief description\n  > Recommendation: How to fix (if applicable)\n```\n\nIf no critical, high, or medium severity issues remain after filtering, state: \"Review complete — no critical, high, or medium issues found in N files.\"\n\n**Handling mispositioned comments:**\n\nWhen `start_line` and `end_line` are both `0`, the comment failed to locate the exact position in the file. In such cases:\n\n1. Read the comment content to understand the issue\n2. Examine the target file mentioned in the comment\n3. Identify the relevant code section based on the comment's context\n4. Apply the fix or suggestion to the correct location\n\n## Custom Review Rules\n\nIf the user wants project-specific rules, OCR resolves them in this priority order:\n\n1. `--rule \u003Cpath>` flag (highest)\n2. `\u003Crepo>\u002F.opencodereview\u002Frule.json`\n3. `~\u002F.opencodereview\u002Frule.json`\n4. Built-in system defaults (lowest)\n\nBy default, the first matching user rule replaces the built-in system rule. Set `merge_system_rule: true` on a rule entry when the matched system rule and user rule should both be included.\n\nRule file format:\n\n```json\n{\n  \"rules\": [\n    {\n      \"path\": \"**\u002F*.java\",\n      \"rule\": \"All new methods must validate required parameters for null\",\n      \"merge_system_rule\": true\n    },\n    {\n      \"path\": \"**\u002F*mapper*.xml\",\n      \"rule\": \"Check SQL for injection risks and missing closing tags\"\n    }\n  ]\n}\n```\n\nTo preview which rule applies to a file before reviewing:\n\n```bash\nocr rules check src\u002Fmain\u002Fjava\u002Fcom\u002Fexample\u002FFoo.java\n```\n\n## Advanced Review Options\n\nBeyond the common flags above, `ocr review` exposes a few groups of controls. Run `ocr review --help` for the complete list.\n\n**Scoping**\n\n- `--exclude '\u003Cpatterns>'` — comma-separated gitignore-style patterns (for example `--exclude '**\u002Fgenerated\u002F*,**\u002Ftestdata\u002F*'`), merged with `rule.json` excludes.\n- `--background-file \u003Cpath>` — read review context from a Markdown file. Takes precedence over `--background`.\n\n**Output**\n\n- `--format text|json|sarif` — `text` (default) for humans; `json` for machine-readable findings; `sarif` for code-scanning integrations such as GitHub Code Scanning.\n\n**Model**\n\n- `--provider \u003Cname>` \u002F `--model \u003Cname>` — override the configured provider\u002Fmodel for this run only (for example, to recheck a diff with a different model; the user names the model, `ocr llm providers` lists the built-ins).\n\n**Budget**\n\n- `--max-tokens \u003Cn>` — per-group prompt ceiling; defaults to the configured value or the template default (`200000`).\n- `--max-tokens-budget \u003Cn>` — cap total input + output tokens for the run. Checked before every LLM round: a group already over budget gets one final round to submit findings, no further groups are dispatched, partial results are still published, and skipped files are reported as `failed(budget)`.\n- `--no-filter` — keep all review comments and skip the LLM post-filtering call.\n\n## Gotchas\n\n- **LLM must be configured first** — `ocr review` will fail loudly if no LLM is reachable. See the Troubleshooting section below if this happens.\n- **Working directory matters** — `ocr review` operates on the Git repo at the current directory. Use `--repo \u002Fpath\u002Fto\u002Frepo` to run from elsewhere.\n- **Untracked files are reviewed in workspace mode** — running bare `ocr review` includes staged, unstaged, *and* untracked changes. Stage selectively if you want narrower scope.\n- **Large diffs may hit token limits** — `MAX_TOKENS` sets the prompt budget (`200000` in the review template; `ocr scan` uses `58888`); conversation context is compressed to stay within this prompt budget. Model output is capped separately by `MAX_COMPLETION_TOKENS` (`16384`). A file whose diff alone exceeds ~80% of `MAX_TOKENS` is skipped before the LLM is called.\n- **Plan phase triggers on either of two thresholds** — a group runs an extra risk-analysis phase before main review when its largest changed file reaches `PLAN_MODE_LINE_THRESHOLD` (default `50`) **or** it holds 2+ files whose combined changed lines reach `PLAN_MODE_GROUP_LINE_THRESHOLD` (default `100`). This adds latency but improves quality.\n- **Don't pass `--audience human`** — it streams progress UI that pollutes output. Always use `--audience agent`.\n- **Comment language follows config** — the `language` config controls review comment language, defaults to `English`, and accepts any language name (for example `English` or `中文`).\n- **Avoid output truncation** — Large review runs produce verbose output. Never pipe command output to `tail` or `head` as it drops review comments from earlier sections. Use `--output \u003Cpath>` and read it in full; on older CLIs, follow the **Output file** guidance above.\n- **Resume an interrupted review** — a failed or interrupted range\u002Fcommit review can be continued with `ocr review --resume \u003Cid>` using the same `--from`\u002F`--to` or `--commit` target (the id is printed as `retry with: --resume \u003Cid>` on failure, or find it with `ocr session list`). Workspace resume is not supported.\n\n## Validation\n\nAfter the review completes, verify success by checking:\n\n1. The command exited with code 0\n2. Comments were generated (or \"No comments generated\" message appears)\n3. Warnings (if any) are displayed in stderr\n\nIf errors occurred, check the stderr warnings for details about which files failed and why.\n\n## Troubleshooting\n\n**`ocr: command not found`**\n\nInstall the CLI:\n\n```bash\nnpm install -g @alibaba-group\u002Fopen-code-review\n```\n\n**`unknown flag: --output`**\n\nThe CLI is older than v1.10.0. Do not continue the review with plain stdout. Ask the user whether to upgrade (`npm i -g @alibaba-group\u002Fopen-code-review@latest`) and wait for the answer before proceeding. After the user confirms and the upgrade succeeds, rerun with `--output`.\n\n**`ocr review` fails with LLM connection error**\n\nPrompt the user to configure an LLM provider.\n\nInteractive setup (recommended):\n\n```bash\nocr config provider\n```\n\nManual setup (alternative):\n\n```bash\nocr config set llm.url https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages\nocr config set llm.auth_token \u003Capi-key>\nocr config set llm.model claude-opus-4-6\nocr config set llm.use_anthropic true\n```\n\nVerify connectivity with `ocr llm test`. Stop here and ask the user to provide credentials — never invent or hardcode API keys.\n\n## References\n\n- Full docs: https:\u002F\u002Fgithub.com\u002Falibaba\u002Fopen-code-review\n- NPM package: https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@alibaba-group\u002Fopen-code-review\n- Issue tracker: https:\u002F\u002Fgithub.com\u002Falibaba\u002Fopen-code-review\u002Fissues\n",{"name":5,"license":15,"metadata":24,"description":28,"compatibility":29},{"author":25,"version":26,"homepage":27},"alibaba","1.0.0","https:\u002F\u002Fgithub.com\u002Falibaba\u002Fopen-code-review","Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba\u002Fopen-code-review. Use when the user asks to review code, review a pull request, review staged\u002Funstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply fixes when requested. With appropriate review rules, can detect various types of issues including bugs, security vulnerabilities, performance problems, and code quality concerns.\n","Requires the `ocr` CLI installed (via `npm install -g @alibaba-group\u002Fopen-code-review` or GitHub release binary). Requires a configured supported LLM provider before first run (protocols: Anthropic, OpenAI Chat Completions, OpenAI Responses, AWS Bedrock).\n","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fopen-code-review\u002Fskills\u002Fopen-code-review",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill open-code-review",{"tool":44,"command":45},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill open-code-review",{"tool":47,"command":48},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill open-code-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fopen-code-review\u002Fskills\u002Fopen-code-review\u002FSKILL.md",true,[],[53,61,69,77,85,92],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":73,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]