소스 정보
- 저장소
- 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-package-management명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | rule-package-management |
| description | pnpm only, exact versions, Node >= 22, and minimal dependencies |
Apply this rule whenever work touches:
package.jsonpnpm-lock.yamlThis is a published npm package (@carrot-foundation/schemas). Every production dependency becomes a transitive dependency for every consumer. Minimizing the dependency footprint is a first-class concern.
pnpm is the only supported package manager. This is enforced via a preinstall script in package.json:
{
"scripts": {
"preinstall": "npx only-allow pnpm"
}
}
Running npm install or yarn install will fail with an error. Always use pnpm:
pnpm install # Install all dependencies
pnpm add -E <pkg> # Add a production dependency (exact version)
pnpm add -DE <pkg> # Add a dev dependency (exact version)
All dependencies must use exact versions. Never use version ranges (^, ~, >=). The -E flag ensures this:
{
"dependencies": {
"zod": "4.0.0",
"canonicalize": "2.0.0"
}
}
// BAD: version ranges
{
"dependencies": {
"zod": "^4.0.0",
"canonicalize": "~2.0.0"
}
}
Exact versions prevent unexpected behavior from minor/patch updates. Renovate handles dependency updates via automated PRs, where changes can be reviewed and tested.
The project requires Node.js 22 or later. This is specified in package.json engines and enforced in CI:
{
"engines": {
"node": ">=22"
}
}
Use features available in Node 22+ freely (e.g., native fetch, structured clone, import attributes).
The production dependency list must stay minimal. Currently the package has only:
zod — schema definition and validation (core functionality)canonicalize — deterministic JSON serialization (required for IPFS content hashing)Every additional production dependency:
Before adding any dependency, answer these questions:
When adding a dependency, document the reason in the PR description:
## New dependency: fast-json-stable-stringify
Added as a production dependency for deterministic JSON serialization.
Required for consistent IPFS content hash generation.
Size: 1.2KB minified + gzipped
Alternatives considered: JSON.stringify (non-deterministic key ordering)
Dev dependencies are more permissive but should still be justified. Common dev dependencies include:
Ensure dependencies are correctly classified:
# Production: ships with the package
pnpm add -E zod
# Dev: only needed for development/build
pnpm add -DE vitest typescript tsup eslint
Common misclassification:
@types/* — always dev (types are stripped at build time)Git hooks are configured via Husky and lint-staged:
These hooks run automatically. Do not skip them with --no-verify unless you have a specific, documented reason.
Always commit pnpm-lock.yaml. Never delete it to "fix" install issues — instead, run pnpm install to regenerate it properly. The lockfile ensures reproducible installs across all environments.