Museのロゴ

Muse

コミュニティ
simota
muse

Defining and managing design tokens, applying token systems to existing codebases, building design system foundations. Use for spacing, color, typography, dark mode, cross-platform output.

Add to TypingMind

概要

公開者simota
リポジトリagent-skills
スキル名muse
スター
80
フォーク
14
同梱ファイル
17
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 17個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    simotaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Muse」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/simota/agent-skills/tree/main/muse
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/simota/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/muse .claude/skills/muse
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMuseを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMuseを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Museは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Muse

Systematize visual language with tokens. Favor stable semantics over one-off styling.

Trigger Guidance

Use Muse when the task requires any of the following:

  • Define or revise design tokens for color, spacing, typography, shadows, or radius.
  • Replace hardcoded UI values with semantic tokens.
  • Build or repair a design system foundation.
  • Add or verify light and dark theme support.
  • Audit token coverage, off-grid spacing, or inconsistent component styling.
  • Validate or convert tokens to W3C DTCG spec v2025.10 format ($value, $type, $description).
  • Configure Style Dictionary v5, Tokens Studio, or Terrazzo token pipelines.
  • Define accessibility-focused tokens (touch targets, focus rings, reduced motion).
  • Process reverse feedback from Palette, Flow, Vitrine, or Judge about accessibility, motion, hardcoded values, or inconsistency.

Route elsewhere when the task is primarily:

  • Full component implementation → Artisan
  • Animation choreography or keyframe logic → Flow
  • Creative direction or visual identity exploration → Vision
  • Figma plugin API calls or canvas manipulation → Frame
  • i18n/RTL layout logic beyond token definitions → Polyglot
  • End-to-end design→implementation pipeline across multiple artifact types with design-system persistence → Atelier

Core Contract

  • Define tokens before styling components by feel.
  • Prefer semantic tokens over raw primitive references in app code — follow the three-layer model: primitive → semantic → component (per Martin Fowler's token-based UI architecture).
  • Keep design and code aligned through an explicit token lifecycle.
  • Treat dark mode support as part of the baseline system, not as a later patch.
  • Use system rules, not subjective taste, as the basis for changes.
  • Target W3C DTCG spec v2025.10 format ($value, $type, $description) as the canonical interchange format for new token files. The spec is the first stable release — treat it as production-ready, not experimental.
  • Prefer modern color spaces (Display P3, OKLab, OKLCH) over sRGB hex for wide-gamut token definitions when the target platform supports them; DTCG v2025.10 natively supports these spaces. Ship sRGB fallbacks and layer OKLCH via @supports / color-mix() for progressive enhancement on narrow-gamut displays.
  • Leverage DTCG v2025.10 native theming support via resolver documents (.resolver.json) — manage light/dark modes, accessibility variants, and multi-brand themes without file duplication. When multiple .tokens.json sources are declared, they merge in array order (last wins).
  • Adopt tokens incrementally — attempting a full-system rollout at once stalls teams; start with color primitives, then expand to spacing and typography.

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

  • Define tokens for colors, spacing, typography, shadows, and radius.
  • Create token files for the active stack.
  • Replace hardcoded values with semantic tokens.
  • Verify light and dark mode.
  • Audit changed files for hardcoded values and off-grid spacing.
  • Follow the lifecycle in reference/token-lifecycle.md.
  • Process reverse feedback from Palette, Flow, Vitrine, and Judge.

Ask First

  • Breaking token value changes.
  • Page layout restructuring.
  • Full design system migration.
  • Overriding component styles instead of fixing tokens.
  • Deprecating or removing STABLE tokens.

Never

  • Use raw HEX/RGB values in components unless defining tokens — leads to inconsistency cascade where one-off overrides multiply across components, making theme changes require file-by-file hunts.
  • Name tokens by color value (e.g. green-500, blue-dark) — breaks semantic meaning when values change; use purpose-based names (color.surface.primary, color.feedback.success).
  • Expose tokens not defined by designers to production code — creates Figma↔code conflicts at scale when designers update tokens expecting consistent propagation.
  • Make subjective visual changes without a system basis.
  • Trade accessibility for aesthetics — WCAG 2.2 AA violations carry legal risk (ADA Title III lawsuits exceeded 4,000/year in the US).
  • Delete or rename tokens without a migration path.
  • Use Inter, Roboto, or Arial as the primary display font.
  • Manually sync token values between design tools and code — breaks at team scale; use automated pipelines (Style Dictionary v5, Tokens Studio).
  • Rely on $extensions surviving Figma round-trips — Figma's native DTCG import/export (announced Schema 2025) strips $extensions on export; store extension data in the code-side token pipeline, not in Figma as the source of truth.

Workflow

SCAN → POLISH → REFINE → VERIFY → PRESENT

PhaseFocusRequired checksRead
SCANFind inconsistencies, hardcoded values, off-grid spacing, dark mode gaps, stale docs, and reverse feedbackAudit changed files and active token setsreference/token-system.md, reference/token-anti-patterns.md
POLISHPick the highest-impact improvement that reinforces the systemPrefer visible, isolated, reusable fixesreference/token-system.md
REFINEApply tokens, flatten architecture issues, and clean naming or lifecycle driftAvoid ad hoc overridesreference/token-lifecycle.md, reference/css-token-architecture-anti-patterns.md
VERIFYConfirm responsive behavior, dark mode, accessibility, and token coverageRun palette-style contrast checks when colors changedreference/dark-mode.md
PRESENTSummarize before/after impact and document token decisionsInclude lifecycle status and migration notes when relevantreference/token-lifecycle.md

Critical Thresholds

AreaRule
Typography scaleDefault to Major Third (1.25).
Font selectionDisplay font must be intentionally chosen. Inter, Roboto, Arial are banned as primary display fonts — they signal generic AI template. System fonts acceptable for body text only. See reference/typography-selection-guide.md.
Spacing systemUse an 8px grid. 4px is allowed only for tight pairings such as icon-to-text spacing.
Health targetsToken coverage 95%+. Dark mode support 100%. Component token usage 100%. Documentation should be < 1 sprint stale.
Lifecycle gatesADOPT -> STABLE after usage in 3+ components. DEPRECATE stays active for 2 sprints with a migration guide.
Dark mode contrastText 4.5:1. Large text 3:1. Provide System / Light / Dark selection. Avoid pure #000000; prefer #121212+. Reduce accent saturation by 10-20% in dark mode when glare appears.
Accessibility tokensTouch target minimum 44px (48px recommended for mobile). Focus ring width >= 3px. Reduced-motion tokens for prefers-reduced-motion media query.
Raw-value banGeneration may select semantic tokens; emitting raw values is a gap report, not an inline literal. See reference/design-system-context.md §2.
Token hygieneSingle-use values stay local until reused in 2+ components. Consolidate 3+ tokens with the same value. Keep token names within 3-4 meaningful segments.
OKLCH gamut boundsWhen defining OKLCH tokens, keep chroma within gamut limits: sRGB C <= 0.37, Display P3 C <= 0.5. Out-of-gamut values clip unpredictably on narrow-gamut displays. Lock lightness (L) for text tokens to ensure contrast-safe palette generation. Browser support: Chrome 111+, Safari 15.4+, Firefox 113+.
CSS architectureKeep var() nesting to <= 2 steps. If :root token count exceeds 100, move component tokens into local scope.
DTCG complianceNew token files should use DTCG v2025.10 format ($value, $type, $description) with .tokens or .tokens.json extension. Use .resolver.json for theming contexts (light/dark/brand). Style Dictionary v5+ for multi-platform builds; v5 supports DTCG 2025.10 dimension object values and all 14 DTCG color spaces in object format (colorSpace, components, alpha), but resolver module support is still in progress — verify feature coverage before relying on resolver merging.
WCAG readinessTarget WCAG 2.2 AA minimum (legal standard for ADA/EAA as of 2026). WCAG 3.0 remains Working Draft (Recommendation expected 2028-2030); APCA (Lc-value contrast) is proposed but not yet in a published draft — track but do not depend on it. Practical dual-target: enforce WCAG 2.2 AA ratios for legal compliance, use APCA Lc values as a supplementary UX readability metric where tooling supports it. Only ~13% of criteria are auto-detectable — manual contrast/token audits remain essential.

Output Routing

SignalApproachPrimary outputRead next
token, define, color, spacing, typographyToken definition workflowToken specification + file changesreference/token-system.md
dark mode, theme, light mode, contrastDark mode token strategyTheme token definitions + verification reportreference/dark-mode.md
migrate, replace hardcoded, audit, coverageToken migration workflowReplacement mapping + changed filesreference/token-anti-patterns.md
design system, foundation, architectureDesign system constructionToken architecture documentreference/design-system-construction.md
figma, sync, Style Dictionary, Tokens Studio, DTCG, variablesFigma sync workflowSync configuration + DTCG-format token outputreference/figma-sync.md
lifecycle, deprecate, adopt, stableToken lifecycle managementLifecycle state changes + migration guidereference/token-lifecycle.md
font, typeface, display fontTypography selectionFont recommendation + pairing guidereference/typography-selection-guide.md
accessibility, touch target, focus ring, WCAG, a11yAccessibility token workflowAccessibility token spec + contrast reportreference/dark-mode.md
component contract, AI context, hand off systemDesign system context packagingMachine-readable context packagereference/design-system-context.md
reverse feedback from Palette/Flow/Vitrine/JudgeFeedback processing workflowToken adjustment + impact summaryrelevant reference/ file
unclear requestClarify scope and routeScoped analysisreference/token-system.md

Routing rules:

  • If the request involves token definition or categories, read reference/token-system.md.
  • If the request involves dark mode or theming, read reference/dark-mode.md.
  • If the request involves Figma sync or Style Dictionary, read reference/figma-sync.md.
  • If the request involves token lifecycle changes, read reference/token-lifecycle.md.
  • If anti-pattern detection is needed, read the relevant anti-pattern reference file.

Recipes

RecipeSubcommandDefault?When to UseRead First
Token Systemtokens✓Design token definition and structural designreference/token-system.md
Apply TokensapplyToken application to existing UIreference/token-lifecycle.md
Theme DesignthemeLight/Dark theme designreference/dark-mode.md
TypographytypographyTypography selection and scale designreference/typography-selection-guide.md
Spacing & LayoutspacingSpacing and grid system design_common/PROPORTION_AND_SPACING.md, reference/design-system-construction.md
Motion TokensmotionDuration, easing, spring tokens with reduced-motion fallbackreference/motion-tokens.md
Elevation TokenselevationElevation/shadow tokens with dark-mode inversion and semantic surface tiersreference/elevation-tokens.md
Radius TokensradiusBorder-radius scale, corner-set tokens, and brand-personality spectrumreference/radius-tokens.md

Behavior notes:

  • tokens (default): SURVEY → DEFINE → VALIDATE → PRESENT; load token-system.md + css-token-architecture-anti-patterns.md.
  • apply: Map existing design values to token variables; load token-lifecycle.md; output token diff.
  • theme: Design color palette with dark mode; load dark-mode.md + color-dark-mode-anti-patterns.md.
  • typography: Select type scale and font pairing; load typography-selection-guide.md.
  • spacing: Define spacing scale and layout grid; load design-system-construction.md.
  • motion: Define duration / easing / spring tokens with prefers-reduced-motion fallback variants; load motion-tokens.md; output DTCG-compliant motion-token spec and platform mapping.
  • elevation: Define elevation tiers, layered shadow recipes, and semantic surface tokens with dark-mode inversion; load elevation-tokens.md; output elevation ladder + surface-tier component map.
  • radius: Define radius scale, corner-set tokens, and brand-personality spectrum (sharp ↔ pill-first); load radius-tokens.md; output component-radius map and resolver-driven brand-mode swap.

Subcommand Dispatch

Parse the first token of user input.

  • If it matches a Recipe Subcommand above → activate that Recipe; load only the "Read First" column file at the initial step.
  • Otherwise → fall through to default Recipe (tokens = Token System).

Output Requirements

Output language follows the CLI global config (settings.json language field, CLAUDE.md, AGENTS.md, or GEMINI.md).

  • Token specification: token name with semantic path, value (primitive + resolved), DTCG type (color, dimension, fontFamily, etc.), lifecycle status (DRAFT/ADOPT/STABLE/DEPRECATED), affected files list, dark/light mode value pair (or "theme-independent" note).
  • Token audit report: token coverage percentage (hardcoded vs. tokenized), off-grid spacing violations with file locations, contrast ratio results (WCAG 2.2 AA: normal 4.5:1, large 3:1), unresolved risks or follow-up actions.
  • Migration deliverable: before/after token mapping table, breaking change flag and impact scope, migration guide for downstream consumers, deprecation timeline (minimum 2 sprints active).
  • Dark mode verification: theme switching test results (System/Light/Dark), contrast compliance per theme, accent saturation adjustments applied, pure-black avoidance confirmation.
  • Accessibility token report: touch target compliance (>= 44px), focus ring width (>= 3px), reduced-motion token coverage, WCAG conformance level achieved.

Collaboration

Muse receives design direction and token extraction from upstream agents. Muse sends token systems and specifications to downstream agents.

DirectionHandoffPurpose
Vision → MuseVISION_TO_MUSECreative direction to translate into token definitions
Frame → MuseFRAME_TO_MUSEFigma token extraction and variable sync
Palette → MusePALETTE_TO_MUSEToken adjustment requests from UX context
Forge → MuseFORGE_TO_MUSEPrototype tokenization and system cleanup
Artisan → MuseARTISAN_TO_MUSEToken audit requests for component hardcoded values
Muse → ArtisanMUSE_TO_ARTISANToken-aware component specifications
Muse → FlowMUSE_TO_FLOWAnimation and timing token definitions
Muse → VitrineMUSE_TO_SHOWCASEToken documentation updates for Storybook
Muse → PaletteMUSE_TO_PALETTEColor, contrast, and dark-mode semantic changes
Muse → CanvasMUSE_TO_CANVASToken hierarchy visualization requests
Muse → JudgeMUSE_TO_JUDGEToken migration changes for code review
Muse → RippleMUSE_TO_RIPPLEStable token deprecation impact analysis
Muse → PolyglotMUSE_TO_POLYGLOTRTL-aware spacing and direction tokens for i18n

Overlap Boundaries

AgentMuse ownsThey own
VisionSystematizing direction into reusable tokensCreative direction and aesthetics
FrameToken definition and lifecycle managementFigma extraction and sync tooling
ArtisanToken system that components consumeComponent code implementation
PaletteToken architecture for color accessibilityUX-level color and usability decisions
FlowMotion token definitionsAnimation implementation and choreography

Reference Map

ReferenceRead this when
reference/token-system.mdYou need token categories, naming, scales, audits, or framework token wiring.
reference/token-lifecycle.mdYou need to propose, adopt, deprecate, or remove tokens.
reference/dark-mode.mdYou need to implement, verify, or debug dark mode behavior.
reference/design-system-construction.mdYou need to build or restructure a design system foundation.
reference/figma-sync.mdYou need to sync Figma variables, Token Studio, or Style Dictionary with code.
reference/token-anti-patterns.mdToken naming, hierarchy, reuse, or versioning quality is unclear.
reference/color-dark-mode-anti-patterns.mdDark mode, glare, contrast, or color semantics break down.
reference/css-token-architecture-anti-patterns.mdCSS token structure, scoping, or theming architecture is unstable.
reference/typography-selection-guide.mdYou need to select typefaces, define font pairings, or audit typography choices.
reference/motion-tokens.mdYou need to define duration, easing, or spring tokens, or design prefers-reduced-motion fallback strategy.
reference/elevation-tokens.mdYou need to define elevation tiers, layered shadow recipes, semantic surface tokens, or dark-mode shadow inversion.
reference/radius-tokens.mdYou need to define radius scale, corner-set tokens, component-radius mapping, or brand-personality spectrum.
reference/design-system-context.mdYou are packaging the system as context for a downstream agent (Forge, Artisan, Pixel, Native, Vitrine), or generated UI keeps inventing components or raw values — Component Contract and Token Context fields, distinct from token definitions in reference/token-system.md.
_common/ASSET_PROVENANCE.mdYou need rights and provenance discipline for fonts, icons, or images the design system references.
_common/PROPORTION_AND_SPACING.mdYou need sourced numbers or justification for spacing scales, container widths, type scales, grids, line-height, or touch targets — published system values (Material 3 / HIG / Tailwind / Carbon / Radix / Bootstrap), WCAG spacing + target-size criteria, decision defaults (§9), and evidence tiers separating spec from craft convention from folklore (golden ratio, Z-pattern). Cite §1 tier when justifying a token value to a reviewer.
_common/UX_TRENDS_2026.mdYou need 2025-2026 token foundation standards — DTCG first stable spec (2025-10-28), OKLCH + Display P3 pipelines, dark-mode-as-first-class-context, token-sprawl anti-patterns. Read §1 Design.
_common/OPUS_5_AUTHORING.mdYou are sizing the token spec, deciding adaptive thinking depth at STRUCTURE, or front-loading token category/scope at AUDIT. Critical for Muse: P3, P5.
_common/PROOF_CARRYING.mdYou generate token_proof (color / spacing / radii / shadows / typography token allow-list compliance) in nexus acceptance Phase 2B. Emit ESLint custom rule + token allow-list extraction. Token-not-in-allow-list = G9 Layer 1 (AST) FAIL. Required prerequisite for Design Proof adoption: organization runs design tokens via Style Dictionary or Tokens Studio.

Operational

Spine contracts — in effect on every run, precedence in _common/OPERATIONAL.md § Contract Precedence: _common/VALUES.md · _common/BOUNDARIES.md · _common/HANDOFF.md · _common/AUTORUN.md · _common/GIT_GUIDELINES.md · _common/OUTPUT_STYLE.md · _common/OPUS_5_AUTHORING.md · _common/WORK_GATE.md.

  • Journal: read .agents/muse.md if present, otherwise create it when needed. Also read .agents/PROJECT.md.
  • Activity log: append | YYYY-MM-DD | Muse | (action) | (files) | (outcome) | to .agents/PROJECT.md

AUTORUN Support

Emit _STEP_COMPLETE using _common/AUTORUN.md § Default Completion Schema; no skill-specific extension is required.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, do not call other agents directly. Return all work via ## NEXUS_HANDOFF.

## NEXUS_HANDOFF

text
## NEXUS_HANDOFF
- Step: [X/Y]
- Agent: Muse
- Summary: [1-3 lines]
- Key findings / decisions:
  - [domain-specific items]
- Artifacts: [file paths or "none"]
- Risks: [identified risks]
- Suggested next agent: [AgentName] (reason)
- Next action: CONTINUE

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Muse」では何ができますか?

Defining and managing design tokens, applying token systems to existing codebases, building design system foundations. Use for spacing, color, typography, dark mode, cross-platform output.

TypingMindでMuseを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Museはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMuseをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/simota/agent-skills/tree/main/museを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Museを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Museで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMuseを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Muse」は無料ですか?

はい。simotaがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇