@laitszkin/apollo-toolkit 3.11.8 → 3.12.1

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 (83) hide show
  1. package/AGENTS.md +6 -6
  2. package/CHANGELOG.md +20 -2
  3. package/README.md +9 -10
  4. package/align-project-documents/SKILL.md +20 -69
  5. package/align-project-documents/references/templates/standardized-docs-template.md +1 -1
  6. package/analyse-app-logs/scripts/__pycache__/filter_logs_by_time.cpython-312.pyc +0 -0
  7. package/analyse-app-logs/scripts/__pycache__/log_cli_utils.cpython-312.pyc +0 -0
  8. package/analyse-app-logs/scripts/__pycache__/search_logs.cpython-312.pyc +0 -0
  9. package/archive-specs/SKILL.md +18 -70
  10. package/commit-and-push/SKILL.md +22 -52
  11. package/develop-new-features/SKILL.md +15 -60
  12. package/docs-to-voice/scripts/__pycache__/docs_to_voice.cpython-312.pyc +0 -0
  13. package/enhance-existing-features/SKILL.md +24 -61
  14. package/generate-spec/SKILL.md +15 -18
  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 +26 -116
  21. package/iterative-code-performance/SKILL.md +1 -1
  22. package/iterative-code-quality/SKILL.md +1 -1
  23. package/katex/scripts/__pycache__/render_katex.cpython-312.pyc +0 -0
  24. package/maintain-project-constraints/SKILL.md +21 -79
  25. package/maintain-project-constraints/references/constraint-file-reference.md +58 -0
  26. package/merge-changes-from-local-branches/SKILL.md +26 -100
  27. package/open-github-issue/scripts/__pycache__/open_github_issue.cpython-312.pyc +0 -0
  28. package/open-source-pr-workflow/SKILL.md +4 -7
  29. package/optimise-skill/SKILL.md +9 -9
  30. package/optimise-skill/references/definition.md +6 -5
  31. package/optimise-skill/references/example_skill.md +9 -9
  32. package/package.json +1 -1
  33. package/read-github-issue/scripts/__pycache__/find_issues.cpython-312.pyc +0 -0
  34. package/read-github-issue/scripts/__pycache__/read_issue.cpython-312.pyc +0 -0
  35. package/resolve-review-comments/scripts/__pycache__/review_threads.cpython-312.pyc +0 -0
  36. package/review-spec-related-changes/SKILL.md +24 -67
  37. package/ship-github-issue-fix/SKILL.md +2 -2
  38. package/solve-issues-found-during-review/SKILL.md +11 -74
  39. package/spec-to-project-html/SKILL.md +26 -75
  40. package/submission-readiness-check/SKILL.md +26 -62
  41. package/systematic-debug/SKILL.md +48 -64
  42. package/test-case-strategy/SKILL.md +38 -85
  43. package/text-to-short-video/scripts/__pycache__/enforce_video_aspect_ratio.cpython-312.pyc +0 -0
  44. package/update-project-html/SKILL.md +25 -94
  45. package/version-release/SKILL.md +39 -74
  46. package/archive-specs/references/templates/architecture.md +0 -21
  47. package/archive-specs/references/templates/docs-index.md +0 -39
  48. package/archive-specs/references/templates/features.md +0 -25
  49. package/archive-specs/references/templates/principles.md +0 -28
  50. package/discover-edge-cases/CHANGELOG.md +0 -19
  51. package/discover-edge-cases/LICENSE +0 -21
  52. package/discover-edge-cases/README.md +0 -87
  53. package/discover-edge-cases/SKILL.md +0 -91
  54. package/discover-edge-cases/agents/openai.yaml +0 -4
  55. package/discover-edge-cases/references/architecture-edge-cases.md +0 -41
  56. package/discover-edge-cases/references/code-edge-cases.md +0 -46
  57. package/discover-security-issues/CHANGELOG.md +0 -32
  58. package/discover-security-issues/LICENSE +0 -21
  59. package/discover-security-issues/README.md +0 -35
  60. package/discover-security-issues/SKILL.md +0 -88
  61. package/discover-security-issues/agents/openai.yaml +0 -4
  62. package/discover-security-issues/references/agent-attack-catalog.md +0 -117
  63. package/discover-security-issues/references/common-software-attack-catalog.md +0 -168
  64. package/discover-security-issues/references/red-team-extreme-scenarios.md +0 -81
  65. package/discover-security-issues/references/risk-checklist.md +0 -78
  66. package/discover-security-issues/references/security-test-patterns-agent.md +0 -101
  67. package/discover-security-issues/references/security-test-patterns-finance.md +0 -88
  68. package/discover-security-issues/references/test-snippets.md +0 -73
  69. package/recover-missing-plan/SKILL.md +0 -85
  70. package/recover-missing-plan/agents/openai.yaml +0 -4
  71. package/review-change-set/LICENSE +0 -21
  72. package/review-change-set/README.md +0 -55
  73. package/review-change-set/SKILL.md +0 -96
  74. package/review-change-set/agents/openai.yaml +0 -4
  75. package/review-codebases/LICENSE +0 -21
  76. package/review-codebases/README.md +0 -69
  77. package/review-codebases/SKILL.md +0 -103
  78. package/review-codebases/agents/openai.yaml +0 -4
  79. package/scheduled-runtime-health-check/LICENSE +0 -21
  80. package/scheduled-runtime-health-check/README.md +0 -107
  81. package/scheduled-runtime-health-check/SKILL.md +0 -135
  82. package/scheduled-runtime-health-check/agents/openai.yaml +0 -4
  83. package/scheduled-runtime-health-check/references/output-format.md +0 -20
package/AGENTS.md CHANGED
@@ -31,10 +31,10 @@ This repository enables users to install and run a curated set of reusable agent
31
31
  - Users can turn lecture slides, past papers, and answer books into mock exams, worked solutions, study notes, or graded PDFs with KaTeX-rendered math.
32
32
  - Users can extend existing features in a brownfield codebase with required tests and approvals.
33
33
  - Users can propose product features from an existing codebase and publish accepted proposals.
34
- - Users can discover reproducible edge-case risks and report prioritized hardening gaps.
34
+
35
35
  - Users can read, filter, and inspect remote GitHub issues before planning follow-up work.
36
36
  - Users can resolve a GitHub issue end-to-end and push the fix directly to a requested branch without opening a PR.
37
- - Users can run evidence-first application security audits focused on confirmed vulnerabilities.
37
+
38
38
  - Users can run a shared submission-readiness pass that synchronizes changelog, project docs, `AGENTS.md`, and completed plan archives before commit, push, PR creation, or release.
39
39
  - Users can learn new or improved skills from recent Codex conversation history.
40
40
  - Users can audit and maintain the skill catalog itself, including dependency classification and shared-skill extraction decisions.
@@ -51,12 +51,12 @@ This repository enables users to install and run a curated set of reusable agent
51
51
  - Users can generate storyboard image sets from chapters, novels, articles, or scripts.
52
52
  - Users can configure OpenClaw from official documentation, including `~/.openclaw/openclaw.json`, skills loading, SecretRefs, CLI edits, and validation or repair workflows.
53
53
  - Users can record multi-account spending and balance changes in monthly Excel ledgers with summary analytics and charts.
54
- - Users can recover missing or archived `docs/plans/...` spec sets from issue context, git history, and repository evidence before continuing feature work.
55
- - Users can review the current git change set from an unbiased reviewer perspective to find abstraction opportunities and simplification candidates.
54
+
55
+
56
56
  - Users can review recent or user-specified spec-backed changes against the governing planning documents, treating unmet business goals as the most severe findings before secondary edge-case, security, and code-review checks.
57
57
  - Users can process GitHub pull request review comments and resolve addressed threads.
58
- - Users can perform repository-wide code reviews and publish confirmed findings as GitHub issues.
59
- - Users can schedule a bounded project runtime window, stop it automatically, and analyze module health from captured logs.
58
+
59
+
60
60
  - Users can investigate gated or shadow LLM APIs by capturing real client request shapes, replaying verified traffic patterns, and attributing the likely underlying model through black-box fingerprinting.
61
61
  - Users can build and maintain Solana programs and Rust clients using official Solana development workflows.
62
62
  - Users can fix issues discovered during a review pass by processing findings from highest to lowest severity, with per-fix validation and full-scope re-validation.
package/CHANGELOG.md CHANGED
@@ -2,13 +2,31 @@
2
2
 
3
3
  All notable changes to this repository are documented in this file.
4
4
 
5
- ## [Unreleased]
5
+ ## [v3.12.1] - 2026-05-14
6
+
7
+ ### Changed
8
+
9
+ - Rewrite remaining shipped skills (`enhance-existing-features`, `generate-spec`, `init-project-html`, `merge-changes-from-local-branches`, `open-source-pr-workflow`, `optimise-skill`, `review-spec-related-changes`, `solve-issues-found-during-review`, `submission-readiness-check`, `commit-and-push`, `version-release`, `iterative-code-performance`, `iterative-code-quality`, `maintain-project-constraints`, `ship-github-issue-fix`, `spec-to-project-html`, `systematic-debug`) into the compact Chinese-first structure with goal, acceptance criteria, workflow, examples, and references sections.
10
+ - Update `AGENTS.md` and `README.md` to remove references to deleted skills and simplify dependency descriptions.
11
+
12
+ ### Removed
13
+
14
+ - Remove `discover-edge-cases`, `discover-security-issues`, `recover-missing-plan`, `review-change-set`, `review-codebases`, and `scheduled-runtime-health-check` skills that are no longer part of the curated catalog.
15
+
16
+ ## [v3.12.0] - 2026-05-13
6
17
 
7
18
  ### Added
8
19
 
20
+ - `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.
21
+
9
22
  ### Changed
10
23
 
11
- ### Fixed
24
+ - 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.
25
+ - 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.
26
+
27
+ ### Removed
28
+
29
+ - 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`.
12
30
 
13
31
  ## [v3.11.8] - 2026-05-12
14
32
 
package/README.md CHANGED
@@ -12,7 +12,7 @@ A curated skill catalog for Codex, OpenClaw, Trae, Agents, and Claude Code with
12
12
  - codex-memory-manager
13
13
  - deep-research-topics
14
14
  - develop-new-features
15
- - discover-edge-cases
15
+
16
16
  - docs-to-voice
17
17
  - exam-pdf-workflow
18
18
  - document-vision-reader
@@ -21,7 +21,7 @@ A curated skill catalog for Codex, OpenClaw, Trae, Agents, and Claude Code with
21
21
  - financial-research
22
22
  - read-github-issue
23
23
  - generate-spec
24
- - discover-security-issues
24
+
25
25
  - implement-specs
26
26
  - implement-specs-with-subagents
27
27
  - implement-specs-with-worktree
@@ -41,13 +41,13 @@ A curated skill catalog for Codex, OpenClaw, Trae, Agents, and Claude Code with
41
41
  - openai-text-to-image-storyboard
42
42
  - openclaw-configuration
43
43
  - optimise-skill
44
- - recover-missing-plan
44
+
45
45
  - record-spending
46
46
  - resolve-review-comments
47
- - review-change-set
48
- - review-codebases
47
+
48
+
49
49
  - review-spec-related-changes
50
- - scheduled-runtime-health-check
50
+
51
51
  - shadow-api-model-research
52
52
  - solana-development
53
53
  - spec-to-project-html
@@ -208,12 +208,11 @@ Compatibility note:
208
208
 
209
209
  - `generate-spec` is a local skill used by `develop-new-features` and `enhance-existing-features`, and it can produce either a single spec set under `docs/plans/{YYYY-MM-DD}/{change_name}/` or a coordinated parallel batch under `docs/plans/{YYYY-MM-DD}/{batch_name}/{change_name}/` with shared `coordination.md`.
210
210
  - `implement-specs-with-subagents` coordinates one `implement-specs-with-worktree` subagent per spec directory for approved multi-spec batches.
211
- - `recover-missing-plan` is a local skill used by `enhance-existing-features` and `ship-github-issue-fix` when a referenced `docs/plans/...` spec set is missing or archived.
211
+
212
212
  - `read-github-issue` uses GitHub CLI (`gh`) directly for remote issue discovery and inspection, so it does not add any extra skill dependency.
213
- - `review-spec-related-changes` is a local skill that depends on `review-change-set`, `discover-edge-cases`, and `discover-security-issues` for secondary code-practice checks after business-goal completion is reviewed against the governing specs; it prefers running each secondary skill in its own read-only subagent in parallel.
213
+ - `review-spec-related-changes` is a local skill that reviews spec compliance of changes against governing planning documents, assessing business goals before secondary code-practice concerns.
214
214
  - `update-project-html` is a local skill that depends on `init-project-html` for semantic rules and on the `apltk architecture` CLI to refresh the base atlas after code changes; for spec overlay diagrams use `spec-to-project-html` instead.
215
- - `commit-and-push` and `version-release` no longer chain `discover-edge-cases` or `discover-security-issues`; invoke those skills explicitly when the review surface needs them.
216
- - `review-change-set` no longer chains `discover-security-issues`; for multi-file diffs it prefers dispatching one read-only subagent per scope cluster.
215
+
217
216
 
218
217
  ## Release publishing
219
218
 
@@ -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,42 @@
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
+ 如果變更範圍涉及代碼變更,確認變更已通過必要的審查與驗證。如果在審查過程中發現問題,修復發現的問題並暫存。
40
23
 
41
- - `references/commit-messages.md`
42
- - `references/branch-naming.md`
24
+ ### 3. 同步項目文檔
43
25
 
44
- ## Workflow
26
+ 使用 `submission-readiness-check` 並遵照當中的指引,同步更新項目文檔,確保項目文檔時刻與repo保持一致。
45
27
 
46
- **Chain-of-thought:** **`Pause →`** guards skipping a gate or mis-sizing scope.
28
+ ### 4. 提交及推送變更
47
29
 
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?
30
+ 依使用者的 staging 邊界建立 commit,提交訊息遵循 `references/commit-messages.md`。
31
+ 只有在使用者明確要求更新remote時才 push。
50
32
 
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?
33
+ ## 範例
53
34
 
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?
35
+ - 「只把已 staged `foo.ts` 提交」-> 只能提交已暫存內容,不能順手把未 staged `bar.ts` 一起帶進來
36
+ - 「幫我 push 這個 branch」-> 先完成 review readiness gate,再 push,最後用 hash 證明remote已同步
37
+ - 「順便幫我發版」-> 不使用本技能,改走 `version-release`
56
38
 
57
- 4. **Code-affecting gates** — `review-change-set` always; fix or document blockers; re-test material logic.
39
+ ## 參考資料索引
58
40
 
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.”
41
+ - `references/commit-messages.md`:提交訊息格式
42
+ - `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。"