migrate-service-to-container
CommunityMigrate services to containers with patterns
Software Engineering#backend#migration#refactor#containers#tenant-id#service-architecture#module-implementation-guide
AuthorEdgame2
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Guides migrating existing services to containers using ModuleImplementationGuide.md standards; ensures code transforms to use shared libraries, tenantId-aware queries, config-driven URLs, and event-driven communication.
Core Features & Use Cases
- Create module structure under containers/<service-name> with config, src, tests
- Transform imports to use @coder/shared and loadConfig
- Add tenantId to database queries to enforce multi-tenant isolation
- Replace hardcoded URLs with config-driven ServiceClient usage
- Enforce authentication and tenant enforcement on routes
- Update error handling to use AppError
- Set up event publishing/consuming via EventPublisher
- Update service initialization to use shared DB/cache clients
Quick Start
Begin by creating the containers/<service-name> module and apply the migration steps to update imports, queries, routes, error handling, and event publishing.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: migrate-service-to-container Download link: https://github.com/Edgame2/castiel2/archive/main.zip#migrate-service-to-container Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.