@laitszkin/apollo-toolkit 2.0.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 (204) hide show
  1. package/AGENTS.md +62 -0
  2. package/CHANGELOG.md +100 -0
  3. package/LICENSE +21 -0
  4. package/README.md +144 -0
  5. package/align-project-documents/SKILL.md +94 -0
  6. package/align-project-documents/agents/openai.yaml +4 -0
  7. package/analyse-app-logs/LICENSE +21 -0
  8. package/analyse-app-logs/README.md +126 -0
  9. package/analyse-app-logs/SKILL.md +121 -0
  10. package/analyse-app-logs/agents/openai.yaml +4 -0
  11. package/analyse-app-logs/references/investigation-checklist.md +58 -0
  12. package/analyse-app-logs/references/log-signal-patterns.md +52 -0
  13. package/answering-questions-with-research/SKILL.md +46 -0
  14. package/answering-questions-with-research/agents/openai.yaml +4 -0
  15. package/bin/apollo-toolkit.js +7 -0
  16. package/commit-and-push/LICENSE +21 -0
  17. package/commit-and-push/README.md +26 -0
  18. package/commit-and-push/SKILL.md +70 -0
  19. package/commit-and-push/agents/openai.yaml +4 -0
  20. package/commit-and-push/references/branch-naming.md +15 -0
  21. package/commit-and-push/references/commit-messages.md +19 -0
  22. package/deep-research-topics/LICENSE +21 -0
  23. package/deep-research-topics/README.md +43 -0
  24. package/deep-research-topics/SKILL.md +84 -0
  25. package/deep-research-topics/agents/openai.yaml +4 -0
  26. package/develop-new-features/LICENSE +21 -0
  27. package/develop-new-features/README.md +52 -0
  28. package/develop-new-features/SKILL.md +105 -0
  29. package/develop-new-features/agents/openai.yaml +4 -0
  30. package/develop-new-features/references/testing-e2e.md +35 -0
  31. package/develop-new-features/references/testing-integration.md +42 -0
  32. package/develop-new-features/references/testing-property-based.md +44 -0
  33. package/develop-new-features/references/testing-unit.md +37 -0
  34. package/discover-edge-cases/CHANGELOG.md +19 -0
  35. package/discover-edge-cases/LICENSE +21 -0
  36. package/discover-edge-cases/README.md +87 -0
  37. package/discover-edge-cases/SKILL.md +124 -0
  38. package/discover-edge-cases/agents/openai.yaml +4 -0
  39. package/discover-edge-cases/references/architecture-edge-cases.md +41 -0
  40. package/discover-edge-cases/references/code-edge-cases.md +46 -0
  41. package/docs-to-voice/.env.example +106 -0
  42. package/docs-to-voice/CHANGELOG.md +71 -0
  43. package/docs-to-voice/LICENSE +21 -0
  44. package/docs-to-voice/README.md +118 -0
  45. package/docs-to-voice/SKILL.md +107 -0
  46. package/docs-to-voice/agents/openai.yaml +4 -0
  47. package/docs-to-voice/scripts/docs_to_voice.py +1385 -0
  48. package/docs-to-voice/scripts/docs_to_voice.sh +11 -0
  49. package/docs-to-voice/tests/test_docs_to_voice_api_max_chars.py +210 -0
  50. package/docs-to-voice/tests/test_docs_to_voice_sentence_timeline.py +115 -0
  51. package/docs-to-voice/tests/test_docs_to_voice_settings.py +43 -0
  52. package/docs-to-voice/tests/test_docs_to_voice_speech_rate.py +57 -0
  53. package/enhance-existing-features/CHANGELOG.md +35 -0
  54. package/enhance-existing-features/LICENSE +21 -0
  55. package/enhance-existing-features/README.md +54 -0
  56. package/enhance-existing-features/SKILL.md +120 -0
  57. package/enhance-existing-features/agents/openai.yaml +4 -0
  58. package/enhance-existing-features/references/e2e-tests.md +25 -0
  59. package/enhance-existing-features/references/integration-tests.md +30 -0
  60. package/enhance-existing-features/references/property-based-tests.md +33 -0
  61. package/enhance-existing-features/references/unit-tests.md +29 -0
  62. package/feature-propose/LICENSE +21 -0
  63. package/feature-propose/README.md +23 -0
  64. package/feature-propose/SKILL.md +107 -0
  65. package/feature-propose/agents/openai.yaml +4 -0
  66. package/feature-propose/references/enhancement-features.md +25 -0
  67. package/feature-propose/references/important-features.md +25 -0
  68. package/feature-propose/references/mvp-features.md +25 -0
  69. package/feature-propose/references/performance-features.md +25 -0
  70. package/financial-research/SKILL.md +208 -0
  71. package/financial-research/agents/openai.yaml +4 -0
  72. package/financial-research/assets/weekly_market_report_template.md +45 -0
  73. package/fix-github-issues/SKILL.md +98 -0
  74. package/fix-github-issues/agents/openai.yaml +4 -0
  75. package/fix-github-issues/scripts/list_issues.py +148 -0
  76. package/fix-github-issues/tests/test_list_issues.py +127 -0
  77. package/generate-spec/LICENSE +21 -0
  78. package/generate-spec/README.md +61 -0
  79. package/generate-spec/SKILL.md +96 -0
  80. package/generate-spec/agents/openai.yaml +4 -0
  81. package/generate-spec/references/templates/checklist.md +78 -0
  82. package/generate-spec/references/templates/spec.md +55 -0
  83. package/generate-spec/references/templates/tasks.md +35 -0
  84. package/generate-spec/scripts/create-specs +123 -0
  85. package/harden-app-security/CHANGELOG.md +27 -0
  86. package/harden-app-security/LICENSE +21 -0
  87. package/harden-app-security/README.md +46 -0
  88. package/harden-app-security/SKILL.md +127 -0
  89. package/harden-app-security/agents/openai.yaml +4 -0
  90. package/harden-app-security/references/agent-attack-catalog.md +117 -0
  91. package/harden-app-security/references/common-software-attack-catalog.md +168 -0
  92. package/harden-app-security/references/red-team-extreme-scenarios.md +81 -0
  93. package/harden-app-security/references/risk-checklist.md +78 -0
  94. package/harden-app-security/references/security-test-patterns-agent.md +101 -0
  95. package/harden-app-security/references/security-test-patterns-finance.md +88 -0
  96. package/harden-app-security/references/test-snippets.md +73 -0
  97. package/improve-observability/SKILL.md +114 -0
  98. package/improve-observability/agents/openai.yaml +4 -0
  99. package/learn-skill-from-conversations/CHANGELOG.md +15 -0
  100. package/learn-skill-from-conversations/LICENSE +22 -0
  101. package/learn-skill-from-conversations/README.md +47 -0
  102. package/learn-skill-from-conversations/SKILL.md +85 -0
  103. package/learn-skill-from-conversations/agents/openai.yaml +4 -0
  104. package/learn-skill-from-conversations/scripts/extract_recent_conversations.py +369 -0
  105. package/learn-skill-from-conversations/tests/test_extract_recent_conversations.py +176 -0
  106. package/learning-error-book/SKILL.md +112 -0
  107. package/learning-error-book/agents/openai.yaml +4 -0
  108. package/learning-error-book/assets/error_book_template.md +66 -0
  109. package/learning-error-book/scripts/render_markdown_to_pdf.py +367 -0
  110. package/lib/cli.js +338 -0
  111. package/lib/installer.js +225 -0
  112. package/maintain-project-constraints/SKILL.md +109 -0
  113. package/maintain-project-constraints/agents/openai.yaml +4 -0
  114. package/maintain-skill-catalog/README.md +18 -0
  115. package/maintain-skill-catalog/SKILL.md +66 -0
  116. package/maintain-skill-catalog/agents/openai.yaml +4 -0
  117. package/novel-to-short-video/CHANGELOG.md +53 -0
  118. package/novel-to-short-video/LICENSE +21 -0
  119. package/novel-to-short-video/README.md +63 -0
  120. package/novel-to-short-video/SKILL.md +233 -0
  121. package/novel-to-short-video/agents/openai.yaml +4 -0
  122. package/novel-to-short-video/references/plan-template.md +71 -0
  123. package/novel-to-short-video/references/roles-json.md +41 -0
  124. package/open-github-issue/LICENSE +21 -0
  125. package/open-github-issue/README.md +97 -0
  126. package/open-github-issue/SKILL.md +119 -0
  127. package/open-github-issue/agents/openai.yaml +4 -0
  128. package/open-github-issue/scripts/open_github_issue.py +380 -0
  129. package/open-github-issue/tests/test_open_github_issue.py +159 -0
  130. package/open-source-pr-workflow/CHANGELOG.md +32 -0
  131. package/open-source-pr-workflow/LICENSE +21 -0
  132. package/open-source-pr-workflow/README.md +23 -0
  133. package/open-source-pr-workflow/SKILL.md +123 -0
  134. package/open-source-pr-workflow/agents/openai.yaml +4 -0
  135. package/openai-text-to-image-storyboard/.env.example +10 -0
  136. package/openai-text-to-image-storyboard/CHANGELOG.md +49 -0
  137. package/openai-text-to-image-storyboard/LICENSE +21 -0
  138. package/openai-text-to-image-storyboard/README.md +99 -0
  139. package/openai-text-to-image-storyboard/SKILL.md +107 -0
  140. package/openai-text-to-image-storyboard/agents/openai.yaml +4 -0
  141. package/openai-text-to-image-storyboard/scripts/generate_storyboard_images.py +763 -0
  142. package/package.json +36 -0
  143. package/record-spending/SKILL.md +113 -0
  144. package/record-spending/agents/openai.yaml +4 -0
  145. package/record-spending/references/account-format.md +33 -0
  146. package/record-spending/references/workbook-layout.md +84 -0
  147. package/resolve-review-comments/SKILL.md +122 -0
  148. package/resolve-review-comments/agents/openai.yaml +4 -0
  149. package/resolve-review-comments/references/adoption-criteria.md +23 -0
  150. package/resolve-review-comments/scripts/review_threads.py +425 -0
  151. package/resolve-review-comments/tests/test_review_threads.py +74 -0
  152. package/review-change-set/LICENSE +21 -0
  153. package/review-change-set/README.md +55 -0
  154. package/review-change-set/SKILL.md +103 -0
  155. package/review-change-set/agents/openai.yaml +4 -0
  156. package/review-codebases/LICENSE +21 -0
  157. package/review-codebases/README.md +67 -0
  158. package/review-codebases/SKILL.md +109 -0
  159. package/review-codebases/agents/openai.yaml +4 -0
  160. package/scripts/install_skills.ps1 +283 -0
  161. package/scripts/install_skills.sh +262 -0
  162. package/scripts/validate_openai_agent_config.py +194 -0
  163. package/scripts/validate_skill_frontmatter.py +110 -0
  164. package/specs-to-project-docs/LICENSE +21 -0
  165. package/specs-to-project-docs/README.md +57 -0
  166. package/specs-to-project-docs/SKILL.md +111 -0
  167. package/specs-to-project-docs/agents/openai.yaml +4 -0
  168. package/specs-to-project-docs/references/templates/architecture.md +29 -0
  169. package/specs-to-project-docs/references/templates/configuration.md +29 -0
  170. package/specs-to-project-docs/references/templates/developer-guide.md +33 -0
  171. package/specs-to-project-docs/references/templates/docs-index.md +39 -0
  172. package/specs-to-project-docs/references/templates/features.md +25 -0
  173. package/specs-to-project-docs/references/templates/getting-started.md +38 -0
  174. package/specs-to-project-docs/references/templates/readme.md +49 -0
  175. package/systematic-debug/LICENSE +21 -0
  176. package/systematic-debug/README.md +81 -0
  177. package/systematic-debug/SKILL.md +59 -0
  178. package/systematic-debug/agents/openai.yaml +4 -0
  179. package/text-to-short-video/.env.example +36 -0
  180. package/text-to-short-video/LICENSE +21 -0
  181. package/text-to-short-video/README.md +82 -0
  182. package/text-to-short-video/SKILL.md +221 -0
  183. package/text-to-short-video/agents/openai.yaml +4 -0
  184. package/text-to-short-video/scripts/enforce_video_aspect_ratio.py +350 -0
  185. package/version-release/CHANGELOG.md +53 -0
  186. package/version-release/LICENSE +21 -0
  187. package/version-release/README.md +28 -0
  188. package/version-release/SKILL.md +94 -0
  189. package/version-release/agents/openai.yaml +4 -0
  190. package/version-release/references/branch-naming.md +15 -0
  191. package/version-release/references/changelog-writing.md +8 -0
  192. package/version-release/references/commit-messages.md +19 -0
  193. package/version-release/references/readme-writing.md +12 -0
  194. package/version-release/references/semantic-versioning.md +12 -0
  195. package/video-production/CHANGELOG.md +104 -0
  196. package/video-production/LICENSE +18 -0
  197. package/video-production/README.md +68 -0
  198. package/video-production/SKILL.md +213 -0
  199. package/video-production/agents/openai.yaml +4 -0
  200. package/video-production/references/plan-template.md +54 -0
  201. package/video-production/references/roles-json.md +41 -0
  202. package/weekly-financial-event-report/SKILL.md +195 -0
  203. package/weekly-financial-event-report/agents/openai.yaml +4 -0
  204. package/weekly-financial-event-report/assets/financial_event_report_template.md +53 -0
package/AGENTS.md ADDED
@@ -0,0 +1,62 @@
1
+ # AGENTS Guide
2
+
3
+ ## Project Architecture
4
+
5
+ - This repository is a skill catalog: each top-level skill lives in its own directory and is installable when that directory contains `SKILL.md`.
6
+ - Typical skill layout is lightweight and consistent: `SKILL.md`, `README.md`, `LICENSE`, plus optional `agents/`, `references/`, and `scripts/`.
7
+ - The npm package exposes an `apollo-toolkit` CLI that stages a managed copy under `~/.apollo-toolkit` and links each skill folder into selected target directories.
8
+ - `scripts/install_skills.sh` and `scripts/install_skills.ps1` remain available for local/curl installs and mirror the managed-home linking behavior.
9
+
10
+ ## Core Business Flow
11
+
12
+ This repository enables users to install and run a curated set of reusable agent skills for software delivery, research, repository maintenance, and media-generation workflows.
13
+
14
+ - Users can align project documentation with the current codebase.
15
+ - Users can consolidate accumulated project specs into a standardized README and categorized project documentation set.
16
+ - Users can investigate application logs and produce evidence-backed root-cause findings.
17
+ - Users can answer repository-backed questions with additional web research when needed.
18
+ - Users can commit and push local changes without performing version or release work.
19
+ - Users can research a topic deeply and produce evidence-based deliverables.
20
+ - Users can research the latest completed market week and produce a PDF watchlist of tradeable instruments for the coming week.
21
+ - Users can turn a marked weekly finance PDF into a concise evidence-based financial event report.
22
+ - Users can install Apollo Toolkit through npm or npx and interactively choose one or more target skill directories to link.
23
+ - Users can design and implement new features through a spec-first workflow.
24
+ - Users can generate shared feature spec, task, and checklist planning artifacts for approval-gated workflows.
25
+ - Users can convert text or documents into audio files with subtitle timelines.
26
+ - Users can extend existing features in a brownfield codebase with required tests and approvals.
27
+ - Users can propose product features from an existing codebase and publish accepted proposals.
28
+ - Users can discover reproducible edge-case risks and report prioritized hardening gaps.
29
+ - Users can fix remote GitHub issues locally and submit the resulting pull requests.
30
+ - Users can run evidence-first application security audits focused on confirmed vulnerabilities.
31
+ - Users can learn new or improved skills from recent Codex conversation history.
32
+ - Users can audit and maintain the skill catalog itself, including dependency classification and shared-skill extraction decisions.
33
+ - Users can summarize mistakes into a learning error book and render it to PDF.
34
+ - Users can create or maintain `AGENTS.md` so project constraints stay aligned with the repository.
35
+ - Users can turn novel content into a loopable short-form video with generated assets.
36
+ - Users can publish structured GitHub issues or feature proposals with auth fallbacks.
37
+ - Users can prepare and open open-source pull requests from existing changes.
38
+ - Users can generate storyboard image sets from chapters, novels, articles, or scripts.
39
+ - Users can record multi-account spending and balance changes in monthly Excel ledgers with summary analytics and charts.
40
+ - Users can review the current git change set from an unbiased reviewer perspective to find abstraction opportunities and simplification candidates.
41
+ - Users can process GitHub pull request review comments and resolve addressed threads.
42
+ - Users can perform repository-wide code reviews and publish confirmed findings as GitHub issues.
43
+ - Users can add focused observability to opaque workflows through targeted logs, metrics, traces, and tests.
44
+ - Users can debug software systematically by reproducing causes, validating fixes, and testing outcomes.
45
+ - Users can generate 30-60 second short videos directly from text prompts.
46
+ - Users can prepare and publish versioned releases with changelog and tag workflows.
47
+ - Users can generate long-form videos by orchestrating storyboard, voice, and Remotion-based production steps.
48
+
49
+ ## Core Project Purpose
50
+
51
+ - Provide a curated set of reusable agent skills that can be installed into Codex/OpenClaw/Trae skill directories.
52
+ - Keep skills focused, composable, and easy to reuse across workflows.
53
+ - Prefer splitting shared capabilities into dedicated skills when multiple workflows can depend on them.
54
+
55
+ ## Code Style And Conventions
56
+
57
+ - Follow existing skill naming: kebab-case folder names and matching `name` values in `SKILL.md` frontmatter.
58
+ - Keep documentation concise, operational, and evidence-based; avoid speculative guidance.
59
+ - Reuse existing patterns from neighboring skills before introducing new structures.
60
+ - Use a standardized `## Dependencies` section in every `SKILL.md` with `Required`, `Conditional`, `Optional`, and `Fallback` bullets whenever skill-to-skill orchestration matters.
61
+ - Use a standardized `## Standards` section in every `SKILL.md` with `Evidence`, `Execution`, `Quality`, and `Output` bullets to summarize skill-specific constraints.
62
+ - Keep helper scripts small and deterministic, and update repository docs when adding or moving a top-level skill.
package/CHANGELOG.md ADDED
@@ -0,0 +1,100 @@
1
+ # Changelog
2
+
3
+ All notable changes to this repository are documented in this file.
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [v2.0.0] - 2026-03-17
8
+
9
+ ### Added
10
+ - Add the `@laitszkin/apollo-toolkit` npm package with an `apollo-toolkit` CLI entrypoint.
11
+ - Add an interactive terminal installer with Apollo Toolkit branding, multi-target selection, and managed installs under `~/.apollo-toolkit`.
12
+ - Add Node-based installer tests and a release-triggered npm Trusted Publishing workflow.
13
+
14
+ ### Changed
15
+ - Change managed installer defaults from `~/.apollo-toolkit-repo` to `~/.apollo-toolkit` for curl / iwr installs.
16
+ - Refresh installer documentation around npm, npx, and global CLI usage.
17
+
18
+ ## [v1.1.0] - 2026-03-13
19
+
20
+ ### Added
21
+ - Add `deep-research-topics` for evidence-based research deliverables.
22
+ - Add `review-codebases` for repository-wide code review and issue publication workflows.
23
+ - Add `agents/openai.yaml` metadata across top-level skills.
24
+ - Add skill metadata validation scripts and a GitHub Actions workflow for `SKILL.md` frontmatter and `agents/openai.yaml`.
25
+ - Add `harden-app-security/references/common-software-attack-catalog.md` for broader security audit coverage.
26
+
27
+ ### Changed
28
+ - Expand `harden-app-security` into a discovery-only adversarial audit workflow with broader common software attack coverage.
29
+ - Strengthen `develop-new-features`, `enhance-existing-features`, `discover-edge-cases`, and related references with clearer testing and evidence requirements.
30
+ - Refresh root and skill-level documentation to reflect the new skills, metadata requirements, and review workflow guidance.
31
+
32
+ ### Fixed
33
+ - Restore skill metadata loading behavior after the OpenAI agent metadata rollout.
34
+
35
+ ## [v1.0.0] - 2026-03-09
36
+
37
+ ### Added
38
+ - Add `align-project-documents` for codebase-driven project documentation alignment.
39
+ - Add `answering-questions-with-research` for evidence-based answers that combine repo discovery with web research.
40
+ - Add `learning-error-book` for mistake summaries with Markdown-to-PDF error book generation.
41
+ - Add `maintain-project-constraints` to keep `AGENTS.md` aligned with the repository.
42
+ - Add `open-github-issue` for deterministic GitHub issue publishing with auth fallback and README-based language detection.
43
+ - Add `resolve-review-comments` for PR review thread triage, adoption decisions, and resolution workflows.
44
+ - Add cross-platform installers in `scripts/install_skills.sh` and `scripts/install_skills.ps1`.
45
+
46
+ ### Changed
47
+ - Rename multiple skills for clearer naming, including `project-doc-aligner` -> `align-project-documents`, `agents-md-maintainer` -> `maintain-project-constraints`, `edge-case-test-fixer` -> `fix-edge-cases`, `github-issue-fix-pr-workflow` -> `fix-github-issues`, `gh-pr-review-comment-workflow` -> `resolve-review-comments`, `security-expert-hardening` -> `harden-app-security`, and `app-log-issue-analysis` -> `analyse-app-logs`.
48
+ - Split GitHub issue publication out of `analyse-app-logs` and make it depend on `open-github-issue`.
49
+ - Expand `open-github-issue` with target repository resolution, README-based language selection, and deterministic draft fallback behavior.
50
+ - Strengthen `develop-new-features`, `enhance-existing-features`, and related skills with clearer property-based testing requirements and refreshed templates.
51
+ - Move installer entrypoints into `scripts/`, add Trae install support, and improve curl/pipe repo detection.
52
+ - Refresh root and skill-level docs to reflect the renamed skills, installer flow, and dependency guidance.
53
+
54
+ ### Fixed
55
+ - Correct current documentation references to `maintain-project-constraints`.
56
+
57
+ ## [v0.6.0] - 2026-02-27
58
+
59
+ ### Added
60
+ - Add default worktree guidance to `github-issue-fix-pr-workflow` debug dependencies.
61
+
62
+ ### Changed
63
+ - Quote a multiline skill description in `systematic-debug` to keep YAML metadata valid.
64
+ - Refine `systematic-debug` auto-invoke criteria and examples for mismatched behavior debugging.
65
+ - Clarify `version-release` workflow requirements for release range review and code/documentation alignment.
66
+
67
+ ## [v0.5.0] - 2026-02-26
68
+
69
+ ### Added
70
+ - Add `commit-and-push` skill for commit+push-only submission workflows.
71
+ - Add `version-release` skill for explicit version/tag/changelog release workflows.
72
+ - Add new skill documents and references for the split submit/release workflows.
73
+
74
+ ### Changed
75
+ - Replace legacy `submit-changes` with two dedicated skills: `commit-and-push` and `version-release`.
76
+ - Translate project documentation, templates, and testing/reference guides to English across skills.
77
+ - Update multiple skill definitions to English wording for consistent skill documentation language.
78
+ - Clarify spec-first requirements in feature-planning skills, including mandatory re-approval after clarification updates.
79
+
80
+ ## [v0.4.0] - 2026-02-26
81
+
82
+ ### Added
83
+ - Add `github-issue-fix-pr-workflow` skill with issue listing, local fix flow, and PR submission guidance.
84
+ - Add `github-issue-fix-pr-workflow/scripts/list_issues.py` and related tests for deterministic issue discovery.
85
+
86
+ ### Changed
87
+ - Update `install_skills.sh` to support interactive multi-option selection, multi-mode CLI input, and `all` installation.
88
+ - Add Trae IDE support in `install_skills.sh`, with a default install target at `~/.trae/skills`.
89
+ - Update root `README.md` installer examples to include `trae` and `all` usage.
90
+ - Highlight BDD keywords in `develop-new-features` and `enhance-existing-features` spec templates using Markdown bold formatting.
91
+
92
+ ## [v0.3.0] - 2026-02-25
93
+
94
+ ### Added
95
+ - Enhance `app-log-issue-analysis` with deterministic GitHub issue publishing support.
96
+ - Add `app-log-issue-analysis/scripts/publish_log_issue.py` for issue publishing with auth fallback (`gh` login -> `GITHUB_TOKEN`/`GH_TOKEN` -> draft).
97
+ - Add remote README-based issue language selection (Chinese README -> Chinese issue body, otherwise English).
98
+
99
+ ### Changed
100
+ - Update app-log issue analysis docs, checklist, and default prompt to document the new issue publishing workflow.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 LaiTszKin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,144 @@
1
+ # Apollo Toolkit Skills
2
+
3
+ A curated skill catalog for Codex, OpenClaw, and Trae with a managed installer that keeps the toolkit in `~/.apollo-toolkit` and links each skill into the targets you choose.
4
+
5
+ ## Included skills
6
+
7
+ - align-project-documents
8
+ - analyse-app-logs
9
+ - answering-questions-with-research
10
+ - commit-and-push
11
+ - deep-research-topics
12
+ - develop-new-features
13
+ - discover-edge-cases
14
+ - docs-to-voice
15
+ - enhance-existing-features
16
+ - feature-propose
17
+ - financial-research
18
+ - fix-github-issues
19
+ - generate-spec
20
+ - harden-app-security
21
+ - improve-observability
22
+ - learn-skill-from-conversations
23
+ - learning-error-book
24
+ - maintain-project-constraints
25
+ - maintain-skill-catalog
26
+ - novel-to-short-video
27
+ - open-github-issue
28
+ - open-source-pr-workflow
29
+ - openai-text-to-image-storyboard
30
+ - record-spending
31
+ - resolve-review-comments
32
+ - review-change-set
33
+ - review-codebases
34
+ - specs-to-project-docs
35
+ - systematic-debug
36
+ - text-to-short-video
37
+ - version-release
38
+ - video-production
39
+ - weekly-financial-event-report
40
+
41
+ ## Install with npm or npx
42
+
43
+ ### Recommended
44
+
45
+ ```bash
46
+ npx @laitszkin/apollo-toolkit
47
+ ```
48
+
49
+ The interactive installer:
50
+ - shows an `Apollo Toolkit` terminal screen
51
+ - installs a managed copy into `~/.apollo-toolkit`
52
+ - lets you multi-select `codex`, `openclaw`, `trae`, or `all`
53
+ - creates symlinks from `~/.apollo-toolkit/<skill>` into each selected target
54
+
55
+ ### Global install
56
+
57
+ ```bash
58
+ npm i -g @laitszkin/apollo-toolkit
59
+ apollo-toolkit
60
+ ```
61
+
62
+ ### Non-interactive install
63
+
64
+ ```bash
65
+ npx @laitszkin/apollo-toolkit codex
66
+ npx @laitszkin/apollo-toolkit codex openclaw
67
+ npx @laitszkin/apollo-toolkit all
68
+ ```
69
+
70
+ ### Optional overrides
71
+
72
+ ```bash
73
+ APOLLO_TOOLKIT_HOME=~/custom-toolkit npx @laitszkin/apollo-toolkit codex
74
+ CODEX_SKILLS_DIR=~/custom-codex-skills npx @laitszkin/apollo-toolkit codex
75
+ OPENCLAW_HOME=~/.openclaw npx @laitszkin/apollo-toolkit openclaw
76
+ TRAE_SKILLS_DIR=~/.trae/skills npx @laitszkin/apollo-toolkit trae
77
+ ```
78
+
79
+ ## Local installer scripts
80
+
81
+ Installers still live in `scripts/` for local repository usage and curl / iwr installation:
82
+
83
+ - macOS/Linux: `scripts/install_skills.sh`
84
+ - Windows (PowerShell): `scripts/install_skills.ps1`
85
+
86
+ ### Local usage
87
+
88
+ ```bash
89
+ ./scripts/install_skills.sh
90
+ ./scripts/install_skills.sh codex
91
+ ./scripts/install_skills.sh openclaw
92
+ ./scripts/install_skills.sh trae
93
+ ./scripts/install_skills.sh all
94
+ ```
95
+
96
+ ```powershell
97
+ ./scripts/install_skills.ps1
98
+ ./scripts/install_skills.ps1 codex
99
+ ./scripts/install_skills.ps1 all
100
+ ```
101
+
102
+ ### Curl / iwr one-liners
103
+
104
+ ```bash
105
+ curl -fsSL https://raw.githubusercontent.com/LaiTszKin/apollo-toolkit/main/scripts/install_skills.sh | bash
106
+ curl -fsSL https://raw.githubusercontent.com/LaiTszKin/apollo-toolkit/main/scripts/install_skills.sh | bash -s -- codex
107
+ ```
108
+
109
+ ```powershell
110
+ irm https://raw.githubusercontent.com/LaiTszKin/apollo-toolkit/main/scripts/install_skills.ps1 | iex
111
+ ```
112
+
113
+ In curl / iwr mode, the scripts clone or update the managed toolkit copy under `~/.apollo-toolkit` by default. Override with `APOLLO_TOOLKIT_HOME` if you need a different location.
114
+
115
+ ## External dependency skills
116
+
117
+ The install commands below were checked with the Skills CLI unless otherwise noted.
118
+
119
+ | Skill name | Used by | Author / producer | Install command / note |
120
+ | --- | --- | --- | --- |
121
+ | `pdf` | `deep-research-topics`, `financial-research`, `learning-error-book`, `weekly-financial-event-report` | OpenAI (`openai/skills`) | `npx skills add openai/skills@pdf -g -y` |
122
+ | `doc` | `deep-research-topics` (optional Word output) | OpenAI (`openai/skills`) | `npx skills add openai/skills@doc -g -y` |
123
+ | `slides` | `deep-research-topics` (optional slide output) | OpenAI (`openai/skills`) | `npx skills add openai/skills@slides -g -y` |
124
+ | `spreadsheet` | `record-spending` | OpenAI (`openai/skills`) | `npx skills add openai/skills@spreadsheet -g -y` |
125
+ | `skill-creator` | `learn-skill-from-conversations` | OpenAI (`openai/skills`) | `npx skills add openai/skills@skill-creator -g -y` |
126
+ | `remotion-best-practices` | `novel-to-short-video`, `video-production` | Remotion (`remotion-dev/skills`) | `npx skills add remotion-dev/skills@remotion-best-practices -g -y` |
127
+ | `code-simplifier` | `open-source-pr-workflow` | Sentry (`getsentry/skills`) | `npx skills add getsentry/skills@code-simplifier -g -y` |
128
+
129
+ Compatibility note:
130
+
131
+ - `generate-spec` is a local skill used by `develop-new-features` and `enhance-existing-features`.
132
+ - `maintain-skill-catalog` can conditionally use `find-skills`, but its install source is not verified in this repository, so it is intentionally omitted from the table.
133
+ - `fix-github-issues` accepts `open-source-pr-workflow` or an environment alias named `open-pr-workflow`. Apollo Toolkit already vendors `open-source-pr-workflow`, so `open-pr-workflow` is not a required external dependency here.
134
+
135
+ ## Release publishing
136
+
137
+ GitHub Releases can publish the npm package automatically through npm Trusted Publishing.
138
+
139
+ Before the workflow can succeed, configure the npm package to trust this GitHub repository and the publish workflow. After that, creating a GitHub Release will trigger `.github/workflows/publish-npm.yml` and run `npm publish --provenance --access public`.
140
+
141
+ ## Notes
142
+
143
+ - This repository is intended for personal toolkit curation and experimentation.
144
+ - Skill folders are stored as regular files, not git submodules.
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: align-project-documents
3
+ description: Read and understand a software project, then generate or align project documentation with the current codebase. Use when a user asks for project docs (usage, technical architecture, debugging flow, setup, operations) or asks to verify and sync existing documentation with real implementation.
4
+ ---
5
+
6
+ # Align Project Documents
7
+
8
+ ## Dependencies
9
+
10
+ - Required: none.
11
+ - Conditional: none.
12
+ - Optional: none.
13
+ - Fallback: not applicable.
14
+
15
+ ## Standards
16
+
17
+ - Evidence: Treat source code, configuration, scripts, and tests as the source of truth.
18
+ - Execution: Discover project facts before choosing generate mode or align mode.
19
+ - Quality: Keep every non-trivial claim traceable and remove stale documentation instead of appending around it.
20
+ - Output: Write concise, operator-friendly docs with runnable commands and clear section structure.
21
+
22
+ ## Goal
23
+
24
+ Produce accurate, code-grounded project documentation. Prefer evidence from source code, configs, scripts, and tests over assumptions.
25
+
26
+ ## Workflow
27
+
28
+ ### 1) Discover project facts first
29
+
30
+ - Read key files before writing: `README*`, `package.json`/`pyproject.toml`/`go.mod`, lock files, CI configs, entrypoints, and test setup.
31
+ - Inspect main runtime paths (API/server, worker, frontend, CLI, jobs) and dependency boundaries.
32
+ - Build a factual map: startup commands, environment variables, request/data flow, major modules, external integrations, and observability points.
33
+ - Record concrete evidence with file paths for every important claim.
34
+
35
+ ### 2) Decide documentation mode
36
+
37
+ - **Generate mode**: no usable docs exist, or user asks to create docs from scratch.
38
+ - **Align mode**: existing docs exist and must be checked against implementation.
39
+
40
+ ### 3) Generate mode output
41
+
42
+ Create or update documentation with at least these sections:
43
+
44
+ 1. Project Overview
45
+ 2. Quick Start / Local Run
46
+ 3. Usage Guide (common workflows and commands)
47
+ 4. Technical Architecture (components, boundaries, data flow)
48
+ 5. Configuration and Environment Variables
49
+ 6. Debugging Playbook (symptom -> checks -> likely root cause -> fix path)
50
+ 7. Testing and Validation
51
+ 8. Deployment or Runtime Notes (if applicable)
52
+
53
+ Writing rules:
54
+
55
+ - Write what is true now, not what should be true.
56
+ - Use concrete commands and paths from the repository.
57
+ - Keep examples executable when possible.
58
+ - Call out unknowns explicitly instead of guessing.
59
+
60
+ ### 4) Align mode output
61
+
62
+ When docs already exist:
63
+
64
+ 1. Enumerate existing docs and their scope.
65
+ 2. Compare each claim against current code and scripts.
66
+ 3. Classify findings:
67
+ - **Accurate**
68
+ - **Outdated**
69
+ - **Missing**
70
+ - **Ambiguous**
71
+ 4. Update docs to match real behavior.
72
+ 5. Add a short "Documentation Delta" summary listing major corrections.
73
+
74
+ Alignment checklist:
75
+
76
+ - Startup/install commands still work.
77
+ - Directory/module names match current tree.
78
+ - API/routes/events/messages match implementation.
79
+ - Config keys and env vars match code usage.
80
+ - Debug instructions reference real logs, metrics, and breakpoints.
81
+ - Test commands and expected outputs are current.
82
+
83
+ ## Quality Gate (must pass before finishing)
84
+
85
+ - Ensure every non-trivial statement is traceable to repository evidence.
86
+ - Ensure usage and debug steps are reproducible from current code.
87
+ - Ensure architecture description reflects actual module boundaries.
88
+ - Ensure outdated statements are removed, not only appended.
89
+
90
+ ## Output Style
91
+
92
+ - Write concise, operator-friendly documentation.
93
+ - Use headings, short bullets, and runnable command snippets.
94
+ - Prefer direct language and avoid speculative wording.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Align Project Documents"
3
+ short_description: "Generate or sync project docs against the real codebase"
4
+ default_prompt: "Use $align-project-documents to inspect the repository first, ground every claim in code/config/test evidence, then generate or align project documentation covering usage, architecture, configuration, debugging, testing, and runtime notes without guessing."
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lai Tsz Kin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,126 @@
1
+ # Analyse App Logs
2
+
3
+ An agent skill for evidence-driven application log investigations.
4
+
5
+ This skill helps agents analyze logs end-to-end, correlate runtime signals with code paths, and produce actionable incident findings with confidence levels and remediation steps.
6
+
7
+ ## What this skill provides
8
+
9
+ - A structured workflow for incident investigation from scoping to remediation.
10
+ - A bias toward bounded, recent log windows so stale history does not contaminate conclusions.
11
+ - A strict evidence standard (log lines + code correlation + impact + confidence).
12
+ - A checklist to avoid false conclusions.
13
+ - A pattern catalog for common operational failures (timeouts, retry storms, auth errors, resource pressure, schema mismatch, race conditions, and dependency outages).
14
+ - GitHub issue publication via the `open-github-issue` dependency skill.
15
+ - Issue language selection delegated to `open-github-issue` based on the target repository README: Chinese README -> localized issue body, otherwise English issue body.
16
+
17
+ ## Repository structure
18
+
19
+ - `SKILL.md`: Main skill definition, principles, and output format.
20
+ - `agents/openai.yaml`: Agent interface metadata and default prompt.
21
+ - `references/investigation-checklist.md`: Investigation validation checklist.
22
+ - `references/log-signal-patterns.md`: Log signal pattern reference.
23
+ - Dependency skill: `open-github-issue` for deterministic issue publishing.
24
+
25
+ ## Installation
26
+
27
+ 1. Clone this repository.
28
+ 2. Copy this folder to your Codex skills directory:
29
+
30
+ ```bash
31
+ mkdir -p "$CODEX_HOME/skills"
32
+ cp -R analyse-app-logs "$CODEX_HOME/skills/analyse-app-logs"
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ Invoke the skill in your prompt:
38
+
39
+ ```text
40
+ Use $analyse-app-logs to inspect these logs and identify root causes.
41
+ ```
42
+
43
+ Issue publication behavior for each confirmed finding:
44
+
45
+ 1. Prepare a structured issue handoff from the confirmed log finding.
46
+ 2. Delegate publication to `$open-github-issue`.
47
+ 3. Reuse the dependency result in the final publication status section.
48
+
49
+ Each delegated issue must still include exactly three sections:
50
+
51
+ - `Problem Description`
52
+ - `Suspected Cause`
53
+ - `Reproduction Conditions (if available)`
54
+
55
+ For localized repositories, `open-github-issue` uses translated section titles with the same meaning.
56
+
57
+ Best results come from including:
58
+
59
+ - Service/component name
60
+ - Environment (prod/staging/dev)
61
+ - Incident time window (with timezone)
62
+ - If the window is unknown, a concrete runtime boundary such as the last container restart, latest deploy, worker boot, or first observed failure after a healthy period
63
+ - Correlation IDs (trace/request/job/user/tx)
64
+ - Relevant log excerpts and recent deploy/config context
65
+
66
+ When the time window is not explicitly provided, the skill should first derive a bounded analysis window from a recent concrete event, such as the last container restart, and inspect only that slice before widening the search.
67
+
68
+ ## Example
69
+
70
+ ### Input prompt
71
+
72
+ ```text
73
+ Use $analyse-app-logs to investigate this production incident.
74
+
75
+ Service: payment-api
76
+ Environment: prod
77
+ Time window: 2026-02-05 09:10 UTC to 2026-02-05 09:25 UTC
78
+
79
+ Logs:
80
+ 2026-02-05T09:11:03Z WARN request_id=ab12 retry=1 upstream request timed out endpoint=/charge
81
+ 2026-02-05T09:11:05Z WARN request_id=ab12 retry=2 upstream request timed out endpoint=/charge
82
+ 2026-02-05T09:11:07Z ERROR request_id=ab12 deadline exceeded endpoint=/charge
83
+ ```
84
+
85
+ ### Expected response shape
86
+
87
+ ```text
88
+ 1) Incident summary
89
+ - payment-api in prod shows repeated timeout escalation between 09:11:03 and 09:11:07 UTC.
90
+
91
+ 2) Confirmed issues
92
+ - Symptom: escalating retries followed by deadline exceeded on /charge.
93
+ - Log evidence: request_id=ab12 has two timeout warnings then one terminal error in 4 seconds.
94
+ - Code correlation: correlate timeout path in request handler and upstream client call site.
95
+ - Root cause analysis: likely dependency latency spike with insufficient retry backoff.
96
+ - Impact: charge attempts fail for affected requests during the window.
97
+ - Recommended remediation: add bounded exponential backoff with jitter and tighten timeout budgets.
98
+
99
+ 3) Hypotheses and required validation
100
+ - Check upstream latency metrics and connection pool saturation for the same window.
101
+
102
+ 4) Monitoring and prevention improvements
103
+ - Add alert on timeout-rate spike and include upstream host + timeout budget fields in logs.
104
+
105
+ 5) GitHub issue publication status
106
+ - Mode: gh-cli
107
+ - Created: https://github.com/<owner>/<repo>/issues/123
108
+ ```
109
+
110
+ ## Output expectations
111
+
112
+ The skill is designed to return:
113
+
114
+ 1. Incident summary (scope, timeframe, overall status)
115
+ 2. Confirmed issues ordered by severity
116
+ 3. Hypotheses (when evidence is incomplete) with required validation data
117
+ 4. Monitoring and prevention improvements
118
+ 5. GitHub issue publication status (mode, created URLs, or drafts + reason)
119
+
120
+ ## Development notes
121
+
122
+ This repository is intentionally lightweight and focused on reusable investigation guidance.
123
+
124
+ ## License
125
+
126
+ MIT. See `LICENSE`.