Team Quick Reference - Everything you need to know in one page
Claude Code is an AI assistant that writes, tests, and validates code automatically. This project has automation where Claude:
- ✅ Auto-compiles code after every edit via hooks
- ✅ Runs tests automatically to verify functionality
- ✅ Checks code coverage (enforces 70% minimum)
- ✅ Validates with go vet and staticcheck before completing work
- ✅ Guides TDD workflow with
/tddcommand
💡 Pro Tip: All the automation (hooks, skills, quality checks) were created by Claude itself! You can ask Claude to create custom automation for your workflow:
- "Create a hook that runs tests after I edit files"
- "Make a skill for code review workflow"
- "Add a quality gate for import organization"
Just describe what you want - Claude will generate the scripts and configuration for you!
# Just start talking to Claude
"Help me implement user authentication in the alerts service"Claude will:
- Ask clarifying questions
- Read relevant code
- Make changes
- Automatically compile via hooks (no manual build needed)
- Automatically run tests to verify functionality
- Automatically check coverage to ensure 70%+ requirement
- Report results and any issues found
# Invoke the TDD skill
/tdd
# Describe what you want: "Implement a function to validate email addresses"
# Claude automatically orchestrates:
# 1. RED: Writes a failing test
# 2. GREEN: Implements minimal code to pass
# 3. REFACTOR: Improves the code while keeping tests green
# 4. After each phase, hooks automatically compile and verifyEvery time Claude edits a .go or .proto file, hooks automatically trigger:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔨 Auto-compiling codebase after editing: validator.go
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[Build output...]
✅ Build succeeded
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Claude sees this feedback immediately and fixes any compilation errors before continuing.
For security, Claude cannot:
- ❌ Access
.envfiles or secrets - ❌ Delete system files (
rm -rf) - ❌ Download files with
curl/wget - ❌ Modify private keys
Claude automatically runs these checks via hooks and during development:
Claude ensures all code meets these standards:
- All tests pass -
go test ./... - Coverage meets 70% minimum -
go test -cover ./... - No vet warnings -
go vet ./... - No staticcheck issues -
staticcheck ./...
These checks run automatically when Claude edits files (via hooks) and before completing any feature.
Claude automatically runs these via hooks and before completing work:
# Alerts service
make test-alerting # Unit tests (Claude runs automatically)
make test-alerting-integration # Integration tests
cd alerts && go test -cover ./... # Coverage check (enforces 70%)
# Mission service
make mission-test # All tests
cd mission_service && go test -cover ./...
# Video service
make video-test # Unit tests
make video-e2e # E2E tests
cd video-service && go test -cover ./...You don't need to run these manually - Claude's hooks and workflows execute them automatically.
Claude automatically verifies (you can also run manually to confirm):
# Navigate to modified service
cd alerts # or mission_service, video-service, etc.
# Run all checks
echo "🧪 Running tests..."
go test ./...
echo "📊 Checking coverage (must be 70%+)..."
go test -cover ./...
echo "🔬 Running go vet..."
go vet ./...
echo "🔍 Running staticcheck..."
staticcheck ./...
echo "🔨 Building..."
cd .. && make build-fast
echo "✅ All quality gates passed! Ready to commit."Claude's hooks enforce these checks - if any fail, Claude will fix them before completing the work.
- Describe what you want: "Implement email validation in user registration"
- Optionally use
/tddfor guided TDD workflow - Claude automatically:
- Writes tests
- Implements code
- Compiles via hooks after each edit
- Runs tests to verify
- Checks coverage (enforces 70%)
- Runs vet and staticcheck
- Reviews results with you
- Ready to commit when all checks pass
- Describe the bug: "There's a bug in X where Y happens"
- Claude automatically:
- Investigates the code
- Proposes and implements fix
- Compiles via hooks
- Runs relevant tests
- Verifies coverage maintained
- Reports fix and test results
# Just ask Claude
"What does the ValidateNATSSubject function do?"
"How does the alerts service work?"
"Where is error handling implemented?"Claude can read and explain code using the Go language server (Gopls).
You don't need to manually create hooks, skills, or configs! Just ask Claude:
# Create a hook
"Create a hook that runs linters after editing Go files"
"Make a hook that checks for TODO comments before committing"
# Create a skill
"Create a skill for API development that guides me through creating endpoints"
"Make a skill for database migrations with rollback testing"
# Add quality checks
"Add a hook that enforces 80% test coverage"
"Create a pre-commit hook that validates commit messages"What Claude will do:
- Create the script files (
.claude/hooks/my-hook.sh) - Configure settings (
settings.local.json) - Make scripts executable (
chmod +x) - Test that it works
- Explain how to use it
Example conversation:
You: "Create a hook that checks code formatting before I commit"
Claude: "I'll create a pre-commit hook that runs go fmt. Let me create:
1. .claude/hooks/format-check.sh
2. Configure it in settings.local.json
[Creates files...]
Done! Now whenever you commit, the hook will check if code is formatted.
Try it: edit a Go file with bad formatting and commit."
cloud/
├── alerts/ # Alerting service
├── mission_service/ # Mission CRUD
├── video-service/ # Video segmentation
├── server/ # Main server
├── .claude/ # Automation config (don't edit unless you know what you're doing)
│ ├── hooks/ # Auto-compilation scripts
│ └── skills/ # TDD workflow
├── CLAUDE.md # Project commands and architecture
└── CLAUDE_AUTOMATION.md # Full automation guide (2,383 lines)
Ask Claude directly:
"What quality checks are you running automatically?"
"Explain the TDD workflow"
"What does the auto-compilation hook do?"
- This file: Quick reference (you are here)
- CLAUDE.md: Project commands and architecture
- CLAUDE_AUTOMATION.md: Complete automation guide
- Team: Ask senior developers if stuck
| Problem | Solution |
|---|---|
| Tests failing | Read error message, fix code, re-run |
| Coverage < 70% | Add tests for uncovered code paths |
| Vet warnings | Fix suspicious constructs |
| Staticcheck errors | Follow staticcheck suggestions |
| Build failing | Check compilation errors, fix syntax |
- Trust Claude's automation - hooks and quality checks run automatically
- Use
/tddfor new features (structured red-green-refactor workflow) - Describe clearly what you want - Claude handles implementation details
- Ask Claude to explain any code or automation you don't understand
- Review Claude's test output when it reports failures
- Let Claude create custom automation - just describe what you need
- Manually run builds - hooks do this automatically after every edit
- Skip Claude's quality gates - 70% coverage and tests are mandatory
- Manually edit
.claude/files - ask Claude to create/modify automation - Commit secrets - Claude's permissions block access to
.envfiles - Override hook failures - if Claude's checks fail, let Claude fix them
Morning: Start work on new feature
# 1. Start Claude Code
claude code
# 2. Describe what you want
"I need to implement email validation for user registration"
# 3. Optionally use TDD workflow
/tdd
# 4. Claude automatically:
# - Writes failing test
# - Implements minimal code
# - Refactors for quality
# - Compiles after each edit (via hooks)
# - Runs tests to verify
# - Checks coverage (enforces 70%)Throughout the day: Claude auto-compiles, tests, and validates after each change ✅
Work completion: Claude automatically verifies quality gates
Claude: "✅ All quality gates passed:
- Tests: 43/43 passing
- Coverage: 74.3% (exceeds 70% requirement)
- go vet: No warnings
- staticcheck: No issues
- Build: Success
Ready to commit!"
Create PR: Review Claude's changes and commit
# Make sure you're on a feature branch
git checkout -b feature/email-validation
# Claude has verified quality gates - commit
git add .
git commit -m "Add email validation with 74% test coverage"
git push origin feature/email-validation
# Create PR
gh pr create --title "Add email validation" --body "Implements email validation with tests. All quality gates passed."- Claude does everything automatically - Writes code, tests, compiles, validates
- Hooks run on every edit - Compilation, tests, coverage checks all automatic
- You describe, Claude implements - Focus on what you want, not how to do it
- 70% coverage enforced automatically - Claude won't complete work below this threshold
- Quality gates are automatic - Tests, coverage, vet, staticcheck run via hooks
- Custom automation on demand - Ask Claude to create new hooks, skills, checks
# Development
make dev-up # Start services
make dev-down # Stop services
# Testing (pick your service)
make test-alerting # Alerts tests
make mission-test # Mission tests
make video-test # Video tests
# Quality checks (run in service directory)
go test ./... # Run tests
go test -cover ./... # Check coverage
go vet ./... # Run vet
staticcheck ./... # Run staticcheck
# Building
make build-fast # Fast build (hooks do this automatically)
# TDD Workflow
/tdd # Invoke TDD skill
# Help
# Just ask Claude: "How do I X?"- Claude writes, tests, and validates automatically - You describe what you want
- Hooks run on every edit - Compilation, tests, coverage checks automatic
- Use
/tddfor structured test-driven development workflow - 4 Quality Gates enforced automatically: tests pass + 70% coverage + no vet + no staticcheck
- Claude creates custom automation - Just ask: "Create a hook that runs X"
- Trust the automation - Claude won't complete work that fails quality gates
Start here: Tell Claude what you want to build - Claude handles the rest!
Questions? Ask Claude or consult CLAUDE_AUTOMATION.md for full details.