用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/carrot-foundation/schemas --skill rule-pull-request命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | rule-pull-request |
| description | PR creation workflow, title format, description template, and quality gates |
Apply this rule whenever work touches:
*Pull requests are the primary review mechanism for changes to a published npm package. Every PR must be focused, well-described, and pass all quality gates.
PR titles are human-readable summaries — NOT conventional commit messages. The title should describe what the PR accomplishes at a high level.
GOOD titles:
"Add MassID IPFS and JSON schema definitions"
"Implement shared coordinate validation schema"
"Fix UUID validation edge case for nil values"
"Upgrade Zod to v4 with strict object migration"
BAD titles (conventional commit format):
"feat(schema): add mass-id ipfs schema"
"fix(shared): resolve uuid validation"
"chore: upgrade zod"
Keep titles under 70 characters when possible. Use the description for details.
Aim for focused, reviewable PRs:
When a change exceeds these limits, split it into logical increments:
If a PR must exceed limits (e.g., initial schema creation), add a comment explaining why splitting is not practical.
Run pnpm check before creating a PR. This executes the full quality gate pipeline:
pnpm check
This includes:
tsc --noEmit)All gates must pass. Do not create a PR with failing checks.
Every PR must include a meaningful description following this structure:
## Summary
Brief description of what this PR accomplishes and why.
- Key change 1
- Key change 2
- Key change 3
## Changes
### Added
- New schemas, files, or capabilities
### Changed
- Modifications to existing schemas or behavior
### Removed
- Anything removed (with justification)
## Test plan
- [ ] Unit tests cover all new schemas
- [ ] 100% coverage maintained
- [ ] Both valid and invalid inputs tested
- [ ] Generated JSON schemas validated
- [ ] `pnpm check` passes
## Related issues
Closes #123
Related to #456
Reviewers should challenge every PR on three dimensions:
.meta() descriptions accurate? Do examples represent realistic data?Always link related issues in the PR description:
Closes #123 — automatically closes the issue on mergeRelated to #456 — creates a reference without auto-closingBlocked by #789 — indicates a dependencyUse draft PRs for:
Convert to ready-for-review only when all quality gates pass.
After merging: