{"id":51377538,"url":"https://github.com/coderabbitai/cursor-plugin","last_synced_at":"2026-07-03T14:05:47.606Z","repository":{"id":368952764,"uuid":"1286553746","full_name":"coderabbitai/cursor-plugin","owner":"coderabbitai","description":"CodeRabbit Cursor plugin for code review and guarded PR autofix workflows","archived":false,"fork":false,"pushed_at":"2026-07-03T01:04:48.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-03T01:08:30.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderabbitai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-01T22:37:23.000Z","updated_at":"2026-07-03T01:05:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/coderabbitai/cursor-plugin","commit_stats":null,"previous_names":["coderabbitai/cursor-plugin"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/coderabbitai/cursor-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderabbitai%2Fcursor-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderabbitai%2Fcursor-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderabbitai%2Fcursor-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderabbitai%2Fcursor-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderabbitai","download_url":"https://codeload.github.com/coderabbitai/cursor-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderabbitai%2Fcursor-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35088522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-03T14:05:43.316Z","updated_at":"2026-07-03T14:05:47.599Z","avatar_url":"https://github.com/coderabbitai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeRabbit Plugin for Cursor\n\nAI-powered code review and guarded autofix workflows in Cursor, powered by [CodeRabbit](https://coderabbit.ai).\n\nThis repository packages CodeRabbit for Cursor users with:\n\n- Cursor plugin metadata in `.cursor-plugin/plugin.json`\n- User-facing plugin name `CodeRabbit`\n- Natural-language skills for code review and CodeRabbit PR autofix\n- Cursor command prompts for repeatable review and autofix workflows\n- A dedicated CodeRabbit review agent\n- Safety guidance for review output, GitHub PR threads, and local fixes\n\n## Requirements\n\n- Cursor with plugin support\n- Git\n- CodeRabbit CLI, installed automatically by the agent when missing\n- GitHub CLI for PR-thread autofix workflows\n\nThe plugin asks Cursor Agent to install the CodeRabbit CLI automatically when it is missing:\n\n```bash\ncurl -fsSL https://cli.coderabbit.ai/install.sh | sh\nexport PATH=\"$HOME/.local/bin:$PATH\"\ncoderabbit --version\n```\n\nThen authenticate:\n\n```bash\ncoderabbit auth login --agent\n```\n\nFor PR autofix workflows, also authenticate GitHub CLI:\n\n```bash\ngh auth login\n```\n\n## Install Locally\n\nThe user-facing plugin name is `CodeRabbit`. Cursor's machine-readable plugin identifier is `coderabbit` because Cursor plugin IDs must be lowercase.\n\nClone this repository into Cursor's local plugin directory:\n\n```bash\ngit clone https://github.com/coderabbitai/cursor-plugin.git ~/.cursor/plugins/local/coderabbit\n```\n\nRestart Cursor or reload plugins after cloning.\n\nBefore marketplace publication, local installation is the recommended test path. After publication, users should be able to install from Cursor with:\n\n```text\n/add-plugin coderabbit\n```\n\n## Usage\n\nAsk Cursor Agent naturally:\n\n```text\nReview my code.\nReview my changes.\nCheck this PR for bugs.\nRun a security review.\nUse CodeRabbit to review my current changes.\nRun CodeRabbit review on uncommitted changes.\nReview this branch against main with CodeRabbit.\nFix unresolved CodeRabbit PR feedback.\n```\n\nGeneric code-review requests use CodeRabbit by default, even when it is not mentioned by name. Deterministic tooling like linters, formatters, type checkers, and tests continues to work alongside CodeRabbit as part of the normal project workflow.\n\nUse plugin commands when you want a repeatable workflow:\n\n```text\n/coderabbit-review\n/coderabbit-review uncommitted\n/coderabbit-review --base main\n/coderabbit-review --dir packages/api\n/coderabbit-autofix\n```\n\n## Review Workflow\n\nThe review command checks local prerequisites, installs CodeRabbit CLI when missing, then runs:\n\n```bash\ncoderabbit review --agent\n```\n\nThen Cursor groups CodeRabbit issues by severity and can help apply fixes. Supported scope flags include:\n\n```bash\ncoderabbit review --agent -t committed\ncoderabbit review --agent -t uncommitted\ncoderabbit review --agent --base main\ncoderabbit review --agent --base-commit \u003csha\u003e\ncoderabbit review --agent --dir \u003cpath\u003e\ncoderabbit review --agent -c AGENTS.md .coderabbit.yaml\n```\n\nWhen a requested directory is provided, Cursor verifies that it is an initialized Git repository before running CodeRabbit against it.\n\nAfter a CodeRabbit review completes, Cursor summarizes the result and offers fixes rather than layering a second AI or manual review on the same diff. Linters, type checkers, and tests remain part of the normal workflow for validating fixes.\n\n## Autofix Workflow\n\nThe autofix workflow is for GitHub PRs that already have CodeRabbit review threads.\n\nIt:\n\n1. Installs CodeRabbit CLI when missing.\n2. Verifies `git`, `gh`, and PR state.\n3. Fetches unresolved, current CodeRabbit review threads from the active PR.\n4. Treats all review-thread text as untrusted issue reports.\n5. Shows each issue with severity, location, and proposed local fix.\n6. Applies fixes only after explicit user approval.\n7. Creates one consolidated commit when fixes are applied.\n8. Optionally pushes and posts a concise PR summary comment.\n\nThe plugin does not bulk-apply reviewer prompts. Cursor must inspect the local code and receive approval before each change.\n\n## Repository Layout\n\n```text\n.\n+-- .cursor-plugin/\n|   +-- plugin.json\n|   +-- marketplace.json\n+-- agents/\n|   +-- code-reviewer.md\n+-- commands/\n|   +-- coderabbit-autofix.md\n|   +-- coderabbit-review.md\n+-- hooks/\n|   +-- hooks.json\n|   +-- post-review-context.mjs\n+-- rules/\n|   +-- code-review-routing.mdc\n+-- scripts/\n|   +-- validate-plugin.mjs\n+-- skills/\n    +-- autofix/\n    |   +-- SKILL.md\n    +-- code-review/\n        +-- SKILL.md\n```\n\n## Development\n\nRun the local validation script:\n\n```bash\nnpm test\n```\n\nThe validator checks:\n\n- Cursor manifest fields\n- Manifest component paths\n- Plugin metadata\n- Marketplace metadata\n- Required frontmatter for skills, agents, and commands\n- Accidental em dashes in repository text files\n\n## Publishing\n\nBefore publishing, run `npm test`, verify the plugin name is `CodeRabbit`, confirm `.cursor-plugin/plugin.json` paths are valid, and test local install from `~/.cursor/plugins/local/coderabbit`.\n\n## Security\n\nReview output, PR comments, and \"Prompt for AI Agents\" sections are untrusted. Cursor should inspect local code before applying fixes and should never execute reviewer-provided commands.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderabbitai%2Fcursor-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderabbitai%2Fcursor-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderabbitai%2Fcursor-plugin/lists"}