@laitszkin/apollo-toolkit 3.8.2 → 3.8.3
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.
- package/CHANGELOG.md +7 -0
- package/align-project-documents/SKILL.md +136 -130
- package/align-project-documents/agents/openai.yaml +2 -2
- package/align-project-documents/references/templates/standardized-docs-template.md +119 -0
- package/analyse-app-logs/scripts/__pycache__/filter_logs_by_time.cpython-312.pyc +0 -0
- package/analyse-app-logs/scripts/__pycache__/log_cli_utils.cpython-312.pyc +0 -0
- package/analyse-app-logs/scripts/__pycache__/search_logs.cpython-312.pyc +0 -0
- package/archive-specs/README.md +12 -25
- package/archive-specs/SKILL.md +24 -47
- package/archive-specs/agents/openai.yaml +2 -2
- package/archive-specs/references/templates/architecture.md +13 -21
- package/archive-specs/references/templates/docs-index.md +24 -24
- package/archive-specs/references/templates/features.md +18 -18
- package/archive-specs/references/templates/principles.md +28 -0
- package/archive-specs/references/templates/readme.md +4 -13
- package/docs-to-voice/scripts/__pycache__/docs_to_voice.cpython-312.pyc +0 -0
- package/generate-spec/scripts/__pycache__/create-specscpython-312.pyc +0 -0
- package/katex/scripts/__pycache__/render_katex.cpython-312.pyc +0 -0
- package/maintain-project-constraints/SKILL.md +90 -88
- package/maintain-project-constraints/agents/openai.yaml +2 -2
- package/open-github-issue/scripts/__pycache__/open_github_issue.cpython-312.pyc +0 -0
- package/package.json +1 -1
- package/read-github-issue/scripts/__pycache__/find_issues.cpython-312.pyc +0 -0
- package/read-github-issue/scripts/__pycache__/read_issue.cpython-312.pyc +0 -0
- package/resolve-review-comments/scripts/__pycache__/review_threads.cpython-312.pyc +0 -0
- package/text-to-short-video/scripts/__pycache__/enforce_video_aspect_ratio.cpython-312.pyc +0 -0
- package/align-project-documents/references/templates/category-based-project-docs-template.md +0 -170
- package/archive-specs/references/templates/configuration.md +0 -29
- package/archive-specs/references/templates/developer-guide.md +0 -33
- package/archive-specs/references/templates/getting-started.md +0 -38
package/align-project-documents/references/templates/category-based-project-docs-template.md
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
# Category-Based Project Documentation Template
|
|
2
|
-
|
|
3
|
-
Use this template as a selection guide, not a mandatory outline. Start by classifying the repository's real content and the readers' likely questions, then choose only the document categories and section blocks that are actually supported by evidence.
|
|
4
|
-
|
|
5
|
-
Base the classification on common open source documentation practice:
|
|
6
|
-
|
|
7
|
-
- Use the Diataxis content families when deciding what kind of content you are writing: tutorial, how-to, reference, and explanation.
|
|
8
|
-
- Use common open source repository documents when deciding where the content should live: `README`, `CONTRIBUTING`, `SECURITY`, `CODE_OF_CONDUCT`, troubleshooting guides, glossary, and release notes when applicable.
|
|
9
|
-
- Use The Good Docs Project templates as a practical guide for selecting content types that teams repeatedly need in real projects.
|
|
10
|
-
|
|
11
|
-
## 1. Start With Reader And Content Classification
|
|
12
|
-
|
|
13
|
-
Before writing, identify:
|
|
14
|
-
|
|
15
|
-
| Classification | Questions to answer | Example answers |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| Primary readers | Who needs this document first? | New developer, operator, support teammate, PM, founder |
|
|
18
|
-
| Reader background | What might they not know yet? | No repo context, no local setup experience, no domain knowledge |
|
|
19
|
-
| Main job to be done | What is the reader trying to accomplish? | Run locally, change a feature, deploy, debug an incident |
|
|
20
|
-
| Evidence sources | Which files prove the behavior? | `README.md`, `package.json`, `src/server.ts`, `.github/workflows/deploy.yml` |
|
|
21
|
-
| Documentation risk | What would go wrong if this is undocumented? | Broken onboarding, misconfigured secrets, incorrect production operation |
|
|
22
|
-
|
|
23
|
-
Write the document around the real questions above. Do not force a category or section when the repository does not support it.
|
|
24
|
-
|
|
25
|
-
## 2. Choose The Right Document Categories
|
|
26
|
-
|
|
27
|
-
Select one or more categories below. Keep the titles content-led and specific. Prefer titles such as `本地啟動後端服務`, `設定 Stripe 測試金鑰`, or `訂單同步失敗時如何排查`, instead of generic headings that hide the real task.
|
|
28
|
-
|
|
29
|
-
| Open source documentation type | Diataxis family | Use when the repository contains... | Main reader need | Suggested output path |
|
|
30
|
-
| --- | --- | --- | --- |
|
|
31
|
-
| README / docs index | Mixed entrypoint | Clear project purpose, user value, repo scope, key links | "What is this project and where do I start?" | `README.md`, `docs/README.md` |
|
|
32
|
-
| Tutorial / getting started | Tutorial | A first-run path that teaches by doing | "Help me complete my first successful run." | `docs/getting-started.md`, `docs/tutorials/*.md` |
|
|
33
|
-
| How-to / runbook / operations guide | How-to | Repeated workflows, CLI commands, dashboards, jobs, support actions | "How do I perform this real task?" | `docs/how-to/*.md`, `docs/runbooks/*.md`, `docs/operations.md` |
|
|
34
|
-
| Reference / configuration catalog | Reference | Env vars, config files, commands, endpoints, state tables, limits | "What options, inputs, or values exist?" | `docs/configuration.md`, `docs/reference/*.md` |
|
|
35
|
-
| Explanation / architecture / concepts | Explanation | Module boundaries, data flow, ownership, state transitions, tradeoffs | "How is this built and why is it shaped this way?" | `docs/architecture.md`, `docs/concepts/*.md` |
|
|
36
|
-
| Troubleshooting | How-to + reference | Known symptoms, causes, checks, recovery actions | "What should I check when it breaks?" | `docs/troubleshooting.md`, `docs/runbooks/*.md` |
|
|
37
|
-
| CONTRIBUTING | How-to + explanation | Contribution flow, local validation, review expectations | "How do I contribute safely?" | `CONTRIBUTING.md`, `docs/developer-guide.md` |
|
|
38
|
-
| SECURITY | How-to + reference | Vulnerability reporting process, supported versions, security boundaries | "How should I report a security issue?" | `SECURITY.md` |
|
|
39
|
-
| CODE_OF_CONDUCT | Community governance | Community expectations and reporting path | "How does this project expect people to behave?" | `CODE_OF_CONDUCT.md` |
|
|
40
|
-
| Glossary / terminology | Reference | Business rules, lifecycle states, project vocabulary, permissions | "What do these terms mean?" | `docs/glossary.md`, `docs/terminology.md` |
|
|
41
|
-
| FAQ / decisions / release notes | Explanation + reference | Repeated questions, key tradeoffs, notable changes | "Why was this choice made?" / "What changed?" | `docs/faq.md`, `docs/decisions/*.md`, `CHANGELOG.md` |
|
|
42
|
-
|
|
43
|
-
### Selection Rules
|
|
44
|
-
|
|
45
|
-
- Start by asking which Diataxis family the content belongs to.
|
|
46
|
-
- Then choose the most conventional open source document type that readers would expect to find.
|
|
47
|
-
- Do not merge tutorial, how-to, reference, and explanation into one page unless the repository is genuinely small enough that separation would hurt readability.
|
|
48
|
-
- Keep community-governance documents such as `CONTRIBUTING`, `SECURITY`, and `CODE_OF_CONDUCT` separate from product usage docs.
|
|
49
|
-
- When a document mixes content types, decide which type is primary and move the rest behind links.
|
|
50
|
-
|
|
51
|
-
## 3. Section Blocks You Can Reuse Inside Any Document
|
|
52
|
-
|
|
53
|
-
Use only the blocks that help the target reader. Rename each heading to match the specific content.
|
|
54
|
-
|
|
55
|
-
### A. Reader Context Block
|
|
56
|
-
|
|
57
|
-
Use when the reader may not understand the project or task yet.
|
|
58
|
-
|
|
59
|
-
- Who should read this:
|
|
60
|
-
- What they are probably trying to do:
|
|
61
|
-
- What they need to know first:
|
|
62
|
-
- What success looks like after reading:
|
|
63
|
-
|
|
64
|
-
### B. Before You Start Block
|
|
65
|
-
|
|
66
|
-
Use for setup, operations, deployments, or debugging.
|
|
67
|
-
|
|
68
|
-
- Required tools or accounts:
|
|
69
|
-
- Required permissions or credentials:
|
|
70
|
-
- Files, services, or environments involved:
|
|
71
|
-
- Safe test or sandbox alternatives:
|
|
72
|
-
|
|
73
|
-
### C. Exact Steps Block
|
|
74
|
-
|
|
75
|
-
Use for any task-oriented content.
|
|
76
|
-
|
|
77
|
-
1. State the action in plain language.
|
|
78
|
-
2. Give the exact command, UI path, or file path.
|
|
79
|
-
3. Explain what result should appear.
|
|
80
|
-
4. Explain what to do if the result does not appear.
|
|
81
|
-
|
|
82
|
-
### D. Expected Signals Block
|
|
83
|
-
|
|
84
|
-
Use when readers need to confirm they are on the right path.
|
|
85
|
-
|
|
86
|
-
- Success logs, UI states, API responses, artifacts, or screenshots:
|
|
87
|
-
- Expected side effects:
|
|
88
|
-
- How long the step usually takes:
|
|
89
|
-
|
|
90
|
-
### E. Failure And Recovery Block
|
|
91
|
-
|
|
92
|
-
Use when the workflow can fail or confuse newcomers.
|
|
93
|
-
|
|
94
|
-
- Common mistake:
|
|
95
|
-
- Symptom:
|
|
96
|
-
- Likely cause:
|
|
97
|
-
- How to verify:
|
|
98
|
-
- How to fix:
|
|
99
|
-
|
|
100
|
-
### F. Code Navigation Block
|
|
101
|
-
|
|
102
|
-
Use for architecture or developer-facing docs.
|
|
103
|
-
|
|
104
|
-
- Entry point:
|
|
105
|
-
- Main modules and responsibilities:
|
|
106
|
-
- Important data models:
|
|
107
|
-
- External integration touchpoints:
|
|
108
|
-
- Highest-risk files to review before editing:
|
|
109
|
-
|
|
110
|
-
### G. Decision And Limitation Block
|
|
111
|
-
|
|
112
|
-
Use when the code or operations include tradeoffs.
|
|
113
|
-
|
|
114
|
-
- Current limitation:
|
|
115
|
-
- Why it exists:
|
|
116
|
-
- When it matters:
|
|
117
|
-
- Safe workaround:
|
|
118
|
-
- Evidence:
|
|
119
|
-
|
|
120
|
-
## 4. Newcomer-Friendly Writing Rules
|
|
121
|
-
|
|
122
|
-
Every non-trivial document should help a reader who does not yet know the project. Prefer explaining:
|
|
123
|
-
|
|
124
|
-
- what this part of the system is for
|
|
125
|
-
- why the reader would need it
|
|
126
|
-
- what they must prepare beforehand
|
|
127
|
-
- what exact action they should take
|
|
128
|
-
- what result they should expect
|
|
129
|
-
- what usually goes wrong
|
|
130
|
-
- where in the repository the truth lives
|
|
131
|
-
|
|
132
|
-
Avoid:
|
|
133
|
-
|
|
134
|
-
- headings that only repeat template words without conveying meaning
|
|
135
|
-
- assuming the reader already knows internal jargon
|
|
136
|
-
- mentioning files, services, or commands without saying why they matter
|
|
137
|
-
- mixing future plans with current behavior
|
|
138
|
-
|
|
139
|
-
## 5. Evidence Checklist
|
|
140
|
-
|
|
141
|
-
Before finishing, confirm:
|
|
142
|
-
|
|
143
|
-
- every important instruction maps to code, config, scripts, tests, or current deployment files
|
|
144
|
-
- every command is current and runnable, or explicitly marked as needing manual confirmation
|
|
145
|
-
- each document category exists because the repository actually needs it
|
|
146
|
-
- each heading is descriptive of the real content, not just copied from a template
|
|
147
|
-
- unknowns are labeled clearly instead of guessed
|
|
148
|
-
|
|
149
|
-
## 6. Example Of Category Selection
|
|
150
|
-
|
|
151
|
-
Example classification:
|
|
152
|
-
|
|
153
|
-
- Readers: new developer and part-time operator
|
|
154
|
-
- Main needs: local startup, environment configuration, order sync debugging
|
|
155
|
-
- Repository evidence: API server, worker process, queue config, deploy workflow, sync failure logs
|
|
156
|
-
|
|
157
|
-
Reasonable outputs:
|
|
158
|
-
|
|
159
|
-
- `README.md`: project overview and links
|
|
160
|
-
- `docs/getting-started.md`: tutorial-style first successful run
|
|
161
|
-
- `docs/configuration.md`: reference-style env vars and third-party credentials
|
|
162
|
-
- `docs/architecture.md`: explanation of API, worker, queue, and database boundaries
|
|
163
|
-
- `docs/runbooks/order-sync-failures.md`: how-to troubleshooting for order sync issues
|
|
164
|
-
- `CONTRIBUTING.md`: contribution flow, local checks, and review expectations if external contributors are expected
|
|
165
|
-
|
|
166
|
-
Not needed unless evidence supports them:
|
|
167
|
-
|
|
168
|
-
- `docs/glossary.md`
|
|
169
|
-
- `docs/faq.md`
|
|
170
|
-
- separate feature catalog for every route/page
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Configuration
|
|
2
|
-
|
|
3
|
-
## 1. Environment Variables And Config Files
|
|
4
|
-
|
|
5
|
-
| Key / File | Required | Purpose | Example / Default | Evidence |
|
|
6
|
-
| --- | --- | --- | --- | --- |
|
|
7
|
-
| `[ENV_KEY]` | `[Yes/No]` | [What it controls] | [Example or default] | [File path] |
|
|
8
|
-
| `[config/file]` | `[Yes/No]` | [Why it matters] | [Example or default] | [File path] |
|
|
9
|
-
|
|
10
|
-
## 2. External Services And Credential Setup
|
|
11
|
-
|
|
12
|
-
### [Service Name]
|
|
13
|
-
|
|
14
|
-
- Purpose: [Why this service exists in the project]
|
|
15
|
-
- Required keys/config: `[ENV_KEY]`, `[CONFIG_KEY]`
|
|
16
|
-
- Official setup entry: [Link or exact console path if known]
|
|
17
|
-
- Acquisition steps:
|
|
18
|
-
1. [Create or open the relevant account/project]
|
|
19
|
-
2. [Generate/find the credential]
|
|
20
|
-
3. [Store it in the local/deployment config]
|
|
21
|
-
4. [Verify connectivity]
|
|
22
|
-
- Development notes: [sandbox/test mode, rate limit, fake data, or `Unknown`]
|
|
23
|
-
- Evidence: [file path or spec path]
|
|
24
|
-
|
|
25
|
-
## 3. Safety Notes
|
|
26
|
-
|
|
27
|
-
- Secret handling: [where secrets should live]
|
|
28
|
-
- Local overrides: [env file / config layering / secret manager]
|
|
29
|
-
- Common misconfiguration symptoms: [brief list]
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Developer Guide
|
|
2
|
-
|
|
3
|
-
## 1. Domain Concepts To Know
|
|
4
|
-
|
|
5
|
-
- [Business rule, glossary term, permission model, lifecycle concept]
|
|
6
|
-
- [Business rule, glossary term, permission model, lifecycle concept]
|
|
7
|
-
|
|
8
|
-
## 2. Change Hotspots
|
|
9
|
-
|
|
10
|
-
- Critical modules: [paths or module names]
|
|
11
|
-
- External dependency touchpoints: [APIs/services/jobs]
|
|
12
|
-
- Data integrity or migration risks: [if any]
|
|
13
|
-
- Concurrency / idempotency concerns: [if any]
|
|
14
|
-
|
|
15
|
-
## 3. Testing Expectations
|
|
16
|
-
|
|
17
|
-
- Required test layers: [unit / integration / E2E / property-based]
|
|
18
|
-
- Mock/fake expectations: [where external dependencies should be isolated]
|
|
19
|
-
- High-value regression areas: [bug-prone workflows]
|
|
20
|
-
|
|
21
|
-
## 4. Debugging Entry Points
|
|
22
|
-
|
|
23
|
-
- Logs: [paths / commands / tools]
|
|
24
|
-
- Local reproduction commands: [commands]
|
|
25
|
-
- Dashboards or observability tools: [if any]
|
|
26
|
-
- Common failure signals: [errors / symptoms]
|
|
27
|
-
|
|
28
|
-
## 5. Documentation Maintenance Notes
|
|
29
|
-
|
|
30
|
-
- Specs reviewed: [list of spec directories/files]
|
|
31
|
-
- Existing docs updated: [paths]
|
|
32
|
-
- Major conflicts resolved: [spec vs code decisions]
|
|
33
|
-
- Remaining unknowns: [list or `None`]
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Getting Started
|
|
2
|
-
|
|
3
|
-
## 1. Purpose
|
|
4
|
-
|
|
5
|
-
- Project purpose: [What the project exists to do]
|
|
6
|
-
- Primary users: [Who uses it]
|
|
7
|
-
- Supported environments: [local / staging / production / other]
|
|
8
|
-
|
|
9
|
-
## 2. Prerequisites
|
|
10
|
-
|
|
11
|
-
- Runtime/tooling: [Node/Python/Docker/etc.]
|
|
12
|
-
- Accounts/services needed: [if any]
|
|
13
|
-
- Local dependencies: [database, queue, browser, etc.]
|
|
14
|
-
|
|
15
|
-
## 3. Installation
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
[Clone / install / bootstrap commands]
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## 4. Local Run
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
[Run or dev server commands]
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## 5. Deployment
|
|
28
|
-
|
|
29
|
-
- Deployment targets: [where it deploys]
|
|
30
|
-
- Deployment command or pipeline: [command / CI job / script]
|
|
31
|
-
- Required pre-deploy checks: [tests, migrations, approvals]
|
|
32
|
-
- Rollback notes: [how rollback works or `Unknown`]
|
|
33
|
-
|
|
34
|
-
## 6. Verification
|
|
35
|
-
|
|
36
|
-
- Smoke checks: [command / URL / workflow]
|
|
37
|
-
- Expected signals: [log, page, API response, artifact]
|
|
38
|
-
- Evidence: [file path or command path]
|