use-dialkit
Add, tune, save, or remove DialKit dials on a Design Studio prototype view. Use only when DialKit is enabled.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 161
- Forks
- 25
01 前言 Front Matter
- name
- use-dialkit
- description
- Add, tune, save, or remove DialKit dials on a Design Studio prototype view. Use only when DialKit is enabled.
03 SKILL.md 正文
Use DialKit
Read the module README and the prototype build skill. Resolve the view's contributor scope and system before editing it.
When the person asks for dials on a view:
- Import
useDialKitfrom@module/dialkit. If the view already has an empty group from Add DialKit, fill that one. - Put the dials for one part of the design in one group, named for it:
const card = useDialKit('Card', { padding: [16, 8, 32, 1], radius: [8, 0, 24, 1] }). Give every group a unique literal name. - Keep the config an object literal in the call, or a
constin the view's file, with literal defaults, so Save to code can write values back. Use DialKit's own control types (README). - Bind the returned values where the design reads them. Keep dials local to the view: don't move them into shared components or system tokens unless asked.
- Choose ranges and steps that make sense for the property, with the current design as the default.
The person tunes in the panel and presses Save to code; the values land in the file as new defaults. Don't save values for them unless asked. To take DialKit out, prefer Remove DialKit in the view's menu; by hand, replace each call with its values and remove the import.
Verify
Open the view, check the panel lists the dials and each one changes the design, then save a change to code and confirm the file holds it. Report what you checked in the browser and what you only checked in source.
04 同仓库更多 Skills
setup-contributor
Register someone joining an existing studio and verify local access. Use configure-studio for a new studio.
manage-modules
Create, install, enable, disable, or remove modules; create, rename, archive, restore, or delete systems through the Studio CLI.
maintain-documentation
Author or audit READMEs, context, and task skills for the platform, modules, and systems; coordinate human Manual updates.
configure-studio
Configure a running studio for the first time, update requested studio settings, or update the studio to a newer Design Studio release. Use setup-contributor for someone joining; installation has its own workflow.
check-design-system
Audit a Design Studio surface against its applicable design system and report findings for human review before any fixes. Use for an explicit design-system review of Studio UI, prototypes, or system previews.
use-__ID__
Use __LABEL__ in Design Studio when the capability is enabled.