create-full-stack-panel-feature
यह क्या करती है
यह स्किल AI एजेंट को ऐसा डैशबोर्ड पैनल बनाने का मार्गदर्शन देती है जो ऐप की कई परतों तक फैला हो। यह उन डेवलपर्स के लिए है जिन्हें नया फ़ीचर अपने कोडबेस के पैटर्न के अनुसार चाहिए।
कब इस्तेमाल करें
- ✓जब आप डैशबोर्ड या एडमिन स्क्रीन में नया पैनल जोड़ रहे हों।
- ✓जब किसी फ़ीचर में बैकएंड, सर्विस, UI और स्टाइलिंग का काम एक साथ चाहिए।
- ✓जब आप चाहते हैं कि नया कोड वही नामकरण और ढांचा रखे जो मौजूदा कोड में है।
Skill का लिंक
https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/create-full-stack-panel-feature/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे एडमिन डैशबोर्ड में सर्वर स्टेटस के लिए नया पैनल जोड़िए। बाकी पैनल कैसे बने हैं, वह देखकर उसी पैटर्न पर चलिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट मौजूदा पैनल के रूट, सर्विस, कंपोनेंट, कॉन्फ़िग और स्टाइल फ़ाइलें खोजता है। हर परत से एक या दो उदाहरण पढ़कर वह नामकरण, इंपोर्ट, एरर हैंडलिंग और स्टाइलिंग सीखता है, फिर उसी तरीके से नया फ़ीचर बनाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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:
- Server route (e.g.,
server/routes/system-health-route.js) - Service layer (e.g.,
server/services/system-health-service.js) - UI component (e.g.,
client/components/SystemHealthPanel.jsx) - Panel registration (e.g., update
client/config/panel-registry.js) - Styling (e.g.,
client/styles/system-health-panel.css) - 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
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 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 = () => {
अक्सर पूछे जाने वाले सवाल
एजेंट सबसे पहले क्या देखता है?
वह उदाहरण के रूप में मौजूदा पैनल के रूट, सर्विस, कंपोनेंट, कॉन्फ़िग और CSS फ़ाइलें खोजता है।
वह कितने उदाहरण पढ़ता है?
स्किल कहती है कि हर परत से एक या दो प्रतिनिधि उदाहरण पढ़े जाएं।
क्या नया पैनल बाकी पैनलों से मेल खाएगा?
लक्ष्य एकरूपता है, इसलिए स्किल एजेंट से उदाहरणों से नामकरण, ढांचा और एरर हैंडलिंग कॉपी करने को कहती है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 7.8k
- रैंकिंग में स्थान
- #13042
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
agentpilot
7.8kआपके एजेंट को AgentPilot से प्रोजेक्ट को चरण-दर-चरण सुधारने में मदद करती है, जिसमें बदलाव सुझाए, परखे और स्कोर किए जाते हैं।
openspace
7.8kआपके एजेंट को OpenSpace सेट करने में मदद करती है, जो एजेंट स्किल्स सहेजता और वापस लाता है, और MCP के ज़रिए आपके AI ऐप से जुड़ता है।
rsi-arena
7.8kआपके एजेंट को AIME और Terminal-Bench जैसे मानक AI बेंचमार्क टेस्ट सेट करने और चलाने में मदद करती है, ताकि सुधार के तरीकों की तुलना हो सके।
experiment-guide
7.8kआपके एजेंट को छोटे प्रयोग बनाने, उनके नतीजे पढ़ने और जाँच के दौरान उपयोगी निष्कर्ष लिखने में मदद करती है।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।