跳到正文
cccskills
免费在 GitHub 公开

mock-feature-screens

Create realistic EspControl feature screen mockups by fitting actual editor screenshots into the local device photo templates, with custom card colours, soft reflections and gentle blur. Use for device feature illustrations and requested configuration screenshots or documentation integration; not for generic image generation or changing firmware behaviour.

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

jtenniswood/espcontrol星标 1,120(GitHub 1,120 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(6)

  • SKILL.md4.9 KB
  • agents/openai.yaml257 B
  • assets/weather-example.json398 B
  • references/capture.md3.6 KB
  • scripts/capture-preview.cjs5.1 KB
  • scripts/compose-screen.cjs6.9 KB

SKILL.md(原文)

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

Mock Feature Screens

Create the same style as the approved Weather example: a real device photo, correctly projected UI, blue/cyan cards where appropriate, and a restrained glass finish. This is the user's chosen screenshot-and-template compositing workflow. Preserve the enclosure, desk and perspective; do not regenerate the photo or invent an interface.

Build the screen

  • Resolve the active EspControl worktree with git rev-parse --show-toplevel. Inspect the relevant card documentation, product/v2/cards/ and src/webserver/cards/ for supported settings and preview behaviour.
  • Render the actual web editor using sample configuration. Keep the example focused on the requested feature; use fictitious entities and supported configuration options. Use realistic card sizes and related examples rather than enlarging a simple one-value card to fill the display. Let the real preview choose typography, icons and layout.
  • Use references/capture.md for the capture command and fixture format. The bundled assets/weather-example.json reproduces the established four-mode example; adapt the configuration for other features.
  • Capture configuration dialogs only when requested or useful to the requested documentation. Leave browser screenshots crisp; apply the glass effect only to the photographed device.

Composite the device

Use scripts/compose-screen.cjs with a template alias or an explicit local photo path. Source photos are not bundled with this repository skill.

TemplateAlias / local filenameAppearance
Originaloriginal / device-template.webpOriginal device angle and tabletop scene
Template 2template2 / device-template-2.webpAlternate angle with a darker enclosure and wider desk view

Use the template the user requests. Otherwise, vary between the two templates for new mockups to avoid repetition: prefer the one used least recently in the current set of feature images, and alternate them when producing several together. If there is no recent example to compare, either template is suitable. Keep the existing template when revising an image unless the user asks to change it. Aliases load from ESPCONTROL_MOCK_TEMPLATE_DIR when set. Otherwise they use the existing personal skill assets at ${CODEX_HOME:-$HOME/.codex}/skills/mock-feature-screens/assets. To use Template 2, substitute template2 in this command:

node <skill-dir>/scripts/compose-screen.cjs \
  original \
  <screen-preview.png> <feature-device.webp> --glass

Requires Node.js, the repository web development dependencies, Playwright Chromium and sharp. Locate Node.js and sharp with load_workspace_dependencies when available. Use the returned Node executable and set NODE_PATH to the returned package directory if needed; do not assume they are on the shell PATH. If dependencies are missing, set them up locally without changing product dependencies just to create an image.

The compositor fits the entire UI with one projective transform, removes the preview's four-pixel enclosure border and uses the template's transparent cutout. --glass applies the approved slight blur and diffuse reflection. Keep this finish unless the user requests a change; avoid dramatic glare or blurring text beyond readability. Omit the flag for a crisp comparison.

Check and deliver

  • Inspect the finished image: labels and forecast values are legible, card edges follow the device plane, and reflections stay on the screen. The compositor verifies corner alignment and every pixel outside the cutout after lossless encoding. Fix source configuration rather than painting over incorrect UI.
  • Keep source photos outside the repository, either in the existing personal skill asset folder or a local folder specified with ESPCONTROL_MOCK_TEMPLATE_DIR. If a template is unavailable, ask for a local template rather than substituting a different photograph. Creating a finished mockup does not authorize publishing its source photo.
  • Save the finished image in the requested workspace. For repository documentation, follow its branch/worktree and PR instructions. Lead the feature page with the device image, add useful alt text and a short sample-data caption, and keep the setup and usage guidance concise. Validate the built page at desktop and mobile sizes. Do not claim publication until deployment is verified.
  • If the request is only for an image, return that image without editing docs. Show the finished result and saved path; describe it as an illustrative screen composite, not hardware-test evidence.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Clean up completed Git branches and worktrees for this repository both locally and on GitHub. Use when the user asks to remove complete, completed, merged, stale, finished, or done branches, delete merged GitHub branches, tidy local worktrees, prune completed PR branches, or clean up branches and worktrees after pull requests have merged.

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

jtenniswood/espcontrol11202026年10月26日 更新

Clean up local branch worktree folders for this repository after their branches or pull requests have merged to main. Use when the user asks to remove merged branch folders, tidy local worktrees, clean old feature branch directories, prune merged PR worktrees, or clean up local development folders without impacting main.

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

jtenniswood/espcontrol11202026年10月26日 更新

compile

免费

Test compile ESPHome firmware for all devices using Docker and fix any YAML or configuration errors until every device compiles successfully. Use when the user says "/compile", "test compile", "compile check", "build test", "check builds", "verify compile", or wants to make sure all devices compile before committing.

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

jtenniswood/espcontrol11202026年10月26日 更新

Review EspControl repository changes specifically for missing, stale, excessive, or misplaced documentation. Use when the user asks for a documentation coverage review, asks whether a feature or behavior change is concisely documented, invokes $docs-review, or explicitly wants docs checked as a secondary pass during a pull request, branch, or local diff review.

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

jtenniswood/espcontrol11202026年10月26日 更新

Provide an expert codebase review for this repository. Use when the user says "Expert Review" or "/expert-review", asks for an expert review, wants refactoring or codebase improvement recommendations, wants consistency and quality assessed, or asks how to reduce duplication, improve component use, preserve the end-user experience, and keep upgrades cleanly migratable.

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

jtenniswood/espcontrol11202026年10月26日 更新

Reimagine this repository from first principles using the current product and user experience as the target. Use when the user says "/expert-reset", asks how the project should be rebuilt if starting again, wants bold architecture or component-structure recommendations, or wants a research-only reset plan unconstrained by current implementation details.

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

jtenniswood/espcontrol11202026年10月26日 更新

查看 jtenniswood 的全部技能

报告此技能的问题