happyplum/workskills

vue-standards

lzy 的 Vue 工程规范(自包含 canon,蒸馏自 vue-vite-cli 法典模板与 group-web 生产实态,不依赖通用版 skill)。当用户要求按其 Vue 工程习惯搭建、评审或改造 Vue 项目,把个人规范快速转成项目 AGENTS.md,或当用户要求复用 DMTable/TableLayout/请求层/表单协议等既有范式时使用。以手动/显式加载为主。

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/happyplum/workskills --skill vue-standards

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

lzy Vue 工程规范(canon 版)

这是什么

从三个证据源蒸馏:vue-cli(旧代模板)→ vue-vite-cli(新代法典模板,权威起点)→ group-web(生产实态)。自包含:不依赖通用规范 skill(外部权威链为 vue-vite-cli 模板 rules/,见下)。

权威起点

新 Vue 工程直接克隆 E:\lzy\myProject\cli\vue-vite-cli(模板 + rules/ 法典 + dev.vue 可运行规范)。本 skill 是该模板的规格书与扩展说明;模板 rules/ 与本 skill 冲突时以模板为准并回改本 skill。

边界声明

本 skill 是个人 Vue 规范的主版本。协同开发或非本人主导的项目中,仅在用户明确要求时应用本 skill,不主动施加或改造项目结构;项目自身治理与结构约定优先。

渐进加载地图

时机读什么
写任何 Vue 代码前本文件(目录速览 + 十条铁律)
建目录 / 落文件 / 命名 / 路由菜单references/structure.md
写接口层 / 错误处理 / 列表页references/request-error.md
写表格 / 表单 / 弹窗 / 图表references/table-form.md
配 lint / 提交 / mock / i18n / 样式 / 构建references/engineering.md(含已知漂移清单)
遇到不明的习惯名词 / 术语用法存疑references/glossary.md(术语唯一权威表)

目录速览(一页图)

src/
├── apis/                       # 按域薄包装(每端点一函数,无 service 层)
├── types/apis/                 # 接口类型集中(跟 apis 域走)
├── libs/                       # HttpRequest 等基础设施
├── router/routes/index.ts      # path → import 路由地图(生产表可出厂为空)
├── router/menu/menuList.ts     # 菜单表(与路由分职,可聚合多路由)
├── views/children/<feature>/   # 业务页:index.ts 门口 + 私有件共置
├── components/                 # DM* 通用能力件(零业务语义)
├── components/views/           # 跨页业务复用件(带接口业务)
├── components/Workbench/       # 仪表盘 widget 特区
├── layout/                     # MainLayout / TableLayout / FormLayout
├── stores/                     # 仅 user/menu/history 级会话态
├── hooks/  utils/              # 生命周期行为 / 无状态工具
├── locales/                    # UI 文案与错误文案分轨 + 多语言
└── styles/                     # 单入口分层 SCSS + element 覆写层

十条铁律

  1. 每个 URL 一个独立页面文件,经 feature 目录 index.ts 门口暴露
  2. 事实集中、UI 共置:apis/types/stores/locales 集中;页面私有件跟页面走
  3. 通信只用 props/emits/ref——零 provide/inject、零事件总线、零 defineModel(手写 computed 代理)
  4. 无 keep-alive——宁重查不脏缓存
  5. script-setup 唯一 + defineOptions(name) 必填 + 模板 PascalCase
  6. 一表单多模式:新增/编辑/详情共用组件,路由分模式
  7. 表格封装薄:列配置声明 + slot 位置路由,不拥有 loading/分页数据
  8. 提交 [type] 格式;lock/.vscode/dist 不入库
  9. demo/dev 路由菜单全部 import.meta.env.DEV 圈禁,生产表出厂即空
  10. 错误三级回退:codeMap(i18n) → 原始 msg → 兜底文案
from this repository

More skills

All skills
happyplum
Community

audit-loop

当用户说「审计循环」「循环审计」「audit loop」「温链复审」「审查修复循环」,或要求「审查→修复→再审查直到子代理审计通过」的迭代验证流程时必须加载。编排只读审查子代理对指定对象(提交区间、文件、实现或计划)做循环审计:审查→修复→温链续审→再修复,直至审查子代理明确无误通过。用户点名了子代理(如 oracle、metis、momus 等)就直接用;只说「进行审计循环」未点名时先从最近对话推断并向用户确认;绝不把负责执行 task 的子代理当作审计者。

installs
1
GitHub stars
1
Updated
Oct 8
happyplum
Community

deep-thinking

当用户使用 ult、启用 ulw,或明确要求"深度思考""帮忙思考""帮我思考""超级思考""深度分析"时加载。默认常驻普通模式;本 skill 仅在上述触发条件满足时激活,覆盖简洁优先原则。

installs
1
GitHub stars
1
Updated
Oct 8
happyplum
Community

linearize-commits

线性化整理 git 提交历史——合并细碎的修正提交、控制颗粒度以支持按提交粒度回退、保留原始开发者的作者归属、不跳过项目 git hooks、把每条提交信息规范为 type(scope): 中文描述;整理后可选并入指定分支(未指定时默认为主干)。当用户要求「合并到主干」「合并到某个分支」「线性化合并」「rebase 到 main/master」「整理/压缩/squash 提交历史」「分支合并前清理历史」时必须加载;纯整理不带合并时同样加载——如「整理一下这个分支的提交」「重写某个 hash 之后的历史」「squash 最近几个提交」「整理已经推送的分支(可 force-push)」;即使用户只说「把这个分支合到 main / 合回主干」也应加载,因为历史整理是合并前的必要步骤。普通单次提交、只读 log 查询不触发。

installs
1
GitHub stars
1
Updated
Oct 8
happyplum
Community

long-running-process

当确认当前运行环境是 Windows + PowerShell,且需要启动或排查长运行进程、等待端口/health endpoint、按 RunId 停止残留、或执行可能超时的构建命令时使用。

installs
1
GitHub stars
1
Updated
Oct 8