소스 정보
- 저장소
- carrot-foundation/schemas
- 최근 소스 활동
- 2026년 3월 25일 20:55
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/carrot-foundation/schemas --skill rule-commit명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | rule-commit |
| description | Conventional commit messages with schemas-specific scopes |
Apply this rule whenever work touches:
*All commits must follow the Conventional Commits specification. This is enforced by commitlint via Husky commit-msg hook.
<type>(optional scope): <description>
[optional body]
[optional footer(s)]
| Type | When to use |
|---|---|
feat | New schema, field, or capability |
fix | Bug fix in schema validation or generation |
refactor | Code restructuring without behavior change |
docs | Documentation only (README, TSDoc, comments) |
test | Adding or updating tests |
chore | Maintenance (deps, config, CI scripts) |
build | Build system changes (tsup, scripts) |
ci | CI/CD pipeline changes |
perf | Performance improvements |
style | Formatting, whitespace, semicolons |
revert | Reverting a previous commit |
Use scopes to indicate which area of the codebase is affected:
schema — changes to Zod schema definitions or generated JSON schemasshared — changes to shared utilities, helpers, or base schemasScope is optional but encouraged for feat and fix types.
feat(schema): add mass-id data schema
feat(schema): add certificate nft ipfs schema definition
fix(shared): resolve UUID validation edge case for nil UUIDs
refactor(schema): extract location schema to shared module
test(schema): add boundary value tests for coordinates
docs: update installation instructions in README
chore: upgrade zod to 4.x
build: configure tsup for dual ESM/CJS output
ci: add schema validation step to pipeline
perf(shared): optimize uniqueBy for large arrays
style: fix formatting in shared schemas
Write the description as a command — what the commit does when applied:
GOOD: add mass-id data schema
GOOD: fix UUID validation for nil values
GOOD: remove deprecated legacy schema
BAD: added mass-id data schema
BAD: fixing UUID validation
BAD: removed deprecated legacy schema
The description starts with a lowercase letter:
GOOD: feat(schema): add participant role enum
BAD: feat(schema): Add participant role enum
GOOD: fix(shared): handle empty array in uniqueBy
BAD: fix(shared): handle empty array in uniqueBy.
Keep the full header (type + scope + description) under 100 characters. If the description is too long, move details to the commit body.
GOOD: feat(schema): add waste classification properties schema
BAD: feat(schema): add waste classification properties schema with contamination levels and measurement units
Each commit should address a single logical change. Do not mix unrelated changes:
GOOD (two commits):
feat(schema): add location schema with coordinates
test(schema): add location schema validation tests
BAD (one commit):
feat(schema): add location schema and fix UUID validation and update README
Use the body for additional context when the header alone is insufficient:
fix(shared): handle NaN in numeric schema validation
Zod's `.number()` validator accepts NaN by default. Added explicit
`.refine()` to reject NaN values in weight and distance fields,
matching the methodology's requirement for finite measurements.
For breaking changes, add ! after the type/scope and include a BREAKING CHANGE: footer:
feat(schema)!: rename mass_id to mass_id_data in exports
BREAKING CHANGE: The exported schema name changed from `MassIdSchema`
to `MassIDDataSchema`. Update imports accordingly.
Commitlint runs automatically via Husky on every commit. Invalid commit messages will be rejected.