Enhanced code review and quality analysis tool with 100-point scoring system (90% non-test areas, 10% test areas) for comprehensive quality assessment
npm install @selectamitpatra/code-review-toolUniversal code review and quality analysis tool for microservices with weighted test scoring (80/20 split for core logic vs infrastructure, 10 points total).


- Publishing Guide - Complete guide for versioning and publishing the package
- Release Checklist - Step-by-step checklist for releases
``bashInstall globally
npm install -g @selectamitpatra/code-review-tool
š Available Templates
-
api-gateway - For API Gateway services with proxy and middleware rules
- backend-service - For backend microservices with database and API rules
- frontend - For frontend applications with React/Vue specific rules
- microservice-base - Base rules for any microservicešÆ Features
- ā
Rule-based analysis - Focus on specific issues that matter
- ā
AI integration - Generate prompts for Cursor AI analysis
- ā
Multiple templates - Different rules for different service types
- ā
Extensible - Add custom rules and analyzers
- ā
CI/CD ready - Easy integration with GitHub Actions
š Commands
$3
`bash
Interactive setup
self-serve-review init --interactiveUse specific template
self-serve-review init --template=backend-service
`$3
`bash
Basic analysis
self-serve-review analyzeGenerate AI prompts
self-serve-review analyze --ai-promptsSpecific severity level
self-serve-review analyze --severity=error
`$3
`bash
List available templates
self-serve-review templatesShow template details
self-serve-review templates show api-gateway
`š§ Configuration
Create
.self-serve-review.json in your project root:`json
{
"extends": "api-gateway",
"rules": {
"no-console-log": {
"severity": "error",
"environments": ["production"]
}
},
"ignore": ["dist/", "build/"],
"reporters": ["html", "ai-prompts"]
}
`š¤ AI Integration
The tool generates focused prompts for AI analysis:
`bash
Generate AI prompts
self-serve-review analyze --ai-promptsCopy generated prompts into Cursor AI
@codebase Custom Rule Analysis
[Generated prompt with specific rules to check]
`š Example Output
`
š Self-Serve Code Review Analysis
================================================================================
ā
TypeScript: No type errors found!
ā ESLint: 5 errors, 2 warnings
ā ļø Security: 1 vulnerability found
ā
Tests: Coverage 85%Overall Score: 78/100 (B-)
š Reports generated:
- HTML Report: ./reports/quality-report.html
- AI Prompts: ./reports/ai-prompts.md
`š Documentation
For comprehensive documentation, implementation guides, and detailed usage instructions, see the docs/ folder:
- Quick Reference - Quick start guide
- Implementation Guide - Complete setup walkthrough
- Code Quality System - Quality standards and rules
- Publishing Guide - Publishing and distribution
- Developer Workflow - Complete developer flow with local tools
- Implementation Files - Files to add/update in microservices
- Flow Diagram - Visual workflow representation
šļø Development
`bash
Clone repository
git clone https://github.com/amitselectcarleasing/self-serve-code-review-tool.gitInstall dependencies
npm installRun tests
npm testTest CLI locally
npm link
self-serve-review --help
``MIT License - see LICENSE file for details.