Loading...
Loading...
Vue2 Frontend Code Review Assistant. Reviews code changes in the src directory of Vue2 projects. Covers 9 major dimensions: component specifications, code style, naming, logic, network requests, computed, security, best practices, and absolute prohibitions. Trigger scenarios: pre-merge review, pre-commit quality check, Code Review for Vue2 code.
npx skill4agent add bulls-cows/skills yy-frontend-vue2-reviewsrcsrcsrcgit diffsrcsrcsrc| Extension | Review Content |
|---|---|
| Vue2 single-file components (template, script, style) |
| JavaScript files (code style, import order, naming conventions, logical errors) |
| CSS styles (BEM naming, formatting, scoped usage) |
| SCSS styles (BEM naming, formatting, nesting rules) |
| Less styles (BEM naming, formatting, variable usage) |
srcThe current project does not meet the directory requirements for Vue2 frontend code review. This skill only supports frontend projects containing an src directory. And terminate.
git diff --name-only HEADgit diff --cached --name-onlysrcThere are no modified files in the current src directory that need review. And terminate.
| # | Dimension | Reference File |
|---|---|---|
| 1 | Vue2 Component Specifications (script structure, element attribute order, props, emit, lifecycle, naming) | |
| 2 | Code Style (indentation, quotes, semicolons, trailing commas, arrow functions, 9 groups of import order) | |
| 3 | Naming Conventions (API functions, event functions, constants, props, component names, emit events) | |
| 4 | Logical Errors (null pointers, array out of bounds, logical judgments, internal method order) | |
| 5 | Network Request Specifications (async/await + try/catch, unified response mode, flattening) | |
| 6 | Computed Specifications (must use try/catch, meaningful naming) | |
| 7 | Security Vulnerabilities (XSS, sensitive information leakage) | |
| 8 | Best Practices (cleanup of debugging code, BEM + scoped, unused variables) | |
| 9 | Absolute Prohibitions (continuous destructuring, modifying child component data, modifying data types, modifying props) | |
==console.warncatchyy-frontend-commit## Review Result: Pass
### Issue Statistics
| Severity | Count |
| -------- | ---- |
| Critical | 0 |
| Medium | 0 |
| Minor | N |
### Summary
All files comply with Vue2 frontend development specifications, review passed.yy-frontend-commit## Review Result: Fail
### Issue Statistics
| Severity | Count |
| -------- | ---- |
| Critical | N |
| Medium | N |
| Minor | N |
### Issue Details
#### [File Name]
**Critical Issues**:
1. **Issue Type**: [Type Description]
- **Location**: File path: line number
- **Description**: [Detailed Description]
- **Code Snippet**: [Involved Code]
- **Repair Suggestion**: [Specific Suggestion]
**Medium Issues**:
...
**Minor Issues**:
...