mirror of
https://github.com/steipete/agent-rules.git
synced 2025-12-16 12:00:09 +01:00
Added comprehensive rules adapted from vincenthopf/claude-code: Development Workflows: - commit.mdc, commit-fast.mdc: Git commit workflows - add-to-changelog.mdc: Structured changelog updates - pr-review.mdc: Multi-role PR review checklist Code Quality: - check.mdc: Multi-language code quality checks - clean.mdc: Auto-fix formatting and linting - code-analysis.mdc: Advanced analysis options Problem Solving: - analyze-issue.mdc: GitHub issue analysis - bug-fix.mdc: Complete bug-fixing workflow - implement-task.mdc: Methodical implementation - five.mdc: Five Whys root cause analysis Documentation: - create-docs.mdc: Comprehensive doc generation - mermaid.mdc: Diagram generation Project Setup: - context-prime.mdc: Load project context - create-command.mdc: Create custom commands Credit: @vincenthopf (https://github.com/vincenthopf/claude-code) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# 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` |