Skip to content
Skillpedia
Websites & UI (frontend)7.8k Β· #13042

create-full-stack-panel-feature

What it does

This skill guides the AI agent through creating a dashboard panel that spans several layers of an app. It is for developers who want a new feature to follow the patterns already in their codebase.

When to use it

  • βœ“When you are adding a new panel to a dashboard or admin screen.
  • βœ“When a feature needs backend, service, UI and styling work together.
  • βœ“When you want the new code to keep the same naming and structure as existing code.

Skill link

https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/create-full-stack-panel-feature/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/create-full-stack-panel-feature/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œAdd a new panel for server status to my admin dashboard. Look at how the other panels are built and follow the same pattern.”

5 new skills a week. 1 minute to read.

How it works

The agent searches for existing route, service, component, config and style files for panels. It reads one or two examples per layer to learn the naming, imports, error handling and styling, then builds the new feature the same way.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Create Full-Stack Panel Feature

This skill guides you through creating a complete, pattern-consistent panel feature across all application layers: backend API routes, service logic, frontend components, registration, and styling.

When to Use

  • Adding a new panel type to a dashboard or admin interface
  • Creating a feature that spans multiple architectural layers
  • Ensuring consistency with existing codebase patterns across the stack

Workflow Steps

1. Identify Pattern Files

Locate existing examples for each layer you need to implement:

# Find existing server routes
find . -name "*route*.js" -o -name "*routes*.js" | grep -E "(panel|dashboard)"

# Find service files
find . -name "*service*.js" | grep -E "(panel|dashboard)"

# Find UI components
find . -name "*.jsx" -o -name "*.tsx" | grep -i panel

# Find registration/config files
find . -name "*config*.js" -o -name "*registry*.js"

# Find styling files
find . -name "*.css" -o -name "*.scss" | grep -i panel

2. Read and Analyze Patterns

Read 1-2 representative examples from each layer to understand:

  • Naming conventions (e.g., MetricsPanel, metrics-service.js)
  • Code structure and organization
  • Import/export patterns
  • Registration mechanisms
  • API endpoint patterns
  • Error handling approaches
  • Styling conventions

Example analysis checklist:

Server Route Pattern:
- βœ“ Endpoint naming: /api/panels/{type}
- βœ“ Authentication middleware
- βœ“ Response format: { success, data, error }

Service Pattern:
- βœ“ Export structure: class vs functions
- βœ“ Data transformation logic
- βœ“ Error propagation

Component Pattern:
- βœ“ Props interface
- βœ“ State management (hooks/class)
- βœ“ Data fetching approach
- βœ“ Loading/error states

Registration Pattern:
- βœ“ Registry file location
- βœ“ Registration format (array/object)
- βœ“ Required metadata fields

3. Plan Your Feature Files

Based on patterns, list the files you need to create:

Typical full-stack panel structure:

  1. Server route (e.g., server/routes/system-health-route.js)
  2. Service layer (e.g., server/services/system-health-service.js)
  3. UI component (e.g., client/components/SystemHealthPanel.jsx)
  4. Panel registration (e.g., update client/config/panel-registry.js)
  5. Styling (e.g., client/styles/system-health-panel.css)
  6. Type definitions (if TypeScript, e.g., types/system-health.ts)

4. Create Files in Order

3b. Detect Project Framework

Before selecting templates in Step 4, determine the frontend framework in use:

# Check for React
grep -s "react" package.json | head -5

# Check for TypeScript without React (vanilla TS)
ls client/components/*.ts 2>/dev/null | head -3
ls client/panels/*.ts 2>/dev/null | head -3

# Check for a Panel base class (common in vanilla TS dashboards)
grep -r "class.*Panel" client/ --include="*.ts" -l | head -3
grep -r "extends Panel" client/ --include="*.ts" -l | head -3

Decision rule:

  • If react or react-dom is present in package.json β†’ use the React/JSX template (Step 4C-React).
  • If components are .ts files extending a Panel base class β†’ use the Vanilla TS template (Step 4C-Vanilla).
  • When in doubt, read one or two existing component files to confirm before proceeding.

4. Create Files in Order

Generate files in dependency order (backend β†’ frontend β†’ registration):

A. Server Route

// server/routes/{feature}-route.js
const express = require('express');
const router = express.Router();
const featureService = require('../services/{feature}-service');

router.get('/api/panels/{feature}', async (req, res) => {
  try {
    const data = await featureService.getData();
    res.json({ success: true, data });
  } catch (error) {
    res.status(500).json({ success: false, error: error.message });
  }
});

module.exports = router;

B. Service Layer

// server/services/{feature}-service.js
class FeatureService {
  async getData() {
    // Implementation following existing service patterns
    // - Data fetching
    // - Business logic
    // - Data transformation
    return processedData;
  }
}

module.exports = new FeatureService();

C-React. UI Component (React/JSX projects)

Use this template only when React is confirmed in Step 3b.

// client/components/{Feature}Panel.jsx
import React, { useState, useEffect } from 'react';
import './styles/{feature}-panel.css';

const FeaturePanel = () => {
FAQ

What does the agent look at first?

It searches for existing panel routes, services, components, config and CSS files as examples.

How many examples does it read?

The skill says to read one or two representative examples from each layer.

Will the new panel match the others?

The goal is consistency, so the skill asks the agent to copy naming, structure and error handling from the examples.

Details

Original description by the author

Multi-layer workflow for creating complete panel features by analyzing existing patterns and generating coordinated server routes, services, UI components, registration, and styling files.

repo: HKUDS/AgentPilot

Popularity

GitHub stars
7.8k
Ranking position
#13042
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills