@zhouhao4221/devflow-skills 0.3.4 → 0.3.7

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 (41) hide show
  1. package/README.md +10 -10
  2. package/package.json +1 -1
  3. package/plugins/diag/templates/services.yaml.template +31 -0
  4. package/plugins/req/skills/branch/SKILL.md +48 -377
  5. package/plugins/req/skills/dev/SKILL.md +1 -1
  6. package/plugins/req/skills/dev-guide/SKILL.md +74 -399
  7. package/plugins/req/skills/do/SKILL.md +1 -1
  8. package/plugins/req/skills/done/SKILL.md +2 -2
  9. package/plugins/req/skills/edit/SKILL.md +1 -1
  10. package/plugins/req/skills/fix/SKILL.md +1 -1
  11. package/plugins/req/skills/init/SKILL.md +66 -430
  12. package/plugins/req/skills/issue/SKILL.md +1 -1
  13. package/plugins/req/skills/migrate/SKILL.md +1 -1
  14. package/plugins/req/skills/natural-language-dispatcher/SKILL.md +78 -438
  15. package/plugins/req/skills/new/SKILL.md +1 -1
  16. package/plugins/req/skills/pr/SKILL.md +1 -1
  17. package/plugins/req/skills/prd/SKILL.md +1 -1
  18. package/plugins/req/skills/prd-edit/SKILL.md +1 -1
  19. package/plugins/req/skills/release/SKILL.md +1 -1
  20. package/plugins/req/skills/review/SKILL.md +1 -1
  21. package/plugins/req/skills/review-pr/SKILL.md +74 -601
  22. package/plugins/req/skills/test/SKILL.md +41 -355
  23. package/plugins/req/skills/test_new/SKILL.md +36 -356
  24. package/plugins/req/skills/test_regression/SKILL.md +1 -1
  25. package/plugins/req/skills/update-template/SKILL.md +1 -1
  26. package/plugins/req/skills/use/SKILL.md +1 -1
  27. package/plugins/req/templates/claude-md-snippets/frontend-react.md +48 -0
  28. package/plugins/req/templates/claude-md-snippets/generic.md +43 -0
  29. package/plugins/req/templates/claude-md-snippets/go-backend.md +47 -0
  30. package/plugins/req/templates/claude-md-snippets/java-backend.md +46 -0
  31. package/plugins/req/templates/docker-compose.test.yml +84 -0
  32. package/plugins/req/templates/index-template.md +60 -0
  33. package/plugins/req/templates/module-template.md +79 -0
  34. package/plugins/req/templates/prd-template.md +338 -0
  35. package/plugins/req/templates/quick-template.md +71 -0
  36. package/plugins/req/templates/release-prompt-template.md +51 -0
  37. package/plugins/req/templates/requirement-template.md +256 -0
  38. package/plugins/req/templates/scripts/test-env.sh +226 -0
  39. package/plugins/req/templates/tests/e2e/playwright.config.ts +86 -0
  40. package/plugins/uat/templates/flow-template.md +116 -0
  41. package/plugins/uat/templates/testid-convention.md +42 -0
@@ -0,0 +1,42 @@
1
+ # data-testid 命名约定
2
+
3
+ UAT 自动化测试依赖 `data-testid` 选择器定位元素。请前端开发在关键交互元素上添加此属性。
4
+
5
+ ## 命名格式
6
+
7
+ ```
8
+ <功能域>-<元素类型>
9
+ ```
10
+
11
+ ## 元素类型后缀
12
+
13
+ | 后缀 | 适用元素 |
14
+ |------|---------|
15
+ | `-input` | 输入框、文本域 |
16
+ | `-button` | 按钮(含图标按钮) |
17
+ | `-select` | 下拉选择框 |
18
+ | `-table` | 数据表格容器 |
19
+ | `-modal` | 弹窗容器 |
20
+ | `-form` | 表单容器 |
21
+ | `-list` | 列表容器 |
22
+ | `-item` | 列表单项 |
23
+
24
+ ## 示例
25
+
26
+ ```html
27
+ <!-- 客户管理 -->
28
+ <input data-testid="customer-name-input" />
29
+ <input data-testid="customer-import-file-input" />
30
+ <button data-testid="customer-add-button">新增</button>
31
+ <button data-testid="customer-submit-button">保存</button>
32
+ <button data-testid="customer-import-button">导入</button>
33
+ <button data-testid="customer-import-confirm-button">开始导入</button>
34
+ <table data-testid="customer-table" />
35
+ <div data-testid="customer-detail-modal" />
36
+ ```
37
+
38
+ ## 注意事项
39
+
40
+ - 只加在**测试关键路径**上的元素,不需要全覆盖
41
+ - 同一页面的 testid 必须唯一
42
+ - 不要用 testid 做 CSS 样式钩子