원클릭으로
add-component
Add a new React component with Material UI
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add a new React component with Material UI
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Read-only — assemble the wider runtime picture of a deployed voice app from azd deployment artifacts and Azure Monitor (Application Insights / Log Analytics) via Azure MCP or az CLI, then render it as KQL, call timelines, latency waterfalls, and mermaid diagrams
Service catalog and guided onboarding for the azd deployment. USE WHEN the user wants to discover, install, set up, or be walked through the deployable components (Azure OpenAI/AI Foundry, Speech, ACS/telephony, Cosmos DB, Redis, Container Apps, Key Vault, App Config, CardAPI MCP), asks "what gets deployed", "what services does this use", "help me onboard", "set up the deployment", "guide me through azd up", "which components do I need", or wants to enable optional pieces (phone number, EasyAuth, data seeding). Acts as the entry point an agent hooks into to assess current state, present the catalog, and onboard each component. DO NOT USE FOR: deep azd hook/flow internals or model-availability checks (use deployment-guide); runtime failure diagnosis (use troubleshoot); telemetry/log analysis (use observability-insights).
Agent-first, read-only diagnosis of the voice pipeline (deploy, telephony, STT, LLM, TTS, state) — gather evidence via Azure MCP / azd artifacts / CLI, probe the user for missing details, and recommend fixes without changing anything
Require relevant tests and documentation updates for any code or config change, and report what was run.
Create or update evaluation scenarios for the tests/evaluation framework, including session-based scenarios and A/B comparisons
Guide azd-based deployments, including where azure.yaml and azd hook scripts live, the current deployment flow, troubleshooting docs, and regional/model availability checks for Azure OpenAI
| name | add-component |
| description | Add a new React component with Material UI |
Add React components to apps/artagent/frontend/src/components/.
/**
* ComponentName
* Brief description of what this component does.
*/
import { memo, useCallback, useState } from 'react';
import { Box, Typography, Button } from '@mui/material';
// ═══════════════════════════════════════════════════════════════════════════════
// COMPONENT
// ═══════════════════════════════════════════════════════════════════════════════
const ComponentName = memo(function ComponentName({ prop1, prop2, onAction }) {
const [state, setState] = useState(null);
const handleAction = useCallback(() => {
onAction?.(state);
}, [onAction, state]);
return (
<Box
sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
gap: 2,
}}
>
<Typography variant="h6">{prop1}</Typography>
<Button onClick={handleAction} variant="contained">
Action
</Button>
</Box>
);
});
export default ComponentName;
src/components/ComponentName.jsxmemo() for performance optimizationuseCallback() for event handlerssx prop for styling with theme valuessx Prop// Theme spacing: p: 2 = 16px (8px * 2)
<Box
sx={{
p: 2,
mt: 1,
bgcolor: 'background.paper',
borderRadius: 1,
display: 'flex',
gap: 2,
}}
/>
// Responsive values
<Stack
direction={{ xs: 'column', sm: 'row' }}
spacing={{ xs: 1, sm: 2, md: 4 }}
/>
// Layout
import { Box, Stack, Container, Grid } from '@mui/material';
// Inputs
import { TextField, Button, IconButton } from '@mui/material';
// Display
import { Typography, List, Chip, Avatar } from '@mui/material';
// Feedback
import { Dialog, Snackbar, Alert, CircularProgress } from '@mui/material';
// Icons
import { Send, Mic, Settings, Close } from '@mui/icons-material';
// Always add aria-label to icon buttons
<IconButton aria-label="Send message" onClick={handleSend}>
<SendIcon />
</IconButton>
// Use semantic HTML via component prop
<Typography component="h1" variant="h4">
Page Title
</Typography>
// Destructure with defaults
const Component = ({
title = 'Default',
isLoading = false,
onSubmit,
children,
}) => { ... };
For complex logic, create custom hook in hooks/:
// hooks/useComponentLogic.js
export const useComponentLogic = (initialValue) => {
const [value, setValue] = useState(initialValue);
const handleChange = useCallback((newValue) => {
setValue(newValue);
}, []);
return { value, handleChange };
};