dev
CommandStandard flow to start the AIHelms local development environment.
Perform a comprehensive review of code changes, checking quality, security, performance, and convention compliance.
Perform a comprehensive review of code changes, checking quality, security, performance, and convention compliance.
| Type | Convention | Good | Bad | |------|-----------|------|-----| | File | snake_case | `user_service.py` | `UserService.py` | | Function | snake_case, verb prefix | `get_user_by_id()` | `user()`, `userData()` | | Variable | snake_case | `user_count`, `is_active` | `temp`, `data`, `x` | | Class | PascalCase | `UserService` | `user_service` | | Constant | UPPER_SNAKE_CASE | `MAX_RETRY_COUNT` | `maxRetryCount` | | Private | underscore prefix | `_validate_email()` | `validate_internal()` | | Boolean | is_/has_/can_ prefix | `is_active` | `active`, `flag` |
| Type | Convention | Good | Bad | |------|-----------|------|-----| | Component file | PascalCase | `UserCard.vue` | `user-card.vue` | | Utility file | camelCase | `useAuth.ts` | `UseAuth.ts` | | Component name | PascalCase | `<UserCard />` | `<user-card />` | | Function | camelCase, verb prefix | `getUserList()` | `userList()` | | Variable | camelCase | `userCount`, `isLoading` | `temp`, `data` | | Type/Interface | PascalCase | `interface UserProfile` | `interface userProfile` | | Constant | UPPER_SNAKE_CASE | `MAX_PAGE_SIZE` | `maxPageSize` | | Composable | use prefix | `useAuth()` | `auth()` | | Event handler | handle prefix | `handleClick()` | `click()` | | Boolean | is/has/can prefix | `isLoading` | `loading` | | Props | noun or adjective | `user`, `disabled` | `handleClick` | | Emits | verb or verb phrase | `update`, `delete` | `onUpdate` |
| Type | Convention | Good | Bad | |------|-----------|------|-----| | Table | snake_case plural | `users`, `api_keys` | `User`, `apiKey` | | Column | snake_case | `created_at`, `user_id` | `createdAt` | | Index | idx_table_column | `idx_users_email` | `index1` | | Foreign key | fk_table_ref | `fk_api_keys_users` | `fk1` | | Schema | snake_case | `aihelms` | `AiHelms` |
| Convention | Good | Bad | |-----------|------|-----| | Plural nouns | `/api/v1/users` | `/api/v1/user` | | kebab-case | `/api/v1/usage-logs` | `/api/v1/usageLogs` | | Nested resources | `/api/v1/users/{id}/api-keys` | `/api/v1/getUserKeys` | | Actions use verbs | `/api/v1/auth/login` | `/api/v1/auth/do-login` |
## Code Review Result ### Summary - Files: [file list] - Overall: [Excellent / Good / Needs Changes / Needs Rewrite] - Issues: Critical: X, Warning: X, Suggestion: X ### Critical (must fix) #### 1. [Issue title] - **Location**: file.py:line - **Problem**: specific description - **Impact**: potential consequences - **Fix**: ```python # Before ... # After ...
[same format]
[same format]
## Review Principles - Focus on high-impact issues, don't nitpick formatting (lint tools handle that) - Provide concrete fix suggestions, don't just point out problems - Understand context before judging — don't cite "best practices" out of context - Distinguish "must fix" from "nice to have" — not everything is critical - Acknowledge what's done well — don't only find faults
企业级 AI 资源纳管平台,提供统一 AI网关、Token调度能力,纳管 OpenAI、Azure、Claude、DeepSeek 等主流模型,并支持 MCP 工具与 Skill 的集中注册分发。具备内外双轨定价、成本归因、统一身份认证、安全审计与效能报表,帮助企业精准控制成本、量化 ROI,高效治理 AI 资产。
Standard flow to start the AIHelms local development environment.
Complete test execution flow including backend and frontend tests, lint checks, and coverage reports.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.