본문으로 건너뛰기
cccskills
무료GitHub에 공개

qiankun

Build micro-frontends with qiankun 3.x, combining separate web apps inside a host app. The skill covers creating host and child apps, converting existing Vite apps, and connecting loading behavior in React or Vue.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

Usage manual for building micro-frontend projects with qiankun 3.x. Use when the user wants to create a qiankun main (host) app or sub (micro) app, convert an existing Vite app into a qiankun micro app, or wire up micro-frontend loading with React/Vue.

설치 방법 보기

이럴 때 유용합니다

  • Creating a host app that loads separate web apps
  • Creating a child app for qiankun 3.x
  • Converting an existing Vite app into a child app
  • Connecting micro-frontend loading in React or Vue

포함된 파일(3)

  • SKILL.md3.2 KB
  • references/create-main-app.md2.2 KB
  • references/create-micro-app.md4.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

qiankun

qiankun is a micro-frontend framework: a main (host) app loads sub (micro) apps from their HTML entries at runtime, each inside a JS sandbox, with opt-in CSS isolation. This skill is the agent-facing manual for qiankun 3.x.

Task routing

Read only the reference file(s) the task at hand needs:

TaskRead
Create a micro (sub) app, or convert an existing Vite appreferences/create-micro-app.md
Create a main (host) appreferences/create-main-app.md
Anything else — migration, style isolation, sandbox, debugginghttps://qiankun.umijs.org and examples/ in https://github.com/umijs/qiankun

Before you start

Determine these, asking the user only when not inferable from context:

  1. App type — main (host/shell) or sub (micro app).
  2. App name — lowercase letters, numbers, hyphens. The name the host registers must exactly match the name the sub app uses in its classic-mode fallback.
  3. Framework — React or Vue; TypeScript or JavaScript. Templates in the references are TS; strip types for JS.
  4. Dev port — must be fixed and unique per app, because the host hard-references it in entry. Convention: main app 7099, sub apps 7101, 7102, …

Package versions — until qiankun 3.0 stable ships, rc is the dist-tag for the core packages:

PackageDist-tagGoes in
qiankunrcmain app dependencies
@qiankunjs/react / @qiankunjs/vuercmain app dependencies (optional UI binding)
@qiankunjs/bundler-pluginrcsub app devDependencies

Key facts

These invariants shape every task below:

  • Vite sub apps need no dedicated build mode. qiankun 3 loads <script type="module"> natively through its ESM sandbox — regular vite dev / vite build output is qiankun-ready as-is.
  • The JS sandbox is on by default. CSS isolation is opt-in per app via styleIsolation: true (runtime CSS @scope).
  • A sub app must stay runnable standalone: when not loaded by qiankun (window.__POWERED_BY_QIANKUN__ is undefined) it renders itself directly.
  • Always unmount what you mount. loadMicroApp returns a handle whose .unmount() must be called when the app leaves; the MicroApp component bindings do this automatically on component unmount.
  • Webpack sub apps use @qiankunjs/bundler-plugin/webpack instead of the Vite plugin; see the docs.

After any creation task

Verify the result following the checklist at the end of the reference you used. If a browser tool is available, perform the checks yourself instead of asking the user to.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Polish a published qiankun GitHub Release into readable English and Simplified Chinese notes. The skill clarifies changes, removes repeated entries, preserves package versions and PR references, and updates the release after approval.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Polishing the latest published qiankun release notes
  • Removing repeated changes across package sections
  • Preparing matching English and Simplified Chinese release notes
umijs/qiankun1.7만2026년 10월 11일 업데이트

umijs의 스킬 모두 보기

이 스킬의 문제 신고