Analytics Engine
Relevant source files
The following files were used as context for generating this wiki page:
- cli-tool/components/agents/programming-languages/technical-content-evaluator.md
- cli-tool/components/agents/expert-advisors/modernization.md
- cli-tool/components/skills/ai-research/loki-mode/references/business-ops.md
- cli-tool/components/agents/ui-analysis/screenshot-synthesizer.md
- cli-tool/components/agents/expert-advisors/implementation-plan.md
- cli-tool/components/commands/orchestration/feature-dev.md
The Analytics Engine is a multi-faceted analytical framework designed to evaluate, synthesize, and report on various aspects of software development, content quality, and business operations. It functions as an automated intelligence layer that processes raw inputs—ranging from legacy codebases and technical training materials to UI screenshots—into structured, actionable data.
The engine facilitates deep-dive technical audits, performance tracking, and modernization planning. By utilizing specialized agents and standardized metrics, it ensures that project transitions, feature developments, and content strategies are grounded in empirical analysis rather than speculation.
Sources: modernization.md, technical-content-evaluator.md, business-ops.md
Core Analytical Components
The system is structured into specialized modules that handle specific types of data analysis.
1. Technical Content Evaluation
This component performs rigorous audits of educational and technical materials. It uses a weighted scoring system to distinguish between "Real Courses" and "Documentation Wrappers."
| Metric | Purpose | Impact on Grade |
|---|---|---|
| Documentation Wrapper Score | Measures teaching content vs. external links | -40 points if primary content is external |
| Exercise Reality Score | Counts real vs. aspirational exercises | F grade if < 20% real exercises |
| Repository Honesty Score | Verifies existence of claimed local files | -25 points if > 10 files missing |
| Link Integrity Score | Checks for duplicate or broken URLs | D ceiling if > 5 duplicates |
Sources: technical-content-evaluator.md:40-200
2. Business Operations Analytics
This module tracks key performance indicators (KPIs) across sales, finance, and marketing. It provides standardized frameworks for calculating business health metrics like churn, runway, and conversion rates.
The diagram shows the classification and processing flow of raw business data into specific performance categories.
Sources: business-ops.md:144-165
3. UI and Feature Synthesis
The engine includes a specialized synthesizer that merges disparate analyses (UI, Interaction, and Business) into a unified feature list.
Sources: screenshot-synthesizer.md:14-25
Modernization and Code Analysis Workflow
The Analytics Engine drives a mandatory 9-step modernization workflow that prioritizes deep understanding over immediate execution.
Analysis Phase Logic
The engine enforces exhaustive analysis before any planning begins. It calculates a "File Coverage" metric where completion is only granted when files_analyzed / total_files = 1.0.
This flowchart represents the sequential dependencies of the modernization analytical process.
Sources: modernization.md:130-310
Feature Breakdown Tracking
During the "Deep Business Logic" phase (Step 3), the engine reports progress using structured metadata:
- Total Files Analyzed: Absolute count vs. total.
- Feature Cataloging: Grouping files by business domain (e.g., Services, Repositories, Models).
- Complexity Metrics: Identifying code segments exceeding 30 lines for refactoring.
Sources: modernization.md:323-340, technical-content-evaluator.md:140-145
Performance and Web Vitals Analytics
The engine monitors technical performance indicators for web platforms, specifically targeting Core Web Vitals to improve search engine optimization (SEO) and user experience.
| KPI | Target | Optimization Strategy |
|---|---|---|
| Largest Contentful Paint (LCP) | < 2.5s | Image optimization, CDN usage |
| First Input Delay (FID) | < 100ms | Minimize JS execution, break long tasks |
| Cumulative Layout Shift (CLS) | < 0.1 | Size attributes on images, avoid dynamic inserts |
Sources: business-ops.md:25-35, technical-writer.md
Implementation and Reporting
The final output of the analytical process is typically a structured plan or report. These documents use standardized statuses and badges for automated tracking.
Status Indicators
- Completed: Bright Green Badge (Ready for deployment)
- In Progress: Yellow Badge (Active development)
- Planned: Blue Badge (Backlog)
- Deprecated/On Hold: Red/Orange Badge (Archived or paused)
Sources: implementation-plan.md:55-65
Reporting Structure
The engine emits GitHub Flavored Markdown (GFM) that includes:
- High-Level Summaries: Narrative overviews of findings.
- RFI (Request for Information): Batched list of missing data points to prevent guessing.
- RAI Footer: Mandatory attribution for AI-generated documentation.
Sources: hlbpa.md:100-140
Conclusion
The Analytics Engine provides the foundational intelligence required for complex software operations. By enforcing strict file coverage, calculating pedagogical quality scores, and monitoring business KPIs, it ensures that all project decisions are backed by comprehensive, multi-dimensional analysis. This structured approach reduces technical debt and aligns technical implementation with business objectives.
Sources: modernization.md:430-450, feature-dev.md