소스 정보
- 저장소
- carrot-foundation/methodology-rules
- 최근 소스 활동
- 2026년 4월 1일 19:25
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/carrot-foundation/methodology-rules --skill rule-naming-conventions명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | rule-naming-conventions |
| description | Rule mapping for naming-conventions |
Apply this rule whenever work touches:
*.ts*.tsxConsistent naming reduces cognitive load and makes the codebase searchable. Every identifier and file in this repository must follow the patterns below.
| Kind | Casing | Example |
|---|---|---|
| Variable, function, parameter | camelCase | vehicleWeight, computeScore |
| Type, interface, enum, class | PascalCase | RuleOutput, DocumentStatus |
| Module-level constant | UPPER_SNAKE_CASE | MAX_RETRY_COUNT, DEFAULT_PRECISION |
| Enum member | UPPER_SNAKE_CASE | DocumentStatus.APPROVED |
All files and directories use kebab-case:
vehicle-validation.processor.ts
vehicle-validation.processor.spec.ts
vehicle-validation.lambda.ts
vehicle-validation.lambda.e2e.spec.ts
vehicle-validation.test-cases.ts
Each rule processor follows a predictable naming pattern tied to the rule name:
| File | Pattern |
|---|---|
| Processor | {rule-name}.processor.ts |
| Lambda handler | {rule-name}.lambda.ts |
| Unit tests | {rule-name}.processor.spec.ts |
| E2E tests | {rule-name}.lambda.e2e.spec.ts |
| Test data | {rule-name}.test-cases.ts |
Names must be descriptive enough to understand at the call site without jumping to the definition:
// Clear
const carbonCreditScore = computeCarbonCreditScore(massBalance);
// Unclear
const s = calc(mb);
Avoid generic names like data, info, or result unless qualified with domain context (e.g. documentData, validationResult).
Types, schemas, enums, and constants declared in a domain-scoped library must carry the domain prefix. The import path already provides namespace context, but the prefix makes the domain explicit at usage sites across the codebase.
| Library path | Prefix | Example |
|---|---|---|
libs/shared/methodologies/bold/* | Bold | BoldDocumentCategory, BoldVehicleType |
| (MassID-specific within Bold) | MassID | MassIDActorType, MassIDOrganicSubtype |
| (RewardsDistribution-specific within Bold) | RewardsDistribution | RewardsDistributionActorType |
| (CreditOrder-specific within Bold) | CreditOrder | CreditOrderStatus |
Rules:
DocumentEvent when the concept exists independently of document events. Vehicle types, scale types, container types, and attribute names are domain concepts, not event-specific. Keep DocumentEvent only when the concept IS about events (e.g. BoldDocumentEventName, BoldDocumentEventLabel).Document from actor type names. Actors belong to a domain, not to documents: MassIDActorType, not MassIDDocumentActorType.Methodology is a qualifier, not a domain. Use it as a qualifier within Bold: BoldMethodologyActorType (actors in Methodology-category documents), not MethodologyDocumentActorType.libs/shared/types/, not in domain libraries. If a type is not specific to any methodology, move it up.Boolean variables and functions should read as questions:
const isExpired = checkExpiration(document);
const hasValidSignature = verifySignature(certificate);
const canRetry = retryCount < MAX_RETRY_COUNT;