소스 정보
- 저장소
- 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 debug명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
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
SOC 직업 분류 기준
SKILL.md 표시 중
| name | debug |
| description | Use when schema generation fails, validation errors occur, or tests fail unexpectedly |
Diagnose and fix failures in the schemas package -- build errors, test failures, schema generation issues, and validation problems.
pnpm check to confirm the fix doesn't break anything elseCommand: pnpm type-check (runs tsc --noEmit)
Common failures:
error TS2322: Type 'string' is not assignable to type 'number'.
Isolation:
pnpm type-check 2>&1 | head -50
Common causes:
z.infer<typeof Schema> usagetsconfig.json paths)index.tsFix patterns:
z.infer<typeof MySchema> instead of manually defining typestsconfig.json includes the new file pathsCommand: pnpm lint or pnpm lint:fix
Common failures:
error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
Isolation:
pnpm lint 2>&1 | head -50
Common causes:
any type (use proper Zod inference instead)Fix patterns:
any with z.infer<typeof Schema> or specific typespnpm lint:fix for auto-fixable issuesCommand: pnpm test
Common failures:
FAIL src/mass-id/__tests__/mass-id.schema.spec.ts
✕ should parse a complete valid input
Expected: true
Received: false
Isolation:
# Run a single test file
npx vitest run src/mass-id/__tests__/mass-id.schema.spec.ts
# Run a specific test by name
npx vitest run -t "should parse a complete valid input"
Common causes:
.strictObject() rejecting unknown properties in test data.positive(), .email())Fix patterns:
safeParse error details: result.error?.issues--reporter=verbose flag for detailed outputInspecting parse errors in tests:
const result = Schema.safeParse(input);
if (!result.success) {
console.log(JSON.stringify(result.error.issues, null, 2));
}
Command: pnpm build (runs tsup)
Common failures:
DTS Build Start
Error: ...
DTS Build Failed
Isolation:
pnpm build 2>&1
Common causes:
package.jsontsc but fails tsup DTS generation)Fix patterns:
dependencies (not devDependencies)Command: pnpm generate-schemas (runs build + node scripts/generate-ipfs-schemas.js)
Common failures:
Error: Unable to generate JSON Schema for ...
Isolation:
pnpm build && node scripts/generate-ipfs-schemas.js 2>&1
Common causes:
.meta() on fields (causes empty descriptions)index.tsFix patterns:
.meta({ description: '...' }) to every fieldsrc/index.ts$ref patternsz.lazy() is used correctly for recursive schemasCommand: pnpm validate-schemas (runs node scripts/validate-schemas.js)
Common failures:
Schema validation failed: /schemas/ipfs/mass-id/v1.0.0.json
Error: strict mode: unknown keyword: "..."
Isolation:
node scripts/validate-schemas.js 2>&1
Common causes:
$id URL format is incorrect$ref pointer targets a non-existent schemaFix patterns:
$id follows the expected URL pattern$ref targets existCommand: pnpm verify-schema-versions
Common failures:
Version mismatch: expected v1.2.0, found v1.1.0
Isolation:
node scripts/verify-schema-versions.js 2>&1
Common causes:
Fix patterns:
pnpm generate-schemas && pnpm hash-schemasCommand: pnpm validate-examples
Common failures:
Example validation failed: schemas/ipfs/mass-id/examples/valid.json
Isolation:
node scripts/validate-schemas.js --data-only 2>&1
Common causes:
Fix patterns:
pnpm update-examplesAfter fixing any issue:
pnpm check to verify nothing else brokegit diff to understand what changed