sswandClaude 66e99604c8 docs(skill): 新建 dict-management 技能 + v0.11d+ step machine 段 + 10/10 e2e
新增 (2026-06-26 v0.11d+):

1. **新建 .claude/skills/dict-management/SKILL.md** (v0.11+ 9 子命令 + v0.11d+ 段)

2. **step machine 3 步镜像** (镜像 web components/Form.vue:22-124 + 后端 DictionaryTypeController.java:186-204)
   - step 0 基础信息 (parentId/fullName/enCode/isTree/sortCode)
   - step 1 全平台唯一性 (BS-47 EXIST001/002)
   - step 2 字典项 items (BS-41 镜像)

3. **关键镜像**:
   - enCode 正则: 不允许下划线 (镜像 formValidate.ts:24-28)
   - fullName 正则: 不允许特殊符号 (镜像 formValidate.ts:33-36)
   - sortCode 0-999999 (镜像 web L55-61)
   - isTree ∈ {0,1} (镜像 web L49-54)

4. **10/10 端到端验证** (tdd10):
   - 1 个成功路径
   - 4 个 step 0 拦截 (enCode 下划线/fullName 特殊/sortCode 越界/isTree 非法)
   - 2 个 step 1 拦截 (enCode 重复/fullName 重复, BS-47)
   - 3 个 step 2 拦截 (items 重复/items enCode 下划线/items fullName 空)

5. **关键新发现** (drift 防御):
   - web 端 dict designer 位置: sysData/dictionary/components/Form.vue
   - 后端 BS-47 校验: 同时查 fullName + enCode, 全平台唯一
   - 后端 parentId 自动处理: '0'/'1'/继承
   - web formValidate 共享正则

6. **已知预存 bug** (webapi shim, 范围外):
   - loadDict.createDictionaryType 可能返回 undefined (与 dm/workflow 同)

7. **常见问题表** (6 行): BS-47 重复 / enCode 特殊字符 / fullName 特殊字符 / sortCode 越界 / isTree 非法

Co-Authored-By: Claude <[email protected]>
2026-06-26 20:34:57 +08:00
2026-05-18 09:28:27 +08:00
S
Description
Claude 配置目录
2.5 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 54.2%
Go Template 13%
Shell 11.1%
JavaScript 8.2%
CSS 8%
Other 5.5%