How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-core:best-practicesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
全エージェントの共通基盤。コーディング規約・原則・パターンの **Single Source of Truth**。
全エージェントの共通基盤。コーディング規約・原則・パターンの Single Source of Truth。
const MAX_RETRY = 3; — 数値リテラル直接記述禁止getUserById, isActive)UserService, ButtonProps)MAX_RETRY_COUNT, API_BASE_URL)user-service.ts)[...array, item], { ...obj, key: val } — 直接変更しないunknown + 型ガードを使用src/
├── app/ # アプリケーション層(ページ、グローバル設定)
├── widgets/ # ウィジェット層(ページ構成要素)
├── features/ # フィーチャー層(ユーザー向け機能)
├── entities/ # エンティティ層(ビジネスエンティティ)
└── shared/ # 共有層(UI、ユーティリティ、設定)
features/[feature-name]/
├── api/ # APIクライアント、サーバーアクション
├── model/ # ストア、型、ビジネスロジック
├── ui/ # UIコンポーネント
└── index.ts # パブリックAPI
// Domain層(entities)— インターフェース定義
interface ClientRepository {
findById(id: string): Promise<Client>;
}
// Application層(features)— ユースケース
class GetClientUseCase {
constructor(private repo: ClientRepository) {}
async execute(id: string) { return this.repo.findById(id); }
}
// Infrastructure層(features/api)— 具象実装
class DBClientRepository implements ClientRepository {
async findById(id: string) { /* DB操作 */ }
}
// エンティティ(識別子を持つ)
class Client {
constructor(
private readonly id: ClientId,
private name: ClientName,
private tags: Tag[],
) {}
}
// バリューオブジェクト(不変、自己検証)
class ClientName {
constructor(private readonly value: string) {
if (value.length < 2) throw new Error("クライアント名は2文字以上必要です");
}
}
npm audit クリーンnpx claudepluginhub tadokoro-ryusuke/cc-plugins --plugin dev-coreDefines coding conventions and standards for AI collaboration: naming rules, code style, folder structure, and environment variable conventions.
Detects anti-patterns and architectural debt in codebases, proposes patterns like GoF SOLID DDD CQRS Microservices Cloud, generates boilerplate code. For Next.js FastAPI NestJS Django Express Go.
Enforces SOLID principles, TDD (red-green-refactor), and clean code practices to elevate code quality. Activates during coding, refactoring, architecture, code review, and debugging.