create-full-stack-panel-feature-with-server-wiring
What it does
This skill guides the AI agent through adding a new dashboard panel that touches the backend, the frontend and the server wiring. It is for developers who want a new panel to match the existing code.
When to use it
- βWhen you are adding a new panel type to a dashboard or admin interface.
- βWhen a feature spans server routes, services and UI components.
- βWhen the server uses a manual request dispatch instead of Express routing.
Skill link
https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/create-full-stack-panel-feature-with-server-wiring/SKILL.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βAdd a new metrics panel to my dashboard, with its server route and services, and wire the route into the server so it works.β
5 new skills a week. 1 minute to read.
How it works
The agent finds existing examples of routes, services, components and the server entry point. It reads them to learn the conventions, then creates the new files and adds the new route handler to the server's dispatch table.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Create Full-Stack Panel Feature (with Server Wiring)
This skill guides you through creating a complete, pattern-consistent panel feature across all application layers: backend API routes, service logic, frontend components, registration, styling β and crucially, wiring the new route handler into the server's dispatch table, whether that uses Express or a manual http.createServer pattern.
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
- Projects that use a manual
http.createServerdispatch loop instead of Express router mounting
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" -o -name "*route*.ts" -o -name "*routes*.ts" | grep -E "(panel|dashboard|server)"
# Find service files
find . -name "*service*.js" -o -name "*service*.ts" | grep -E "(panel|dashboard|server)"
# Find UI components
find . -name "*.jsx" -o -name "*.tsx" -o -name "*.ts" | grep -i panel
# Find the server entry point (critical for wiring step)
find . -name "index.ts" -o -name "index.js" -o -name "server.ts" -o -name "server.js" | grep -v node_modules | head -10
# Find registration/config files
find . -name "*config*.js" -o -name "*registry*.js" -o -name "*config*.ts" -o -name "*registry*.ts"
# 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.ts) - Code structure and organization
- Import/export patterns
- Registration mechanisms
- API endpoint patterns
- Error handling approaches
- Styling conventions
Also read the server entry point (server/index.ts, src/server.ts, etc.) to determine which dispatch pattern is used:
# Read the server entry point to identify routing mechanism
cat server/index.ts # or server/index.js, src/server.ts, etc.
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
Server Dispatch Pattern:
- β Express app.use() / router.use() β Express routing
- β switch/case on url/pathname β Manual dispatch table
- β if/else if chain on url β Manual dispatch chain
- β handler map object { '/path': fn }β Handler map pattern
3. Plan Your Feature Files
Based on patterns, list the files you need to create and the existing files you need to update:
Typical full-stack panel structure:
- Server route handler (e.g.,
server/routes/system-health-route.ts) - Service layer (e.g.,
server/services/system-health-service.ts) - UI component (e.g.,
client/panels/SystemHealthPanel.ts) - Panel registration (e.g., update
client/config/panel-registry.ts) - Styling (e.g.,
client/styles/system-health-panel.css) - Type definitions (if TypeScript, e.g.,
types/system-health.ts) - β οΈ Server wiring (update
server/index.tsto import and dispatch to the new handler)
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
reactorreact-domis present inpackage.jsonβ use the React/JSX template (Step 4C-React). - If components are
.tsfiles extending aPanelbase class β use the Vanilla TS template (Step 4C-Vanilla). - When in doubt, read one or two existing component files to conf
FAQ
Why find the server entry point first?
The skill says the wiring step depends on how the server dispatches requests, which must be found first.
Does it work with Express?
Yes, the skill covers both Express middleware and a manual http.createServer switch or case pattern.
Does it match existing style?
Yes, the skill has the agent read existing examples so the new code follows the same patterns.
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, styling files, AND explicitly wiring new handlers into the server's dispatch table (supports both Express middleware and manual http.createServer switch/case patterns).
repo: HKUDS/AgentPilot
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #13041
- License
- MIT
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.