What Claude Code Is and Why It Changes Everything
- What this chapter does for you
- 1.1 What Is Claude Code
- 1.2 Claude Code vs. Claude Chat vs. the API
- 1.3 Why Claude Code Changes Everything
- 1.4 Installation and Setup
- 1.5 Where to Use Claude Code
- 1.6 Essential Commands
- 1.7 The CLAUDE.md File: Your Project’s Memory
- 1.8 Hands-On Exercise: Your First Project with Claude Code
- 1.9 Chapter Summary
The Mental Model: Prompt Engineering for .NET Developers
- What this chapter does for you
- 2.1 Why Prompt Engineering Matters for .NET Developers
- 2.2 The Anatomy of a Good .NET Prompt
- 2.3 Bad Prompts vs. Production Prompts
- 2.4 Advanced Prompt Engineering Techniques
- 2.5 Context Management: What Separates Pros from Amateurs
- 2.6 Anti-Patterns: What NOT to Do
- 2.7 Prompt Templates for .NET Day-to-Day
- 2.8 Hands-On Exercise: Your First Feature with Production Prompts
- 2.9 Chapter Summary
Requirements Gathering with Claude Code
- What this chapter does for you
- 3.1 The PO and AI: a Powerful Partnership
- 3.2 From Vague Idea to Structured Requirements
- 3.3 Generating Professional User Stories
- 3.4 Technique: Finding Gaps in the Specification
- 3.5 Prioritizing the Backlog
- 3.6 Generating the PRD (Product Requirements Document)
- 3.7 Advanced Techniques for the PO
- 3.8 Hands-On Exercise: TaskManager Full Backlog
- 3.9 Chapter Summary
Rapid Prototyping and Validation
- What this chapter does for you
- 4.1 Why Prototype Before You Build
- 4.2 Prototyping Fidelity Levels with Claude Code
- 4.3 Level 1: Descriptive Wireframes
- 4.4 Level 2: Static HTML Prototypes
- 4.5 Level 3: Interactive React Prototypes
- 4.6 Navigation Flows
- 4.7 Spec Review: Claude Code as Your Relentless Critic
- 4.8 Stakeholder Validation
- 4.9 Custom Commands for the PO
- 4.10 Hands-On Exercise: TaskManager Prototypes
- 4.11 Chapter Summary
Defining Architecture with Claude Code
- What this chapter does for you
- 5.1 The Architect and AI: Better Decisions, Faster
- 5.2 Evaluating Architectural Styles
- 5.3 Architecture Decision Records (ADRs)
- 5.4 The Complete Technical Stack
- 5.5 C4 Diagrams with Claude Code
- 5.6 Modular Monolith Structure
- 5.7 Cross-Cutting Concerns
- 5.8 Architecture Validation
- 5.9 Hands-On Exercise: Full TaskManager Architecture
- 5.10 Chapter Summary
Project Structure and Code Patterns
- What this chapter does for you
- 6.1 The Definitive CLAUDE.md
- 6.2 The Project’s Core Patterns
- 6.3 Automated Scaffolding with Claude Code
- 6.4 Detailed Naming Conventions
- 6.5 Global Usings and Project Configuration
- 6.6 Module Registration in Program.cs
- 6.7 Test Patterns
- 6.8 Hands-On Exercise: Full TaskManager Setup
- 6.9 Chapter Summary
Feature-by-Feature Development
- What this chapter does for you
- 7.1 The Explore → Plan → Code → Commit Flow
- 7.2 Implementing US-001: Create Task
- 7.3 Implementing US-002: List and Filter Tasks
- 7.4 Implementing US-003 through US-005
- 7.5 Working with Multiple Files
- 7.6 Progressive Iteration and Refinement
- 7.7 Session Management During Development
- 7.8 Custom Commands for the Developer
- 7.9 Hands-On Exercise: Implement US-001 through US-005
- 7.10 Chapter Summary
Backend: APIs, Databases, and Integrations
- What this chapter does for you
- 8.1 Authentication and Authorization
- 8.2 Migrating to Azure SQL
- 8.3 Messaging with Azure Service Bus
- 8.4 HttpClientFactory and External Integrations
- 8.5 Rate Limiting and API Protections
- 8.6 Caching with Redis
- 8.7 API Versioning and OpenAPI
- 8.8 Configuration and Secrets
- 8.9 Practical Exercise: Full TaskManager Backend
- 8.10 Chapter Summary
Frontend: Interfaces That Work
- What this chapter does for you
- 9.1 React Project Setup
- 9.2 TypeScript Types from the API
- 9.3 Axios with JWT Authentication
- 9.4 TanStack Query: Server State
- 9.5 Layout and Base Components
- 9.6 Frontend Authentication
- 9.7 Kanban Board with Drag and Drop
- 9.8 Forms and Validation
- 9.9 Error Handling and Loading States
- 9.10 Hands-On Exercise: Full TaskManager Frontend
- 9.11 Chapter Summary
Refactoring and Code Review with AI
- What this chapter does for you
- 10.1 Code Review with Claude Code: The Systematic Approach
- 10.2 Applying Fixes Systematically
- 10.3 Guided Refactoring: .NET Code Smells
- 10.4 Legacy Code Migration
- 10.5 Frontend Review
- 10.6 When NOT to Use AI for Refactoring
- 10.7 Custom Commands for Review and Refactoring
- 10.8 Hands-On Exercise: TaskManager Review and Refactoring
- 10.9 Chapter Summary
Testing Strategy with Claude Code
- What this chapter does for you
- 11.1 The TaskManager Test Pyramid
- 11.2 Unit Tests with Claude Code
- 11.3 Integration Tests with WebApplicationFactory
- 11.4 Testcontainers: Real Database in Tests
- 11.5 AI-Assisted TDD
- 11.6 Finding Coverage Gaps
- 11.7 Mocks, Fixtures, and Test Data Builders
- 11.8 Hands-On Exercise: Complete Test Suite
- 11.9 Chapter Summary
Quality Beyond Testing
- What this chapter does for you
- 12.1 Static Analysis with .NET Analyzers
- 12.2 Technical API Documentation
- 12.3 OWASP Security Audit
- 12.4 Load Testing with k6
- 12.5 Code Coverage with Coverlet
- 12.6 The Definitive Pre-Release Checklist
- 12.7 Hands-On Exercise: Full Quality Pass on TaskManager
- 12.8 Chapter Summary
CI/CD with Claude Code and Azure DevOps
- What this chapter does for you
- 13.1 Optimized Multi-Stage Dockerfile
- 13.2 CI/CD Pipeline with Azure DevOps
- 13.3 Environments and Per-Environment Configuration
- 13.4 Azure Container Registry and Images
- 13.5 Deploy to Azure Container Apps
- 13.6 Migrations in CI/CD
- 13.7 Alternative Pipeline: GitHub Actions
- 13.8 Custom Commands for DevOps
- 13.9 Hands-On Exercise: Full TaskManager Pipeline
- 13.10 Chapter Summary
Infrastructure and Observability
- What this chapter does for you
- 14.1 The Three Pillars of Observability
- 14.2 Structured Logging with Serilog
- 14.3 OpenTelemetry: Metrics and Tracing
- 14.4 Application Insights and Dashboards
- 14.5 Automated Alerts
- 14.6 Complete Infrastructure with Bicep
- 14.7 Troubleshooting with Claude Code
- 14.8 Hands-On Exercise: Full Observability Pass
- 14.9 Chapter Summary
Orchestrating the Full Cycle
- What this chapter does for you
- 15.1 The end-to-end cycle: from idea to deploy
- 15.2 CLAUDE.md as institutional memory
- 15.3 Parallel team: everyone with their own Claude Code
- 15.4 Productivity metrics: before and after
- 15.5 The complete custom command catalog
- 15.6 Gradual adoption: how to roll it out
- 15.7 Hands-on: Full end-to-end sprint
- 15.8 Chapter Summary
Advanced Patterns and the Future
- What this chapter does for you
- 16.1 MCP Servers: extending Claude Code
- 16.2 Claude Code CLI automations
- 16.3 Custom .NET CLI tools
- 16.4 When NOT to use AI
- 16.5 The future of .NET development with AI
- 16.6 Final words
- 16.7 Chapter Summary