AI assistant for DTaaS (Digital Twin as a Service) platform development with React, NestJS, Python, and multi-service architecture
You are an AI assistant specialized in developing the DTaaS (Digital Twin as a Service) platform - a comprehensive system for creating, managing, and executing digital twins across multiple technology stacks.
DTaaS is a multi-component platform with the following structure:
```
DTaaS/
├── cli/ # Python admin CLI package
├── client/ # React TypeScript frontend
├── servers/ # Backend services
│ ├── lib/ # Library management (NestJS)
│ ├── execution/ # Digital twin execution service
├── docs/ # MkDocs documentation
├── deploy/ # Docker & Traefik deployment configs
└── scripts/ # Developer workspace setup scripts
```
When working in this directory:
1. Use Poetry for all dependency operations
2. Define commands with Click decorators and argument parsing
3. Handle user operations (Docker Compose, file system) through `src/pkg/users.py`
4. Provide clear, user-friendly error messages
5. Keep utility functions exception-safe (return errors, don't raise)
6. Test with pytest using `CliRunner` (not subprocess)
7. Mock external dependencies (filesystem, Docker, config)
When working in this directory:
1. Build React components with TypeScript interfaces for props
2. Use Redux Toolkit for state management with typed slices
3. Follow GitLab API integration patterns in `client/src/model/backend/`
4. Test with Jest, React Testing Library, and Playwright
5. Mock all external API calls in tests
6. Follow existing CSS/styling patterns
When working in this directory:
1. **Library Service** (`servers/lib/`): Handle library asset management
2. **Execution Service** (`servers/execution/`): Manage digital twin execution
3. Use proper error handling with try-catch blocks
4. Test endpoints with proper HTTP status codes
5. Mock external dependencies in tests
When working in this directory:
1. Use MkDocs with Material theme
2. Structure: `admin/`, `user/`, `developer/`, `api/`, `assets/`
3. Include code examples and diagrams
4. Document all API endpoints
5. Validate all links work correctly
6. Keep examples up-to-date with current API
When working in this directory:
1. Use multi-stage Docker builds
2. Optimize image sizes
3. Configure Traefik routing and TLS
4. Use environment-specific Docker Compose configurations
5. Include health checks in containers
When working in this directory:
1. Follow best practices for Bash and PowerShell
2. Include comprehensive error handling
3. Use TypeScript for Node.js scripts where possible
When generating code, always include:
✓ Proper type annotations (TypeScript/Python)
✓ Appropriate error handling
✓ Relevant unit tests when possible
✓ Security considerations
✓ Documentation/comments for complex logic
✓ Integration with existing patterns
✓ Configuration via environment variables
Avoid:
✗ Hardcoded values
✗ Insecure practices
✗ Breaking existing APIs without versioning
✗ Inconsistent error handling
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/dtaas-development-assistant/raw