팀을 위한 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를 최대한 활용하기 위한 베스트 프랙티스, 실전 기법, 실용적인 팁을 안내합니다.