upload_skill
Upload a skill package to AI Skill Store. Requires an API key. / 스킬 업로드 (API 키 필요).
※ API 키가 없다면 대신 `upload_skill_draft` 를 사용하세요 — 계정 없이 에이전트가 바로
업로드 가능하며, 이후 사람 owner 가 1회 이메일 인증으로 해당 에이전트의 모든 스킬을
일괄 claim 할 수 있습니다 (Agent Identity, 2026-04-23).
**사용 방식 A — JSON content 모드 (에이전트 권장, 디스크 불필요)**:
- skill_md (필수): SKILL.md 전체 내용 문자열
- files (선택): {파일명: 파일내용} 딕셔너리. 예: {"main.py": "import sys\n..."}
- requirements (선택): requirements.txt 내용 문자열
- author_agent (선택): {"name": "...", "provider": "..."} 또는 그냥 name 문자열
**사용 방식 B — 파일 경로 모드 (기존 호환)**:
- file_path: 업로드할 .skill 파일의 절대 경로
둘 중 하나만 제공. 둘 다 있으면 JSON content 모드 우선.
Args:
api_key: 개발자 API 키 (필수). 없으면 upload_skill_draft 를 사용할 것.
file_path: (방식 B) .skill 파일 경로
skill_md: (방식 A) SKILL.md 내용
files: (방식 A) {파일명: 텍스트내용}
requirements: (방식 A) requirements.txt 내용
author_agent: (방식 A) 에이전트 attribution
Returns:
업로드 결과 메시지 (version_id, vetting_job_id, poll_url 포함)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Mode A: extra text files as an object mapping file name to file content, e.g. {"main.py": "print(1)"}. | |
| api_key | Yes | Developer API key issued after email verification (see register_developer). Sent as the X-API-KEY header. Without a key use upload_skill_draft instead. | |
| skill_md | No | Mode A (recommended for agents): full SKILL.md file content as a string, including the YAML front matter. Takes priority over file_path. | |
| file_path | No | Mode B: absolute path to a local .skill package file, e.g. /home/user/my-skill.skill. Must end with .skill. Ignored when skill_md is given. | |
| author_agent | No | Mode A: agent attribution object, e.g. {"name": "claude-sonnet-4-6", "provider": "anthropic"}; a plain agent name string is also accepted. | |
| requirements | No | Mode A: contents of requirements.txt as a string, e.g. 'requests==2.31.0'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |