mcp-repo-scan
Comprehensive RE-Engine repository health audit, issue resolution, and architectural enhancement through systematic codebase analysis
Best use case
mcp-repo-scan is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Comprehensive RE-Engine repository health audit, issue resolution, and architectural enhancement through systematic codebase analysis
Teams using mcp-repo-scan should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/mcp-repo-scan/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How mcp-repo-scan Compares
| Feature / Agent | mcp-repo-scan | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Comprehensive RE-Engine repository health audit, issue resolution, and architectural enhancement through systematic codebase analysis
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Purpose
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/*/`: `npm run build` (all MCP servers)
# Detailed Scan Execution Phases
## Phase 1: Repository Structure & Code Quality Audit
1. **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)
2. **Component Architecture Analysis**:
- `engine/`: Core backend API, business logic orchestration, message routing engine
- `web-dashboard/`: React-based approval interface, real-time monitoring dashboard
- `playwright/`: Browser automation framework for human-in-the-loop workflow execution
- `mcp/`: Model Context Protocol servers (reengine-core, reengine-browser, reengine-tinyfish)
- `scripts/`: Deployment automation, utility scripts, maintenance routines
3. **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
4. **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
5. **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
6. **Development Workflow Enhancement**:
- Build optimization: `npm run build` (parallel compilation, tree-shaking)
- Testing strategies: `npm test` (unit), `npm run test:integration` (API), `npm run test:smoke` (E2E)
- Code quality: `npm run lint` (ESLint), `npm run format` (Prettier), `npm run typecheck` (TypeScript)
- Local development: `npm run dashboard` (UI), `npm run mcp:start` (servers)
7. **Deployment Pipeline Optimization**:
- Staging deployment: `npm run deploy:staging` (manual) or GitHub Actions (develop branch auto)
- Production deployment: `npm run deploy:production` (manual) or GitHub Actions (release branch auto)
- CI/CD enhancements: security scanning → dependency analysis → build validation → automated deployment
8. **Environment Configuration Management**:
- Required environment variables (`.env.example` validation)
- Database connection pooling (PostgreSQL max_connections, Redis cluster config)
- External service integration health checks (WhatsApp API status, email provider deliverability)
## Phase 4: MCP Server Deep Dive
9. **MCP Server Architecture Review**:
- `mcp-reengine-core/`: Business logic abstraction layer, tool orchestration
- `mcp-reengine-browser/`: Playwright integration, browser automation primitives
- `mcp-reengine-tinyfish/`: Specialized domain tools, custom workflow implementations
10. **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)
11. **MCP Performance Validation**:
- Load testing: `npm run mcp:start` with concurrent request simulation
- Memory leak detection in long-running processes
- Tool execution timeout optimization
- Inter-server communication efficiency
## Phase 5: Documentation Enhancement & Reporting
12. **Documentation Updates**:
- `docs/ARCHITECTURE.md`: Updated component interaction diagrams
- `docs/FLOWS.md`: Detailed workflow sequence diagrams
- `docs/OPERATIONS.md`: Enhanced development/deployment procedures
- `docs/MCP_SERVERS.md`: Comprehensive MCP server implementation guide
13. **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 frameworkRelated Skills
incident-report-debugging
Create comprehensive incident reports with knowledge graphs. Use when debugging production issues where you need to trace root cause through multiple code entities. Documents debug process, entity relationships, reasoning→pattern→codebase chain, and prevention strategies.
generate-status-report
Comprehensive system status report with services, infrastructure, performance metrics, and recommendations
frontend-mobile-security-xss-scan
You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection poi
existing-repo
Analyze existing repositories, maintain structure, setup guardrails and best practices
code-repository-intel
Scans GitHub/GitLab for public repos, dependencies, and CI configurations
chatgpt-archive-topic-background-report
Build a topic-focused research collection from ChatGPT archive viewer conversations (latest archive or all archives), run a background Responses API consolidation job with web search, and save markdown plus raw response artifacts. Use when the user asks to find archive threads by topic, reconcile repetition/contradictions, and generate a saved report with minimal polling noise.
bio-read-qc-quality-reports
Generate and interpret quality reports from FASTQ files using FastQC and MultiQC. Assess per-base quality, adapter content, GC bias, duplication levels, and overrepresented sequences. Use when performing initial QC on raw sequencing data or validating preprocessing results.
accessing-github-repos
GitHub repository access in containerized environments using REST API and credential detection. Use when git clone fails, or when accessing private repos/writing files via API.
accessibility-report
Generate accessibility compliance reports including VPAT and ACR documents
acc-create-repository
Generates DDD Repository interfaces and implementation stubs for PHP 8.5. Creates domain interfaces in Domain layer, implementation in Infrastructure.
acc-create-mock-repository
Generates InMemory repository implementations for PHP 8.5 testing. Creates fake repositories with array storage, supporting CRUD operations and queries without database.
power-bi-report-design-best-practices
Comprehensive Power BI report design and visualization best practices based on Microsoft guidance for creating effective, accessible, and performant reports and dashboards. Triggers on: **/*.{pbix,md,json,txt}