← スキル一覧に戻る

mai-ui-bootstrap
by bradsingley
My clone repository
⭐ 0🍴 0📅 2026年1月22日
SKILL.md
name: mai-ui-bootstrap description: Install and configure MAI UI packages, auth, and tooling before writing any MAI UI code. metadata: author: yu.he@microsoft.com version: "1.0"
Stand up the MAI UI toolchain so downstream skills can focus on design and implementation.
When to use this skill
- New repo or project needs MAI UI components or tokens
- Existing project lost credentials or
.npmrcconfig - CI runners must refresh auth before installing MAI packages
Quick checklist
- Confirm Node.js 18+ and npm are available (
node --version,npm --version). - Decide whether to run the automated installer or follow manual steps.
- Ensure you have the Azure Artifacts credential provider configured for the current environment.
- Install
@mai-ui/core-components-suiteand@mai-ui/design-tokensinto the target project.
Automated installation (preferred)
Run the curated script shipped with the original MAI UI skill:
./skills/mai-ui-bootstrap/scripts/bootstrap-mai-ui.sh --project-dir /absolute/path/to/project
Flags:
--skip-authwhen the credential helper is already logged in--skip-npmrcif the repo already contains a valid MAI UI.npmrc--helpto view every option before running
The script handles:
- Installing
@microsoft/artifacts-npm-credproviderglobally (if missing) - Creating/updating
.npmrcentries for the@mai-uiscope - Refreshing the credential provider session
- Installing the MAI UI component + token packages in batch
Manual install flow
Follow these steps only if you cannot run the script:
- Credential helper
npm install --global @microsoft/artifacts-npm-credprovider --registry https://pkgs.dev.azure.com/artifacts-public/23934c1b-a3b5-4b70-9dd3-d1bef4cc72a0/_packaging/AzureArtifacts/npm/registry/ - Project
.npmrc(place in repo root):@mai-ui:registry=https://pkgs.dev.azure.com/microsoftaidesign/mai-ui/_packaging/mai-ui/npm/registry/ always-auth=true - Authenticate by running
artifacts-npm-credproviderand completing the device login. - Install packages:
npm install @mai-ui/core-components-suite @mai-ui/design-tokens - Add refresh script (optional but recommended):
{ "scripts": { "refresh-auth": "artifacts-npm-credprovider && npm install" } }
Post-install verification
- Import
@mai-ui/core-components-suiteinside a scratch file and confirm components render without 401 errors. - Reference one token JSON/stylesheet from
@mai-ui/design-tokens; ensure values resolve and noERR_MODULE_NOT_FOUNDoccurs. - Commit the
.npmrcchanges if the repo policy allows storing scoped registry credentials (they only hold registry URLs, not secrets).
Scripted verification
Use the Node helper after installation to ensure dependencies, registry config, and token bundles are present:
node ./skills/mai-ui-bootstrap/scripts/verify-mai-ui-install.mjs --project-dir /absolute/path/to/project
Hand-off
After bootstrapping succeeds, jump to:
mai-ui-foundationsfor token + spacing rulesmai-ui-components-and-patternsfor component selectionmai-ui-planning-workflowwhen you must author an implementation plan first
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です