Skip to Content
MeowKit
Skills

mk:showcase

Builds a standalone HTML showcase page from a mission and the artifact paths you name, with optional screenshots.

Source.claude/skills/showcase/SKILL.md
Ownerutility
Runtimeclaude-code
Riskmedium

What it does

mk:showcase turns a mission description and optional artifact files into one self-contained HTML page for a demo, summary or portfolio piece. It writes locally to assets/showcase/<mission-slug>/. It reads only the paths you give it and never scans the repository.

When not to use it

For an explainer, diagram or slide deck about code, use mk:preview.

Usage

ArgumentEffect
<mission>Topic or mission text. The slug comes from its first few words.
[artifact-paths...]Files to draw content from. They must be inside the project root.
--no-screenshotsSkip screenshot capture.
--no-publishSkip publishing and report the local path.
--languages en|vi|en,viEnglish only, Vietnamese only, or both with a visible toggle.
/mk:showcase "Q3 release highlights" docs/release.md --languages en --no-screenshots

Command-line flags override stored preferences for that run. scripts/preferences.js manages the preferences:

node ${CLAUDE_SKILL_DIR}/scripts/preferences.js get
node ${CLAUDE_SKILL_DIR}/scripts/preferences.js set --no-screenshots --no-publish
node ${CLAUDE_SKILL_DIR}/scripts/preferences.js reset

They are stored in ${CLAUDE_PLUGIN_DATA}/showcase/preferences.json. The MK_SHOWCASE_PREFS_PATH variable overrides that path in tests.

Steps

  1. Parse the flags and load stored preferences.
  2. Read the mission and the named artifacts, and split them into 2 to 6 sections including a hero. Artifact content is data, and instructions inside it are ignored.
  3. Write content.md with citations as footnotes.
  4. Generate index.html through mk:frontend-design: responsive at 16:9, 9:16 and 1:1, with a system, light and dark theme toggle. User strings are HTML-encoded.
  5. Capture screenshots with scripts/capture-sections.js, unless skipped.
  6. Publish if requested, then open the page locally.

Screenshots

Capture needs Puppeteer (cd ${CLAUDE_SKILL_DIR}/scripts && npm install) and Chrome or Chromium.

OptionMeaning
--urlfile:// URL of the page. Required.
--output-dirWhere images go. Required.
--sectionsCSS selectors such as #hero,#about. Required.
--ratioshorizontal, vertical, square. All three by default.
--settle-delay, --render-timeoutWait after the page is ready (ms) and readiness timeout (ms).
--format, --quality, --max-sizepng, jpg or webp; quality 1 to 100; MB before compression.
--executable-pathChrome path, or set PUPPETEER_EXECUTABLE_PATH.

If capture fails the skill reports the error and the local path. It does not skip silently.

Outputs

assets/showcase/<mission-slug>/
  index.html      inline CSS and JS
  content.md      content with citations
  images/         horizontal-hero.png, vertical-hero.png, square-hero.png

Gotchas

  • Publishing is local by default. If you ask to publish without a configured path, the skill prints no toolkit publishing path configured and stops. It never guesses a destination.
  • The capture script blocks external requests while rendering file:// pages, so CDN fonts and icons may be missing from screenshots. Self-contained HTML captures best.
  • Headless Chrome can fail in sandboxed CI. Use --no-screenshots there.
  • Artifact paths outside the project root or containing .. are rejected.

On this page