converting-email-templates
이메일 템플릿을 Mailtrap Handlebars로 변환
이메일 템플릿을 제공업체 간에 마이그레이션하려면 서로 다른 템플릿 문법을 변환해야 합니다. 이 스킬은 SendGrid, Mailgun, Mandrill, Postmark, Brevo, Amazon SES에서 Mailtrap 호환 Handlebars 형식으로 변환하는 작업을 자동화합니다.
스킬 ZIP 다운로드
Claude에서 업로드
설정 → 기능 → 스킬 → 스킬 업로드로 이동
토글을 켜고 사용 시작
Agent용 리소스
AI Agent, 크롤러 또는 스크립트가 전체 페이지 대신 깔끔한 컨텍스트가 필요할 때 이 링크를 사용하세요.
테스트해 보기
"converting-email-templates" 사용 중입니다. 내 SendGrid 환영 이메일 템플릿을 Mailtrap Handlebars로 변환하세요.
예상 결과:
변환됨: welcome.html
변경 사항: 3 | 플래그: 1
출력: ./converted/welcome.html
적용된 변경 사항:
1. {{insert name "default=Customer"}} converted to {{#if name}}{{name}}{{else}}Customer{{/if}}
2. {{insert plan}} converted to {{plan}}
플래그:
1. Line 15: {{formatDate created_at "MMMM DD, YYYY"}} - MANUAL: 날짜 형식 지정은 지원되지 않습니다. 애플리케이션 코드에서 이 날짜의 형식을 지정하고 결과를 템플릿 변수로 전달하세요.
"converting-email-templates" 사용 중입니다. ./email-templates/ 디렉터리의 모든 템플릿을 Brevo에서 변환하세요.
예상 결과:
변환됨: 5 files
총 변경 사항: 12 | 총 플래그: 3
정상: 3 files | 검토 필요: 2 files
출력: ./email-templates/converted/
검토가 필요한 파일:
1. newsletter.html - 2 flags (중첩 루프 감지됨)
2. receipt.html - 1 flag (필터 문법은 수동 변환 필요)
"converting-email-templates" 사용 중입니다. 템플릿을 변환한 후 Mandrill에 대해 어떤 API 필드 변경이 필요합니까?
예상 결과:
Mandrill 템플릿을 변환한 후 API 전송 호출을 업데이트하세요:
기존 필드: template_name
기존 변수: global_merge_vars + merge_vars
Mailtrap 필드: template_uuid
Mailtrap 변수: template_variables
전송 코드에서 template_name 참조를 template_uuid로, merge_vars를 template_variables로 교체하세요.
보안 감사
낮은 위험All 434 static analysis findings are false positives. The skill is a legitimate Mailtrap tool for converting email templates. The external_commands findings are markdown documentation showing API endpoint references and shell command examples in code blocks. The network findings are references to docs.mailtrap.io and Mailtrap API endpoints in the documentation. The obfuscation findings are Handlebars template syntax (double curly braces) in documentation files. The Python converter script uses regex-based pattern substitution on template files - it reads HTML files, applies conversion rules, and writes output. The script does not make network requests, execute arbitrary code, or exfiltrate data. The documentation references environment variables for Mailtrap API tokens, which is expected for a tool that interacts with the Mailtrap platform. No prompt injection or malicious intent detected.
위험 요인
⚡ 스크립트 포함
📁 파일 시스템 액세스
🔑 환경 변수
⚙️ 외부 명령어 (388)
🌐 네트워크 접근 (16)
품질 점수
만들 수 있는 것
단일 이메일 템플릿 마이그레이션
지원되는 제공업체의 이메일 템플릿 파일 하나를 Mailtrap Handlebars 형식으로 변환하고 모든 변경 사항에 대한 명확한 보고서를 제공합니다.
템플릿 라이브러리 배치 마이그레이션
HTML 템플릿이 들어 있는 전체 디렉터리를 한 번의 작업으로 처리하고 요약 보고서와 파일별 플래그 세부 정보를 제공합니다.
인라인 템플릿 변환 테스트
파일을 먼저 디스크에 저장하지 않고 원시 템플릿 HTML을 채팅에 직접 붙여넣어 즉시 변환합니다.
이 프롬프트를 사용해 보세요
path/to/template.html의 이메일 템플릿을 SendGrid에서 Mailtrap Handlebars 문법으로 변환하세요.
./templates/ 디렉터리의 모든 HTML 이메일 템플릿을 Brevo에서 Mailtrap Handlebars로 변환하세요. 요약 보고서를 보여주세요.
이 Postmark 이메일 템플릿을 Mailtrap Handlebars로 변환하세요: [paste template HTML here]
내 Mandrill 템플릿 변환에서 나온 플래그를 검토하세요. 어떤 패턴이 애플리케이션 코드 변경이 필요하고 어떤 패턴이 템플릿에서 수정될 수 있는지 보여주세요.
모범 사례
- 변환 프로세스를 시작하기 전에 제공업체에서 원시 HTML 소스를 내보내세요
- 플래그된 모든 패턴은 애플리케이션 코드 변경이 필요한 경우가 많으므로 주의 깊게 검토하세요
- 수신자에게 보내기 전에 Mailtrap 미리보기 도구에서 변환된 템플릿을 테스트하세요
피하기
- 같은 입력 디렉터리에 서로 다른 제공업체의 템플릿을 섞지 마세요
- 플래그된 패턴을 건너뛰지 마세요. 변환기가 처리할 수 없는 문법이 포함되어 있습니다
- 템플릿 자체에서 사용자 정의 Handlebars 헬퍼를 변환하려고 하지 마세요