npx claudepluginhub ggombee/code-forgeThis skill uses the workspace's default tool permissions.
> Figma 디자인을 Emotion styled 기반 코드로 변환
Extracts components and design tokens from Figma, converts designs to React components, exports tokens as CSS/JSON, and automates design-to-code sync. Ideal for React apps using Figma designs.
Generates production-ready React, Vue, or HTML/CSS code from Figma components or frames via Figma MCP server with Code Connect support. For design-to-code workflows.
Translates Figma designs into production-ready UI code with 1:1 visual fidelity using MCP server. Use for Figma node URLs, selections, or 'implement design' requests.
Share bugs, ideas, or general feedback.
Figma 디자인을 Emotion styled 기반 코드로 변환
| 트리거 | 반응 |
|---|---|
| Figma URL 제공 | 즉시 실행 |
| "Figma 변환", "디자인 구현" | 스킬 활성화 |
/start 커맨드 내 Figma 분석 | 자동 연계 |
// Figma MCP 도구로 디자인 컨텍스트 추출
mcp__figma__get_design_context({
fileKey: '{file_key}',
nodeId: '{node_id}',
clientLanguages: 'typescript',
clientFrameworks: 'react',
});
추출 항목:
파일 구조:
{컴포넌트}/
├── index.tsx # 컴포넌트 로직
└── styled.ts # Emotion styled 정의
styled.ts 템플릿:
import styled from '@emotion/styled';
export const Container = styled.div`
display: flex;
flex-direction: column;
gap: 16px;
padding: 24px;
`;
// 상태별 스타일 (transient props: $접두사)
export const FilterButton = styled.button<{ $isSelected: boolean }>`
padding: 8px 16px;
`;
index.tsx 템플릿:
import { FC } from 'react';
import { Container, Title, FilterButton } from './styled';
interface Props {
// props 정의
}
export const Component: FC<Props> = ({ ...props }) => {
return (
<Container>
{/* styled 컴포넌트 직접 사용 */}
</Container>
);
};
여러 컴포넌트를 동시에 생성할 때:
TeamCreate({ team_name: 'figma-team', description: 'Figma to Code 변환' });
Task(subagent_type='implementor', team_name='figma-team', name='component-1', model='sonnet',
prompt='FilterButton 컴포넌트 구현');
Task(subagent_type='implementor', team_name='figma-team', name='component-2', model='sonnet',
prompt='DateControls 컴포넌트 구현');
// 완료 후 → shutdown_request → TeamDelete
Agent Teams 미가용 시 Task 병렬 호출로 폴백
Pixel-perfect 체크리스트:
| 금지 | 대안 |
|---|---|
| inline style 객체 | Emotion styled |
| 하드코딩 색상 | semantic color |
| px 매직넘버 | 변수화 또는 주석 |
| !important | specificity 조정 |
| 문서 | 용도 |
|---|---|
@${CLAUDE_PLUGIN_ROOT}/instructions/validation/forbidden-patterns.md | 금지 패턴 |