基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/carrot-foundation/schemas --skill coderabbit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Schema version injection, $id format, and SCHEMA_VERSION environment variable
Generated JSON Schema structure — required fields, validation patterns, and $ref usage
Use when a task is complete and needs the full check, commit, and PR workflow
| name | coderabbit |
| description | Use when triggering a CodeRabbit review on current changes or a pull request |
Trigger and manage automated CodeRabbit reviews on pull requests in the schemas repository.
CodeRabbit is an AI-powered code review tool that automatically analyzes pull requests. It runs as a GitHub App and posts review comments directly on the PR.
CodeRabbit reviews are triggered automatically when:
No manual action is needed for the initial review.
If you need to re-trigger a CodeRabbit review (e.g., after addressing findings or if the initial review didn't run), comment on the PR:
@coderabbitai review
Other useful CodeRabbit commands:
@coderabbitai summary # Get a summary of the PR changes
@coderabbitai resolve # Resolve all CodeRabbit comments
@coderabbitai configuration # Show current CodeRabbit configuration
Before requesting a CodeRabbit review, ensure:
All changes are pushed to the remote branch:
git push origin HEAD
Quality gates pass locally -- run pnpm check first to avoid noise in the review from issues you could have caught locally.
The PR description is complete -- CodeRabbit uses the PR description for context when reviewing.
When CodeRabbit posts review comments:
Read each comment carefully -- CodeRabbit flags potential issues, style violations, and bugs.
Categorize findings:
Schema-specific patterns CodeRabbit checks:
.meta() on Zod fieldsindex.tsAfter addressing all findings, re-trigger the review:
@coderabbitai review
Resolve addressed comments once fixes are pushed.
| Finding | What It Means | How to Fix |
|---|---|---|
| Missing field description | A Zod field lacks .meta() with description | Add .meta({ description: '...' }) to the field |
| Unused export | An exported symbol is not used elsewhere | Remove the export or verify it's used by consumers |
| Type assertion | Using as instead of proper typing | Use Zod inference (z.infer<typeof schema>) |
| Missing test case | A code path is not tested | Add test for the uncovered path |
| Breaking change | Schema field removed or type changed | Add backward compatibility or document the breaking change |
The recommended workflow for CodeRabbit integration:
pnpm check -- fix all issuesgh pr createCodeRabbit configuration for this repository lives in .coderabbit.yaml at the repo root. Do not modify this file unless explicitly asked.