スキル一覧に戻る
crmagz

naming-conventions

by crmagz

A comprehensive AWS Cloud Development Kit (CDK) library providing infrastructure-as-code constructs and utilities for AWS applications

6🍴 0📅 2026年1月20日
GitHubで見るManusで実行

SKILL.md


name: naming-conventions description: Naming conventions for types, functions, files, and resources. Use when creating new code or reviewing naming patterns. Emphasizes type-driven development.

Naming Conventions

Type Naming

Use type declarations, not interface. This codebase follows type-driven development.

TypeConventionExample
Types, EnumsPascalCaseEnvironmentConfig, CodeArtifactStackProps, BucketProps
Functions, VariablescamelCasecreateBucket, bucketName
AWS Resource Nameskebab-casemy-bucket-dev-use1
Enum ValuesSCREAMING_SNAKE_CASEAccount.PROD, Region.US_EAST_1

Type Naming Pattern:

// CORRECT - Use type declarations
export type BucketProps = {
    bucketName: string;
    env: EnvironmentConfig['env'];
};

export type EnvironmentConfig = {
    name: string;
    region: string;
    account: string;
};

// INCORRECT - Don't use interface
export interface BucketProps {
    // ❌
    bucketName: string;
}

Resource Naming Pattern

Include environment and region to prevent naming collisions:

// Resource naming pattern
`${resourceName}-${props.env.name}-${props.env.region}`
// Examples
`aurora-cluster-dev-use1``api-gateway-prod-use1``waf-acl-staging-use1`;

Function Naming

Use verbNoun pattern for function names:

// CORRECT
export const createBucket = () => {};
export const getVpcConfig = () => {};
export const updateSecurityGroup = () => {};

// INCORRECT
export const bucketCreate = () => {};
export const VpcConfigGet = () => {};

File Naming

  • Constructs: kebab-case.ts (e.g., api-gateway.ts)
  • Types: kebab-case-type.ts or kebab-case.ts in types directory
  • Enums: kebab-case-enum.ts or kebab-case.ts in enum directory
  • Utilities: kebab-case.ts in util directory

Export Patterns

  • Each package exports from src/index.ts
  • Root package exports from src/index.ts
  • Use named exports, avoid default exports where possible

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です