@bovinphang/frontend-craft 2.5.0

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.
Files changed (180) hide show
  1. package/.claude-plugin/marketplace.json +61 -0
  2. package/.claude-plugin/plugin.json +32 -0
  3. package/.mcp.json +44 -0
  4. package/CHANGELOG.md +229 -0
  5. package/CHANGELOG.zh-CN.md +228 -0
  6. package/CODE_OF_CONDUCT.md +34 -0
  7. package/CODE_OF_CONDUCT.zh-CN.md +34 -0
  8. package/CONTRIBUTING.md +356 -0
  9. package/CONTRIBUTING.zh-CN.md +356 -0
  10. package/LICENSE +21 -0
  11. package/README.md +467 -0
  12. package/README.openclaw.md +262 -0
  13. package/README.openclaw.zh-CN.md +262 -0
  14. package/README.zh-CN.md +467 -0
  15. package/SECURITY.md +44 -0
  16. package/SECURITY.zh-CN.md +44 -0
  17. package/agents/fec-architect.md +125 -0
  18. package/agents/fec-code-reviewer.md +152 -0
  19. package/agents/fec-debugger.md +44 -0
  20. package/agents/fec-design-token-mapper.md +75 -0
  21. package/agents/fec-doc-updater.md +30 -0
  22. package/agents/fec-e2e-runner.md +107 -0
  23. package/agents/fec-figma-implementer.md +104 -0
  24. package/agents/fec-performance-optimizer.md +293 -0
  25. package/agents/fec-refactor-cleaner.md +32 -0
  26. package/agents/fec-security-reviewer.md +116 -0
  27. package/agents/fec-test-planner.md +50 -0
  28. package/agents/fec-typescript-reviewer.md +142 -0
  29. package/agents/fec-ui-checker.md +120 -0
  30. package/commands/fec-debug.md +30 -0
  31. package/commands/fec-doc-sync.md +18 -0
  32. package/commands/fec-init.md +70 -0
  33. package/commands/fec-plan.md +94 -0
  34. package/commands/fec-refactor-clean.md +19 -0
  35. package/commands/fec-review.md +66 -0
  36. package/commands/fec-scaffold.md +205 -0
  37. package/commands/fec-tdd.md +21 -0
  38. package/dist/bin/frontend-craft.js +82 -0
  39. package/dist/hooks/fec-cleanup-claude-cache.js +4 -0
  40. package/dist/hooks/fec-format-changed-file.js +1 -0
  41. package/dist/hooks/fec-notify.js +1 -0
  42. package/dist/hooks/fec-run-tests.js +1 -0
  43. package/dist/hooks/fec-security-check.js +2 -0
  44. package/dist/hooks/fec-session-start.js +1 -0
  45. package/docs/example-prompts.md +124 -0
  46. package/docs/ja-JP/README.md +467 -0
  47. package/docs/ko-KR/README.md +467 -0
  48. package/docs/project-structure.md +119 -0
  49. package/docs/runtimes/antigravity.md +10 -0
  50. package/docs/runtimes/augment.md +10 -0
  51. package/docs/runtimes/claude.md +171 -0
  52. package/docs/runtimes/claude.zh-CN.md +169 -0
  53. package/docs/runtimes/cline.md +10 -0
  54. package/docs/runtimes/codebuddy.md +10 -0
  55. package/docs/runtimes/codex.md +10 -0
  56. package/docs/runtimes/copilot.md +10 -0
  57. package/docs/runtimes/cursor.md +10 -0
  58. package/docs/runtimes/gemini.md +10 -0
  59. package/docs/runtimes/kilo.md +10 -0
  60. package/docs/runtimes/openclaw.md +10 -0
  61. package/docs/runtimes/opencode.md +10 -0
  62. package/docs/runtimes/qoder.md +19 -0
  63. package/docs/runtimes/trae.md +10 -0
  64. package/docs/runtimes/windsurf.md +10 -0
  65. package/docs/superpowers/plans/2026-05-29-fec-debug.md +491 -0
  66. package/docs/superpowers/specs/2026-05-29-fec-debug-design.md +340 -0
  67. package/docs/zh-CN/example-prompts.md +124 -0
  68. package/docs/zh-CN/project-structure.md +119 -0
  69. package/docs/zh-TW/README.md +467 -0
  70. package/hooks/hooks.json +71 -0
  71. package/openclaw.plugin.json +26 -0
  72. package/package.json +101 -0
  73. package/skills/TEMPLATE.md +155 -0
  74. package/skills/eval_queries.json +890 -0
  75. package/skills/fec-accessibility-check/SKILL.md +39 -0
  76. package/skills/fec-accessibility-check/references/report-template.md +23 -0
  77. package/skills/fec-accessibility-check/references/screen-reader-testing.md +33 -0
  78. package/skills/fec-api-integration/SKILL.md +78 -0
  79. package/skills/fec-api-integration/references/integration-patterns.md +80 -0
  80. package/skills/fec-browser-storage/SKILL.md +34 -0
  81. package/skills/fec-browser-storage/references/storage-patterns.md +65 -0
  82. package/skills/fec-canvas-threejs/SKILL.md +66 -0
  83. package/skills/fec-canvas-threejs/references/rendering-patterns.md +67 -0
  84. package/skills/fec-canvas-threejs/references/shader-webgl-patterns.md +67 -0
  85. package/skills/fec-code-review/SKILL.md +135 -0
  86. package/skills/fec-code-review/references/report-template.md +29 -0
  87. package/skills/fec-component-testing/SKILL.md +119 -0
  88. package/skills/fec-data-fetching/SKILL.md +62 -0
  89. package/skills/fec-data-fetching/references/query-patterns.md +77 -0
  90. package/skills/fec-debug-framework/SKILL.md +162 -0
  91. package/skills/fec-dependency-upgrade/SKILL.md +34 -0
  92. package/skills/fec-dependency-upgrade/references/dependency-upgrade-workflow.md +56 -0
  93. package/skills/fec-doc-sync/SKILL.md +37 -0
  94. package/skills/fec-e2e-testing/SKILL.md +40 -0
  95. package/skills/fec-e2e-testing/references/e2e-advanced.md +176 -0
  96. package/skills/fec-e2e-testing/references/playwright-patterns.md +95 -0
  97. package/skills/fec-form-handling/SKILL.md +76 -0
  98. package/skills/fec-form-handling/references/advanced-form-patterns.md +72 -0
  99. package/skills/fec-implement-from-design/SKILL.md +122 -0
  100. package/skills/fec-implement-from-design/references/design-plan-template.md +36 -0
  101. package/skills/fec-legacy-to-modern-migration/SKILL.md +180 -0
  102. package/skills/fec-legacy-to-modern-migration/references/migration-report-template.md +41 -0
  103. package/skills/fec-legacy-web-standard/SKILL.md +35 -0
  104. package/skills/fec-legacy-web-standard/references/legacy-patterns.md +85 -0
  105. package/skills/fec-list-virtualization/SKILL.md +34 -0
  106. package/skills/fec-list-virtualization/references/virtualization-patterns.md +52 -0
  107. package/skills/fec-monorepo-project-standard/SKILL.md +142 -0
  108. package/skills/fec-motion-interaction/SKILL.md +66 -0
  109. package/skills/fec-motion-interaction/references/motion-patterns.md +112 -0
  110. package/skills/fec-nextjs-project-standard/SKILL.md +117 -0
  111. package/skills/fec-nuxt-project-standard/SKILL.md +122 -0
  112. package/skills/fec-performance-optimization/SKILL.md +72 -0
  113. package/skills/fec-pwa-implementation/SKILL.md +36 -0
  114. package/skills/fec-pwa-implementation/references/manifest-and-icons.md +53 -0
  115. package/skills/fec-pwa-implementation/references/service-worker-workbox.md +68 -0
  116. package/skills/fec-react-project-standard/SKILL.md +83 -0
  117. package/skills/fec-react-project-standard/references/react-project-details.md +642 -0
  118. package/skills/fec-refactor-clean/SKILL.md +48 -0
  119. package/skills/fec-responsive-layout/SKILL.md +34 -0
  120. package/skills/fec-responsive-layout/references/responsive-layout-patterns.md +59 -0
  121. package/skills/fec-route-protection/SKILL.md +135 -0
  122. package/skills/fec-security-review/SKILL.md +38 -0
  123. package/skills/fec-security-review/references/report-template.md +27 -0
  124. package/skills/fec-security-review/references/security-checklist.md +64 -0
  125. package/skills/fec-source-driven-development/SKILL.md +61 -0
  126. package/skills/fec-state-management/SKILL.md +140 -0
  127. package/skills/fec-state-management/references/state-patterns.md +109 -0
  128. package/skills/fec-storybook-component-doc/SKILL.md +37 -0
  129. package/skills/fec-storybook-component-doc/references/story-patterns.md +118 -0
  130. package/skills/fec-svg-animation/SKILL.md +148 -0
  131. package/skills/fec-tailwind-design-system/SKILL.md +34 -0
  132. package/skills/fec-tailwind-design-system/references/tailwind-system-patterns.md +55 -0
  133. package/skills/fec-tdd-workflow/SKILL.md +52 -0
  134. package/skills/fec-testing-strategy/SKILL.md +45 -0
  135. package/skills/fec-typescript-type-safety/SKILL.md +157 -0
  136. package/skills/fec-typescript-type-safety/references/type-safety-patterns.md +102 -0
  137. package/skills/fec-ui-design/SKILL.md +90 -0
  138. package/skills/fec-ui-design/data/product-rules.json +110 -0
  139. package/skills/fec-ui-design/data/stack-ui-rules.json +14 -0
  140. package/skills/fec-ui-design/data/style-archetypes.json +74 -0
  141. package/skills/fec-ui-design/data/ux-quality-rules.json +56 -0
  142. package/skills/fec-ui-design/references/design-intelligence.md +37 -0
  143. package/skills/fec-ui-design/references/master-page-overrides.md +30 -0
  144. package/skills/fec-ui-design/references/pre-delivery-checklist.md +33 -0
  145. package/skills/fec-ui-design/scripts/design-system.mjs +530 -0
  146. package/skills/fec-validation-fix/SKILL.md +48 -0
  147. package/skills/fec-vite-project-standard/SKILL.md +83 -0
  148. package/skills/fec-vue3-project-standard/SKILL.md +49 -0
  149. package/skills/fec-vue3-project-standard/references/vue3-project-details.md +547 -0
  150. package/skills/fec-web-workers/SKILL.md +36 -0
  151. package/skills/fec-web-workers/references/advanced-workers.md +54 -0
  152. package/skills/fec-web-workers/references/basic-worker.md +67 -0
  153. package/skills/metadata.json +1422 -0
  154. package/skills/relations.json +644 -0
  155. package/templates/claude/CLAUDE.md +106 -0
  156. package/templates/claude/settings.json +62 -0
  157. package/templates/codex/AGENTS.md +105 -0
  158. package/templates/codex/config.toml +32 -0
  159. package/templates/openclaw/AGENTS.md +101 -0
  160. package/templates/openclaw/OPENCLAW-CONFIG.md +12 -0
  161. package/templates/shared/rules/fec-agent-workflow.md +54 -0
  162. package/templates/shared/rules/fec-api-layer.md +99 -0
  163. package/templates/shared/rules/fec-ci-cd.md +128 -0
  164. package/templates/shared/rules/fec-code-comments.md +33 -0
  165. package/templates/shared/rules/fec-design-system.md +248 -0
  166. package/templates/shared/rules/fec-error-handling.md +200 -0
  167. package/templates/shared/rules/fec-git-conventions.md +73 -0
  168. package/templates/shared/rules/fec-i18n.md +112 -0
  169. package/templates/shared/rules/fec-naming-conventions.md +120 -0
  170. package/templates/shared/rules/fec-performance.md +101 -0
  171. package/templates/shared/rules/fec-react.md +82 -0
  172. package/templates/shared/rules/fec-refactoring.md +43 -0
  173. package/templates/shared/rules/fec-rendering-patterns.md +183 -0
  174. package/templates/shared/rules/fec-responsive-design.md +227 -0
  175. package/templates/shared/rules/fec-source-driven-development.md +31 -0
  176. package/templates/shared/rules/fec-state-management.md +163 -0
  177. package/templates/shared/rules/fec-testing.md +98 -0
  178. package/templates/shared/rules/fec-typescript.md +355 -0
  179. package/templates/shared/rules/fec-vue.md +64 -0
  180. package/templates/shared/rules/fec-working-modes.md +50 -0
@@ -0,0 +1,171 @@
1
+ # frontend-craft: Claude (Claude Code)
2
+
3
+ Recommended path for most Claude Code users: install through **Claude Code Marketplace** so Claude Code is the single plugin loader.
4
+
5
+ Use the CLI only when you need cross-runtime installation, offline/scripted file copies, or a non-Marketplace environment:
6
+
7
+ ```bash
8
+ npx frontend-craft@latest install --local claude
9
+ # or
10
+ npx frontend-craft@latest install --global claude
11
+ ```
12
+
13
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
14
+
15
+ Choose one active source of truth for the same Claude scope: Marketplace/native plugin, CLI install, or `--plugin-dir`. They can technically coexist, but running multiple complete copies in the same Claude session can duplicate commands, skills, agents, and hooks.
16
+
17
+ The CLI enforces this for Marketplace installs: if Claude Code Marketplace already manages `frontend-craft`, `frontend-craft install/update claude` stops and tells you to update through Marketplace instead. `--force` does not override a Marketplace install.
18
+
19
+ ---
20
+
21
+ ## Claude Code Marketplace
22
+
23
+ You can install `frontend-craft` as a Claude Code marketplace plugin. This loads the plugin natively inside Claude Code.
24
+
25
+ ---
26
+
27
+ ## Quick start after Marketplace install
28
+
29
+ Get started in a few minutes:
30
+
31
+ ### Step 1: Install the plugin
32
+
33
+ ```bash
34
+ # Add marketplace
35
+ /plugin marketplace add bovinphang/frontend-craft
36
+
37
+ # Install plugin
38
+ /plugin install frontend-craft@bovinphang-frontend-craft
39
+
40
+ # Activate
41
+ /reload-plugins
42
+ ```
43
+
44
+ ### Step 2: Initialize project config (recommended)
45
+
46
+ ```bash
47
+ # Copy project templates to .claude/ directory
48
+ /fec-init
49
+ ```
50
+
51
+ After initialization, customize for your project:
52
+
53
+ 1. `.claude/CLAUDE.md` — Update project info, package manager, common commands (source templates: `templates/claude/`; `/fec-init` copies into `.claude/`)
54
+ 2. `.claude/rules/` — Remove inapplicable rules (e.g. delete `fec-vue.md` for React-only projects, delete `fec-i18n.md` if i18n is not needed)
55
+ 3. `.claude/settings.json` — Adjust permission whitelist
56
+
57
+ > **Why this step?** The plugin provides reusable Skills, Agents, and Hooks. CLAUDE.md and rules are project-level config and must live under the project root `.claude/` for Claude Code to recognize them. The `/fec-init` command helps you set this up quickly.
58
+ >
59
+ > `/fec-init` initializes project config; it is not a second plugin install. Keep the plugin body managed by Marketplace, CLI, or `--plugin-dir`, not more than one at once.
60
+
61
+ ### Step 3: Start using
62
+
63
+ ```bash
64
+ # Code review (outputs to reports/code-review-*.md)
65
+ /fec-review
66
+
67
+ # Create page/feature/component by convention
68
+ /fec-scaffold page UserDetail
69
+ /fec-scaffold component DataTable
70
+
71
+ # List available commands
72
+ /plugin list frontend-craft@bovinphang-frontend-craft
73
+ ```
74
+
75
+ You now have access to the bundled agents, skills, and commands (see the root README **Feature overview** for the current list).
76
+
77
+ ---
78
+
79
+ ## Alternate install paths (Claude Code only)
80
+
81
+ > **Requirements:** Claude Code v1.0.33+, Node.js 22+, npm/pnpm/yarn.
82
+
83
+ ### Option 1: Install as plugin (recommended)
84
+
85
+ Same as **Step 1: Install the plugin** under **Quick start after Marketplace install** above (add marketplace, install plugin, `/reload-plugins`). You can also skip typing those commands in chat and add the marketplace via `~/.claude/settings.json` or project `.claude/settings.json`:
86
+
87
+ ```json
88
+ {
89
+ "extraKnownMarketplaces": {
90
+ "frontend-craft": {
91
+ "source": {
92
+ "source": "github",
93
+ "repo": "bovinphang/frontend-craft"
94
+ }
95
+ }
96
+ }
97
+ }
98
+ ```
99
+
100
+ ### Option 2: Team project-level auto-install
101
+
102
+ Add the `extraKnownMarketplaces` config above to `.claude/settings.json` in the project root. Team members will be prompted to install when they trust the project directory.
103
+
104
+ ### Option 3: Local development / testing
105
+
106
+ Clone the repo and load via `--plugin-dir` (no install, suitable for development and debugging):
107
+
108
+ ```bash
109
+ git clone https://github.com/bovinphang/frontend-craft.git
110
+ claude --plugin-dir ./frontend-craft
111
+ ```
112
+
113
+ When using `--plugin-dir` for development, disable or avoid a Marketplace install of the same plugin in that session so you know which copy is running.
114
+
115
+ ### Option 4: Git Submodule (project-level sharing)
116
+
117
+ ```bash
118
+ # Add as submodule in project root
119
+ git submodule add https://github.com/bovinphang/frontend-craft.git .claude/plugins/frontend-craft
120
+
121
+ git add .gitmodules .claude/plugins/frontend-craft
122
+ git commit -m "feat: add frontend-craft as shared Claude Code plugin"
123
+ ```
124
+
125
+ After cloning, team members run:
126
+
127
+ ```bash
128
+ git submodule update --init --recursive
129
+ ```
130
+
131
+ Then load with `--plugin-dir`:
132
+
133
+ ```bash
134
+ claude --plugin-dir .claude/plugins/frontend-craft
135
+ ```
136
+
137
+ ---
138
+
139
+ ## Updating (Marketplace and submodule)
140
+
141
+ For Marketplace installs, run in Claude Code:
142
+
143
+ ```text
144
+ /plugin marketplace update bovinphang-frontend-craft
145
+ ```
146
+
147
+ Or enable auto-update so Claude Code pulls the latest on each start:
148
+
149
+ 1. Run `/plugin` in Claude Code to open the plugin manager
150
+ 2. Switch to the **Marketplaces** tab
151
+ 3. Select `bovinphang-frontend-craft`
152
+ 4. Choose **Enable auto-update**
153
+
154
+ > Third-party Marketplaces do not enable auto-update by default. After enabling, Claude Code will refresh Marketplace data and update installed plugins on each start.
155
+
156
+ For Git submodule installs:
157
+
158
+ ```bash
159
+ git submodule update --remote .claude/plugins/frontend-craft
160
+ ```
161
+
162
+ **CLI installs:** re-run `npx frontend-craft@latest update claude --local` or `... --global` for the same scope, and read [CHANGELOG.md](../../CHANGELOG.md) for release notes. If Claude Code Marketplace is already installed, the CLI refuses Claude install/update and prints the Marketplace update path. If the opposite CLI scope is already installed, interactive terminals ask whether to keep that source updated or uninstall it before switching; non-interactive terminals print the exact commands to run.
163
+
164
+ ```bash
165
+ npx frontend-craft@latest update claude --global
166
+ npx frontend-craft@latest update claude --local
167
+ ```
168
+
169
+ ---
170
+
171
+ **Other languages:** [简体中文](claude.zh-CN.md)
@@ -0,0 +1,169 @@
1
+ # frontend-craft:Claude(Claude Code)
2
+
3
+ 大多数 Claude Code 用户推荐走 **Claude Code Marketplace**,让 Claude Code 原生插件系统作为唯一加载来源。
4
+
5
+ 仅当你需要跨运行时安装、离线/脚本化复制文件,或处在非 Marketplace 环境时,再使用 CLI:
6
+
7
+ ```bash
8
+ npx frontend-craft@latest install --local claude
9
+ # 或
10
+ npx frontend-craft@latest install --global claude
11
+ ```
12
+
13
+ > **非交互场景:** 请加上 `--local` 或 `--global`,避免询问安装位置。交互与脚本行为说明见根目录 README **通用安装**。
14
+
15
+ 同一个 Claude 作用域请只选择一个激活来源:Marketplace/原生插件、CLI 安装或 `--plugin-dir`。它们技术上可以共存,但不推荐在同一个 Claude 会话里同时启用多份完整插件,否则 commands、skills、agents 与 hooks 可能重复。
16
+
17
+ CLI 会对 Marketplace 安装执行单一来源保护:如果已经由 Claude Code Marketplace 管理 `frontend-craft`,`frontend-craft install/update claude` 会停止,并提示改用 Marketplace 更新。`--force` 不会覆盖 Marketplace 安装。
18
+
19
+ ---
20
+
21
+ ## Claude Code Marketplace
22
+
23
+ 仍可将 `frontend-craft` 作为 Claude Code 的 Marketplace 插件安装,由 Claude Code 原生加载插件。
24
+
25
+ ---
26
+
27
+ ## Marketplace 安装后的快速开始
28
+
29
+ ### 第一步:安装插件
30
+
31
+ ```bash
32
+ # 添加市场
33
+ /plugin marketplace add bovinphang/frontend-craft
34
+
35
+ # 安装插件
36
+ /plugin install frontend-craft@bovinphang-frontend-craft
37
+
38
+ # 激活
39
+ /reload-plugins
40
+ ```
41
+
42
+ ### 第二步:初始化项目配置(推荐)
43
+
44
+ ```bash
45
+ # 将项目模板复制到当前项目的 .claude/ 目录
46
+ /fec-init
47
+ ```
48
+
49
+ 初始化后请根据项目实际情况修改:
50
+
51
+ 1. `.claude/CLAUDE.md` — 修改项目基础信息、包管理器、常用命令(仓库内模板位于 `templates/claude/`,`/fec-init` 会复制到 `.claude/`)
52
+ 2. `.claude/rules/` — 删除不适用的规则文件(如纯 React 项目删除 `fec-vue.md`,不需要 i18n 的项目删除 `fec-i18n.md`)
53
+ 3. `.claude/settings.json` — 调整权限白名单
54
+
55
+ > **为什么需要这一步?** 插件提供可复用的 Skills、Agents 和 Hooks;CLAUDE.md 与 rules 属于项目级配置,须位于项目根目录的 `.claude/` 下才能被 Claude Code 识别。`/fec-init` 用于快速完成该步骤。
56
+ >
57
+ > `/fec-init` 是项目配置初始化,不是第二次安装插件本体。插件本体请交给 Marketplace、CLI 或 `--plugin-dir` 其中之一管理。
58
+
59
+ ### 第三步:开始使用
60
+
61
+ ```bash
62
+ # 代码评审(输出到 reports/code-review-*.md)
63
+ /fec-review
64
+
65
+ # 按规范创建页面/功能/组件
66
+ /fec-scaffold page UserDetail
67
+ /fec-scaffold component DataTable
68
+
69
+ # 查看可用命令
70
+ /plugin list frontend-craft@bovinphang-frontend-craft
71
+ ```
72
+
73
+ 具体 agents、skills、commands 清单见根目录 README **功能概览**。
74
+
75
+ ---
76
+
77
+ ## 其他安装方式(仅 Claude Code)
78
+
79
+ > **要求:** Claude Code v1.0.33+,Node.js 22+,npm/pnpm/yarn。
80
+
81
+ ### 选项 1:作为插件安装(推荐)
82
+
83
+ 与上文 **「Marketplace 安装后的快速开始」** 中 **第一步:安装插件** 相同(添加市场、安装插件、`/reload-plugins`)。亦可不在对话里执行命令,直接写入 `~/.claude/settings.json` 或项目 `.claude/settings.json`:
84
+
85
+ ```json
86
+ {
87
+ "extraKnownMarketplaces": {
88
+ "frontend-craft": {
89
+ "source": {
90
+ "source": "github",
91
+ "repo": "bovinphang/frontend-craft"
92
+ }
93
+ }
94
+ }
95
+ }
96
+ ```
97
+
98
+ ### 选项 2:团队项目级自动安装
99
+
100
+ 在项目根目录的 `.claude/settings.json` 中添加上述 `extraKnownMarketplaces` 配置,团队成员 trust 项目目录后会收到安装提示。
101
+
102
+ ### 选项 3:本地开发 / 测试
103
+
104
+ 克隆仓库后使用 `--plugin-dir` 加载(无需安装,适合开发调试):
105
+
106
+ ```bash
107
+ git clone https://github.com/bovinphang/frontend-craft.git
108
+ claude --plugin-dir ./frontend-craft
109
+ ```
110
+
111
+ 使用 `--plugin-dir` 做开发调试时,请避免在同一会话里同时启用 Marketplace 版本,这样才能确定当前运行的是哪一份代码。
112
+
113
+ ### 选项 4:Git Submodule(项目内共享)
114
+
115
+ ```bash
116
+ # 在项目根目录添加 submodule
117
+ git submodule add https://github.com/bovinphang/frontend-craft.git .claude/plugins/frontend-craft
118
+
119
+ git add .gitmodules .claude/plugins/frontend-craft
120
+ git commit -m "feat: add frontend-craft as shared Claude Code plugin"
121
+ ```
122
+
123
+ 团队成员克隆后执行:
124
+
125
+ ```bash
126
+ git submodule update --init --recursive
127
+ ```
128
+
129
+ 再使用 `--plugin-dir` 加载:
130
+
131
+ ```bash
132
+ claude --plugin-dir .claude/plugins/frontend-craft
133
+ ```
134
+
135
+ ---
136
+
137
+ ## 更新(Marketplace 与 submodule)
138
+
139
+ 通过 Marketplace 安装的插件,在 Claude Code 中执行:
140
+
141
+ ```text
142
+ /plugin marketplace update bovinphang-frontend-craft
143
+ ```
144
+
145
+ 或开启自动更新,每次启动 Claude Code 时拉取最新版本:
146
+
147
+ 1. 在 Claude Code 中执行 `/plugin` 打开插件管理器
148
+ 2. 切换到 **Marketplaces** 标签页
149
+ 3. 选中 `bovinphang-frontend-craft`
150
+ 4. 选择 **Enable auto-update**
151
+
152
+ > 第三方 Marketplace 默认不开启自动更新。启用后,Claude Code 每次启动时会刷新 Marketplace 数据并更新已安装插件。
153
+
154
+ 若使用 Git submodule 安装:
155
+
156
+ ```bash
157
+ git submodule update --remote .claude/plugins/frontend-craft
158
+ ```
159
+
160
+ **CLI 安装:** 对同一作用域执行 `npx frontend-craft@latest update claude --local` 或 `... --global`,版本说明见 [CHANGELOG.zh-CN.md](../../CHANGELOG.zh-CN.md) 或 [CHANGELOG.md](../../CHANGELOG.md)。如果已经检测到 Claude Code Marketplace 安装,CLI 会拒绝 Claude install/update,并提示通过 Marketplace 更新。如果另一个 CLI 作用域已安装,交互式终端会询问是保持该来源并更新,还是卸载后切换;非交互终端会打印可执行命令。
161
+
162
+ ```bash
163
+ npx frontend-craft@latest update claude --global
164
+ npx frontend-craft@latest update claude --local
165
+ ```
166
+
167
+ ---
168
+
169
+ **English:** [claude.md](claude.md)
@@ -0,0 +1,10 @@
1
+ # frontend-craft: cline
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install cline
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: codebuddy
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install codebuddy
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: codex
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install codex
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: copilot
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install copilot
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: cursor
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install cursor
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: gemini
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install gemini
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: kilo
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install kilo
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: openclaw
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install openclaw
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: opencode
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install opencode
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,19 @@
1
+ # frontend-craft: qoder
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install qoder
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. Local installs write to `.qoder/`; global installs write to `~/.qoder` or `QODER_CONFIG_DIR`.
10
+
11
+ Installed assets:
12
+
13
+ - `skills/` -> `.qoder/skills/`
14
+ - `commands/` -> `.qoder/commands/`
15
+ - `agents/` -> `.qoder/agents/`
16
+ - shared rules -> `.qoder/rules/`
17
+ - hook scripts -> `.qoder/hooks/`
18
+ - hook configuration -> `.qoder/settings.json`
19
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: trae
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install trae
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+
@@ -0,0 +1,10 @@
1
+ # frontend-craft: windsurf
2
+
3
+ See root README **Universal Install** and run:
4
+
5
+ ```bash
6
+ npx frontend-craft install windsurf
7
+ ```
8
+
9
+ > **Non-interactive:** append `--local` or `--global` to skip install-location prompts. See the repository README **Universal Install** for interactive vs. scripted behavior.
10
+