Community연구 & 데이터 분석github.com

kimi-datasource — 범용 데이터 소스 어시스턴트

사용자가 주식, 재무 보고서, 기술 지표, A주/홍콩/미국 시장, 글로벌 거시 경제, 중국 기업 등기 정보, arXiv 논문, Google Scholar 결과, 중국 법률/규정 및 사례 등 외부 정형 데이터를 원할 때 사용합니다. 이 플러그인은 MCP 서버 `plugin-kimi-datasource_data`를 통해 도구를 제공하며, `mcp__plugin-kimi-datasource_data__get_data_source_desc` → `mcp__plugin-kimi-datasource_data__call_data_source_tool` 흐름으로 호출합니다.

kimi-datasource — 범용 데이터 소스 어시스턴트란 무엇인가요?

이 스킬은 Kimi Code 환경에서 MCP 서버를 통해 7개의 외부 정형 데이터 소스에 접근할 수 있는 범용 데이터 소스 어시스턴트입니다. 지원하는 데이터 소스로는 A주/홍콩/미국 주식 시세 및 재무 데이터(stock_finance_data), Yahoo Finance 글로벌 금융(yahoo_finance), 세계은행 거시 경제 데이터(world_bank_open_data), 중국 기업 등기 정보(tianyancha), arXiv 논문(arxiv), Google Scholar 학술 검색(scholar), 중국 법률/규정 및 사례(yuandian_law)가 포함됩니다. 사용자는 먼저 `get_data_source_desc`를 호출하여 데이터 소스의 사용 가능한 API와 매개변수 설명을 동적으로 가져온 후, `call_data_source_tool`을 호출하여 실제 데이터를 요청해야 합니다. 이 스킬은 주식 코드 사전 확인, 기업 전체 이름 사용, file_path 매개변수 전달 등의 엄격한 규칙을 강조하여 데이터 정확성과 안정성을 보장합니다. 대량의 데이터를 처리할 때는 자동으로 배치 호출 및 다중 파일 출력을 지원합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MoonshotAI/kimi-code/tree/main/plugins/official/kimi-datasource

Installed? Explore more 연구 & 데이터 분석 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

kimi-datasource — 범용 데이터 소스 어시스턴트은(는) 무엇을 하나요?

0. 호출 방식

이 스킬은 datasource MCP 서버에 등록된 두 개의 도구를 사용하며, Bash를 통해 수동으로 스크립트를 실행하지 마세요:

  • mcp__plugin-kimi-datasource_data__get_data_source_desc
  • mcp__plugin-kimi-datasource_data__call_data_source_tool

이 두 도구는 Kimi Code가 관리하며, 매개변수는 tool schema에 따라 직접 JSON으로 전달합니다.

도구는 현재 Kimi Code 환경의 로컬 OAuth 로그인 자격 증명을 읽습니다. KIMI_CODE_OAUTH_HOST / KIMI_CODE_BASE_URL이 설정된 경우 해당 환경의 격리된 자격 증명을 사용합니다. 로그인 자격 증명이 없으면 사용자가 Kimi Code에서 /login을 실행하도록 안내합니다.

1. 이 스킬이 제공하는 기능

이 플러그인은 7개의 외부 데이터 소스를 연결합니다. 각 행의 "데이터 소스 이름"은 get_data_source_desc에 전달할 name입니다.

기능 영역데이터 소스 이름일반적인 질문 예시
A주 / 홍콩 / 미국 주식 시세 및 재무stock_finance_data"마오타이 현재 가격", "CATL 2024 재무 보고서", "텐센트 주주", "항저우 인공지능 주식"
Yahoo Finance 글로벌 금융yahoo_finance"애플 애널리스트 평가", "AAPL 옵션 체인", "S&P 500 연간 가격"
세계은행 거시 경제world_bank_open_data"중국 연간 GDP", "인도 인플레이션율", "각국 인구 증가 비교"
중국 기업 등기 정보tianyancha"바이트댄스 주주", "BYD 법적 위험", "CATL 특허"
arXiv 논문 프리프린트arxiv"RAG 리뷰 논문 찾기", "2406.xxxxx 다운로드"
Google Scholar 학술 검색scholar"Hinton 최신 논문", "트랜스포머 리뷰 고인용 문헌"
중국 법률/규정 및 사례yuandian_law"민법전 거주권 관련 조항", "근로계약 해지 관련 법조항 찾기", "부당이득 판례 몇 개 찾기"

지원하지 않는 기능: 일반 웹 검색 / 실시간 뉴스. 이런 질문이 오면 현재 데이터 소스가 해당 내용을 커버하지 않는다고 알려주세요.

2. 표준 워크플로우: get_data_source_desc → call_data_source_tool

백엔드 API는 자주 변경될 수 있으므로, 이 스킬은 구체적인 API 이름과 매개변수 표를 일부러 기록하지 않습니다. 각 호출 전에 현장에서 데이터 소스에 "어떤 인터페이스가 있나요?"라고 물어봐야 합니다.

1. 사용자 질문에 따라 위 표에서 data_source_name을 하나 선택합니다.
2. get_data_source_desc를 실행하여 해당 데이터 소스의 Markdown 문서를 읽습니다.
3. 반환된 Markdown을 자세히 읽습니다. 여기에는 다음이 포함됩니다:
     - 해당 데이터 소스 전체 설명 (ticker 형식, 글로벌 제약 조건 포함)
     - 각 API의 설명 / 필수 매개변수 / 선택적 매개변수 / 기본값 / 값 범위
4. 가장 적합한 API를 선택하고 문서에 따라 params를 구성합니다.
5. call_data_source_tool을 실행합니다.
6. 반환 결과를 읽고 사용자가 질문할 때 사용한 언어로 답변합니다.

예시 1: 사용자가 "마오타이 최근 1년 추이"를 물을 때

  1. 주식 추이 → stock_finance_data

  2. mcp__plugin-kimi-datasource_data__get_data_source_desc 호출, 매개변수 {"name":"stock_finance_data"}

  3. 문서에서 "과거 가격 가져오기" API를 찾고, ticker / start_date / end_date / file_path 등의 매개변수 확인

  4. web_search로 확인 → 마오타이 = 600519.SH

  5. mcp__plugin-kimi-datasource_data__call_data_source_tool 호출, 매개변수 형태: {"data_source_name":"stock_finance_data","api_name":"<문서에 적힌 api>","params":{"ticker":"600519.SH","start_date":"...","end_date":"...","file_path":"/tmp/mao_1y.csv"}}

예시 2: 사용자가 "retrieval augmented generation 리뷰 논문 몇 편 찾아줘"를 물을 때

  1. 논문 검색 → arxiv (또는 scholar, arxiv는 프리프린트에 적합하고, scholar는 인용이 더 완전함)

  2. mcp__plugin-kimi-datasource_data__get_data_source_desc 호출, 매개변수 {"name":"arxiv"}

  3. 문서에서 검색 API를 찾고, query / file_path / max_results 등의 매개변수 확인

  4. call_data_source_tool 실행

예시 3: 사용자가 "바이트댄스에 어떤 주주가 있나요?"를 물을 때

  1. 기업 정보 → tianyancha

  2. mcp__plugin-kimi-datasource_data__get_data_source_desc 호출, 매개변수 {"name":"tianyancha"}

  3. 주의: tianyancha의 API는 동적으로 등록되므로, 문서에서 먼저 검색 인터페이스를 사용하여 적절한 API 이름을 찾은 후 호출하도록 안내합니다.

  4. 반드시 기업 전체 이름을 사용 ("北京字节跳动科技有限公司"), 약칭을 사용하지 마세요. 전체 이름을 모르면 먼저 tianyancha 문서의 "회사 검색" 인터페이스로 조회합니다.

3. 호출 전 몇 가지 철칙

3.1 주식 코드는 반드시 확인해야 하며, 기억에 의존해 추측하지 마세요

A주는 .SH/.SZ/.BJ, 홍콩은 .HK, 미국은 .US 등입니다. 사용자는 보통 중국어 이름("마오타이", "CATL", "텐센트")만 말하고 코드를 제공하지 않습니다.

주식 관련 API 호출 전에 web_search / WebSearch 등의 인터넷 도구를 사용하여 올바른 코드와 접미사를 확인하세요.

현재 환경에 인터넷 도구가 전혀 없다면 사용자에게 직접 코드를 확인하도록 요청하고, 추측하지 마세요. 틀리면 인터페이스가 조용히 잘못된 데이터나 빈 데이터를 반환합니다.

3.2 기업 관련 조회는 반드시 전체 이름을 사용하세요

tianyancha는 "테슬라", "넷이즈", "텐센트"와 같은 약칭을 거부하며, "北京特斯拉销售有限公司"와 같은 전체 이름을 제공해야 합니다. 전체 이름을 모르면 먼저 회사 검색 API를 호출하세요.

3.3 대부분의 API는 file_path가 필요합니다

대부분의 데이터 소스 API는 전체 결과를 CSV 형식으로 file_path에 씁니다. 누락하면 Missing required parameters: file_path 오류가 발생합니다. 무엇을 전달해야 할지 모르겠다면 /tmp/<시나리오>_<타임스탬프>.csv를 사용하세요.

3.4 한 번의 호출에 너무 많은 ticker를 넣지 마세요

stock_finance_data의 실시간 인터페이스는 최대 3개 ticker, 과거 인터페이스는 최대 10개입니다. 초과하면 잘리거나 오류가 발생합니다. 많으면 나누어 호출하세요.

4. 반환 결과 읽는 방법

call_data_source_tool의 stdout은 일반적으로 두 부분을 포함합니다:

  1. data_preview: CSV 헤더 + 처음 몇 행 (보통 1~3행), 간단한 질문에 바로 답변하기 편리함
  2. CSV 데이터가 기록됨: /tmp/xxx.csv: 전체 데이터 저장 경로

전략:

  • 사용자가 "XX 현재 가격은 얼마인가요?", "중국 2023 GDP는 얼마인가요?"와 같은 단일 값만 물을 때 → data_preview로 충분, 바로 답변
  • 사용자가 차트 그리기, 비교, 손익 계산, 목록 정리를 원할 때 → Read 도구로 CSV를 읽어서 처리
  • A주와 홍콩 주식을 혼합하여 조회하면 서버에서 자동으로 CSV를 _a.csv / _hk.csv 두 파일로 나누며, 원래 file_path 파일은 존재하지 않음

인터페이스가 실패를 반환하면 오류 텍스트에 일반적으로 이유(매개변수 오류, 지원되지 않음, 데이터 없음 등)가 명시됩니다. 그 이유를 그대로 사용자에게 전달하고, 강제로 재시도하지 마세요.

5. watchlist.json — 사용자 관심 종목 목록

${KIMI_SKILL_DIR}/watchlist.json은 사용자의 관심 종목 목록입니다. 사용자가 "내 관심 종목 보여줘"라고 물으면 이 파일을 읽고, 표준 get_data_source_desc("stock_finance_data") → call_data_source_tool 흐름으로 실시간 시세를 조회합니다. 문서의 실시간 인터페이스는 최대 3개 ticker씩 처리하며, 많으면 나누어 호출합니다.

형식:

[
  {"code": "600519.SH", "name": "贵州茅台"},
  {"code": "0700.HK", "name": "腾讯控股", "hold_cost": 350.5, "hold_quantity": 100}
]
  • code와 name은 필수, hold_cost와 hold_quantity는 선택적
  • 둘 다 있으면 손익 계산: (현재가 - hold_cost) * hold_quantity
  • 사용자가 "XX를 관심 종목에 추가해줘"라고 할 때: 먼저 web_search로 코드를 확인한 후 JSON 배열에 추가

6. 주의 사항

  • 사용자에게 답변할 때는 사용자가 질문할 때 사용한 언어를 사용하세요. 사용자가 중국어로 질문하면 중국어로, 영어로 질문하면 영어로 답변하세요.
  • 기억에 의존해 주식 코드/기업 전체 이름을 추측하지 마세요. 잘못된 코드는 인터페이스가 조용히 잘못된 데이터를 반환하게 하며 사용자는 알아차리지 못합니다.
  • desc를 읽지 않고 api_name을 강제로 전달하지 마세요. 백엔드에서 API_NOT_FOUND 오류가 발생합니다. 이번 세션에서 해당 데이터 소스의 desc를 이미 읽고 매개변수를 기억하는 경우는 예외입니다.
  • 투자 조언을 제공하지 마세요. 데이터를 제공한 후 "AI 생성이며 투자 조언을 구성하지 않습니다"를 덧붙이세요.
  • 특정 데이터 소스 인터페이스의 오류가 명백히 백엔드 버그(매개변수 스키마 모순, 내부 Python 오류 등)인 경우 오류를 사용자에게 보고하고 강제로 시도하지 마세요 — 이러한 버그는 저희 쪽에서 수정할 수 없으며 백엔드 서비스 측에서 변경해야 합니다.

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

MoonshotAI/agent-core-dev

Use when developing in packages/agent-core-v2 (the DI × Scope agent engine) — adding or modifying a domain Service, choosing a LifecycleScope, wiring DI dependencies, splitting a domain across scopes, owning or migrating a config section, gating behavior behind an experimental flag, raising coded errors, working on the permission system, writing DI/Scope tests, porting business logic from agent-core (v1) to v2, triaging a main-branch commit against v2, or exposing a v2 domain over server-v2 while keeping the /api/v1 wire contract compatible with released clients. Self-contained guide organized by development stage (orient → design → implement → test → verify) plus align workflows for v1→v2 migration, main-branch commit triage, and server-v2 wire exposure; each file carries the rules, examples, and red lines for its step.

MoonshotAI/agent-core-review

Use ONLY for code review and test write/review guidance in `packages/agent-core-v2` (the DI × Scope agent engine). Does NOT apply to the legacy `packages/agent-core` or to any other package — for those, do not load this skill. Groups the review and testing lenses used for agent-core-v2 — `slop` (single-level-of-abstraction / layered error-handling review, invoked only on explicit request) and `test` (contract-driven per-test rules for both authoring and reviewing tests). Apply the sub-skill that matches the task; do not apply `slop` unprompted.

MoonshotAI/consolidate

Apply an approved sub-skill grouping by moving user-specified skills into a parent bundle, with timestamped backups of every modified directory.

MoonshotAI/gen-changesets

Use when generating changesets in the kimi-code repository, including package bump selection, internal package and CLI bundle handling, bump levels, major confirmation, and English changelog wording.

MoonshotAI/gen-docs

Update Kimi Code CLI user documentation after meaningful code changes that affect product behavior or user experience.

MoonshotAI/pre-changelog

Use before merging a kimi-code release PR to preview the user-facing CLI changelog in Chinese. Reads the changelog that changesets pre-generated in the release PR, then reuses sync-changelog's strip / classify / translate logic to render a Chinese preview. Writes no files.

MoonshotAI/review

Analyze the available skill set and recommend candidate groups that could be consolidated into sub-skill bundles. Read-only — proposes a plan, does not move files.

MoonshotAI/slop

Invoke only when the user explicitly asks to review code through the "single level of abstraction / layered error handling" lens — a function does only its own layer's business logic while errors are handled above or below. The agent reports detections, raw-count measurements, and move directions. Apply only when the user explicitly requests this lens.

MoonshotAI/sub-skill

Discover and reorganize the skill inventory into hierarchical sub-skill bundles. Use when the user asks to review, group, or consolidate skills into a parent bundle.

MoonshotAI/sync-changelog

Use after a release succeeds, when maintainers need to sync apps/kimi-code/CHANGELOG.md into docs/en/release-notes/changelog.md and docs/zh/release-notes/changelog.md, then open a PR on a dedicated branch.

MoonshotAI/test

Use when writing or reviewing tests, or when asked how to write a good single test. Encodes the per-test rules behind the "test the contract / responsibility, not the implementation" principle — name and structure one behavior per `it`, drive through the public surface, stub only true external boundaries, control time and config via documented knobs, and keep tests clear, isolated, and refactor-resilient. The same rules drive both authoring (write mode) and auditing existing tests (review mode).

MoonshotAI/translate-docs

Translate and sync bilingual user documentation between docs/zh/ and docs/en/ following the source-of-truth rules in docs/AGENTS.md.

MoonshotAI/write-tui

Use when writing or modifying the kimi-code terminal UI in apps/kimi-code/src/tui — components, dialogs/selectors, slash commands, themes, streaming render, or the KimiTUI controllers. Covers the architecture, where new features go, test placement, the theme system mechanics, and the dialog interaction/visual spec (DESIGN.md).

관련 스킬