跳到正文
cccskills
免费在 GitHub 公开

run-app

Build, start, and drive the Nuxt Theme Builder in a real browser (Playwright) to verify a change end to end — editor interactions, iframe preview sync, persistence across reloads, source view. Use when asked to run/start/screenshot the app or to prove a UI or persistence change works beyond unit tests.

中文简介正在准备中。当前显示原文说明。

集成工具Playwright
查看安装方法

包含的文件(1)

  • SKILL.md2.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Run and drive the app: $ARGUMENTS

Start a server

  • Fast iteration: pnpm dev (port 3000). Security headers are disabled in dev, and the source-view map only refreshes on restart.
  • Production-like (use this to verify SSR, hydration, cookies, CSP):
    NITRO_PRESET=node-server NODE_OPTIONS=--max-old-space-size=8192 pnpm build   # ~5 min
    NITRO_HOST=127.0.0.1 NITRO_PORT=3000 node .output/server/index.mjs          # run in the background
    
  • Font-provider 403 warnings during the build are expected in network-restricted sandboxes.
  • To stop the server, kill it by PID, or with pkill -f "node .output/server" in a separate command. A pkill -f pattern that also appears in its own command line kills the calling shell.

Drive it

  • Existing specs: pnpm exec playwright test tests/e2e/smoke (reuses a server already on :3000 locally).
  • Ad-hoc checks: write a short script in your scratch dir using chromium from @playwright/test, and wait for [data-testid="theme-editor"][data-hydrated="true"] before interacting.
  • In Claude Code on the web, if Playwright's pinned Chromium isn't installed, launch with executablePath pointing at the preinstalled build (/opt/pw-browsers/chromium-*/chrome-linux/chrome) instead of running playwright install.

Useful checks

  • Theme sync: on a demo route such as /components/button, change a control in the sidebar and assert that a CSS variable inside the preview iframe changes (frameLocator("iframe")). Other pages render without the iframe, so check the top document there.
  • Persistence: context.cookies() → theme cookie holds { config, activePresetName } (must stay under 4096 bytes); localStorage["theme-presets"] holds saved presets. Reload and assert that both survive.
  • Undo after reload: make a change, then ControlOrMeta+z should return to the reloaded theme.
  • Source view (/templates/*): toggle to code, navigate to another template and back, and confirm the code matches the route.
  • Hydration: collect page.on("console") messages and fail on "Hydration" warnings (dev server).

Report what you ran, what you observed (quote values), and clean up the server and any scratch scripts.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add, update, or retire an AI provider model option for the BYOK theme generator (OpenAI, Anthropic, Google) and verify the provider requests native structured output for it. Use when model lists go stale or a new provider/model is requested.

中文简介正在准备中。当前显示原文说明。

mattycraig/nuxt-theme-builder92026年10月20日 更新

Add a new interactive design tool under /tools (like the color converter or contrast checker) — component, page, navigation, route lists, SEO, and tests. Use when building a new utility tool.

中文简介正在准备中。当前显示原文说明。

mattycraig/nuxt-theme-builder92026年10月20日 更新

Write and register a new Learning Hub article (Nuxt Content markdown under content/learn) with valid frontmatter, navigation entry, route list entry, and accurate product details. Use when adding or substantially rewriting a learn guide, reference, or tip.

中文简介正在准备中。当前显示原文说明。

mattycraig/nuxt-theme-builder92026年10月20日 更新

Add a new component showcase, block, or template preview page and register it everywhere it must appear (navigation, command palette, route lists, SEO, source view). Use when adding anything under /components, /blocks, or /templates.

中文简介正在准备中。当前显示原文说明。

mattycraig/nuxt-theme-builder92026年10月20日 更新

Checklist for adding or changing a field on ThemeConfig (a new design token, per-mode setting, or export option) end to end — schema, defaults, store + history, CSS apply, export, editor UI, AI, and tests. Use whenever ThemeConfig's shape changes.

中文简介正在准备中。当前显示原文说明。

mattycraig/nuxt-theme-builder92026年10月20日 更新

Run the project's validation pipeline (lint → format → typecheck → unit tests) with auto-fixes, then optionally stage and write a Conventional Commit. Use before committing, when asked to "check", "validate", "run the workflow", or "get this commit-ready".

中文简介正在准备中。当前显示原文说明。

mattycraig/nuxt-theme-builder92026年10月20日 更新

查看 mattycraig 的全部技能

报告此技能的问题