| name | host |
| description | Review the Host package for server setup, Module Federation runtime, authentication, and bos.config.json configuration. Use when user says /host or asks to review the host. |
| allowed-tools | Read, Grep, Glob |
| user-invocable | true |
Host Package Review
Review the host/ package for quality, consistency, and Module Federation best practices.
Scope
host/
├── server.ts # Entry point
├── bootstrap.ts # Remote host loader
├── src/
│ ├── program.ts # Main server program
│ ├── ui.tsx # UI rendering
│ ├── types.ts # Type definitions
│ ├── db/
│ │ └── schema/
│ │ └── auth.ts # Auth schema
│ ├── layers/
│ │ └── index.ts # Effect layers composition
│ ├── lib/
│ │ └── schemas.ts # Shared schemas
│ ├── services/
│ │ ├── auth.ts # Better-Auth setup
│ │ ├── config.ts # Runtime config loader (bos.config.json)
│ │ ├── context.ts # Request context
│ │ ├── database.ts # Database connection
│ │ ├── errors.ts # Error types
│ │ ├── federation.server.ts # UI module loading
│ │ ├── plugins.ts # API plugin loading
│ │ └── router.ts # Router creation
│ └── utils/
│ └── logger.ts # Logging utility
├── migrations/ # Drizzle migrations
├── drizzle.config.ts # Drizzle config
├── rsbuild.config.ts # Build configuration
└── package.json
bos.config.json # Central runtime configuration (root level)
Review Checklist
1. Server Setup
2. Configuration Loading
3. Plugin Runtime
4. Authentication
5. Module Federation
6. bos.config.json
7. Effect-TS Architecture
Key Files to Check
server.ts - Entry point
src/program.ts - Main server logic
src/services/config.ts - Configuration loader
src/services/auth.ts - Authentication setup
src/services/plugins.ts - Plugin loading
src/services/federation.server.ts - UI module loading
src/services/router.ts - Route creation
src/layers/index.ts - Layer composition
../bos.config.json - Central config
Output Format
Provide a structured review:
## Host Package Review
### Summary
[Overall assessment]
### Issues Found
1. [File:line] - [Issue description]
### Recommendations
- [Improvement suggestions]
### Status: [PASS/NEEDS_WORK]