webcraft-skills 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -0
- package/CHANGELOG_zh_CN.md +67 -0
- package/LICENSE +21 -0
- package/README.md +148 -0
- package/README_zh_CN.md +148 -0
- package/commands/ui-audit.md +21 -0
- package/commands/ui-build.md +21 -0
- package/commands/ui-fix.md +21 -0
- package/commands/ui-polish.md +21 -0
- package/commands/ui-preset.md +15 -0
- package/commands/ui-review.md +21 -0
- package/package.json +36 -0
- package/scripts/install.mjs +101 -0
- package/skills/webcraft-skills/SKILL.md +45 -0
- package/skills/webcraft-skills/agents/openai.yaml +4 -0
- package/skills/webcraft-skills/references/checklists/ui-audit.md +621 -0
- package/skills/webcraft-skills/references/checklists/ui-audit.zh.md +675 -0
- package/skills/webcraft-skills/references/presets/cinematic-minimal.md +48 -0
- package/skills/webcraft-skills/references/presets/cinematic-minimal.zh.md +53 -0
- package/skills/webcraft-skills/references/workflows/audit-ui.md +272 -0
- package/skills/webcraft-skills/references/workflows/audit-ui.zh.md +299 -0
- package/skills/webcraft-skills/references/workflows/build-ui.md +12 -0
- package/skills/webcraft-skills/references/workflows/build-ui.zh.md +385 -0
- package/skills/webcraft-skills/references/workflows/fix-ui.md +261 -0
- package/skills/webcraft-skills/references/workflows/fix-ui.zh.md +261 -0
- package/skills/webcraft-skills/references/workflows/polish-ui.md +12 -0
- package/skills/webcraft-skills/references/workflows/polish-ui.zh.md +246 -0
- package/skills/webcraft-skills/references/workflows/review-ui.md +12 -0
- package/skills/webcraft-skills/references/workflows/review-ui.zh.md +207 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
English | [中文](./CHANGELOG_zh_CN.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## v0.1.1 - 2026-05-21
|
|
8
|
+
|
|
9
|
+
Public release preparation for `webcraft-skills`.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Renamed the project and package from the UI-specific name to `webcraft-skills`, leaving room for a broader website skill pack.
|
|
14
|
+
- Updated the public README and usage docs to present only the currently verified stable commands: `/ui-audit` and `/ui-fix`.
|
|
15
|
+
- Removed maintainer-only implementation details from public-facing documentation.
|
|
16
|
+
- Aligned installer help, package metadata, and skill paths with the new package name.
|
|
17
|
+
|
|
18
|
+
### Audit
|
|
19
|
+
|
|
20
|
+
- Tightened the audit checklist around native form controls, custom component reuse, responsive breakpoints, admin workflows, and content stress.
|
|
21
|
+
- Clarified that native inputs, selects, dropdowns, multiselects, and menus should be flagged when they clash with the product style or bypass existing custom controls.
|
|
22
|
+
|
|
23
|
+
### Fix
|
|
24
|
+
|
|
25
|
+
- Added clearer repair guidance for replacing or wrapping mismatched native controls with project-appropriate custom components.
|
|
26
|
+
- Strengthened post-fix verification for forms, dialogs, menus, navigation, responsive layouts, and interaction states.
|
|
27
|
+
|
|
28
|
+
### Release
|
|
29
|
+
|
|
30
|
+
- Verified the skill package with validation and npm dry-run packaging.
|
|
31
|
+
|
|
32
|
+
## v0.1.0 - 2026-05-20
|
|
33
|
+
|
|
34
|
+
Skill-focused foundation release.
|
|
35
|
+
|
|
36
|
+
### Stable
|
|
37
|
+
|
|
38
|
+
- Installs both the skill package and slash command prompts.
|
|
39
|
+
- Stable commands:
|
|
40
|
+
- `/ui-audit`: run a strict UI quality audit.
|
|
41
|
+
- `/ui-fix`: fix confirmed audit findings.
|
|
42
|
+
- Added bilingual runtime references for audit and fix workflows.
|
|
43
|
+
- Added locale routing so Chinese users read `.zh.md` references and English users read English references.
|
|
44
|
+
|
|
45
|
+
### Audit
|
|
46
|
+
|
|
47
|
+
- Expanded the UI audit rubric with clearer Critical / Major / Minor severity definitions.
|
|
48
|
+
- Added stronger checks for admin/dashboard workflows, responsive breakpoints, interaction states, content stress, accessibility, and visual consistency.
|
|
49
|
+
- Added explicit detection for native controls that do not match the product style or fail to use existing custom controls.
|
|
50
|
+
- Added audit workflow guidance for evidence, viewport coverage, code/static inspection, screenshots, and whole-site sampling.
|
|
51
|
+
|
|
52
|
+
### Fix
|
|
53
|
+
|
|
54
|
+
- Expanded the fix workflow with scoped repair rules, fix priority, verification steps, and output format.
|
|
55
|
+
- Added repair guidance for replacing or wrapping native inputs, selects, dropdowns, multiselects, menus, and other base controls.
|
|
56
|
+
- Added post-fix recheck rules for responsive behavior, component states, dialogs, menus, forms, navigation, and content stress.
|
|
57
|
+
|
|
58
|
+
### Docs
|
|
59
|
+
|
|
60
|
+
- Reworked README for public users.
|
|
61
|
+
- Clearly marks `/ui-audit` and `/ui-fix` as stable.
|
|
62
|
+
- Marks `/ui-review`, `/ui-polish`, `/ui-build`, and `/ui-preset` as experimental and not yet fully tested.
|
|
63
|
+
- Removed maintainer-only sync/runtime details from public README.
|
|
64
|
+
|
|
65
|
+
## v0.0.1 - 2026-05-16
|
|
66
|
+
|
|
67
|
+
Initial public version of the project.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# 更新日志
|
|
2
|
+
|
|
3
|
+
[English](./CHANGELOG.md) | 中文
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## v0.1.1 - 2026-05-21
|
|
8
|
+
|
|
9
|
+
`webcraft-skills` 的公开发布准备版本。
|
|
10
|
+
|
|
11
|
+
### 变更
|
|
12
|
+
|
|
13
|
+
- 项目名和包名从偏 UI 的旧名称调整为 `webcraft-skills`,为后续扩展成更完整的网站 skill pack 预留空间。
|
|
14
|
+
- 更新公开 README 和 usage 文档,只承诺当前已验证的稳定命令:`/ui-audit` 和 `/ui-fix`。
|
|
15
|
+
- 从面向用户的文档中移除维护者内部实现和同步运行层说明。
|
|
16
|
+
- 统一安装器帮助、package metadata 和 skill 路径,使其全部指向新的包名。
|
|
17
|
+
|
|
18
|
+
### Audit
|
|
19
|
+
|
|
20
|
+
- 继续打磨 audit checklist,强化原生表单控件、自定义组件复用、响应式断点、后台工作流和真实内容压力检查。
|
|
21
|
+
- 明确输入框、选择框、下拉框、多选框、菜单等原生控件在不符合网站风格,或绕过项目已有自定义组件时,应被识别为问题。
|
|
22
|
+
|
|
23
|
+
### Fix
|
|
24
|
+
|
|
25
|
+
- 补充控件修复策略:将不协调的原生控件替换或封装为符合项目风格的自定义组件。
|
|
26
|
+
- 强化修复后的复检范围:表单、弹窗、菜单、导航、响应式布局和交互状态。
|
|
27
|
+
|
|
28
|
+
### 发布
|
|
29
|
+
|
|
30
|
+
- 已通过项目校验和 npm dry-run 打包预检。
|
|
31
|
+
|
|
32
|
+
## v0.1.0 - 2026-05-20
|
|
33
|
+
|
|
34
|
+
Skill 化基础版本。
|
|
35
|
+
|
|
36
|
+
### 稳定能力
|
|
37
|
+
|
|
38
|
+
- 安装时会同时安装 skill package 和 slash command prompts。
|
|
39
|
+
- 当前稳定命令:
|
|
40
|
+
- `/ui-audit`:严格排查 UI 质量问题。
|
|
41
|
+
- `/ui-fix`:根据明确的 audit findings 修复问题。
|
|
42
|
+
- 补齐 audit / fix 的中英文运行时 reference。
|
|
43
|
+
- 增加语言路由:中文用户读取 `.zh.md` reference,英文用户读取英文 reference。
|
|
44
|
+
|
|
45
|
+
### Audit
|
|
46
|
+
|
|
47
|
+
- 扩展 UI audit rubric,明确 Critical / Major / Minor 的分级标准。
|
|
48
|
+
- 加强后台 / dashboard、响应式断点、交互状态、真实内容压力、可访问性和视觉一致性检查。
|
|
49
|
+
- 增加原生控件检查:发现不符合网站风格的原生控件,或已有自定义控件却没有使用的情况。
|
|
50
|
+
- 完善 audit workflow:覆盖证据采集、视口检查、代码静态审查、截图审查和整站抽样。
|
|
51
|
+
|
|
52
|
+
### Fix
|
|
53
|
+
|
|
54
|
+
- 扩展 fix workflow:增加修复边界、修复优先级、验证步骤和输出格式。
|
|
55
|
+
- 增加输入框、选择框、下拉框、多选框、菜单等基础控件的修复策略。
|
|
56
|
+
- 增加修复后的复检规则:响应式、组件状态、弹窗、菜单、表单、导航和真实内容压力。
|
|
57
|
+
|
|
58
|
+
### 文档
|
|
59
|
+
|
|
60
|
+
- 重写 README,使其更适合外部用户阅读。
|
|
61
|
+
- 明确 `/ui-audit` 和 `/ui-fix` 是当前稳定能力。
|
|
62
|
+
- 标注 `/ui-review`、`/ui-polish`、`/ui-build`、`/ui-preset` 为实验性能力,尚未完整测试。
|
|
63
|
+
- 从公开 README 中移除维护者使用的同步运行层说明。
|
|
64
|
+
|
|
65
|
+
## v0.0.1 - 2026-05-16
|
|
66
|
+
|
|
67
|
+
项目的第一个公开版本。
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Frank Guo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Webcraft Skills
|
|
2
|
+
|
|
3
|
+
English | [中文](./README_zh_CN.md)
|
|
4
|
+
|
|
5
|
+
UI audit and fix skill for Codex and Claude Code, with slash commands for inspecting and repairing rough AI-generated web UI.
|
|
6
|
+
|
|
7
|
+
AI coding tools can generate code quickly, but their UI often feels too crowded, flashy, inconsistent, or obviously AI-generated.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# What Is This?
|
|
12
|
+
|
|
13
|
+
Webcraft Skills is a UI quality system for AI agents.
|
|
14
|
+
|
|
15
|
+
It is not a UI framework, design system, component library, or product builder.
|
|
16
|
+
|
|
17
|
+
The current verified scope is focused: **audit existing UI and fix confirmed audit findings**.
|
|
18
|
+
|
|
19
|
+
The broader goal is:
|
|
20
|
+
|
|
21
|
+
- audit layout, typography, color, borders, radius, modals, responsive behavior, and interaction states
|
|
22
|
+
- fix rough AI-generated UI based on concrete findings
|
|
23
|
+
- eventually build and polish more realistic, restrained web UI
|
|
24
|
+
- refine the core reusable skill first, then gradually expand Codex, Claude, Cursor, and plain prompt adapters
|
|
25
|
+
- help AI act more like a senior UI/UX and frontend reviewer
|
|
26
|
+
|
|
27
|
+
The currently tested commands are `/ui-audit` and `/ui-fix`. Other command prompts are present for iteration, but are not yet part of the stable public surface.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Quick Start
|
|
32
|
+
|
|
33
|
+
## Current Recommended Install
|
|
34
|
+
|
|
35
|
+
Install the skill and slash commands with npx:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npx webcraft-skills install --agent codex
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
For Claude Code:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx webcraft-skills install --agent claude
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
To install for both:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx webcraft-skills install --agent all
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
This installs:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
~/.codex/skills/webcraft-skills
|
|
57
|
+
~/.codex/commands/*.md
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
or:
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
~/.claude/skills/webcraft-skills
|
|
64
|
+
~/.claude/commands/*.md
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Then use it in a project:
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
/ui-audit current website
|
|
71
|
+
/ui-fix Critical and Major issues from the last audit
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Full parameter-style usage:
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
/ui-audit --scope whole-site --strict --viewports 375,768,1280
|
|
78
|
+
/ui-fix --severity critical,major --yes
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
If a client does not load commands from `~/.codex/commands`, use explicit natural invocation:
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
Use webcraft-skills to audit the current website.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Cursor
|
|
88
|
+
|
|
89
|
+
Cursor support is not part of the stable install path yet. For now, use the audit and fix guidance manually if you know how to configure Cursor Project Rules.
|
|
90
|
+
|
|
91
|
+
## Plain Prompt
|
|
92
|
+
|
|
93
|
+
Plain prompt usage is not part of the stable release yet.
|
|
94
|
+
|
|
95
|
+
## Project Extensions
|
|
96
|
+
|
|
97
|
+
Create `.webcraft-skills/EXTEND.md` and `.webcraft-skills/config.json` in the target project to override default audit standards, brand constraints, radius scale, viewports, and visual rules.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
# Capabilities
|
|
102
|
+
|
|
103
|
+
Stable:
|
|
104
|
+
|
|
105
|
+
- `/ui-audit`: run a strict UI quality audit
|
|
106
|
+
- `/ui-fix`: implement fixes from audit results
|
|
107
|
+
|
|
108
|
+
Experimental / not yet fully tested:
|
|
109
|
+
|
|
110
|
+
- `/ui-review`: review a page, component, or screenshot
|
|
111
|
+
- `/ui-polish`: refine existing UI without changing product meaning
|
|
112
|
+
- `/ui-build`: build a page or site
|
|
113
|
+
- `/ui-preset`: list and apply visual presets
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
# Presets
|
|
118
|
+
|
|
119
|
+
The package currently includes one bundled preset: `cinematic-minimal`.
|
|
120
|
+
|
|
121
|
+
Calm cinematic interfaces with:
|
|
122
|
+
|
|
123
|
+
- restrained motion
|
|
124
|
+
- warm dark tones
|
|
125
|
+
- spacious layouts
|
|
126
|
+
- quiet product feeling
|
|
127
|
+
|
|
128
|
+
More presets will be added when they are ready.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
# Philosophy
|
|
133
|
+
|
|
134
|
+
Good UI is usually restrained.
|
|
135
|
+
|
|
136
|
+
This project focuses on helping AI generate interfaces that feel:
|
|
137
|
+
|
|
138
|
+
- cleaner
|
|
139
|
+
- calmer
|
|
140
|
+
- more intentional
|
|
141
|
+
- more realistic
|
|
142
|
+
- less artificial
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
# License
|
|
147
|
+
|
|
148
|
+
MIT
|
package/README_zh_CN.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Webcraft Skills
|
|
2
|
+
|
|
3
|
+
[English](./README.md) | 中文
|
|
4
|
+
|
|
5
|
+
适合 Codex 和 Claude Code 的 UI audit / fix skill,提供 slash commands,用于排查和修复粗糙的 AI 生成网页 UI。
|
|
6
|
+
|
|
7
|
+
AI Coding 工具已经很会写代码,但生成的 UI 经常会显得太拥挤、太花哨、层级混乱,或者有很强的“AI 模板感”。
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# 这是什么?
|
|
12
|
+
|
|
13
|
+
Webcraft Skills 是一个面向 AI Agent 的网页 UI 质量系统。
|
|
14
|
+
|
|
15
|
+
它不是 UI 框架、设计系统、组件库,也不是可视化建站工具。
|
|
16
|
+
|
|
17
|
+
当前已验证范围很明确:**审查现有 UI,并根据明确的 audit findings 修复问题**。
|
|
18
|
+
|
|
19
|
+
更完整的长期目标是:
|
|
20
|
+
|
|
21
|
+
- 排查布局、字体、颜色、边框、圆角、弹窗、响应式和交互状态
|
|
22
|
+
- 根据具体 findings 修复粗糙的 AI 生成 UI
|
|
23
|
+
- 逐步支持生成更真实、更克制的网页
|
|
24
|
+
- 先打磨可复用的核心 Skill,再逐步扩展 Codex / Claude / Cursor 等平台适配
|
|
25
|
+
- 让 AI 不只会生成 UI,也会像资深 UI/UX + 前端 reviewer 一样修 UI
|
|
26
|
+
|
|
27
|
+
当前已测试命令是 `/ui-audit` 和 `/ui-fix`。其它 command prompt 会保留用于迭代,但暂时不作为稳定公开能力承诺。
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Quick Start
|
|
32
|
+
|
|
33
|
+
## 当前推荐安装
|
|
34
|
+
|
|
35
|
+
使用 npx 安装 skill 和 slash commands:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npx webcraft-skills install --agent codex
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Claude Code 使用:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx webcraft-skills install --agent claude
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
同时安装 Codex 和 Claude Code:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx webcraft-skills install --agent all
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
这会安装到:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
~/.codex/skills/webcraft-skills
|
|
57
|
+
~/.codex/commands/*.md
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
或:
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
~/.claude/skills/webcraft-skills
|
|
64
|
+
~/.claude/commands/*.md
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
然后在项目中使用:
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
/ui-audit current website
|
|
71
|
+
/ui-fix Critical and Major issues from the last audit
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
更完整的参数式调用:
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
/ui-audit --scope whole-site --strict --viewports 375,768,1280
|
|
78
|
+
/ui-fix --severity critical,major --yes
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
如果当前客户端没有从 `~/.codex/commands` 加载命令,可以直接显式调用:
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
Use webcraft-skills to audit the current website.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Cursor
|
|
88
|
+
|
|
89
|
+
Cursor 暂时不属于稳定安装路径。如果你熟悉 Cursor Project Rules,可以先手动参考 audit / fix 规则。
|
|
90
|
+
|
|
91
|
+
## Plain Prompt
|
|
92
|
+
|
|
93
|
+
Plain Prompt 暂时不属于稳定发布能力。
|
|
94
|
+
|
|
95
|
+
## 项目扩展
|
|
96
|
+
|
|
97
|
+
在目标项目中创建 `.webcraft-skills/EXTEND.md` 和 `.webcraft-skills/config.json`,可覆盖默认 UI 审查标准、品牌约束、圆角体系、默认视口等。
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
# 能力
|
|
102
|
+
|
|
103
|
+
稳定能力:
|
|
104
|
+
|
|
105
|
+
- `/ui-audit`:严格排查整页或整站 UI 质量
|
|
106
|
+
- `/ui-fix`:根据 audit 结果直接修复代码
|
|
107
|
+
|
|
108
|
+
实验性能力,尚未完整测试:
|
|
109
|
+
|
|
110
|
+
- `/ui-review`:审查页面、组件或截图
|
|
111
|
+
- `/ui-polish`:保留业务含义的前提下润色页面
|
|
112
|
+
- `/ui-build`:生成网页或站点
|
|
113
|
+
- `/ui-preset`:查看和应用视觉 preset
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
# Presets
|
|
118
|
+
|
|
119
|
+
当前包内置一个 preset:`cinematic-minimal`。
|
|
120
|
+
|
|
121
|
+
电影感极简风格:
|
|
122
|
+
|
|
123
|
+
- 克制动效
|
|
124
|
+
- 暖黑色调
|
|
125
|
+
- 大留白
|
|
126
|
+
- 安静的产品感
|
|
127
|
+
|
|
128
|
+
更多 preset 会在准备好后继续补充。
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
# Philosophy
|
|
133
|
+
|
|
134
|
+
真正高级的 UI,很多时候都是克制的。
|
|
135
|
+
|
|
136
|
+
这个项目能让 AI 生成的界面:
|
|
137
|
+
|
|
138
|
+
- 更干净
|
|
139
|
+
- 更平静
|
|
140
|
+
- 更有节奏
|
|
141
|
+
- 更真实
|
|
142
|
+
- 更少 AI 味
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
# License
|
|
147
|
+
|
|
148
|
+
MIT
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# /ui-audit
|
|
2
|
+
|
|
3
|
+
Run a strict visual, responsive, interaction, and AI-template-smell audit.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
/ui-audit [scope]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Examples:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/ui-audit whole site
|
|
15
|
+
/ui-audit current localhost app
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Agent Instructions
|
|
19
|
+
|
|
20
|
+
Use the `webcraft-skills` skill in Audit mode. Read the selected-locale audit workflow and UI audit checklist before reporting findings. Inspect layout, typography, color, borders, radius, shadow, components, forms, modals, responsive behavior, motion, accessibility, content stress, and AI template smell. Prefer browser verification when available.
|
|
21
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# /ui-build
|
|
2
|
+
|
|
3
|
+
Build a production-quality web page or site with Webcraft Skills.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
/ui-build [preset] [target]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Examples:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/ui-build cinematic-minimal personal homepage
|
|
15
|
+
/ui-build saas-clean product landing page
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Agent Instructions
|
|
19
|
+
|
|
20
|
+
Use the `webcraft-skills` skill in Build mode. Read the selected preset when provided. If no preset is provided, choose based on product context. Generate or modify real project files when possible, then check responsive behavior and interactive states.
|
|
21
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# /ui-fix
|
|
2
|
+
|
|
3
|
+
Fix UI issues found by review or audit.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
/ui-fix [issue or scope]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Examples:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/ui-fix Critical and Major issues from the last audit
|
|
15
|
+
/ui-fix mobile overflow and modal states
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Agent Instructions
|
|
19
|
+
|
|
20
|
+
Use the `webcraft-skills` skill in Fix mode. Read the selected-locale fix workflow before editing. Keep edits scoped to confirmed findings. Fix Critical issues first, then Major, then Minor. Verify with the project's existing checks.
|
|
21
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# /ui-polish
|
|
2
|
+
|
|
3
|
+
Polish existing UI while preserving product meaning and codebase style.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
/ui-polish [scope]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Examples:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/ui-polish homepage
|
|
15
|
+
/ui-polish reduce AI template feel
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Agent Instructions
|
|
19
|
+
|
|
20
|
+
Use the `webcraft-skills` skill in Polish mode. Improve spacing, typography, color hierarchy, radius, border, component states, responsive behavior, and copy restraint. Avoid unrelated redesign.
|
|
21
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# /ui-preset
|
|
2
|
+
|
|
3
|
+
List, select, or apply Webcraft Skills presets.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
/ui-preset list
|
|
9
|
+
/ui-preset cinematic-minimal
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Agent Instructions
|
|
13
|
+
|
|
14
|
+
Use the `webcraft-skills` skill. Explain when the preset fits, when it does not, and what constraints it applies.
|
|
15
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# /ui-review
|
|
2
|
+
|
|
3
|
+
Review a page, component, screenshot, or site with Webcraft Skills.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
/ui-review [scope]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Examples:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/ui-review current page
|
|
15
|
+
/ui-review homepage and pricing page
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Agent Instructions
|
|
19
|
+
|
|
20
|
+
Use the `webcraft-skills` skill in Review mode. Read `ui-audit.zh.md`. Lead with Critical, Major, Minor findings. Each finding must include location, problem, impact, and fix.
|
|
21
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webcraft-skills",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Webcraft skill pack for auditing and fixing rough AI-generated websites.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"webcraft-skills": "scripts/install.mjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"skills/",
|
|
12
|
+
"commands/",
|
|
13
|
+
"scripts/install.mjs",
|
|
14
|
+
"README.md",
|
|
15
|
+
"README_zh_CN.md",
|
|
16
|
+
"CHANGELOG.md",
|
|
17
|
+
"CHANGELOG_zh_CN.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"validate": "node scripts/validate.mjs",
|
|
22
|
+
"sync:runtime": "node scripts/sync-runtime.mjs"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"ai",
|
|
26
|
+
"webcraft",
|
|
27
|
+
"website",
|
|
28
|
+
"ui",
|
|
29
|
+
"frontend",
|
|
30
|
+
"codex",
|
|
31
|
+
"claude",
|
|
32
|
+
"cursor",
|
|
33
|
+
"skills",
|
|
34
|
+
"design-review"
|
|
35
|
+
]
|
|
36
|
+
}
|