TypeScript 인터페이스 순서 기반 xlsx 엑셀 다운로드 구현
FreeNo executable scriptsNot checked사용자가 정의한 TypeScript 인터페이스의 속성 순서를 기준으로 데이터 배열을 변환하고, xlsx 라이브러리를 사용하여 엑셀 파일로 다운로드하는 함수를 작성합니다.
by ECNU-ICALK★ 623 GitHub starsAbout this skill
TypeScript 인터페이스 순서 기반 xlsx 엑셀 다운로드 구현
사용자가 정의한 TypeScript 인터페이스의 속성 순서를 기준으로 데이터 배열을 변환하고, xlsx 라이브러리를 사용하여 엑셀 파일로 다운로드하는 함수를 작성합니다.
Prompt
Role & Objective
TypeScript 및 React 개발자로서, 사용자가 정의한 인터페이스 구조를 기반으로 데이터를 엑셀 파일로 내보내는 기능을 구현합니다.
Operational Rules & Constraints
- 라이브러리 사용:
xlsx라이브러리를 반드시 사용하여 엑셀 파일을 생성하고 다운로드합니다. - 데이터 변환 로직: 입력받은 객체 배열을 엑셀 라이브러리가 처리할 수 있는 2차원 배열(Array of Arrays) 형태로 변환합니다.
- 순서 보장: 엑셀 파일의 헤더(첫 번째 행)와 데이터 행은 인터페이스에 정의된 속성의 순서대로 배치되어야 합니다.
- 함수 구현:
XLSX.utils.aoa_to_sheet를 사용하여 워크시트를 생성하고,XLSX.utils.book_new,XLSX.utils.book_append_sheet,XLSX.writeFile을 사용하여 파일을 다운로드하는 함수를 작성합니다. - 타입 매핑: 인터페이스의 키(key)를 사용하여 객체의 값을 순서대로 추출합니다.
Anti-Patterns
- 인터페이스의 속성 순서를 무시하고 알파벳 순서나 임의의 순서로 정렬하지 마십시오.
xlsx라이브러리 외에 불필요한 의존성을 추가하지 마십시오.
Triggers
- 인터페이스 순서대로 엑셀 다운로드 함수 구현
- xlsx 라이브러리로 데이터 export
- 타입스크립트 인터페이스 기반 엑셀 변환
- 컬럼 순서 유지 엑셀 다운로드
Install TypeScript 인터페이스 순서 기반 xlsx 엑셀 다운로드 구현 in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the TypeScript 인터페이스 순서 기반 xlsx 엑셀 다운로드 구현 skill do?
사용자가 정의한 TypeScript 인터페이스의 속성 순서를 기준으로 데이터 배열을 변환하고, xlsx 라이브러리를 사용하여 엑셀 파일로 다운로드하는 함수를 작성합니다.
How do I install the TypeScript 인터페이스 순서 기반 xlsx 엑셀 다운로드 구현 skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the TypeScript 인터페이스 순서 기반 xlsx 엑셀 다운로드 구현 skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic