@xulthekl/team-flow 0.42.0 → 0.44.0

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 (84) hide show
  1. package/.claude/always/phase-guard.md +1 -1
  2. package/.claude-plugin/marketplace.json +3 -3
  3. package/.claude-plugin/plugin.json +2 -2
  4. package/.codex-plugin/plugin.json +2 -2
  5. package/.cursor-plugin/marketplace.json +2 -2
  6. package/.cursor-plugin/plugin.json +2 -2
  7. package/.github/plugin/marketplace.json +3 -3
  8. package/.zcode/skills/workflow-start/SKILL.md +2 -2
  9. package/AGENTS.md +16 -9
  10. package/CHANGELOG.md +38 -1
  11. package/GEMINI.md +1 -1
  12. package/HANDOFF.md +1 -1
  13. package/INSTALL.md +26 -24
  14. package/README.md +8 -7
  15. package/agents/architecture-design.md +2 -2
  16. package/agents/architecture-reviewer.md +3 -3
  17. package/agents/business-analysis.md +53 -0
  18. package/agents/change-split-auditor.md +3 -3
  19. package/agents/need-explorer.md +1 -1
  20. package/agents/prd-completeness-reviewer.md +2 -2
  21. package/agents/prototype-env-scout.md +2 -2
  22. package/agents/prototype-reviewer.md +2 -2
  23. package/agents/spec-writer.md +1 -1
  24. package/docs/README_en.md +1 -1
  25. package/docs/examples/add-dark-mode/specs/ui-theme/spec.md +15 -17
  26. package/docs/examples/refactor-auth-boundary/specs/auth-boundary/spec.md +15 -27
  27. package/docs/solutions/INDEX.md +1 -0
  28. package/docs/solutions/cross-phase/2026-08-17-no-summary.md +17 -0
  29. package/docs/usage-guide.md +619 -0
  30. package/gemini-extension.json +2 -2
  31. package/hooks/session-start +3 -3
  32. package/llms.txt +1 -1
  33. package/package.json +2 -2
  34. package/plugin.json +2 -2
  35. package/scripts/lib/cmd-deisolate.mjs +68 -4
  36. package/scripts/team-flow.mjs +1 -1
  37. package/skills/architecture-design/SKILL.md +2 -2
  38. package/skills/architecture-design/references/s3.5-product-architecture.md +3 -3
  39. package/skills/architecture-design/templates/change-brief.md +3 -3
  40. package/skills/build-executor/SKILL.md +24 -4
  41. package/skills/build-executor/implementer-prompt.md +1 -0
  42. package/skills/business-analysis/SKILL.md +80 -0
  43. package/skills/business-analysis/references/interaction-rules.md +86 -0
  44. package/skills/business-analysis/references/output-schema.md +88 -0
  45. package/skills/business-analysis/references/qa-checklist.md +31 -0
  46. package/skills/business-analysis/references/version-resolution.md +41 -0
  47. package/skills/ce-brainstorm/SKILL.md +50 -4
  48. package/skills/ce-brainstorm/references/brainstorm-sections.md +3 -3
  49. package/skills/ce-brainstorm/references/business-processes.md +42 -9
  50. package/skills/ce-brainstorm/references/handoff.md +1 -1
  51. package/skills/ce-brainstorm/references/phase0-routing.md +11 -10
  52. package/skills/ce-brainstorm/references/prd-mapping.md +3 -3
  53. package/skills/ce-brainstorm/references/prototype-loop.md +2 -2
  54. package/skills/ce-compound/references/three-tier-index.md +1 -1
  55. package/skills/ce-plan/SKILL.md +2 -2
  56. package/skills/ce-plan/references/core-principles.md +1 -1
  57. package/skills/ce-plan/references/intake-routing.md +5 -5
  58. package/skills/ce-plan/references/plan-structure.md +2 -2
  59. package/skills/ce-plan/references/planning-modes.md +2 -2
  60. package/skills/ce-plan/references/review-and-write.md +3 -3
  61. package/skills/code-reviewer/SKILL.md +9 -0
  62. package/skills/code-reviewer/code-reviewer-prompt.md +7 -0
  63. package/skills/need-explorer/SKILL.md +1 -1
  64. package/skills/prototype/references/orchestration-flow.md +2 -2
  65. package/skills/release-archivist/SKILL.md +21 -2
  66. package/skills/release-archivist/references/worktree-merge.md +69 -0
  67. package/skills/session-handoff/SKILL.md +1 -1
  68. package/skills/session-handoff/references/handoff-template.md +2 -2
  69. package/skills/spec-writer/SKILL.md +6 -3
  70. package/skills/workflow-bootstrap/SKILL.md +2 -2
  71. package/skills/workflow-bootstrap/references/b1-reconnaissance.md +1 -1
  72. package/skills/workflow-bootstrap/references/b5-path-decision.md +1 -1
  73. package/skills/workflow-bootstrap/templates/claude-md-team-flow.md +2 -2
  74. package/skills/workflow-orchestrator/SKILL.md +3 -3
  75. package/skills/workflow-orchestrator/references/feedback-loops.md +1 -1
  76. package/skills/workflow-orchestrator/references/s1-path-router.md +1 -1
  77. package/skills/workflow-orchestrator/references/s2-prd-prototype-loop.md +6 -6
  78. package/skills/workflow-orchestrator/references/s3-plan-pipeline.md +3 -3
  79. package/skills/workflow-orchestrator/references/s4-split-validate.md +5 -5
  80. package/skills/workflow-orchestrator/references/state-model.md +4 -4
  81. package/skills/workflow-start/SKILL.md +2 -2
  82. package/skills/workflow-start/references/routing-rules.md +3 -3
  83. package/templates/change-brief.md +3 -3
  84. package/templates/plan.md +1 -1
@@ -16,7 +16,7 @@ You NEVER write, edit, create, or delete any file. Your only output is the brief
16
16
  ## Invocation Contract
17
17
 
18
18
  The dispatch prompt provides (some may be absent — probe to discover):
19
- - `prd_path` or a hint to locate the current PRD version (e.g., `prd/v1/prd.md`).
19
+ - `prd_path` or a hint to locate the current PRD version (e.g., `requirement/v1/prd.md`).
20
20
  - `design_system_path` (from `prototype.designSystem` config) or a hint to find `design-system.md`.
21
21
  - `prototype_root` (default `prototype/`).
22
22
  - The intent: new prototype from scratch / iterate on existing / sync after a change.
@@ -36,7 +36,7 @@ Turn the probe into a decision-ready brief: what exists, what is missing, and a
36
36
  - List existing pages (`prototype/pages/*.html`), components (`prototype/components/`), and `flow.md` if present.
37
37
 
38
38
  ### Step 3: PRD Version Probe
39
- - Identify the PRD version to prototype against (read `prd/vN/prd.md` frontmatter `iteration_version` if present).
39
+ - Identify the PRD version to prototype against (read `requirement/vN/prd.md` frontmatter `iteration_version` if present).
40
40
  - Extract from the PRD the inputs the builder will need: §4 画面原型 (page list), §7 系统功能清单 (functions), §8.4 功能模块 (fields), §8.2 画面交互 (navigation/transitions).
41
41
 
42
42
  ### Step 4: Synthesize Brief + Recommended Plan
@@ -11,13 +11,13 @@ You are an independent Prototype Consistency Reviewer. You check whether an HTML
11
11
 
12
12
  ## The Iron Law
13
13
 
14
- You are an independent reviewer. You did NOT participate in producing the PRD or the prototype. You read both artifacts fresh, compare them structurally, and report findings. You MUST write the review report to disk at `prd/vN/prototype-auto-review.md`. Do NOT modify the prototype or PRD — only write the review report.
14
+ You are an independent reviewer. You did NOT participate in producing the PRD or the prototype. You read both artifacts fresh, compare them structurally, and report findings. You MUST write the review report to disk at `requirement/vN/prototype-auto-review.md`. Do NOT modify the prototype or PRD — only write the review report.
15
15
 
16
16
  ## Inputs
17
17
 
18
18
  | Parameter | Description |
19
19
  |-----------|-------------|
20
- | `prd_path` | PRD 文件路径(e.g., `prd/v1/prd.md`) |
20
+ | `prd_path` | PRD 文件路径(e.g., `requirement/v1/prd.md`) |
21
21
  | `prototype_path` | 原型目录路径(e.g., `prototype/`) |
22
22
 
23
23
  If either path is missing or unreadable, report `FAIL` with reason `INPUT_ERROR`.
@@ -27,7 +27,7 @@ You write planning artifacts, never implementation code. Honor confirmed DP-0 de
27
27
  |-----------|-------------|
28
28
  | `change_dir` | change 目录路径(e.g., `changes/feature-x/`) |
29
29
  | `brief_path` | change-brief.md 路径(可选,workflow-orchestrator S4 分发时存在) |
30
- | `plan_path` | prd/vN/plan.md 路径(可选,高阶技术方向) |
30
+ | `plan_path` | requirement/vN/plan.md 路径(可选,高阶技术方向) |
31
31
  | `arch_dir` | architecture/ 目录路径(可选,architecture-design 产出) |
32
32
 
33
33
  If `change_dir` is missing, or `.team-flow.yaml` `dp_0_confirmed` is not `true`, report `FAIL` with reason `INPUT_ERROR` and route back to workflow-start for DP-0.
package/docs/README_en.md CHANGED
@@ -126,7 +126,7 @@ npm install -g team-flow
126
126
 
127
127
  ### Version
128
128
 
129
- - Current: `v0.42.0`
129
+ - Current: `v0.44.0`
130
130
  - v0.9.1 highlights: DP-4 execution-mode recommendations, a portable runtime across 17 platforms, and a raw-package smoke with no plugin-root variable.
131
131
  - Self-contained — no OpenSpec or Superpowers runtime required
132
132
  - Upstream: [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec), [obra/superpowers](https://github.com/obra/superpowers)
@@ -1,35 +1,33 @@
1
- # Capability Spec
2
-
3
1
  ## ADDED Requirements
4
2
 
5
3
  ### Requirement: User can use dark mode
6
4
 
7
- The system SHALL provide a dark theme variant for the primary user interface.
5
+ The system SHALL provide a user-facing dark mode for the web UI that can be toggled between light and dark themes.
8
6
 
9
- #### Scenario: Initial load follows system preference
7
+ #### Scenario: Manual toggle
10
8
 
11
- - **WHEN** a first-time visitor opens the application and has no saved theme preference
12
- - **THEN** the interface uses the operating system color-scheme preference
9
+ - **WHEN** the user clicks the theme toggle in the UI
10
+ - **THEN** the interface switches to the selected theme immediately
13
11
 
14
- #### Scenario: User manually switches theme
12
+ #### Scenario: System preference on first load
15
13
 
16
- - **WHEN** the user activates the theme toggle
17
- - **THEN** the interface switches between light and dark mode immediately
14
+ - **WHEN** the user opens the application for the first time
15
+ - **THEN** the interface theme matches the system preference by default
18
16
 
19
17
  ### Requirement: User preference persists
20
18
 
21
- The system SHALL persist an explicit user theme choice across reloads.
19
+ The system SHALL persist the user's explicit theme choice across browser sessions using localStorage or an equivalent mechanism.
22
20
 
23
- #### Scenario: Saved choice overrides system preference
21
+ #### Scenario: Return visit
24
22
 
25
- - **WHEN** a returning user has a saved theme choice
26
- - **THEN** the application loads using the saved choice instead of the current system preference
23
+ - **WHEN** the user revisits the application after explicitly choosing dark mode
24
+ - **THEN** the interface renders in dark mode without requiring another toggle
27
25
 
28
26
  ### Requirement: Theme maintains readable contrast
29
27
 
30
- The system SHALL preserve readable text and UI contrast in both light and dark mode.
28
+ The system SHALL ensure that all core page colors and text combinations remain readable in both light and dark themes.
31
29
 
32
- #### Scenario: Primary content remains readable
30
+ #### Scenario: Dark mode readability
33
31
 
34
- - **WHEN** the user views text, surfaces, and interactive controls in dark mode
35
- - **THEN** foreground and background combinations remain readable and distinguishable
32
+ - **WHEN** the interface is in dark mode
33
+ - **THEN** text and interactive elements meet WCAG contrast requirements against dark backgrounds
@@ -1,45 +1,33 @@
1
- # auth-request-gating Specification
2
-
3
1
  ## MODIFIED Requirements
4
2
 
5
3
  ### Requirement: Protected requests use one authentication boundary
6
4
 
7
- The system SHALL evaluate protected requests through one shared authentication boundary instead of scattered controller-level auth logic.
8
-
9
- #### Scenario: Valid protected request
5
+ The system SHALL route all protected requests through a single authentication boundary instead of scattering checks across route handlers and service helpers.
10
6
 
11
- - **WHEN** a protected request includes valid authentication credentials
12
- - **THEN** the shared authentication boundary produces an authenticated request context
13
- - **AND** downstream handlers use that context instead of re-parsing credentials independently
7
+ #### Scenario: Protected endpoint request
14
8
 
15
- #### Scenario: Missing credentials
16
-
17
- - **WHEN** a protected request arrives without required credentials
18
- - **THEN** the shared authentication boundary rejects the request consistently
19
- - **AND** the request does not continue into protected business logic
9
+ - **WHEN** a protected endpoint receives a request
10
+ - **THEN** the authentication boundary evaluates credentials and produces a stable auth decision before the route handler executes
20
11
 
21
12
  ### Requirement: Auth failures map consistently
22
13
 
23
- The system SHALL map authentication and authorization failures through standardized request-level outcomes.
14
+ The system SHALL map unauthorized and forbidden outcomes from the authentication boundary to consistent response formats across all protected routes.
24
15
 
25
- #### Scenario: Invalid token
16
+ #### Scenario: Missing credentials
26
17
 
27
- - **WHEN** token validation fails
28
- - **THEN** the request receives the standardized unauthorized outcome
29
- - **AND** downstream handlers are not invoked
18
+ - **WHEN** a protected request lacks valid credentials
19
+ - **THEN** the boundary returns an unauthorized decision and the route responds with the standard unauthorized format
30
20
 
31
- #### Scenario: Authenticated but forbidden
21
+ #### Scenario: Insufficient permissions
32
22
 
33
- - **WHEN** the requester is authenticated but lacks required access
34
- - **THEN** the request receives the standardized forbidden outcome
35
- - **AND** the outcome is produced without ad hoc controller-specific branching
23
+ - **WHEN** a protected request has valid credentials but insufficient permissions
24
+ - **THEN** the boundary returns a forbidden decision and the route responds with the standard forbidden format
36
25
 
37
26
  ### Requirement: Existing approved login behavior remains unchanged
38
27
 
39
- The refactor SHALL preserve already approved login and session semantics while changing the internal auth boundary shape.
28
+ The system SHALL preserve existing externally approved login and session behavior while moving request-level checks behind the new boundary.
40
29
 
41
- #### Scenario: Existing login flow
30
+ #### Scenario: Successful login
42
31
 
43
- - **WHEN** a user signs in through the existing approved login path
44
- - **THEN** the resulting session or token behavior remains externally unchanged
45
- - **AND** the new boundary consumes the established auth artifacts without requiring a new client contract
32
+ - **WHEN** a user completes the existing login flow
33
+ - **THEN** session creation and token issuance behavior remains identical to the pre-refactor implementation
@@ -2,6 +2,7 @@
2
2
  <!-- 每条一行,按 severity 降序,≤150 行硬上限 -->
3
3
  | date | phase | domain | type | severity | summary | file |
4
4
  |------|-------|--------|------|----------|---------|------|
5
+ | 2026-08-17 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-17-no-summary.md |
5
6
  | 2026-08-07 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-07-no-summary.md |
6
7
  | 2026-08-06 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-06-no-summary.md |
7
8
  | 2026-08-05 | cross-phase | general | insight | medium | (no summary) | cross-phase/2026-08-05-no-summary.md |
@@ -0,0 +1,17 @@
1
+ ---
2
+ phase: cross-phase
3
+ domain: general
4
+ type: insight
5
+ severity: medium
6
+ date: 2026-08-17
7
+ source:
8
+ ---
9
+
10
+ ## 问题描述
11
+ (no summary)
12
+
13
+ ## 根因/模式
14
+ (待补充)
15
+
16
+ ## 预防措施/应用方式
17
+ (待补充)