CClaude Code Catalog
全ガイド

チームのためのClaude Code設定

中級 10 min

Claude Codeを個人の開発ツールからチーム全体の生産性向上ツールへとスケールさせるには、適切な設定が必要です。このガイドでは、共有CLAUDE.md標準の策定、コーディング規約の定義、新メンバーのオンボーディング、CIパイプラインへの統合まで、すべてをカバーします。これらのプラクティスに従うことで、一貫性を確保し、立ち上げ時間を短縮し、エンジニアリング組織全体でAI支援開発の価値を最大化できます。

チームコラボレーションオンボーディングCI規約

共有CLAUDE.mdの設計

A well-structured CLAUDE.md is the foundation of team-wide Claude Code adoption. It serves as the single source of truth for how Claude should behave in your codebase. The key principle is layering: use the project-level CLAUDE.md for universal rules and allow team-specific or directory-level overrides where needed. Start with your non-negotiable conventions: coding style, commit message format, testing requirements, and security policies. These should be explicit and actionable. Instead of writing 'follow best practices,' write 'always use TypeScript strict mode, prefer named exports, and include error boundaries in React components.' Version-control your CLAUDE.md alongside your code. Review changes to it with the same rigor as code changes. When a team member discovers a useful pattern, add it to CLAUDE.md so everyone benefits. Over time, this file becomes a living, AI-readable style guide that enforces consistency better than any linter.
# Project root CLAUDE.md structure for teams # Team Conventions - Language: TypeScript strict mode - Style: Prettier defaults, no semicolons - Commits: conventional commits (feat/fix/chore) - Tests: every PR must include tests, min 80% coverage - Reviews: Claude can suggest but never auto-merge # Architecture Rules - API routes in src/app/api/ - Shared types in src/types/ - Business logic in src/lib/, never in components - Use server actions for mutations # Security - Never commit .env files - Sanitize all user inputs - Use parameterized queries only

チーム規約と標準

Beyond CLAUDE.md, establish clear conventions for how team members interact with Claude Code. Define when to use Claude versus manual coding: complex refactors and boilerplate generation are great use cases, while security-critical authentication logic might require human-only review. Create a shared prompt library for common tasks. When everyone uses the same prompt for 'create a new API endpoint' or 'add tests for this module,' the output is consistent and predictable. Store these prompts in a team wiki or a dedicated prompts/ directory in your repo. Set up PR labels or tags to indicate AI-assisted code. This transparency helps reviewers calibrate their attention. Code generated by Claude Code should receive the same review scrutiny as human-written code, but knowing its origin helps reviewers focus on the areas where AI tends to make mistakes, like edge cases and error handling.
# Team prompt templates (save in .claude/prompts/) # .claude/prompts/new-endpoint.md Create a new REST API endpoint with: - Input validation using zod - Error handling with custom AppError class - Unit tests in __tests__/ directory - OpenAPI JSDoc comments # .claude/prompts/review-checklist.md Review this code for: 1. Type safety (no 'any' types) 2. Error handling (all async ops wrapped) 3. Security (no SQL injection, XSS prevention) 4. Performance (no N+1 queries, proper indexing)

新メンバーのオンボーディング

Claude Code dramatically accelerates onboarding when configured correctly. New team members can use Claude to explore the codebase, understand architectural decisions, and follow established patterns from day one. The key is ensuring your CLAUDE.md and documentation are robust enough for Claude to give accurate, project-specific guidance. Create an onboarding section in your CLAUDE.md that lists key directories, explains the data flow, and points to important configuration files. When a new developer asks Claude 'how does authentication work in this project?' the answer should be specific to your implementation, not generic advice. Encourage new team members to use Claude Code for their first few PRs. Have them ask Claude to explain existing code before modifying it, generate tests for modules they are working on, and review their changes before submitting for human review. This builds familiarity with both the codebase and the AI workflow simultaneously.
# Onboarding CLAUDE.md section # Project Overview This is an e-commerce platform built with Next.js 15. - Auth: NextAuth.js with Google/GitHub providers - Database: PostgreSQL via Prisma ORM - Payments: Stripe integration in src/lib/stripe/ - State: Zustand for client, React Query for server # Key Patterns for New Developers - All database queries go through src/lib/db/ service layer - Use the useAuth() hook for client-side auth checks - API routes follow RESTful naming in src/app/api/ - Run 'pnpm test:watch' during development # First Tasks for New Members 1. Ask Claude: "explain the checkout flow from cart to payment" 2. Ask Claude: "what are the main database models and relationships" 3. Try: claude "add a unit test for the CartService.addItem method"

チーム向けCI/CD統合

Integrating Claude Code into your CI pipeline enables automated code review, test generation, and documentation updates on every pull request. This ensures consistent quality regardless of which team member submits the code. Start with a lightweight integration: run Claude Code in your CI to review PRs for convention violations and suggest improvements. Use the non-interactive mode with specific prompts tailored to your team standards. The output can be posted as PR comments, giving developers immediate, actionable feedback. As your team gains confidence, expand the integration. Have Claude generate missing tests, update changelog entries, and verify that new code follows the patterns documented in CLAUDE.md. Always keep a human in the loop for final approval. The goal is augmentation, not replacement of your review process.
# .github/workflows/claude-review.yml name: Claude Code Review on: [pull_request] jobs: review: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Run Claude Code Review env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} run: | npx claude-code review \ --diff "$(git diff origin/main)" \ --rules .claude/review-rules.md \ --output pr-comment - name: Post Review Comment uses: actions/github-script@v7 with: script: | const fs = require('fs'); const review = fs.readFileSync('pr-comment', 'utf8'); github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, body: review });

実行プレビュー

チームのためのClaude Code設定

チームのためのClaude Code設定について

Claude Codeガイドは、Claude Codeの特定の側面をマスターするための詳細なステップバイステップガイドです。チームのためのClaude Code設定は中級レベルのガイドで、日常のワークフローでClaude Codeを最大限に活用するためのベストプラクティス、実践的なテクニック、実用的なヒントを紹介します。

関連ガイド