@laitszkin/apollo-toolkit 3.11.8 → 3.12.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 (47) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/align-project-documents/SKILL.md +20 -69
  3. package/align-project-documents/references/templates/standardized-docs-template.md +1 -1
  4. package/analyse-app-logs/scripts/__pycache__/filter_logs_by_time.cpython-312.pyc +0 -0
  5. package/analyse-app-logs/scripts/__pycache__/log_cli_utils.cpython-312.pyc +0 -0
  6. package/analyse-app-logs/scripts/__pycache__/search_logs.cpython-312.pyc +0 -0
  7. package/archive-specs/SKILL.md +18 -70
  8. package/commit-and-push/SKILL.md +24 -52
  9. package/develop-new-features/SKILL.md +15 -60
  10. package/discover-edge-cases/SKILL.md +16 -75
  11. package/discover-security-issues/SKILL.md +49 -83
  12. package/docs-to-voice/scripts/__pycache__/docs_to_voice.cpython-312.pyc +0 -0
  13. package/enhance-existing-features/SKILL.md +36 -57
  14. package/generate-spec/SKILL.md +14 -14
  15. package/generate-spec/references/templates/coordination.md +0 -1
  16. package/generate-spec/scripts/__pycache__/create-specscpython-312.pyc +0 -0
  17. package/implement-specs/SKILL.md +27 -62
  18. package/implement-specs-with-subagents/SKILL.md +28 -71
  19. package/implement-specs-with-worktree/SKILL.md +38 -62
  20. package/init-project-html/SKILL.md +27 -115
  21. package/katex/scripts/__pycache__/render_katex.cpython-312.pyc +0 -0
  22. package/maintain-project-constraints/SKILL.md +24 -78
  23. package/maintain-project-constraints/references/constraint-file-reference.md +58 -0
  24. package/merge-changes-from-local-branches/SKILL.md +36 -99
  25. package/open-github-issue/scripts/__pycache__/open_github_issue.cpython-312.pyc +0 -0
  26. package/optimise-skill/SKILL.md +1 -1
  27. package/optimise-skill/references/definition.md +5 -5
  28. package/optimise-skill/references/example_skill.md +1 -1
  29. package/package.json +1 -1
  30. package/read-github-issue/scripts/__pycache__/find_issues.cpython-312.pyc +0 -0
  31. package/read-github-issue/scripts/__pycache__/read_issue.cpython-312.pyc +0 -0
  32. package/resolve-review-comments/scripts/__pycache__/review_threads.cpython-312.pyc +0 -0
  33. package/review-change-set/SKILL.md +41 -91
  34. package/review-codebases/SKILL.md +42 -99
  35. package/review-spec-related-changes/SKILL.md +42 -77
  36. package/solve-issues-found-during-review/SKILL.md +38 -66
  37. package/spec-to-project-html/SKILL.md +27 -76
  38. package/submission-readiness-check/SKILL.md +35 -55
  39. package/systematic-debug/SKILL.md +37 -53
  40. package/test-case-strategy/SKILL.md +38 -85
  41. package/text-to-short-video/scripts/__pycache__/enforce_video_aspect_ratio.cpython-312.pyc +0 -0
  42. package/update-project-html/SKILL.md +25 -94
  43. package/version-release/SKILL.md +39 -74
  44. package/archive-specs/references/templates/architecture.md +0 -21
  45. package/archive-specs/references/templates/docs-index.md +0 -39
  46. package/archive-specs/references/templates/features.md +0 -25
  47. package/archive-specs/references/templates/principles.md +0 -28
package/CHANGELOG.md CHANGED
@@ -10,6 +10,21 @@ All notable changes to this repository are documented in this file.
10
10
 
11
11
  ### Fixed
12
12
 
13
+ ## [v3.12.0] - 2026-05-13
14
+
15
+ ### Added
16
+
17
+ - `maintain-project-constraints` now ships `references/constraint-file-reference.md`, a shared contract/checklist/template for keeping root `AGENTS.md` / `CLAUDE.md` limited to the three required sections.
18
+
19
+ ### Changed
20
+
21
+ - Rewrite a broad set of shipped skills into a more compact Chinese-first structure built around explicit goal, acceptance, workflow, examples, and reference sections, covering documentation alignment, submission/release, planning, implementation, review, debugging, testing, security, and architecture-atlas workflows.
22
+ - Simplify supporting references and wording across the catalog to prefer `repo` / `spec` terminology, point `maintain-project-constraints` at its new shared reference file, and tighten example phrasing in `optimise-skill` plus the standardized docs template.
23
+
24
+ ### Removed
25
+
26
+ - Remove the now-redundant `archive-specs` reference templates for `architecture`, `docs-index`, `features`, and `principles` after delegating standardized documentation structure guidance to `align-project-documents`.
27
+
13
28
  ## [v3.11.8] - 2026-05-12
14
29
 
15
30
  ### Added
@@ -1,86 +1,37 @@
1
1
  ---
2
2
  name: align-project-documents
3
- description: >-
4
- Regenerate standardized tree `docs/features` (BDD zero code paths), `docs/architecture` (macro layer rules), `docs/principles` (evidence-backed conventions) after reading the ENTIRE production codebase—legacy scattered Markdown must migrate or be removed before finish then invoke **`maintain-project-constraints`** so AGENTS/CLAUDE indexes match disk.
5
- Use for repo-wide doc realignments (“rebuild project docs from code”)—skip for single-file README nitpicks unless user explicitly requests full regeneration.
6
- Violation examples: features mentioning `src/foo.ts`… acceptable feature: “Given signed-in user When export Then CSV downloads”… architecture stays stable if module renamed internally…
3
+ description: 整理及維護項目文檔。當你需要管理項目說明文檔時,使用此技能。
7
4
  ---
8
5
 
9
- # Align Project Documents
6
+ ## 目標
10
7
 
11
- ## Dependencies
8
+ 以整個生產repo為唯一主證據,建立或維護標準化的 `docs/features/`、`docs/architecture/`、`docs/principles/`,清理已失效或重複的舊文檔,並在完成後同步刷新根目錄約束文件。
12
9
 
13
- - Required: `maintain-project-constraints` after `docs/` work to refresh `AGENTS.md`/`CLAUDE.md` and the doc index.
14
- - Conditional: none.
15
- - Optional: none.
16
- - Fallback: If `maintain-project-constraints` cannot run, **MUST NOT** pretend the constraints files are refreshed—report the gap.
10
+ ## 驗收條件
17
11
 
18
- ## Non-negotiables
12
+ - repo的所有細節被仔細閱讀並轉化為標準化的 `docs/features/`、`docs/architecture/`、`docs/principles/`,以及同步後的 `AGENTS.md` / `CLAUDE.md`。
13
+ - 舊的非標準文檔已被遷移、合併或移除。
19
14
 
20
- - **MUST** read the **entire** codebase (all meaningful source/config/test entrypoints—not a single-folder sample) **before** writing category docs; code is sole truth—existing prose is corroborating only.
21
- - **MUST NOT** ship `docs/features/` bullets that cite file paths, function names, or implementation detail—user-facing **BDD** only (`Given` / `When` / `Then`).
22
- - **`docs/architecture/`** stays **macro** (layers, boundaries, data-flow direction)—**MUST NOT** document code that will rot on every refactor.
23
- - **`docs/principles/`** **MUST** remain traceable to **concrete** repo patterns (with examples)—not aspirational platitudes without evidence.
24
- - **MUST** create or refresh `docs/features/`, `docs/architecture/`, `docs/principles/` with categorized files; **MUST** remove or migrate stale non-conforming docs (**MUST NOT** leave mixed legacy layout alongside new structure indefinitely).
25
- - **MUST** invoke **`maintain-project-constraints`** after category docs stabilize so `AGENTS.md`/`CLAUDE.md` indexes match disk.
26
- - Default doc **language**: match user preference or repo’s dominant README/docs language consistently per run.
15
+ ## 工作流程
27
16
 
28
- ## Standards (summary)
17
+ ### 1. 建立對repo的基線認知
29
18
 
30
- - **Evidence**: Paths and reads logged while building claims; contradictory old docs flagged, not blindly merged.
31
- - **Execution**: Whole repo read → ingest old docs → write three pillars → prune → constraints refresh.
32
- - **Quality**: Features user-only; architecture stable abstractions; principles evidence-backed.
33
- - **Output**: Standardized tree + synced agent constraint files.
19
+ 閱讀項目現有文檔,建立對repo的初步理解,並將其作為對repo的基線認知,制定後續的閱讀策略
34
20
 
35
- ## Target structure
21
+ ### 2. 比對repo及項目文檔
36
22
 
37
- ```
38
- docs/
39
- ├── features/ — User-facing capability, BDD only (no code paths)
40
- ├── architecture/ — Layers/modules, boundaries, integration contracts (macro)
41
- └── principles/ — Style, tooling, conventions with codebase examples
42
- ```
23
+ 按照上一步建立的閱讀策略,全面搜索、查找整個repo,驗證並確保現有項目文檔的描述正確、無遺漏。
24
+ 如果外部環境存在subagents功能,建議調度subagents完成對repo的閱讀。
43
25
 
44
- Extended rules and checklist: `references/templates/standardized-docs-template.md`.
26
+ ### 3. 制定文檔更新策略
45
27
 
46
- ## Workflow
28
+ 根據上一步找到的所有遺漏或項目文檔與實際代碼脫節之處,制定文檔更新策略。將所有項目文檔更新為符合模板格式的標準化文檔,並移除除必要文檔(如 `CHANGELOG.md`, `CONTRIBUTION.md` )外的舊有說明文檔。
47
29
 
48
- **Chain-of-thought:** **`Pause →`** after each major phase; ambiguity on “user-visible” vs “internal” ⇒ re-read callers before classifying.
30
+ ## 範例
49
31
 
50
- ### 1) Read entire codebase
32
+ - "根據當前repo重建整套專案文檔。" -> "完整讀碼後重建三類標準文檔,清理舊文檔並同步刷新 `AGENTS.md` / `CLAUDE.md`。"
33
+ - "這個倉庫的 docs 很散,請重新對齊成統一結構。" -> "把可保留內容遷入 `docs/features/`、`docs/architecture/`、`docs/principles/`,移除重複或失效文件。"
34
+ - "我要的不是 README 小修,而是整個文檔體系重整。" -> "以全倉庫證據為基礎重建標準化文檔樹,而不是只修改單一說明文件。"
51
35
 
52
- - Cover entrypoints (CLI/server/workers), public surfaces, boundaries, configs, integrations, tests as behavior specs.
53
- - Keep an **evidence notebook** (paths) for principles and architecture—not for features text.
54
- - **Pause →** Did I skip generated/vendor/`node_modules`/binary blobs incorrectly included as “must read”?
55
- - **Pause →** Can I name the **top five** externally visible behaviors from code alone?
56
-
57
- ### 2) Read existing prose
58
-
59
- - List `README.md`, `docs/**`, `CONTRIBUTING.md`, etc.; extract facts that code confirms; flag obsolete sections.
60
- - **Pause →** Where did I treat Markdown as authoritative over a contradicted implementation?
61
-
62
- ### 3) Generate three pillars
63
-
64
- - **features/**: categories → one markdown per category → BDD scenarios only.
65
- - **architecture/**: one file per layer/module cluster → boundaries and flows, stable wording.
66
- - **principles/**: split files (`naming-conventions.md`, etc.) → each point ties to observable repo habit.
67
- - **Pause →** Random feature paragraph: grep for `./src` or `` ` `` — if found, rewrite for user observable outcome only.
68
-
69
- ### 4) Remove non-conforming legacy
70
-
71
- - Delete or migrate files fully superseded; if uncertain, **keep** file list in report as migration backlog — **do not** silently duplicate two competing truths forever.
72
-
73
- ### 5) Refresh constraints
74
-
75
- - Run **`maintain-project-constraints`** so Commands / Business Goals / Doc Index mirror new files.
76
-
77
- ### 6) Gates before finish
78
-
79
- - No code paths in features; architecture still macro after imagined small refactor; principles cite real examples; index lists every file under the three dirs; constraints skill executed.
80
-
81
- ## Sample hints
82
-
83
- - **Feature OK**: “Given a signed-in user When they export Then a CSV download starts” — no `handlers/export.rs` references.
84
- - **Feature bad**: “Call `ExportService.run` …” — violates Non-negotiables (implementation leak).
85
- - **Architecture OK**: “API layer handles I/O only; domain module owns business rules” — stable across internal renames.
86
- - **Principle OK**: “TypeScript files use kebab-case — see `src/user-profile/`” — traceable pattern.
36
+ ## 參考資料
37
+ - `references/templates/standardized-docs-template.md` - 三類文檔的目標結構、分類規則與清理檢查表。
@@ -86,7 +86,7 @@ Every principles file must:
86
86
 
87
87
  **理由**: <為什麼採用此慣例>
88
88
 
89
- **範例**: <從代碼庫提取的具體範例>
89
+ **範例**: <從repo提取的具體範例>
90
90
  ```
91
91
 
92
92
  ### Principles classification guide
@@ -1,86 +1,34 @@
1
1
  ---
2
2
  name: archive-specs
3
- description: Convert completed project plan sets into maintainable project documentation and archive the consumed planning files. Use when users want to consolidate `spec.md`/`tasks.md`/`checklist.md`/`contract.md`/`design.md` and any batch-level `coordination.md` into the standardized docs/features/, docs/architecture/, docs/principles/ structure, then refresh AGENTS.md/CLAUDE.md via maintain-project-constraints.
3
+ description: 將已完成的spec歸檔到 `docs/archive/` 下。當你需要將spec歸檔時,調用這個技能。
4
4
  ---
5
5
 
6
- # Archive Specs
6
+ ## 技能目標
7
7
 
8
- ## Dependencies
8
+ 把已完成的規劃文件轉成專案的長期文檔資產,讓正式文件反映目前真實系統,而活動中的 planning artifacts 與已消耗完的 spec 能被清楚分離。
9
9
 
10
- - Required: `align-project-documents` to generate and align the standardized project documentation under `docs/features/`, `docs/architecture/`, and `docs/principles/`, and `maintain-project-constraints` to refresh `AGENTS.md`/`CLAUDE.md` with the updated business goals and documentation index after the doc update.
11
- - Conditional: none.
10
+ ## 驗收條件
12
11
 
13
- ## Standards
12
+ - `docs/plans/` 目錄下不存在任何完成但未歸檔的spec
13
+ - 所有項目文檔已經被維護至最新狀態,對齊repo實作。
14
14
 
15
- - Evidence: Treat code, config, deployment files, and current spec files as evidence sources; never guess when a detail is missing.
16
- - Execution: Inventory all relevant specs first, reconcile them with the current repository, delegate documentation generation to `align-project-documents`, delegate `AGENTS.md`/`CLAUDE.md` refresh to `maintain-project-constraints`, then archive only the truly consumed planning artifacts.
17
- - Quality: Prefer source-of-truth behavior over stale plan text, align existing docs to the standardized three-category structure, and call out unknowns explicitly instead of inventing missing setup details.
18
- - Output: Produce synchronized standardized docs under `docs/features/`, `docs/architecture/`, and `docs/principles/`, a concise `README.md` when appropriate, and an up-to-date `AGENTS.md`/`CLAUDE.md`, then archive or remove superseded spec files after conversion is complete.
15
+ ## 工作流程
19
16
 
20
- ## Goal
17
+ ### 1. 盤點現有spec的完成狀態
21
18
 
22
- Convert completed planning artifacts into the standardized project documentation structure, refresh the project constraint files, then archive the consumed specs so active planning files stay separate from durable project docs.
19
+ `docs/plans/` 目錄下找到現有的所有spec。閱讀每一份spec的 `checklist.md`, `tasks.md`, `spec.md` 並檢查當中的markdown checkboxes是否被全部勾選為完成(除與任務無關的checkboxes外,比如spec的批准狀態)。
20
+ 將 `checklist.md`, `tasks.md`, `spec.md` 三份文檔checkboxes皆完成勾選的spec標記為已完成。
23
21
 
24
- ## Workflow
22
+ ### 2. 歸檔spec並更新項目文檔
25
23
 
26
- ### 1) Inventory documentation sources
24
+ 使用 `align-project-documents`, `maintain-project-constraints` 技能,按照這兩個技能之中的指引,更新項目文檔。並將完成的spec全部移動到 `docs/archive/`。
27
25
 
28
- - Find all relevant planning files such as `docs/plans/**/spec.md`, `tasks.md`, `checklist.md`, `contract.md`, `design.md`, and any batch-level `coordination.md`.
29
- - Read existing `README*`, `docs/**`, deployment scripts, manifests, env examples, infra files, CI configs, and representative source modules.
30
- - Build a source map for implemented features, module boundaries, external services, and configuration details.
26
+ ## 使用範例
31
27
 
32
- ### 2) Reconcile spec claims with the current repository
28
+ - "這批 spec 已經實作完成,幫我整理成正式文件並歸檔" -> "先同步 `docs/` 與 `AGENTS.md` / `CLAUDE.md`,再把已完成的 spec 移到 archive"
29
+ - "只有批次中的兩個子 spec 做完,另外一個還在進行" -> "只歸檔完成的子目錄,保留仍在使用的 `coordination.md`"
30
+ - "spec 寫了未來計畫,但 repo 還沒實作" -> "不把該內容當成正式文件,只在需要時標成 `TBD` 或保留在 active planning"
33
31
 
34
- - Treat source priority as:
35
- 1. current code, config, and deployment files
36
- 2. current tests and automation scripts
37
- 3. recent specs that still match the implementation
38
- 4. existing docs
39
- - When specs disagree with the codebase, keep the codebase truth and note the mismatch while updating docs.
40
- - Merge repeated or overlapping feature descriptions into one stable capability summary.
41
- - Use `coordination.md` to understand shared preparation, ownership boundaries, legacy cutover direction, and which old features or paths were intentionally replaced across multiple spec sets.
42
- - Distinguish between completed scope that should become durable docs and still-active scope that remains planning material for follow-up work.
32
+ ## 參考資料索引
43
33
 
44
- ### 3) Delegate documentation generation to align-project-documents
45
-
46
- - Hand the full documentation rewrite/alignment work to `align-project-documents`.
47
- - `align-project-documents` will read the entire codebase, generate standardized documentation under `docs/features/` (BDD-described user-facing capabilities), `docs/architecture/` (macro-level design principles by module), and `docs/principles/` (code style, naming conventions, development constraints), and remove old non-conforming documentation.
48
- - Provide `align-project-documents` with the reconciled spec findings from step 2 as supplementary context.
49
-
50
- ### 4) Refresh AGENTS.md/CLAUDE.md via maintain-project-constraints
51
-
52
- - After `align-project-documents` has completed the documentation update, invoke `maintain-project-constraints`.
53
- - `maintain-project-constraints` will read the updated `docs/` structure, extract macro business goals, inventory common development commands, build the project documentation index, and write or update `AGENTS.md`/`CLAUDE.md` with exactly three sections: Common Development Commands, Project Business Goals, and Project Documentation Index.
54
- - If both `AGENTS.md` and `CLAUDE.md` exist, `maintain-project-constraints` will keep their content consistent.
55
-
56
- ### 5) Keep README short and the doc set navigable
57
-
58
- - If `README.md` does not exist or is outdated, create or update it as a short project overview with a link to the documentation index in `AGENTS.md`/`CLAUDE.md`.
59
- - Do not duplicate content that belongs in `docs/`.
60
-
61
- ### 6) Archive superseded spec files after successful conversion
62
-
63
- - After the standardized project docs are complete and verified, archive the old source spec files that were converted.
64
- - Prefer moving the consumed `spec.md`, `tasks.md`, `checklist.md`, `contract.md`, `design.md`, and when applicable their shared `coordination.md`, or the containing batch/spec plan directory, into a clearly marked archive path instead of leaving them mixed with active docs.
65
- - Delete converted spec files only when the repository clearly does not need historical retention.
66
- - Do not archive or delete any spec file that is still actively needed for unfinished implementation work.
67
- - Treat a spec file as active when it still records pending gaps, planned later phases, follow-up integration work, or unresolved design decisions for the same change, even if one implementation commit has already shipped.
68
- - If only part of a plan set is complete, convert or summarize only the truly completed scope and leave the active plan set in place unless the repository has a separate archival convention for partial phases.
69
- - If only part of a coordinated batch is complete, archive only the fully consumed spec subdirectories and keep the batch-level `coordination.md` active until no remaining spec set relies on it.
70
-
71
- ## Working Rules
72
-
73
- - Prefer the user's language unless the repository clearly uses another documentation language.
74
- - Do not copy speculative roadmap items from specs into the main docs as if they already exist.
75
- - When a section cannot be completed from evidence, keep an explicit `Unknown` or `TBD (missing repository evidence)` marker.
76
- - The final repository state should not keep both standardized docs and redundant active spec files for the same completed scope.
77
- - Do not equate "code was committed" with "planning scope is complete"; archive only when the remaining notes no longer guide future implementation.
78
- - Do not archive a batch `coordination.md` while it still governs active replacement work, shared field preparation, or unresolved cross-spec merge sequencing.
79
-
80
- ## References
81
-
82
- - `references/templates/readme.md`: concise project overview template.
83
- - `references/templates/docs-index.md`: categorized project-doc index and reference list template.
84
- - `references/templates/features.md`: template for `docs/features/` BDD-described feature documentation.
85
- - `references/templates/architecture.md`: template for `docs/architecture/` macro-level design principles.
86
- - `references/templates/principles.md`: template for `docs/principles/` code conventions and development constraints.
34
+ - `references/templates/readme.md`:README.md 模板
@@ -1,72 +1,44 @@
1
1
  ---
2
2
  name: commit-and-push
3
- description: >-
4
- Commit and push only (no semver): inspect staged vs unstaged, classify scopes, run the mandated `review-change-set` for code-affecting scope, then **`submission-readiness-check`** BEFORE the final commit honoring `CHANGELOG.md` Unreleased + `archive-specs` redirections, preserve intentional staging splits, forbid UI git stubs, VERIFY remote hashes post-push. **`version-release` elsewhere**.
5
- Use for “please commit”, “submit”, “push branch” lacking explicit semver/tag language **STOP** tagging here… BAD skip readiness red… GOOD staged subset untouched unrelated dirty files changelog mirrors diff… hashes `git rev-parse HEAD` versus upstream… archive specs before commit flagged…
3
+ description: 提供提交指引以及作為提交前的必要品控閘門。當你需要將變更提交到git repo或者是推送到remote,使用這個技能。
6
4
  ---
7
5
 
8
- # Commit and Push
6
+ ## 目標
9
7
 
10
- ## Dependencies
8
+ 在不破壞使用者既有工作樹與提交邊界的前提下,安全地完成本地 commit 與可選 push,並確保所有提交前的審查、文件同步與 changelog 門檻都已真正完成。
11
9
 
12
- - Required: **`submission-readiness-check`** immediately before the **final** commit.
13
- - Conditional: **`archive-specs`** when readiness (or completed specs) requires doc conversion or categorized `docs/` alignment; **`review-change-set`** for every **code-affecting** scope.
14
- - Optional: none.
15
- - Fallback: Any **required** dependency unavailable ⇒ **MUST** stop and report—**MUST NOT** “light” commit.
10
+ ## 驗收條件
16
11
 
17
- ## Non-negotiables
12
+ - 所有暫存的變更已經被提交和推送到remote
18
13
 
19
- - **MUST** use real `git` mutations (`git add`, `git commit`, `git push`, `git stash`, etc.); **MUST NOT** treat UI tokens (`::git-commit`, IDE buttons) as proof of history.
20
- - **MUST** run **`submission-readiness-check`** before final commit; unresolved readiness (e.g. stale/missing `CHANGELOG.md` **Unreleased**, doc drift) **blocks** commit.
21
- - Code-affecting: **`review-change-set` MANDATORY**; unresolved confirmed findings **block**.
22
- - **`archive-specs`**: when readiness says convert/archive or `docs/` mismatch—**MUST** run **before** final commit, not as a vague follow-up.
23
- - **MUST** reconcile **staged vs unstaged** with user intent—**MUST NOT** broaden scope by auto-staging unrelated files when user staged a subset.
24
- - **`CHANGELOG.md` `Unreleased`**: for code-affecting or user-visible docs, **MUST** reflect this change before commit; reopen diff after edits to match commit scope.
25
- - **MUST** resolve **target branch** per user (or current if explicit) before rewriting history; protect unrelated dirty work (`stash` etc.); **no** force-push unless user explicitly requests.
26
- - After **push**, **MUST** verify remote tip matches local `HEAD` (`git rev-parse` / `@{u}` / `ls-remote`) before claiming success.
27
- - **MUST NOT** run version bump, tag, or GitHub release (**use `version-release`**).
28
- - Clean worktree requests: **MUST** inspect `HEAD`, upstream, last commit—**MUST NOT** fabricate “pushed” when already satisfied or impossible.
14
+ ## 工作流程
29
15
 
30
- **Repository regression checks (verbatim requirements):** Treat root `CHANGELOG.md` `Unreleased` coverage as mandatory for code-affecting or user-visible changes. Re-open the final `CHANGELOG.md` diff after readiness updates. **`review-change-set` is required for code-affecting changes**; Run `review-change-set` for every code-affecting change before continuing; treat unresolved review findings as blocking. Any conditional gate whose trigger is confirmed by this classification becomes mandatory before commit. Treat every scenario-matched gate as blocking before commit.
16
+ ### 1. 檢查變更狀態
31
17
 
32
- ## Standards (summary)
18
+ 檢查目前的git變更狀態。識別變更範圍及確認目前暫存變更之中是否包含代碼變更。
33
19
 
34
- - **Evidence**: `git status`/`diff`; classification drives gates; changelog diff matches commit.
35
- - **Execution**: Inspect → classify → (deps) → readiness → commit → push verify.
36
- - **Quality**: No gate bypass; sequential git ops; preserve intentional commit boundaries.
37
- - **Output**: Conventional commit message + confirmed remote **when push ran** + note stash/scope if any.
20
+ ### 2. 品控閘門(選用)
38
21
 
39
- ## References
22
+ 如果變更範圍設計代碼變更,使用 `review-change`, `discover-edge-cases`, `discover-security-issues` 這三個技能,並遵從當中的任務指引,對代碼變更進行審查。
23
+ 如果外部環境允許使用subagents,建議通過調度subagents完成三個不同維度的代碼審查工作。
24
+ 如果在審查過程中發現問題,修復發現的問題並暫存。
40
25
 
41
- - `references/commit-messages.md`
42
- - `references/branch-naming.md`
26
+ ### 3. 同步項目文檔
43
27
 
44
- ## Workflow
28
+ 使用 `submission-readiness-check` 並遵照當中的指引,同步更新項目文檔,確保項目文檔時刻與repo保持一致。
45
29
 
46
- **Chain-of-thought:** **`Pause →`** guards skipping a gate or mis-sizing scope.
30
+ ### 4. 提交及推送變更
47
31
 
48
- 1. **Inspect** `git status -sb`; `git diff --stat`; `git diff --cached --stat`; `git diff --cached --name-only`. If clean: `git log -1 --stat`, upstream tracking, whether work already pushed.
49
- - **Pause →** Is the user’s intended commit **exactly** the staged set, or full worktree—I must not mix them silently?
32
+ 依使用者的 staging 邊界建立 commit,提交訊息遵循 `references/commit-messages.md`。
33
+ 只有在使用者明確要求更新remote時才 push。
50
34
 
51
- 2. **Classify** — Tag mentally: `code-affecting` | `docs-only` | `repo-specs-present` | `repo-specs-ready-for-conversion` | `project-doc-structure-mismatch` (per `archive-specs` needs). Active specs with unfinished same-change work stay active.
52
- - **Pause →** Which conditional skills just became **mandatory**—did I list them explicitly?
35
+ ## 範例
53
36
 
54
- 3. **Branch target** — Honor user branch; if switch needed, protect unrelated changes; cherry-pick/replay off wrong branch safely; worktree cases: identify authoritative target **before** replay.
55
- - **Pause →** Am I about to merge noise because diff > issue scope—should I stop and narrow first?
37
+ - 「只把已 staged `foo.ts` 提交」-> 只能提交已暫存內容,不能順手把未 staged `bar.ts` 一起帶進來
38
+ - 「幫我 push 這個 branch」-> 先完成 review readiness gate,再 push,最後用 hash 證明remote已同步
39
+ - 「順便幫我發版」-> 不使用本技能,改走 `version-release`
56
40
 
57
- 4. **Code-affecting gates** — `review-change-set` always; fix or document blockers; re-test material logic.
41
+ ## 參考資料索引
58
42
 
59
- 5. **Readiness** — Run **`submission-readiness-check`**; if it routes to **`archive-specs`**, run that **now**; fix `Unreleased` bullets; recheck changelog vs staged intent.
60
- - **Pause →** Could I commit while readiness still red—**why not**?
61
-
62
- 6. **Commit** — Respect staging; separate commits if user asked; Conventional message per `references/commit-messages.md`.
63
-
64
- 7. **Push** — **Only** when the user requested remote update (`push`, `publish`, PR branch sync, explicit upstream publish, or equivalent). If the user asked **only** for a **local** commit with **no** remote publish in this thread, finish after step 6, state local `HEAD`, and **do not** push.
65
- - **Pause →** Did the user **explicitly** ask to update a remote, or only to record commits locally?
66
- - **Pause →** What two hashes prove remote == local when push **did** run?
67
-
68
- ## Sample hints
69
-
70
- - **Scope**: Staged `foo.ts` only; unstaged `bar.ts` unrelated → commit **must not** pick up `bar.ts` without user scope change.
71
- - **Changelog**: Code change with no `Unreleased` bullet → **blocking** until added.
72
- - **Push proof**: “Pushed” means e.g. local `abc123` equals `origin/feature` `abc123`, not “command sent.”
43
+ - `references/commit-messages.md`:提交訊息格式
44
+ - `references/branch-naming.md`:分支命名慣例
@@ -1,74 +1,29 @@
1
1
  ---
2
2
  name: develop-new-features
3
- description: >-
4
- Net-new or materially new product behavior: **`generate-spec`** is mandatory (clarify → approve → only then code) with **`test-case-strategy`** backing every serious logic change—property tests required unless documented `N/A`, add adversarial/auth/idempotency/concurrency/mocks for external services, cap each spec at three modules and split coordinated batches via `coordination.md`, finish every approved `tasks.md`/`checklist.md` item or document deferrals.
5
- Use when users ask for “new feature”, “greenfield slice”, “plan-first delivery”. Reroute typo-only UI, bug restores, or internal refactors without product impact to **`enhance-existing-features`** / **`systematic-debug`**.
6
- Bad: editing `src/api.ts` before approval exists… Good: spec records risk → tests map to requirement IDs… Typo fix in footer copy → wrong skill…
3
+ description: 用於從零開始打造新專案。當你需要從零開始打造一個新專案時,請使用這個技能。
7
4
  ---
8
5
 
9
- # Develop New Features
6
+ ## 技能目標
10
7
 
11
- ## Dependencies
8
+ 把新的產品需求轉成一套可批准、可實作、可驗證的交付流程,避免在需求未定稿前直接寫產品程式碼,並確保最終功能、測試與規劃文件彼此一致。
12
9
 
13
- - Required: `generate-spec` for shared planning artifacts and `test-case-strategy` for risk-driven test selection, oracles, and unit drift checks before coding.
14
- - Conditional: **`commit-and-push`** when the user requests **git commit** and/or **push** after delivery—**MUST** delegate final submission to **`commit-and-push`** (implementation detail: often via **`implement-specs`**, which already requires it).
15
- - Optional: none.
16
- - Fallback: **`generate-spec`** **or** **`test-case-strategy`** missing ⇒ **stop** (no improvised planning/tests). If the user requested **commit/push** and **`commit-and-push`** is unavailable, **MUST** stop and report.
10
+ ## 驗收條件
17
11
 
18
- ## Non-negotiables
12
+ - 產生了完全符合用戶需求的spec,通過spec將用戶的需求精確定義為可實作的工程指導文檔。
13
+ - 遵照可實作的spec,實作了用戶的需求。
19
14
 
20
- - This skill applies to **non-trivial new behavior / greenfield**. **MUST NOT** activate for: pure bug restore; style/copy-only tweaks; trivial one-pocket config/constants; internal-only refactors/no visible behavior—these routes belong to **`enhance-existing-features`**, **`systematic-debug`**, etc., **without** new specs here.
21
- - **When this skill applies**, **`generate-spec` is mandatory** before product code: create/update plans, BDD reqs, contracts, design, optional batch **`coordination.md`**, obtain **explicit approval**, then implement.
22
- - **≤3 modules** per spec set; wider work ⇒ multiple **independent** spec sets under batch + **`coordination.md`** (no hidden cross-deps).
23
- - **MUST NOT** modify product code **before** approval.
24
- - Post-approval: **all** in-scope **`tasks.md`/`checklist.md`** items complete unless deferral/blocker documented in artifacts.
25
- - **`test-case-strategy`**: risk-first; property-based logic **required** unless documented **`N/A`**; adversarial/auth/idempotency/concurrency where relevant; mocks for externals in logic chains; oracles tied to requirements.
26
- - Backfill all plan files + coordination when batch; no fake-completed template branches.
15
+ ## 工作流程
27
16
 
28
- ## Standards (summary)
17
+ ### 1. 理解用戶需求
29
18
 
30
- - **Evidence**: Official docs + repo architecture pass before plan lock.
31
- - **Execution**: Route-out trivial work → spec → implement → test → backfill.
32
- - **Quality**: Plans trace to tests; minimal speculative code.
33
- - **Output**: Approved scope shipped + honest plan status.
19
+ 分析用戶需求,並使用 `generate-spec` 技能建立spec。
34
20
 
35
- ## Workflow
21
+ ### 2. 實作spec
36
22
 
37
- **Chain-of-thought:** If request is maintenance-sized, **`Pause →`** “Should I reroute?” before spending tokens on **`generate-spec`**.
23
+ 在明確獲取用戶的同意之後,使用 `implement-specs` 技能實作spec
24
+ 如果spec是batch spec(存在多份spec),且外部環境允許使用subagents,建議使用 `implement-specs-with-subagents` 技能調度subagents實作spec。
38
25
 
39
- ### 1) Docs & routing
26
+ ## 使用範例
40
27
 
41
- - Stack/deps discovery; verify using official sources.
42
- - **Pause →** Is this truly greenfield/feature vs fix/polish—if latter, bail to other skill?
43
-
44
- ### 2) `generate-spec`
45
-
46
- - Full workflow: dirs `docs/plans/{YYYY-MM-DD}/…`, batch/coord flags, clarification, **`MUST`** approval before code.
47
- - **Pause →** Did I secretly start coding “just the types”—**hard violation**?
48
-
49
- ### 3) Architecture map
50
-
51
- - Reuse seams; list likely files **after** approval to stay honest to plan.
52
-
53
- ### 4) Implement (post-approval)
54
-
55
- - Execute tasks/checklist exhaustively unless blocker recorded with user-visible deferrals.
56
-
57
- ### 5) Testing
58
-
59
- - **`test-case-strategy`** mapping requirement IDs ↔ tests; drift checks/`N/A` discipline; run and fix reds.
60
-
61
- ### 6) Completion
62
-
63
- - Backfill **`generate-spec`**-style across **`spec/tasks/checklist/contract/design`** (+ **`coordination.md`**); requirement-level status in **`spec.md`**; strip template illusions; final report with scope + tests + `N/A`.
64
-
65
- ## Sample hints
66
-
67
- - **Wrong skill**: “Fix typo in footer string” ⇒ not here.
68
- - **Right skill**: “Add export-to-CSV for dashboard” ⇒ **`generate-spec`** then code + property tests on CSV invariants maybe.
69
- - **Split**: Touches CLI + server + terraform module boundaries—three modules cap ⇒ **two spec dirs** coordinated.
70
-
71
- ## References
72
-
73
- - **`generate-spec`**: planning/backfill authority
74
- - **`test-case-strategy`**: breadth/depth of tests
28
+ - "現有repo完全不存在任何的CSV解析、讀取、會出功能。用戶要求替 dashboard 新增 CSV 匯出功能。-> "建立spec並等待用戶批准,再實作匯出流程,並用 property tests 驗證欄位順序、編碼與內容不變量"
29
+ - "原repo不存在任何cli功能。用戶要求同時新增 CLI、後端與基礎設施的新能力" -> "拆成多份 spec,用 `coordination.md` 管理跨模組依賴,並使用 `implement-specs-with-subagents` 技能調度subagents實作spec。"
@@ -1,91 +1,32 @@
1
1
  ---
2
2
  name: discover-edge-cases
3
- description: >-
4
- Diff-first (or full-repo) discovery of **reproducible** edge-case risks: boundaries, null/empty, failure paths, concurrency, observability; evidence via code/tests/runtime—**no edits, no new tests, no PRs**. For code-affecting scope, cross-check with **`discover-security-issues`** before final report.
5
- Use for edge-case review, hardening gaps, unusual inputs/error paths, pre-merge risk pass **STOP** implementation or “just fix it here”… BAD unproven alarm list… GOOD path:line + double repro…
3
+ description: 審查代碼在邊界狀況時可能會出現的問題。當你需要進行代碼審查時,調用此技能
6
4
  ---
7
5
 
8
- # Discover Edge Cases
6
+ ## 目標
9
7
 
10
- ## Dependencies
8
+ 審查代碼並輸出一份代碼邊界問題審查報告,僅保留可重現、可驗證的風險。報告需要按優先級列出問題標題、證據、重現方式、受影響不變式、風險評估、加固建議與剩餘不確定性。
11
9
 
12
- - Required: none.
13
- - Conditional: **`discover-security-issues`** on **code-affecting** scope before finalizing the report (adversarial security pass).
14
- - Optional: none.
15
- - Fallback: If that security cross-check is **required** but unavailable, **MUST** stop and report the missing dependency.
10
+ ## 驗收條件
16
11
 
17
- ## Non-negotiables
12
+ - 完整的代碼審查報告與建議修正。包括但不限於對代碼進行:資料完整性、靜默失敗、重試風暴、資源耗盡、部分提交/回滾失敗與跨模組傳播等審查結果。
18
13
 
19
- - **Discovery-only**: **MUST NOT** edit code, add/modify tests, or open PRs.
20
- - **MUST** keep only **reproducible** findings; label guesses as **hypotheses**.
21
- - **MUST** reproduce each **confirmed** issue **at least twice** (same trigger); vary neighbors (empty vs null, malformed vs wrong-type).
22
- - **MUST** discard authorship bias—including code from earlier in the conversation.
23
- - If remediation is requested: finish this pass first; hand off **confirmed** items to an implementation workflow.
14
+ ## 工作流程
24
15
 
25
- ## Standards (summary)
16
+ ### 1. 深入閱讀相關代碼
26
17
 
27
- - **Evidence**: `path:line`, commands/inputs, test output, or runtime symptoms—no intent-only claims.
28
- - **Execution**: Scope → baseline read → focused probes (2–5 high-impact) → validate → prioritize → report.
29
- - **Quality**: Prefer fewer strong findings; flag data integrity, silent failure, retry storms, cross-module propagation.
30
- - **Output**: Prioritized findings, reproduction, risk, hardening **advice**, residual risk/hypotheses.
18
+ 通過用戶指引或目前git變更狀態,定義審查範圍。完整閱讀並閱讀相關代碼片段並理解代碼。重點關注常見邊界問題。
31
19
 
32
- ## Workflow
20
+ ### 2. 報告整理及輸出
33
21
 
34
- **Chain-of-thought:** Answer **`Pause →`** each step; if scope is wrong, fix before probing.
22
+ 將發現的邊界問題按嚴重程度排序,並輸出一份完整的審查報告
35
23
 
36
- ### 1) Determine scan scope
24
+ ## 使用範例
37
25
 
38
- - `git diff --name-only` first.
39
- - **With diff**: changed files + minimum dependency chain to validate suspected edges.
40
- - **No diff**: whole project, prioritizing domain logic, external boundaries, stateful/concurrent modules.
41
- - If nothing actionable after honest pass: report `No actionable edge-case finding identified` and stop.
42
- - **Pause →** Can I name the **smallest file set** I must read—not the whole monorepo by default?
26
+ - "幫我檢查這次 parser 改動有沒有邊界風險" -> "閱讀本次改動的相關代碼,檢查常見邊界問題是否存在,並輸出完整的驗證報告"
27
+ - "看看這個支付狀態機還有哪些不容易被測到的問題" -> "優先檢查重試、部分提交、回滾、併發重入、順序依賴與可觀測性缺口。"
43
28
 
44
- ### 2) Build factual baseline
29
+ ## 參考資料索引
45
30
 
46
- - Read end-to-end before judging; derive behavior from code, tests, runtime only.
47
- - Clarify contracts: types, ranges, null, ordering, retries, state transitions.
48
- - **Pause →** What did I **execute** (test/command) vs only read?
49
-
50
- ### 3) Focused probes (prioritize 2–5)
51
-
52
- Target high-risk patterns tied to scope:
53
-
54
- - Empty/null/malformed/unexpected types; boundaries (0, 1, min/max, overflow); duplicates/order.
55
- - Dependency failure: timeout, partial data, retry loops; invalid formats.
56
- - Concurrency/reentrancy; architecture edges: backpressure, exhaustion, partial commit/rollback.
57
- - **HTTP/API** (if in scope): 429/500 behavior; logging with status/id/retry/latency (no silent fails).
58
-
59
- Load as needed: `references/architecture-edge-cases.md`, `references/code-edge-cases.md`.
60
- - **Pause →** Would **discover-security-issues** flag this sink if it is auth/input injection—did I schedule that pass for code changes?
61
-
62
- ### 4) Confirm reproducibility
63
-
64
- - Two passes per confirmed issue; note variants tried; keep unconfirmed as hypotheses.
65
-
66
- ### 5) Prioritize
67
-
68
- - User impact, frequency/exploitability, blast radius; call out integrity, state corruption, silent failure.
69
-
70
- ### 6) Security cross-check (code-affecting)
71
-
72
- - Run **`discover-security-issues`** on the **same** scope; integrate **confirmed** security items (do not duplicate as edge trivia unless distinct).
73
-
74
- ### 7) Report only
75
-
76
- Deliver: (1) Findings—title, severity, evidence, repro, broken invariant; (2) Edge evidence—preconditions, observation, variants; (3) Risk—impact/likelihood/scope; (4) Hardening guidance (advisory); (5) Residual risk—hypotheses, next checks.
77
-
78
- ## Minimum coverage (apply what fits scope)
79
-
80
- - Input validation; boundary behavior; failure/degraded modes; state/idempotency/concurrency/rollback; actionable observability.
81
-
82
- ## Sample hints
83
-
84
- - **Diff**: One new parser → empty string + max length + malformed delimiter **before** “maybe SQL.”
85
- - **No diff**: Start at payment/state machine module—highest consequence.
86
- - **Handoff**: Five confirmed edges → remediation skill gets **numbered list + repro**—not this skill patching.
87
-
88
- ## References
89
-
90
- - `references/architecture-edge-cases.md` — system-level checklist.
91
- - `references/code-edge-cases.md` — code-level input/error/concurrency checklist.
31
+ - `references/architecture-edge-cases.md`:常見系統級邊界情況清單,涵蓋併發、背壓、分散式一致性、超時取消、回滾與部署漂移。
32
+ - `references/code-edge-cases.md`:常見代碼級邊界情況清單,涵蓋輸入、數值、排序、錯誤處理、狀態污染、安全驗證與性能上限。