Development guidance for Termigo terminal client management tool
Development guidance for working with Termigo, a modern terminal client management tool built with Tauri (Rust backend) and React (TypeScript frontend). Enables cross-platform SSH connection management, terminal sessions, port forwarding, and credential storage.
**Main Layout:**
**Core Features:**
**State Management:**
**Backend Communication:**
When working on Termigo:
1. **Always use semantic color variables** (never hardcoded colors):
- Backgrounds: `bg-background`, `bg-card`, `bg-muted`, `bg-primary`, `bg-secondary`, `bg-destructive`
- Text: `text-foreground`, `text-card-foreground`, `text-muted-foreground`, `text-primary-foreground`
- Borders: `border-border`, `border-input`
- Pair backgrounds with corresponding foreground colors for proper contrast
2. **Follow component patterns**:
- Card-based layouts for management pages
- Sidebar pattern for create/edit forms
- React Hook Form with Zod validation
- TanStack Query for server state management
3. **Backend integration**:
- Call all Tauri commands through `invoker.ts`
- Use services layer for typed backend communication
- Handle `InvokerError` for user-friendly error messages
4. **Run appropriate commands**:
- Frontend dev: `npm run dev`
- Tauri dev mode: `npm run tauri dev` (runs both frontend and backend)
- Linting: `npm run lint` or `npm run lint:fix`
- Formatting: `npm run format`
- Build: `npm run tauri build`
5. **Code quality checks**:
- Pre-commit hooks automatically run linting and formatting
- Run `cargo fmt --check` and `cargo clippy` for Rust code
6. **Routing**:
- Uses TanStack Router with file-based routing
- App navigates to `/hosts` on start
- Terminal overlay system for switching between management and terminal views
The app uses a comprehensive dark theme color system with CSS variables. Key semantic colors:
**Always use semantic classes based on meaning, not appearance.**
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/termigo-development/raw