.agents/skills/coderabbit-pr-review/SKILL.md
Review the current pull request against CodeRabbitAI comments and fix valid issues. Fetches inline review comments left by coderabbitai[bot], validates each against the actual code, and applies fixes for valid issues. Use when the user asks to fix CodeRabbit comments, address CodeRabbit review, process CodeRabbit suggestions, or review/fix AI review comments on the PR.
npx skillsauth add microboxlabs/modulariot coderabbit-pr-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review the current branch's PR for CodeRabbitAI inline comments and fix all valid issues.
gh CLI must be authenticated (gh auth status). No additional tokens required.Auto-detect the PR number, then fetch all inline review comments from the bot:
PR_NUMBER=$(gh pr view --json number -q '.number')
gh api "repos/{owner}/{repo}/pulls/${PR_NUMBER}/comments" \
--paginate \
--jq '[.[] | select(.user.login == "coderabbitai[bot]") | {id, path, line, start_line, body, diff_hunk, created_at, pull_request_review_id}]'
If gh pr view fails (no PR for this branch), ask the user for the PR number or use -p <number>.
If no comments are returned, report "No CodeRabbitAI comments found on this PR" and stop.
Each comment body follows a structured format. Extract these fields:
| Field | How to extract |
|-------|---------------|
| Severity | First line: _🟠 Major_ or _🟡 Minor_ |
| Title | First **...** bold text after severity |
| Explanation | Text between title and first <details> block |
| File | path field from API response |
| Line | line field (end line); start_line if range |
| Suggested fix | Content inside <details><summary>Suggested fix</summary> |
| AI agent prompt | Content inside <details><summary>🤖 Prompt for AI Agents</summary> |
The AI agent prompt is specifically designed for LLM consumption and is the primary guide for fixes.
For parsing details, see reference.md.
For each comment, in file-then-line order:
After editing a file, re-read affected regions to ensure no new issues (broken imports, syntax errors).
npx tsc --noEmitnpx vitest run <path>)After all comments are processed, report:
| Marker | Level | Action | |--------|-------|--------| | 🟠 Major | Likely bug, security, or correctness issue | Prioritize fixing | | 🟡 Minor | Code smell, missing edge case, improvement | Validate carefully — higher false-positive rate |
For the full comment schema and edge cases, see reference.md.
tools
Query and manage ModularIoT Calendar services via the miot CLI. List calendars, check slot availability, create bookings, manage time windows, and run slot managers. Use when the user asks about schedules, appointments, bookings, availability, calendar configuration, time slots, capacity, or calendar services in their ModularIoT organization.
tools
Propagate OpenAPI spec changes through all three layers: (1) the hand-authored TypeScript client package — types, resource methods, tests, version bump; (2) the CLI package — commands, flags, table columns, tests, version bump; (3) the agent skill — SKILL.md workflows, business rules, and reference.md sections. Use when the user says the openapi.json has changed and needs to be reflected end-to-end. Triggers on phrases like "update the client from the new openapi", "sync the client with the API spec", "implement the api changes in the client", "the openapi.json changed, update the client package", "propagate the API changes", or "update all layers from the spec".
tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
tools
Tag and release a monorepo package following the project's scoped-tag convention. Use when the user wants to publish a new version of a package, create a release tag, or bump a package version.