CommunityResearch & Data Analysisgithub.com

FrontAgent

An AI agent platform for frontend engineering, enhanced with RAG, Skills, SDD, MCP, and more, supporting CLI, VSCode extension, LoRA model, and MCP service.

What is FrontAgent?

FrontAgent is a specialized AI agent platform tailored for frontend engineering, integrating advanced techniques like Retrieval-Augmented Generation (RAG), custom Skills, Structured Data Definitions (SDD), and the Model Context Protocol (MCP) to empower agents. It supports multiple interfaces, including a CLI tool, a VSCode extension, a LoRA model for fine-tuning, and an MCP service, making it versatile for different development workflows. The platform helps developers automate repetitive tasks, generate UI components, manage project structure, and apply frontend best practices by leveraging context-aware AI. Built to work seamlessly in modern frontend environments, FrontAgent enhances productivity by providing intelligent code generation, refactoring suggestions, and component library integration, all while keeping the developer in full control via transparent command-line or IDE interactions.

Works with~Claude Code~Codex CLI~Cursor
npx skills add ceilf6/FrontAgent

Installed? Explore more Research & Data Analysis skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does FrontAgent do?

AI agent platform for frontend engineering with RAG, Skills, SDD, MCP and so on | 通过多种适配前端工程的技术进行赋能的智能体,支持:CLI、VSCode插件、LoRA模型、MCP服务

Overview

FrontAgent is an AI agent platform designed to assist with frontend development tasks. It leverages Retrieval-Augmented Generation (RAG), custom Skills, Structured Data Definitions (SDD), and the Model Context Protocol (MCP) to provide contextual and actionable assistance.

Features

  • CLI: Command-line interface for direct agent interaction.
  • VSCode Extension: Seamless integration within Visual Studio Code.
  • LoRA Model: Fine-tuned model for specialized frontend tasks.
  • MCP Server: Model Context Protocol service for advanced agent orchestration.

Installation

npm install -g frontagent

Or install the VSCode extension from the marketplace.

Usage

CLI

frontagent init
frontagent generate component Button
frontagent run skill optimize-performance

VSCode Extension

Open the command palette (Ctrl+Shift+P or Cmd+Shift+P) and run:

  • FrontAgent: Initialize Project
  • FrontAgent: Generate Component
  • FrontAgent: Run Skill

Configuration

Create a frontagent.config.json in your project root:

{
  "rag": {
    "enabled": true,
    "indexPath": ".frontagent/index"
  },
  "skills": [
    "component-generator",
    "style-converter"
  ],
  "mcp": {
    "serverUrl": "http://localhost:8080"
  }
}

Skills

FrontAgent includes a set of built-in skills:

  • component-generator: Quickly generate React, Vue, or Angular components.
  • style-converter: Convert between CSS, SCSS, and CSS-in-JS.
  • performance-analyzer: Analyze and suggest frontend performance improvements.
  • accessibility-checker: Ensure components meet accessibility standards.

SDD (Structured Data Definitions)

Define structured data for your application:

{
  "sdd": {
    "entities": [
      {
        "name": "User",
        "fields": [
          {"name": "id", "type": "string"},
          {"name": "name", "type": "string"},
          {"name": "email", "type": "string"}
        ]
      }
    ]
  }
}

MCP Integration

Connect to MCP servers to extend agent capabilities:

frontagent mcp add https://mcp.example.com/schema

Contributing

Contributions are welcome! Please see the GitHub repository for guidelines.

License

MIT

Related Skills