소스 정보
- 저장소
- 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 review-pr명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | review-pr |
| description | Use when reviewing a pull request for schema quality, test coverage, and conventions |
Review a pull request in the schemas repository, checking for schema quality, test coverage, naming conventions, and backward compatibility.
Fetch the PR details and diff:
# View PR metadata
gh pr view <PR_NUMBER>
# View the full diff
gh pr diff <PR_NUMBER>
# View changed files
gh pr diff <PR_NUMBER> --stat
# View PR comments
gh api repos/<owner>/<repo>/pulls/<PR_NUMBER>/comments
Evaluate the PR against each of the following areas. For each area, note whether it passes, has warnings, or needs changes.
Check that schemas follow project conventions:
z.strictObject(): All object schemas use strictObject (not z.object) to reject unknown properties.safeExtend(): Schema composition uses safeExtend (not extend) to preserve strict validation.meta() on every field: Every field has .meta({ description: '...' }) at minimum.meta() on objects: Parent objects also have .meta({ description: '...' })z.infer<typeof Schema> (not manually defined)any: No use of z.any() or TypeScript anyRed flags:
// BAD: z.object instead of z.strictObject
const Schema = z.object({ ... });
// BAD: missing .meta()
const Schema = z.strictObject({
field: z.string(), // no .meta()
});
// BAD: .extend instead of .safeExtend
const Extended = Base.extend({ ... });
Check that tests are comprehensive:
__tests__/{type}.schema.spec.ts exists for every schema.safeParse() usage: All validation uses .safeParse() (not .parse() which throws)it.eachpnpm test:coverage shows 100% on all 4 thresholdsRed flags:
// BAD: using .parse() in tests (throws instead of returning result)
expect(() => Schema.parse(input)).not.toThrow();
// BAD: only testing happy path
it('should parse valid input', () => { ... });
// Missing: invalid inputs, edge cases, optional fields
Check that names follow project standards:
{type}.data.schema.ts, {type}.attributes.ts)MassIdDataSchema)MassIdData)batch_size, processing_date)Recycling Center)pending, approved)index.ts re-exports all public symbolsRed flags:
// BAD: camelCase property
batchSize: z.number() // should be batch_size
// BAD: wrong export name
export const massIdSchema = ... // should be MassIdSchema
Check for breaking changes:
Red flags:
string to number)Check that the schema layer hierarchy is correct:
BaseIpfsSchema provides common IPFS fieldsNftIpfsSchema extends Base with NFT-specific fieldssrc/shared/Check that generated files are consistent:
schemas/ipfs/ contains updated JSON schema filesStructure your review as:
## Review: PR #{number} - {title}
### Verdict: {Approve | Request Changes | Comment}
### Summary
{1-2 sentence overview}
### Findings
#### Must Fix
- {Blocking issues that prevent merge}
#### Should Fix
- {Non-blocking but important improvements}
#### Nit
- {Minor style or preference items}
### Positive Notes
- {Things done well -- always include at least one}
Approve the PR if:
Request changes if:
.meta() on fieldsz.object used instead of z.strictObject.parse() used instead of .safeParse() in testsLeave comments (without blocking) for:
.meta()