@mingfuyun/star-allinone 0.1.6 → 0.1.8

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 (29) hide show
  1. package/README.md +111 -1
  2. package/dist/components/BaseModal/index.d.ts +6 -6
  3. package/dist/components/BaseModal/index.d.ts.map +1 -1
  4. package/dist/components/CustomDrawer/index.d.ts +5 -5
  5. package/dist/components/CustomDrawer/index.d.ts.map +1 -1
  6. package/dist/index.esm.js +1 -1
  7. package/dist/index.js +1 -1
  8. package/package.json +9 -2
  9. package/scripts/cli.js +179 -0
  10. package/skills/README.md +297 -0
  11. package/skills/shared/ai-review/SKILL.md +29 -0
  12. package/skills/shared/api-mock/SKILL.md +23 -0
  13. package/skills/shared/api-mock/references/mock-conventions.md +90 -0
  14. package/skills/shared/api-to-service/SKILL.md +51 -0
  15. package/skills/shared/api-to-service/references/api-artifact-generation.md +70 -0
  16. package/skills/shared/api-to-service/references/service-conventions.md +89 -0
  17. package/skills/shared/commit-current-changes/SKILL.md +63 -0
  18. package/skills/shared/design-to-page/SKILL.md +48 -0
  19. package/skills/shared/design-to-page/references/overlays.md +73 -0
  20. package/skills/shared/design-to-page/references/page-conventions.md +85 -0
  21. package/skills/shared/impact-analysis/SKILL.md +30 -0
  22. package/skills/shared/project-conventions/SKILL.md +30 -0
  23. package/skills/shared/project-conventions/references/architecture.md +43 -0
  24. package/skills/shared/project-conventions/references/quality-checklist.md +19 -0
  25. package/skills/shared/project-conventions/references/review-checklist.md +42 -0
  26. package/skills/shared/publish-test/SKILL.md +46 -0
  27. package/skills/shared/publish-test/scripts/publish-current-branch.sh +174 -0
  28. package/skills/shared/review-and-submit/SKILL.md +75 -0
  29. package/skills/shared/verify/SKILL.md +44 -0
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: {{sharedSkillName}}
3
+ description: Run the frontend pre-submit workflow: impact analysis, verification, then confirmation-gated commit review. Use when the user asks for the full submit flow or says 使用完整流程提交代码. Never stage, commit, or push before explicit confirmation.
4
+ ---
5
+
6
+ # Review and Submit
7
+
8
+ This is the unified pre-submit entry and is fully shared. Do not mutate Git until the user confirms the exact reviewed scope.
9
+
10
+ If `.agents/project/review-rules.md` exists, apply extra domain checks only; do not weaken shared hard rules.
11
+
12
+ ## Workflow
13
+
14
+ Execute in this order.
15
+
16
+ ### 1. Impact analysis
17
+
18
+ Follow `.agents/skills/shared-impact-analysis/SKILL.md`. Output:
19
+
20
+ - Change summary
21
+ - Direct callers and affected pages
22
+ - Related services, types, mocks, routes, and permissions
23
+ - Shared-component blast radius
24
+ - Recommended automated and manual regression paths
25
+
26
+ ### 2. Verification
27
+
28
+ Follow `.agents/skills/shared-verify/SKILL.md`. Output:
29
+
30
+ - P0/P1/P2 blockers
31
+ - Completeness of route, permission, API, types, mock, and page states
32
+ - Async, loading, overlay, and list-reload behavior
33
+ - Prettier, TypeScript, lint, and build results
34
+ - Uncovered risks
35
+
36
+ If the current change introduced P0/P1 issues or validation failures, stop. Do not enter commit review.
37
+
38
+ ### 3. Commit review
39
+
40
+ Follow `.agents/skills/shared-commit-current-changes/SKILL.md`. Output:
41
+
42
+ - Findings sorted P0–P2
43
+ - Optional improvements
44
+ - Validation results and residual risk
45
+ - Change summary
46
+ - Suggested Chinese Conventional Commit message
47
+ - Current branch and target remote
48
+ - Exact file paths to submit
49
+
50
+ Then stop and wait. Do not run Git writes.
51
+
52
+ ## Confirmation gate
53
+
54
+ Execute the commit phase only after an explicit reply such as `确认` or `确认提交并推送` that authorizes the latest proposal.
55
+
56
+ 1. Re-check branch, status, and full diff.
57
+ 2. Confirm the review scope did not change.
58
+ 3. Stage only the confirmed paths.
59
+ 4. Create the confirmed commit message.
60
+ 5. Push only if the user asked to push.
61
+ 6. Report commit, remote branch, and workspace status.
62
+
63
+ If the user only says `确认` but the scope is unclear, do not commit; ask for the exact files and message.
64
+
65
+ If the user says `提交代码` before a review proposal exists, run the three steps above first. Do not skip review.
66
+
67
+ ## Related skills
68
+
69
+ | Skill | Purpose |
70
+ | --- | --- |
71
+ | `$shared-impact-analysis` | Read-only impact analysis |
72
+ | `$shared-verify` | Convention and command verification |
73
+ | `$shared-commit-current-changes` | Review plus confirmation-gated commit |
74
+ | `$shared-ai-review` | Standalone review without commit |
75
+ | `$shared-publish-test` | After a confirmed push, publish the current branch using `publishPipelineId` |
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: {{sharedSkillName}}
3
+ description: Verify generated or manually changed frontend code against shared conventions, API contracts, permissions, async behavior, and validation commands. Use after API, mock, page, or refactor work. Do not generate business code.
4
+ ---
5
+
6
+ # Frontend Verification
7
+
8
+ This skill is fully shared. Read the current diff, related callers, and:
9
+
10
+ 1. `.agents/skills/shared-project-conventions/references/review-checklist.md`
11
+ 2. `.agents/skills/shared-project-conventions/references/architecture.md`
12
+
13
+ Do not auto-fix. If `.agents/project/review-rules.md` exists, apply extra domain checks only.
14
+
15
+ ## Checks
16
+
17
+ 1. Route, service, namespace types, `src/services/index.ts`, mocks, and permissions updated as a set.
18
+ 2. Pages follow `MFProTable`, `ProForm`, `CustomDrawer` / `BaseModal` / `HocModal`, and `@/services`.
19
+ 3. Every `await` has `try-catch`; loading restores in `finally`; overlays clear state on close; successful mutations reload lists.
20
+ 4. Scan new `any`, `as any`, `@ts-ignore`, direct Ant Design `Modal` / `Drawer` / `<Form>` containers, and production fake data.
21
+ 5. Empty table values, duplicate-submit guards, permission wrappers, and narrow-screen overflow.
22
+
23
+ ## Commands
24
+
25
+ Choose by risk. Do not auto-fix to make a command pass.
26
+
27
+ ```bash
28
+ git diff --check
29
+ pnpm exec prettier --check <changed-files>
30
+ pnpm exec eslint <changed-files>
31
+ pnpm exec tsc --noEmit
32
+ pnpm lint
33
+ ```
34
+
35
+ Run the project's build script when routes, entry, or shared runtime change.
36
+
37
+ ## Output
38
+
39
+ 1. Blocking issues P0–P2, with file, line, impact, and fix direction.
40
+ 2. Completeness: route, permission, API, types, mock, page states.
41
+ 3. Command results, distinguishing new, existing, and environment failures.
42
+ 4. Regression list: affected pages, suggested manual paths, uncovered risks.
43
+
44
+ If there are no blockers, write `未发现阻断问题`. Do not report only that commands passed.