Skip to content

docs: surface MDCMS Skills Pack as the AI-agent setup path#104

Merged
iipanda merged 1 commit intomainfrom
docs-skills-setup-promotion
Apr 16, 2026
Merged

docs: surface MDCMS Skills Pack as the AI-agent setup path#104
iipanda merged 1 commit intomainfrom
docs-skills-setup-promotion

Conversation

@iipanda
Copy link
Copy Markdown
Collaborator

@iipanda iipanda commented Apr 16, 2026

Summary

  • Add a dedicated apps/docs/agent-skills.mdx page covering install via npx skills add Blazity/mdcms, the 9-skill table, and when to use skills vs. copy-paste prompts.
  • Register the new page in docs.json (Introduction group, before agent-instructions).
  • Lead-in <Tip> on agent-instructions.mdx and guide/quickstart.mdx pointing AI-agent users to the installable pack.
  • Callout under ## Quick Start in the root README.md linking to skills/README.md.

No behavior changes; docs-only. The skills themselves and skills/README.md already exist — this just makes the setup path discoverable from the main README and docs site.

Test plan

  • bun run format:check passes (verified locally).
  • Preview the Mintlify site and confirm /agent-skills renders, appears in the Introduction sidebar between guide/concepts and agent-instructions, and that the <Tip> callouts link to it correctly.
  • Verify the README callout renders on GitHub and the skills/README.md link resolves.

Summary by CodeRabbit

  • New Features

    • Studio theme picker now supports system preference detection alongside light and dark mode options
    • Introduced MDCMS Skills Pack for AI coding agents to streamline end-to-end project setup
  • Documentation

    • Added guides for using MDCMS with AI coding agents, including installation and workflow instructions

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 16, 2026

Warning

Rate limit exceeded

@iipanda has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 56 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 1 minutes and 56 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c2bfb490-d366-4bae-a634-ccdbd5bb5b28

📥 Commits

Reviewing files that changed from the base of the PR and between 45c76e7 and 26be37a.

📒 Files selected for processing (5)
  • README.md
  • apps/docs/agent-instructions.mdx
  • apps/docs/agent-skills.mdx
  • apps/docs/docs.json
  • apps/docs/guide/quickstart.mdx
📝 Walkthrough

Walkthrough

This PR adds AI agent documentation and integration instructions while enhancing the studio's theme system. Documentation updates introduce a new Skills Pack installable via npx skills add Blazity/mdcms across multiple docs pages. The studio's theme handling transitions from binary dark-mode toggle to a three-state theme picker supporting light, dark, and system preferences, with corresponding shell-level theme resolution and tests.

Changes

Cohort / File(s) Summary
Documentation & Navigation
README.md, apps/docs/agent-instructions.mdx, apps/docs/agent-skills.mdx, apps/docs/guide/quickstart.mdx, apps/docs/docs.json
Added new agent-skills documentation page and callout blocks promoting npx skills add Blazity/mdcms command across Quick Start and instruction pages; updated docs navigation to include agent-skills entry.
Studio Theme UI
packages/studio/src/lib/runtime-ui/components/layout/page-header.tsx, packages/studio/src/lib/runtime-ui/components/layout/page-header.test.tsx
Replaced binary dark-mode toggle with new exported ThemePickerMenu component supporting light/dark/system theme options via dropdown menu; added corresponding test coverage for static HTML rendering.
Studio Theme System
packages/studio/src/lib/studio-component.tsx, packages/studio/src/lib/studio.test.ts
Introduced shell-level theme resolution via resolveShellAppliedTheme() and useResolvedShellTheme() hook that syncs localStorage and OS color-scheme preferences; extended StudioShellFrameProps with optional shellTheme prop; added dark theme CSS overrides; includes unit tests for resolution logic.
Theme Configuration & Tests
packages/studio/src/lib/remote-studio-app.tsx, packages/studio/src/lib/runtime-ui/adapters/next-themes.test.ts
Updated RemoteStudioApp default theme from "light" to "system"; added test coverage for system theme preference resolution and storage reading behavior.

Sequence Diagram

sequenceDiagram
    participant Browser as Browser Environment
    participant Studio as Studio Component
    participant Hook as useResolvedShellTheme()
    participant Shell as StudioShellFrame
    participant DOM as DOM (data-mdcms-theme)
    
    rect rgba(100, 150, 255, 0.5)
    Note over Browser,DOM: Initial Theme Resolution
    Studio->>Hook: Initialize on first render
    Hook->>Hook: Check if browser env
    Hook->>Browser: readStoredThemePreference()
    Browser-->>Hook: theme value or null
    Hook->>Browser: matchMedia("(prefers-color-scheme: dark)")
    Browser-->>Hook: system preference
    Hook->>Hook: resolveAppliedTheme(stored, system)
    Hook-->>Studio: shellTheme = "light" | "dark"
    end
    
    rect rgba(150, 200, 100, 0.5)
    Note over Browser,DOM: Render with Theme
    Studio->>Shell: pass shellTheme prop
    Shell->>DOM: set data-mdcms-theme attribute
    end
    
    rect rgba(255, 150, 100, 0.5)
    Note over Browser,DOM: OS Preference Change
    Browser->>Hook: prefers-color-scheme change event
    Hook->>Hook: resolveAppliedTheme(stored, new system)
    Hook->>Studio: setState(newTheme)
    Studio->>Shell: re-render with updated shellTheme
    Shell->>DOM: update data-mdcms-theme attribute
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related PRs

Poem

🐰 Three hues now greet the studio shell,
Light, dark, and system's gentle swell,
A skills pack blooms through npx spell,
Theme preference springs forth with care,
Where browser and agent waltz through air! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 9.09% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely summarizes the main objective of the PR: promoting the MDCMS Skills Pack as the recommended AI-agent setup path through documentation additions and callouts.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs-skills-setup-promotion

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
packages/studio/src/lib/studio-component.tsx (1)

643-691: Well-structured hook with SSR safety and legacy browser support.

Good implementation details:

  • SSR guard prevents hydration mismatch
  • Synchronous initial state avoids theme flash
  • Legacy addListener/removeListener fallback for Safari <14 compatibility

One consideration: the hook doesn't listen for storage events, so theme changes from another tab won't propagate. This is likely acceptable since the shell is only visible during loading/error states (brief window), but worth noting if cross-tab sync becomes desirable later.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/studio/src/lib/studio-component.tsx` around lines 643 - 691, The
hook useResolvedShellTheme currently updates on system color-scheme changes but
doesn't respond to cross-tab theme updates; add a storage event listener that
calls the existing recompute function so changes to the stored theme in other
tabs propagate. Inside the useEffect in useResolvedShellTheme (where mediaQuery
and storage are defined), attach window.addEventListener('storage', recompute)
after recompute() and remove it in the cleanup; ensure you guard for typeof
window !== "undefined" as already done and reuse the same recompute closure so
mediaQuery.matches and readStoredThemePreference(storage) are used consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@packages/studio/src/lib/studio-component.tsx`:
- Around line 643-691: The hook useResolvedShellTheme currently updates on
system color-scheme changes but doesn't respond to cross-tab theme updates; add
a storage event listener that calls the existing recompute function so changes
to the stored theme in other tabs propagate. Inside the useEffect in
useResolvedShellTheme (where mediaQuery and storage are defined), attach
window.addEventListener('storage', recompute) after recompute() and remove it in
the cleanup; ensure you guard for typeof window !== "undefined" as already done
and reuse the same recompute closure so mediaQuery.matches and
readStoredThemePreference(storage) are used consistently.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1ad3b50c-05a2-470f-92c8-1149cce17ced

📥 Commits

Reviewing files that changed from the base of the PR and between e77088f and 45c76e7.

📒 Files selected for processing (11)
  • README.md
  • apps/docs/agent-instructions.mdx
  • apps/docs/agent-skills.mdx
  • apps/docs/docs.json
  • apps/docs/guide/quickstart.mdx
  • packages/studio/src/lib/remote-studio-app.tsx
  • packages/studio/src/lib/runtime-ui/adapters/next-themes.test.ts
  • packages/studio/src/lib/runtime-ui/components/layout/page-header.test.tsx
  • packages/studio/src/lib/runtime-ui/components/layout/page-header.tsx
  • packages/studio/src/lib/studio-component.tsx
  • packages/studio/src/lib/studio.test.ts

Add a dedicated agent-skills page to the docs site, link to it from
the quickstart and agent-instructions pages, and call it out in the
root README so agent users discover `npx skills add Blazity/mdcms`
before reaching for copy-paste prompts.
@iipanda iipanda force-pushed the docs-skills-setup-promotion branch from 45c76e7 to 26be37a Compare April 16, 2026 18:11
@iipanda iipanda merged commit 2417ec1 into main Apr 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant