用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/carrot-foundation/schemas --skill finish-work命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | finish-work |
| description | Use when a task is complete and needs the full check, commit, and PR workflow |
Orchestrate the complete wrap-up workflow: validate, check, commit, push, and create a pull request.
This skill chains together several other skills into a single end-to-end workflow. It is the recommended way to wrap up a task.
Ensure you are on a feature branch (not main) and the branch name follows conventions:
git branch --show-current
Expected format: <type>/<description> or <type>/<scope>-<description>
Valid examples:
feat/schema-add-mass-id-schemafix/shared-harden-uuid-validationchore/update-dependenciesIf you are on main, create a branch first using the create-branch skill.
If the branch name doesn't follow conventions, warn the user but proceed (don't rename mid-work).
Execute the full quality gate pipeline:
pnpm check
This runs all 13 steps sequentially: lint:fix, format, type-check, spell-check, pkgJsonLint, generate-schemas, hash-schemas, update-examples, validate-schemas, verify-schema-versions, check-refs, validate-examples, test.
If any step fails:
pnpm checkDo NOT proceed to committing until all gates pass.
If .ai/ files were modified, also run:
pnpm ai:check
Review all changes:
git status
git diff
git diff --cached
Group changes by concern and create appropriate commits. Follow the commit skill guidelines:
Single-concern changes (most common):
git add src/mass-id/
git add schemas/ipfs/mass-id/
git commit -m "feat(schema): add mass-id IPFS schema type"
Multi-concern changes (split into multiple commits):
# Commit 1: Schema implementation
git add src/mass-id/
git commit -m "feat(schema): add mass-id IPFS schema type"
# Commit 2: Generated artifacts
git add schemas/ipfs/
git commit -m "chore(schema): regenerate JSON schemas and examples"
# Commit 3: Root config updates
git add src/index.ts
git commit -m "chore: add mass-id to barrel exports"
Generated files: If the check pipeline auto-fixed formatting or regenerated schemas, include those changes. They are expected artifacts of the quality gates.
Push the branch to the remote repository:
git push -u origin HEAD
If the branch already tracks a remote, a simple push suffices:
git push
Create the PR using the create-pr skill guidelines:
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
)"
PR title rules:
Provide a concise summary to the user:
## Summary
- **Branch**: feat/schema-add-mass-id-schema
- **Commits**:
- feat(schema): add mass-id IPFS schema type
- chore(schema): regenerate JSON schemas and examples
- **PR**: https://github.com/carrot-foundation/schemas/pull/123
- **Status**: All quality gates passing
- **Remaining**: Awaiting CodeRabbit review and human review
If issues arise during the workflow:
| Issue | Action |
|---|---|
pnpm check fails | Fix the issue, re-run check, then continue |
| Commit hook fails | Fix lint/format issues, stage fixes, commit again |
| Push fails (no remote) | Run git push -u origin HEAD |
| Push fails (behind remote) | Run git pull --rebase @{u} then push |
gh pr create fails | Check gh auth status, ensure branch is pushed |
| PR title too long | Shorten to under 70 characters |
pnpm check passes with zero errors