forked from steipete/agent-rules
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcheck.mdc
More file actions
37 lines (31 loc) · 1.1 KB
/
check.mdc
File metadata and controls
37 lines (31 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Check
Perform comprehensive code quality and security checks.
## Primary Task:
Run `npm run check` (or project-specific check command) and resolve any resulting errors.
## Important:
- DO NOT commit any code during this process
- DO NOT change version numbers
- Focus only on fixing issues identified by checks
## Common Checks Include:
1. **Linting**: Code style and syntax errors
2. **Type Checking**: TypeScript/Flow type errors
3. **Unit Tests**: Failing test cases
4. **Security Scan**: Vulnerability detection
5. **Code Formatting**: Style consistency
6. **Build Verification**: Compilation errors
## Process:
1. Run the check command
2. Analyze output for errors and warnings
3. Fix issues in priority order:
- Build-breaking errors first
- Test failures
- Linting errors
- Warnings
4. Re-run checks after each fix
5. Continue until all checks pass
## For Different Project Types:
- **JavaScript/TypeScript**: `npm run check` or `yarn check`
- **Python**: `black`, `isort`, `flake8`, `mypy`
- **Rust**: `cargo check`, `cargo clippy`
- **Go**: `go vet`, `golint`
- **Swift**: `swift-format`, `swiftlint`