Skip to content

Team Collaboration: Tips 86-95

Scaling Claude Code usage from individual productivity to team excellence requires thoughtful coordination and shared practices. These tips will help you establish effective team workflows, maintain consistency across developers, and maximize the collective benefits of AI-assisted development.

Tip 86: Share CLAUDE.md Files with Your Team

Section titled “Tip 86: Share CLAUDE.md Files with Your Team”

Create a shared knowledge base that benefits everyone:

  1. Structure for Team Use

    project/
    ├── CLAUDE.md # Team standards
    ├── CLAUDE.local.md # Personal preferences (git-ignored)
    ├── docs/
    │ └── claude/
    │ ├── onboarding.md # New member guide
    │ ├── patterns.md # Common patterns
    │ └── troubleshooting.md # Known issues
  2. Version Control Integration

    Terminal window
    # Add team files to git
    git add CLAUDE.md
    git add .claude/commands/
    git add .claude/settings.json
    git add .mcp.json
    # Ignore personal files
    echo "CLAUDE.local.md" >> .gitignore
    echo ".claude/personal/" >> .gitignore
  3. Regular Updates

    Terminal window
    # Team retrospective prompt
    "Review our CLAUDE.md and suggest improvements
    based on recent development patterns"

Team CLAUDE.md Best Practices

  • Document agreed-upon patterns
  • Include architecture decisions
  • Specify code review focus areas
  • List common commands and workflows
  • Update based on retrospectives

Example team CLAUDE.md sections:

# Team Coding Standards
## TypeScript
- ALWAYS use strict mode
- PREFER interfaces over types for objects
- REQUIRE explicit return types
- USE branded types for IDs
## Testing
- MINIMUM 80% coverage for new code
- ALWAYS test error paths
- USE data-testid for E2E tests
- MOCK external services

Standardize common workflows with shared commands:

.claude/commands/feature-start.md
Start a new feature following team process:
Feature: $ARGUMENTS
1. Create branch from latest main
2. Update project board
3. Create feature flag (if needed)
4. Set up monitoring
5. Create initial tests
6. Draft PR description
Follow our feature development checklist.

More team command examples:

.claude/commands/code-review.md
# .claude/commands/hotfix.md
# .claude/commands/release.md
# .claude/commands/incident-response.md
# .claude/commands/performance-check.md

Tip 88: Establish Team Permission Policies

Section titled “Tip 88: Establish Team Permission Policies”

Create consistent security practices:

{
"allowedTools": [
"Edit",
"View",
"Create",
"Delete",
"Bash(*)",
"mcp__*"
],
"autoAllow": [
"git status",
"git diff",
"npm test"
]
}

Document permission rationale:

# Permission Guidelines
## Development Environment
- Full permissions for rapid development
- Auto-allow safe read operations
- Manual approval for destructive operations
## Staging Environment
- Limited to testing and debugging
- No direct database modifications
- Deployment requires approval
## Production Environment
- Read-only access only
- All changes through CI/CD
- Emergency access requires two approvals

Use CLAUDE.md to enforce consistency:

# Team Coding Standards
## Naming Conventions
- Components: PascalCase (UserProfile, LoginForm)
- Utilities: camelCase (formatDate, validateEmail)
- Constants: UPPER_SNAKE_CASE (MAX_RETRIES)
- Files: kebab-case (user-service.ts)
## Code Organization
\`\`\`
src/
├── components/ # UI components
├── services/ # Business logic
├── utils/ # Shared utilities
├── types/ # TypeScript types
└── constants/ # App constants
\`\`\`
## Error Handling
\`\`\`typescript
// ALWAYS use custom error classes
class ValidationError extends AppError {
constructor(field: string, message: string) {
super(`Validation failed for ${field}: ${message}`);
}
}
// ALWAYS handle errors explicitly
try {
await riskyOperation();
} catch (error) {
logger.error('Operation failed', { error, context });
throw new OperationError('User-friendly message');
}
\`\`\`
## Testing Standards
- Test file naming: *.test.ts or *.spec.ts
- Describe blocks for class/module
- It blocks for specific behaviors
- AAA pattern: Arrange, Act, Assert

Standardize tool access across the team:

// .mcp.json (checked into git)
{
"servers": {
"github": {
"command": "npx",
"args": ["@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
},
"jira": {
"command": "npx",
"args": ["@modelcontextprotocol/server-jira"],
"env": {
"JIRA_HOST": "company.atlassian.net",
"JIRA_EMAIL": "${JIRA_EMAIL}",
"JIRA_TOKEN": "${JIRA_TOKEN}"
}
},
"slack": {
"command": "npx",
"args": ["@modelcontextprotocol/server-slack"],
"env": {
"SLACK_TOKEN": "${SLACK_TOKEN}"
}
}
}
}

Team MCP Benefits

  • Consistent tool availability
  • Shared automation capabilities
  • Standardized integrations
  • Reduced setup time
  • Team-wide productivity gains

Help new team members get productive quickly:

# Claude Code Onboarding Guide
## Initial Setup (30 minutes)
1. Install Claude Code: `npm install -g @anthropic-ai/claude-code`
2. Configure authentication: `claude auth login`
3. Clone team repository
4. Run setup script: `./scripts/claude-setup.sh`
## First Day Tasks
1. Read team CLAUDE.md file
2. Try example commands:
- `/feature-start my-first-feature`
- `/team-standards`
3. Pair with team member on real task
4. Join #claude-code Slack channel
## Best Practices
- Always use `--dangerously-skip-permissions` for efficiency
- Clear context between unrelated tasks
- Check `/cost` daily to understand usage
- Use team commands from `.claude/commands/`
## Common Issues
- Permission prompts: Use skip flag
- MCP not working: Check environment variables
- High costs: Use Sonnet for routine tasks
## Resources
- Team knowledge base: /docs/claude/
- Video tutorials: /onboarding/claude-code/
- Slack channel: #claude-code

Integrate Claude Code into your review process:

.github/workflows/claude-review.yml
name: Claude Code Review
on:
pull_request:
types: [opened, synchronize]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: anthropic/claude-code-review@v1
with:
focus: |
- Security vulnerabilities
- Logic errors
- Performance issues
- Missing tests
ignore: |
- Style issues
- Variable naming
- Documentation

Review insights from teams:

“Claude Code catches bugs we miss. Humans catch design issues Claude misses. Together they’re unbeatable.” - Anthropic Security Team

Create a culture of continuous improvement:

  1. Weekly Tips Session

    # Weekly Claude Code Tips
    - 15-minute team standup
    - One person shares a discovered technique
    - Document in team knowledge base
    - Try the technique together
  2. Workflow Show-and-Tell

    Terminal window
    # Export conversation for sharing
    /export > session.md
    # Share with team for learning
  3. Cost Optimization Reviews

    Terminal window
    # Monthly cost review
    "Analyze our team's Claude Code usage and suggest
    optimization strategies"
  4. Pattern Mining

    Terminal window
    # Quarterly pattern review
    "Review our codebase and identify patterns we
    should add to CLAUDE.md"

Tip 94: Coordinate Large Refactoring Efforts

Section titled “Tip 94: Coordinate Large Refactoring Efforts”

Use multiple team members with Claude Code for large projects:

# Microservices Migration Plan
## Team Assignment
- Alice: User Service (Terminal 1)
- Bob: Order Service (Terminal 2)
- Carol: Payment Service (Terminal 3)
- Dan: Integration Tests (Terminal 4)
## Coordination
1. Morning sync to assign services
2. Shared interface definitions in .claude/shared/
3. Hourly check-ins on Slack
4. End-of-day integration test
## Claude Code Setup
\`\`\`bash
# Each developer
claude --add-dir ./services/[assigned-service]
\`\`\`
## Shared Resources
- API contracts: .claude/shared/api/
- Test utilities: .claude/shared/testing/
- Migration guide: .claude/shared/migration.md

Coordination Tools

  • Shared filesystem for contracts
  • Slack integration for updates
  • Git branches for isolation
  • Regular sync meetings
  • Automated integration tests

Tip 95: Create Team-Specific Slash Commands

Section titled “Tip 95: Create Team-Specific Slash Commands”

Develop commands that match your team’s workflow:

.claude/commands/team/standup.md
Generate standup report:
What I did yesterday:
- Check git commits from last 24 hours
- Summarize completed work
What I'm doing today:
- Check current branch
- List planned tasks
Blockers:
- Check for failing tests
- Note any technical debt

More team commands:

Terminal window
# Sprint planning
.claude/commands/team/sprint-plan.md
# Incident response
.claude/commands/team/incident.md
# Release notes
.claude/commands/team/release-notes.md
# Technical debt tracking
.claude/commands/team/tech-debt.md

Successful team adoption requires more than just technical setup:

  • Identify Claude Code champions
  • Share success stories
  • Celebrate productivity wins
  • Address concerns openly
  • Regular workshops
  • Pair programming sessions
  • Internal documentation
  • Slack support channel
  • Track productivity metrics
  • Monitor cost per developer
  • Measure code quality improvements
  • Regular retrospectives
Week 1: Individual exploration
Week 2: Share discoveries
Week 3: Standardize workflows
Week 4: Full team adoption
Focus: Rapid experimentation

Track these indicators of successful team adoption:

  1. Velocity Increase: 2-4x typical
  2. Code Quality: Fewer bugs in production
  3. Test Coverage: Higher and more comprehensive
  4. Documentation: Always up to date
  5. Onboarding Time: 50% reduction
  6. Developer Satisfaction: Increased engagement

With team collaboration mastered, you’re ready for the final set of tips. Continue to Troubleshooting and Best Practices for common issues and proven patterns for long-term success.