Awesome-omni-skill mcp-repo-scan
Comprehensive RE-Engine repository health audit, issue resolution, and architectural enhancement through systematic codebase analysis
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/mcp-repo-scan" ~/.claude/skills/diegosouzapw-awesome-omni-skill-mcp-repo-scan && rm -rf "$T"
skills/development/mcp-repo-scan/SKILL.mdPurpose
Perform systematic repository integrity audit, resolve architectural/operational deficiencies, and enhance system performance through detailed analysis of RE-Engine's codebase structure, workflow implementations, and MCP integration patterns.
Pre-Scan Validation Requirements
- Repository synchronized with latest remote commit
- Zero uncommitted changes in working directory
- Full build validation across all components:
:engine/npm run build
:web-dashboard/npm run build
:playwright/npm run build
:mcp/*/
(all MCP servers)npm run build
Detailed Scan Execution Phases
Phase 1: Repository Structure & Code Quality Audit
-
Technology Stack Assessment:
- TypeScript composition: 60.5% (type safety analysis)
- JavaScript composition: 25.2% (migration opportunities)
- Runtime requirements: Node.js v22+, React 18+, Playwright
- Data layer: PostgreSQL (primary), Redis (caching/queues)
-
Component Architecture Analysis:
: Core backend API, business logic orchestration, message routing engineengine/
: React-based approval interface, real-time monitoring dashboardweb-dashboard/
: Browser automation framework for human-in-the-loop workflow executionplaywright/
: Model Context Protocol servers (reengine-core, reengine-browser, reengine-tinyfish)mcp/
: Deployment automation, utility scripts, maintenance routinesscripts/
-
Dependency & Entrypoint Validation:
- Package.json dependency audit (security vulnerabilities, outdated packages)
- Entrypoint file analysis (index.ts, main.js, server.js)
- Circular dependency detection
- Unused import elimination
Phase 2: Flow Analysis & Issue Resolution
-
Outreach Workflow Mapping:
- Lead ingestion → CSV normalization → data enrichment → approval queue population
- Approval workflow → multi-channel dispatch (WhatsApp API, Telegram Bot, SMTP, LinkedIn API, Facebook Graph)
- Automated scheduling infrastructure (daily draft generation @ 08:00 UTC, IMAP polling @ 15-min intervals)
- Response capture → sentiment analysis → CRM integration
-
End-to-End Flow Debugging:
- Request parsing → controller routing → service layer → job queue → persistence layer → external API calls
- Data transformation validation (DTOs, mappers, serializers)
- Error propagation analysis and recovery mechanisms
- Transaction boundary identification and optimization
Phase 3: Performance Optimization
-
Development Workflow Enhancement:
- Build optimization:
(parallel compilation, tree-shaking)npm run build - Testing strategies:
(unit),npm test
(API),npm run test:integration
(E2E)npm run test:smoke - Code quality:
(ESLint),npm run lint
(Prettier),npm run format
(TypeScript)npm run typecheck - Local development:
(UI),npm run dashboard
(servers)npm run mcp:start
- Build optimization:
-
Deployment Pipeline Optimization:
- Staging deployment:
(manual) or GitHub Actions (develop branch auto)npm run deploy:staging - Production deployment:
(manual) or GitHub Actions (release branch auto)npm run deploy:production - CI/CD enhancements: security scanning → dependency analysis → build validation → automated deployment
- Staging deployment:
-
Environment Configuration Management:
- Required environment variables (
validation).env.example - Database connection pooling (PostgreSQL max_connections, Redis cluster config)
- External service integration health checks (WhatsApp API status, email provider deliverability)
- Required environment variables (
Phase 4: MCP Server Deep Dive
-
MCP Server Architecture Review:
: Business logic abstraction layer, tool orchestrationmcp-reengine-core/
: Playwright integration, browser automation primitivesmcp-reengine-browser/
: Specialized domain tools, custom workflow implementationsmcp-reengine-tinyfish/
-
MCP Server Implementation Fixes:
- Tool implementation validation (input sanitization, output formatting)
- JSON schema compliance for request/response structures
- Authentication token validation and refresh mechanisms
- Error handling standardization (retry policies, circuit breakers)
-
MCP Performance Validation:
- Load testing:
with concurrent request simulationnpm run mcp:start - Memory leak detection in long-running processes
- Tool execution timeout optimization
- Inter-server communication efficiency
- Load testing:
Phase 5: Documentation Enhancement & Reporting
-
Documentation Updates:
: Updated component interaction diagramsdocs/ARCHITECTURE.md
: Detailed workflow sequence diagramsdocs/FLOWS.md
: Enhanced development/deployment proceduresdocs/OPERATIONS.md
: Comprehensive MCP server implementation guidedocs/MCP_SERVERS.md
-
Comprehensive Audit Report Generation:
- Issue inventory with severity classification
- Performance improvement metrics (before/after benchmarks)
- MCP server optimization results
- Documentation change log
- Strategic recommendations for continued optimization
Deliverables
Complete audit and enhancement package including:
- Automated fix application scripts
- Interactive issue investigation interface
- Continuous optimization monitoring framework