No slash command · from code-forge
Converts Figma designs into Emotion styled React components with pixel-perfect fidelity, including layout, color, typography, and state-based styling.
Ships in code-forge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 | 금지 패턴 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (ggombee/code-forge) — no native marketplace selected
npx claudepluginhub p/ggombee-code-forge22 skills in this plugin
Other plugins' skills for the same job