基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/carrot-foundation/schemas --skill create-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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 | create-pr |
| description | Use when work is ready for review and a pull request needs to be created |
Create a pull request for the schemas repository with a clear description, after verifying all quality gates pass.
Before creating the PR, ensure all quality gates pass:
pnpm check
If any step fails, fix the issue before proceeding. Do not create a PR with failing checks.
Also verify you are on a feature branch (not main):
git branch --show-current
Understand the full scope of the PR by examining all commits since diverging from main:
# View all commits in this branch
git log main..HEAD --oneline
# View the full diff against main
git diff main...HEAD
# View changed files summary
git diff main...HEAD --stat
Evaluate PR size to ensure it is reviewable:
If the PR is too large, suggest splitting it:
# Count lines changed (excluding generated files)
git diff main...HEAD --stat -- ':!schemas/ipfs/' ':!*.json'
Common split strategies:
The PR title should be clear and descriptive -- NOT in conventional commit format.
Good examples:
Bad examples:
Structure the description following this template:
## Summary
- <1-3 bullet points describing what changed and why>
## Test plan
- [ ] All quality gates pass (`pnpm check`)
- [ ] 100% test coverage maintained
- [ ] Generated JSON schemas are valid
- [ ] Examples validate against schemas
- [ ] <additional test items specific to the changes>
Push the branch and create the PR using gh:
# Push the branch to remote
git push -u origin HEAD
# Create the PR
gh pr create --title "Add MassID IPFS schema definitions" --body "$(cat <<'EOF'
## Summary
- Add MassID IPFS schema with data, attributes, and NFT schema definitions
- Include comprehensive tests with 100% coverage
- Regenerate JSON schemas and examples
## Test plan
- [ ] All quality gates pass (`pnpm check`)
- [ ] 100% test coverage maintained
- [ ] Generated JSON schemas are valid
- [ ] Examples validate against schemas
EOF
)"
If there is a related GitHub issue, link it in the PR body:
## Summary
- Closes #42
- Add MassID IPFS schema definitions
Or use the --assignee and --label flags:
gh pr create --title "..." --body "..." --assignee @me --label "schema"
After creating the PR:
Verify the PR was created correctly:
gh pr view --web
Wait for CI to run and confirm checks pass remotely.
Wait for CodeRabbit review (automatic) and address any findings.
Report the PR URL to the user.
| Issue | Solution |
|---|---|
gh not authenticated | Run gh auth login |
| Branch not pushed | Run git push -u origin HEAD before gh pr create |
| No remote tracking | Use git push -u origin HEAD to set upstream |
| CI fails but local passes | Check Node version matches .nvmrc; ensure pnpm-lock.yaml is committed |
| PR too large | Split into multiple PRs by concern |
Before marking the PR as ready for review:
pnpm check passes locallymain