
starter-cleaner
将 wot-starter v2 模板精简为最小可开发状态,移除文档、演示分包、生成文件和 monorepo 配置,并同步清理相关 Vite 与 package.json 配置。用户要求“清理模板”“移除示例”“生成最小模板”“精简 wot-starter v2”时使用。
- Installs
- 275
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/wot-ui/open-wot --skill starter-cleaner- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads starter-cleaner automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Starter Cleaner
使用随技能提供的确定性脚本清理 wot-starter v2,保留基础页面、Wot UI、uni-echarts 和 echarts 能力。
执行流程
-
在项目根目录运行
git status --short,确认并告知用户未提交改动会被保留,但待清理目录中的改动会随目录一起删除。 -
如果用户尚未明确要求执行清理,先说明这是破坏性操作并取得确认。
-
先预览清理计划:
node .agents/skills/starter-cleaner/scripts/clean.js --dry-run -
确认目标是
wot-starterv2 后执行。脚本会删除旧的src/pages.json,然后受控运行pnpm dev:h5,等新的最小src/pages.json生成后退出 dev server:node .agents/skills/starter-cleaner/scripts/clean.js -
执行
pnpm install --lockfile-only更新锁文件,再运行pnpm type-check和pnpm lint。如果依赖不可用,至少检查git diff --check和清理后的 diff,并将未运行的验证明确告知用户。
清理范围
脚本执行以下操作,且支持重复运行:
- 删除
docs/、src/subPages/、src/subEcharts/、src/subAsyncEcharts/。 - 删除旧的
src/pages.json,再通过pnpm dev:h5触发vite-plugin-uni-pages重新生成最小页面配置。 - 删除
pnpm-workspace.yaml,将项目从文档 workspace 恢复为单包项目。 - 从
vite.config.ts的UniHelperPages配置中移除上述三个示例分包入口。 - 从
package.json中移除docs:*与lint:docs脚本。 - 保留
uni-echarts、echarts依赖和相关 Vite 配置,方便业务继续使用图表。
安全约束
- 不直接拼接或扩展删除路径;仅使用脚本内的固定清单。
- 不在非
wot-starterv2 项目中运行。仅在用户明确确认目标项目后使用--force跳过项目身份检查。 - 不用
--force绕过未提交改动提示;该参数只用于项目身份检查。
FAQ
What does the starter-cleaner skill do?
将 wot-starter v2 模板精简为最小可开发状态,移除文档、演示分包、生成文件和 monorepo 配置,并同步清理相关 Vite 与 package.json 配置。用户要求“清理模板”“移除示例”“生成最小模板”“精简 wot-starter v2”时使用。
How do I install starter-cleaner?
Run npx skills add https://github.com/wot-ui/open-wot --skill starter-cleaner in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/starter-cleaner/ (personal) or .claude/skills/starter-cleaner/ (project).
Which AI agents can use starter-cleaner?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is starter-cleaner safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains starter-cleaner?
It is published by wot-ui in wot-ui/open-wot. It has 275 recorded installs.
More from wot-ui/open-wot
wot-ui-v2
wot-ui/open-wot
回答、生成、重构、排查 wot-ui v2 相关代码时使用。关键词:wot-ui、uni-app、Vue3、wd-、ConfigProvider、useToast、useDialog、Form、Popup、theme、llms-full。适用于组件选型、API 查询、示例页面生成、主题定制、常见坑排查。
create-wot-ui-theme
wot-ui/open-wot
为 wot-ui 生成单文件主题 SCSS,并在用户明确要求接入时追加 App.vue 的 @use。当用户要做品牌主题、语义变量落地、单文件主题接入时使用。
wot-ui-cli
wot-ui/open-wot
使用、调试或维护 @wot-ui/cli 与 open-wot 仓库。适用于 wot CLI 命令、Agent/MCP 接入、doctor/usage/lint、组件知识查询、客户端 adapter、离线数据提取、构建测试、发布包检查和仓库开发;如果任务是直接编写 wd- 组件页面或解释组件 API,应改用 wot-ui-v2 skill。
wot-ui-unocss-preset-guide
wot-ui/open-wot
指导安装、配置并使用 @wot-ui/unocss-preset。Invoke when 用户询问该预设的接入、配置、使用示例或常见问题排查。
migrate-v1-to-v2
wot-ui/open-wot
将用户项目从 Wot UI v1 迁移到 v2。用户要求升级 wot-design-uni 到 @wot-ui/ui、替换旧组件/旧 API、迁移表单校验体系、迁移图标名称,或修复因 v2 不兼容变更导致的编译错误、空图标和运行时报错时调用。
openspec-propose
wot-ui/open-wot
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.