5 Commits

Author SHA1 Message Date
8f91e71caa refactor: split docker-service-architecture skill into focused files
- Extract testing patterns to testing.md (271 lines)
  - 3-stage testing pipeline
  - Branch and worktree isolation
  - Rich test runner with progress display
  - Makefile integration

- Extract CI/CD pipelines to ci-cd.md (201 lines)
  - GitHub Actions workflow with ghcr.io
  - Gitea Actions workflow with custom registry
  - Platform comparison table
  - Multi-service matrix builds

- Streamline SKILL.md to core content (200 lines)
  - Overview and when to use
  - Directory structure
  - Docker compose patterns (dev/test/prod)
  - Common mistakes and quick reference
  - Cross-reference table to supporting files
2026-01-01 14:34:43 -05:00
f5039d46b6 docs: add git worktree isolation section
Document the critical requirement to set COMPOSE_PROJECT_NAME for
worktree isolation:

- Problem: Without COMPOSE_PROJECT_NAME, all worktrees share image
  names (e.g., test-price-db:latest) causing build conflicts
- Solution: export COMPOSE_PROJECT_NAME="test-${TEST_INSTANCE_ID}"
- Cleanup scoping: Only remove containers for current branch

Also updated:
- Common Mistakes table with new isolation pitfalls
- Service Test Script Template with COMPOSE_PROJECT_NAME export
2025-12-30 20:51:02 -05:00
f32a992114 Add single-service project guidance
- Simplified directory structure (no services/ layer)
- 2-stage testing (unit + integration, skip service stage)
- Simplified CI/CD without matrix builds
- When to use multi-service structure anyway
2025-12-30 17:20:23 -05:00
a234cf92e0 Add test performance optimization requirements
- Remove time estimates from test stages
- Add Test Performance Optimization section with:
  - Requirement to time tests and investigate outliers
  - Common issue: tests awaiting timeouts instead of conditions
  - Code example showing bad vs good async waiting patterns
  - Guidance on fixture caching and parallelization
2025-12-30 17:15:47 -05:00
09e38eadd9 Initial commit: docker-service-architecture skill
Comprehensive skill for Docker containerization patterns including:
- Multi-service project organization (services/<name>/)
- Environment-specific deployments (dev/test/prod)
- 3-stage testing pipeline (unit/service/integration)
- Branch-isolated test environments with dynamic ports
- CI/CD pipeline with semantic versioning
- Rich test runner with context-efficient output
2025-12-30 15:11:50 -05:00