用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/carrot-foundation/schemas --skill commit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | commit |
| description | Use when staging and committing code changes with conventional commit messages |
Stage and commit code changes in the schemas repository using Conventional Commits format with appropriate scopes.
Start by reviewing the current state:
git status
git diff
git diff --cached
Understand what changed and why. Look at both staged and unstaged changes.
If changes touch multiple concerns, split them into separate commits. Common groupings:
Rule: If you can describe the change with a single conventional commit message without using "and", it belongs in one commit. Otherwise, split.
Stage files for the current commit:
git add src/mass-id/mass-id.schema.ts
git add src/mass-id/__tests__/mass-id.schema.spec.ts
Prefer explicit file paths over git add . to avoid accidentally staging unrelated changes.
Follow the Conventional Commits format:
<type>(scope): <description>
Types (most common for schemas):
| Type | Use When |
|---|---|
feat | Adding a new schema type or field |
fix | Correcting a schema bug or validation error |
refactor | Restructuring without behavior change |
test | Adding or updating tests only |
docs | Documentation changes only |
chore | Tooling, config, dependency updates |
build | Build system changes (tsup, scripts) |
style | Formatting-only changes |
Scopes for schemas repo:
| Scope | Use When |
|---|---|
schema | Changes to a schema type (data, attributes, main schema) |
shared | Changes to shared components (base schemas, utilities, enums) |
| (omit) | Root-level config, scripts, or cross-cutting changes |
Rules:
git commit -m "feat(schema): add mass-id IPFS schema type"
For commits needing a body:
git commit -m "$(cat <<'EOF'
feat(schema): add mass-id IPFS schema type
Defines the data schema, NFT attributes, and main schema for
mass-id tokenization. Includes type-specific fields for batch
processing metadata.
EOF
)"
Before committing, verify:
When multiple independent changes exist, create a commit for each:
# Commit 1: Schema changes
git add src/mass-id/
git commit -m "feat(schema): add mass-id IPFS schema type"
# Commit 2: Generated files
git add schemas/ipfs/
git commit -m "chore(schema): regenerate JSON schemas and examples"
# Commit 3: Config update
git add tsconfig.json
git commit -m "chore: update tsconfig paths for new schema type"
feat(schema): add credit-audit IPFS schema type
feat(shared): add participant-role enum to shared schemas
fix(schema): correct uuid format validation in base schema
refactor(shared): extract address schema to shared module
test(schema): add edge case tests for mass-id schema
chore: update cspell dictionary with new schema terms
docs: add JSDoc to exported schema types
build: update tsup config for new entry points
After committing, verify the commit looks correct:
git log --oneline -5
git show --stat HEAD
Ensure the commit includes exactly the files you intended.