Agent skill
coding-rules
TypeScript/React コーディング規約、インポート順序、Server/Client Components使い分け、コミット規約。コード実装、レビュー、リファクタリング時に使用。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/coding-rules
SKILL.md
コーディング規約 (MUED LMS v2)
TypeScript/React
- Strict mode 有効
- 関数コンポーネント + Hooks
- Props 型定義必須
any禁止(やむを得ない場合はコメント必須)
ファイル構成
- 1ファイル1コンポーネント
- 200行超えたら分割検討
- UI層とロジックを分離
インポート順序
// 1. React/Next.js
import { useState } from 'react';
import { useRouter } from 'next/navigation';
// 2. 外部ライブラリ
import { clsx } from 'clsx';
// 3. 内部モジュール
import { Button } from '@/components/ui/button';
// 4. 型定義
import type { User } from '@/types';
Server Components vs Client Components
// デフォルト: Server Component(use client なし)
// データフェッチ、静的レンダリングに使用
// Client Component が必要な場合のみ
'use client';
// useState, useEffect, イベントハンドラ, ブラウザAPI使用時
コミット規約
Conventional Commits 形式を使用:
feat: 新機能追加
fix: バグ修正
docs: ドキュメント
refactor: リファクタリング
test: テスト
chore: その他
PR 作成時の確認事項
npm run typecheckパスnpm run lintパスnpm run testパス- 必要に応じて E2E テスト
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?