monorepo-improver

Frontal SDK monorepo specialist with expertise in TypeScript monorepo optimization, package dependency management, build system enhancement, and development workflow improvements. Use when optimizing @frontal/* monorepo structure, improving build performance, or managing package dependencies.

frontal-labs/agent-skills1 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: monorepo-improver
description: Frontal SDK monorepo specialist with expertise in TypeScript monorepo optimization, package dependency management, build system enhancement, and development workflow improvements. Use when optimizing @frontal/* monorepo structure, improving build performance, or managing package dependencies.
license: MIT
---

# Frontal SDK Monorepo Improver

**ROLE**: Advanced monorepo analysis and improvement specialist for Frontal SDK packages using LangChain integration for codebase optimization, testing enhancement, and architectural improvements.

**ACTIVATION**: This agent is triggered by: "Frontal SDK monorepo", "@frontal package structure", "TypeScript monorepo optimization", "SDK build performance", "package dependencies", "monorepo workflow", "Frontal SDK structure"

## Frontal SDK Monorepo Architecture

###  Current Monorepo Structure
    dependencies: []
    
  - id: "002"
    type: "test"
    description: "Add integration tests for API endpoints"
    priority: "medium"
    estimated_effort: "3 days"
    dependencies: ["001"]
```

**Phase 3: Implementation**

```typescript
// Implementation tracking
interface ImprovementTask {
  id: string;
  status: 'pending' | 'in_progress' | 'completed' | 'blocked';
  startedAt?: Date;
  completedAt?: Date;
  assignee?: string;
  notes?: string[];
}
```

###  Quality Metrics

**Code Quality Indicators**:

- **Complexity**: Cyclomatic complexity analysis
- **Maintainability**: Code maintainability index
- **Test Coverage**: Line, branch, and function coverage
- **Performance**: Response time and throughput metrics
- **Security**: Vulnerability scan results

**Quality Gates**:

```yaml
# quality-gates.yml
gates:
  complexity:
    max: 10
    tool: "sonarqube"
    
  coverage:
    min: 80
    tool: "codecov"
    
  security:
    max_vulnerabilities: 0
    tool: "snyk"
    
  performance:
    max_response_time: "200ms"
    tool: "lighthouse"
```

## Monorepo Optimization

###  Structure Improvements

**Package Organization**:

```
monorepo/
├── packages/
│   ├── core/           # Shared utilities
│   ├── ui/             # UI components
│   ├── api/            # API definitions
│   └── types/          # TypeScript types
├── apps/
│   ├── web/            # Web application
│   ├── mobile/         # Mobile application
│   └── desktop/        # Desktop application
├── tools/
│   ├── build/          # Build scripts
│   ├── deploy/         # Deployment scripts
│   └── dev/            # Development tools
└── docs/               # Documentation
```

**Dependency Management**:

```json
// package.json workspace config
{
  "workspaces": [
    "packages/*",
    "apps/*",
    "tools/*"
  ],
  "scripts": {
    "build": "turbo run build",
    "test": "turbo run test",
    "lint": "turbo run lint",
    "dev": "turbo run dev --parallel"
  }
}
```

###  Build Optimization

**Turbo Configuration**:

```json
// turbo.json
{
  "$schema": "https://turbo.build/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**", ".next/**", "!.next/cache/**"]
    },
    "test": {
      "dependsOn": ["build"],
      "outputs": ["coverage/**"]
    },
    "lint": {
      "outputs": []
    },
    "dev": {
      "cache": false,
      "persistent": true
    }
  }
}
```

###  Testing Strategy

**Test Organization**:

```typescript
// Test configuration
const testConfig = {
  unit: {
    pattern: "**/*.test.{ts,js,py}",
    timeout: 5000,
    parallel: true
  },
  integration: {
    pattern: "**/*.integration.{ts,js,py}",
    timeout: 30000,
    parallel: false
  },
  e2e: {
    pattern: "**/*.e2e.{ts,js}",
    timeout: 60000,
    parallel: false,
    retries: 2
  }
};
```

## Agent Output Requirements

**Provide comprehensive improvement plans** including:

- **Assessment Report**: Current state analysis with metrics
- **Improvement Roadmap**: Prioritized list of improvements
- **Implementation Guide**: Step-by-step procedures
- **Quality Metrics**: Measurable improvement indicators
- **Risk Analysis**: Potential issues and mitigation strategies

**Always include**:
- Specific code examples and configurations
- Performance benchmarks and targets
- Testing strategies and coverage goals
- Documentation requirements
- Timeline and resource estimates

More Architecture skills

← All Architecture skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY