@laitszkin/apollo-toolkit 3.1.7 → 3.1.8
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 +5 -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/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/iterative-code-quality/README.md +1 -0
- package/iterative-code-quality/SKILL.md +5 -4
- package/iterative-code-quality/agents/openai.yaml +1 -1
- package/iterative-code-quality/references/iteration-gates.md +3 -0
- package/iterative-code-quality/references/job-selection.md +2 -0
- package/iterative-code-quality/references/module-coverage.md +18 -5
- package/iterative-code-quality/references/repository-scan.md +3 -1
- package/katex/scripts/__pycache__/render_katex.cpython-312.pyc +0 -0
- 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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ All notable changes to this repository are documented in this file.
|
|
|
7
7
|
### Changed
|
|
8
8
|
- None yet.
|
|
9
9
|
|
|
10
|
+
## [v3.1.8] - 2026-04-23
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Refine `iterative-code-quality` so module deep reads must scan each module through the available job lenses before choosing which refactors land, preventing scan phases from degrading into generic reading or low-value micro-fixes.
|
|
14
|
+
|
|
10
15
|
## [v3.1.7] - 2026-04-23
|
|
11
16
|
|
|
12
17
|
### Changed
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -8,6 +8,7 @@ Improve an existing repository through a strict three-step loop of full-codebase
|
|
|
8
8
|
- Uses a strict three-step loop: scan the codebase, choose this round's jobs and refactor, then update docs/constraints only when no actionable gap remains.
|
|
9
9
|
- Keeps job execution guidance in focused reference documents instead of embedding every job as a workflow step in the main skill.
|
|
10
10
|
- Builds a module inventory and coverage ledger so every in-scope module receives a deep-read iteration before completion.
|
|
11
|
+
- Defines deep-read as a job-oriented scan across naming, simplification, module boundaries, logging, testing, and staged unlock opportunities instead of generic reading.
|
|
11
12
|
- Starts from the easiest useful modules first, while preserving the rule that unvisited modules cannot be skipped before completion.
|
|
12
13
|
- Clarifies ambiguous variable, parameter, field, helper, and test-data names.
|
|
13
14
|
- Simplifies complex functions and extracts reusable helpers only when they centralize real behavior.
|
|
@@ -24,7 +24,7 @@ description: >-
|
|
|
24
24
|
## Standards
|
|
25
25
|
|
|
26
26
|
- Evidence: Read repository docs, project constraints, source, tests, logs, build scripts, entrypoints, and nearby abstractions before editing; every refactor and every new test must be justified by code context.
|
|
27
|
-
- Execution: Run a continuous three-step loop of full-codebase scan → choose this round's jobs and refactor → if and only if the latest full-codebase scan is clear, update docs and constraints; otherwise return to scanning immediately. Maintain a module inventory and coverage ledger so every in-scope module receives a deep-read iteration before completion. Do not treat jobs as workflow steps. Do not produce a completion report while any known in-scope actionable issue or unvisited in-scope module remains.
|
|
27
|
+
- Execution: Run a continuous three-step loop of full-codebase scan → choose this round's jobs and refactor → if and only if the latest full-codebase scan is clear, update docs and constraints; otherwise return to scanning immediately. Maintain a module inventory and coverage ledger so every in-scope module receives a job-oriented deep-read iteration before completion. Do not treat jobs as workflow steps. Do not produce a completion report while any known in-scope actionable issue or unvisited in-scope module remains.
|
|
28
28
|
- Quality: Resolve as many inherited quality problems as safely possible without changing intended behavior or the system's macro architecture. Do not require pre-existing tests before every safe refactor; if an area is high-risk and weakly guarded, add the missing guardrails as part of the work instead of treating the area as untouchable.
|
|
29
29
|
- Output: Return iteration-by-iteration decisions, selected jobs, module coverage status, changed files, behavior-preservation evidence, tests and guardrails added, validation results, and docs/constraint sync status only after the latest scan shows no remaining known actionable in-scope issue and no unvisited in-scope module.
|
|
30
30
|
|
|
@@ -42,14 +42,15 @@ For this skill, `macro architecture` means the system's top-level runtime shape
|
|
|
42
42
|
- Map runtime entrypoints, domain modules, external integrations, logging utilities, and current test surfaces.
|
|
43
43
|
- Exclude generated, vendored, lock, build-output, fixture, or snapshot files unless evidence shows they are human-maintained source.
|
|
44
44
|
- Build or refresh a concrete repository-wide backlog of known actionable quality issues.
|
|
45
|
-
- Build or refresh a module inventory and coverage ledger; every in-scope module starts as unvisited until it has received a deep-read iteration with callers, callees, tests, logs,
|
|
45
|
+
- Build or refresh a module inventory and coverage ledger; every in-scope module starts as unvisited until it has received a job-oriented deep-read iteration with callers, callees, tests, logs, relevant contracts, and each available job lens inspected.
|
|
46
46
|
- Re-scan the full codebase after every landed iteration, not only the files just changed.
|
|
47
47
|
- Load `references/repository-scan.md` for the scan checklist and backlog shaping rules.
|
|
48
|
-
- Load `references/module-coverage.md` for module inventory, deep-read coverage, easy-first ordering, and completion rules.
|
|
48
|
+
- Load `references/module-coverage.md` for module inventory, job-oriented deep-read coverage, easy-first ordering, and completion rules.
|
|
49
49
|
|
|
50
50
|
### 2) Choose this round's jobs and refactor
|
|
51
51
|
|
|
52
52
|
- Choose jobs only after the latest full-codebase scan. Jobs are optional execution directions, not ordered workflow steps.
|
|
53
|
+
- Treat module scanning and job choice as one linked activity: inspect the selected module through every available job lens before deciding which jobs actually land in this round.
|
|
53
54
|
- Select the smallest set of jobs that can safely improve the currently selected module or module cluster under current guardrails.
|
|
54
55
|
- Prefer easy-first module ordering: start from low-risk, high-confidence modules when doing so builds context, tests, naming clarity, or seams that make harder modules safer later.
|
|
55
56
|
- Do not keep revisiting familiar modules while other in-scope modules remain unvisited unless the familiar module blocks the next unvisited module's safe deep read.
|
|
@@ -63,7 +64,7 @@ For this skill, `macro architecture` means the system's top-level runtime shape
|
|
|
63
64
|
|
|
64
65
|
Load references for this step only as needed:
|
|
65
66
|
|
|
66
|
-
- `references/module-coverage.md` for choosing the next module and proving every in-scope module has been deeply read.
|
|
67
|
+
- `references/module-coverage.md` for choosing the next module and proving every in-scope module has been deeply read through the available-job lenses.
|
|
67
68
|
- `references/job-selection.md` for next-job choice conditions and tie-breakers.
|
|
68
69
|
- `references/naming-and-simplification.md` for naming cleanup and function simplification/extraction.
|
|
69
70
|
- `references/module-boundaries.md` for single-responsibility module cleanup.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "Iterative Code Quality"
|
|
3
3
|
short_description: "Refactor names, functions, modules, logs, and tests in repeated behavior-safe passes"
|
|
4
|
-
default_prompt: "Use $iterative-code-quality as a strict three-step loop. Step 1: scan the full repository, refresh the actionable quality backlog, and maintain a module inventory plus coverage ledger. Step 2: choose this round's module or bounded module cluster,
|
|
4
|
+
default_prompt: "Use $iterative-code-quality as a strict three-step loop. Step 1: scan the full repository, refresh the actionable quality backlog, and maintain a module inventory plus coverage ledger. Step 2: choose this round's module or bounded module cluster, scan it through every available job lens, and only then decide which jobs actually land now; start from the easiest useful unvisited modules, jobs are selectable directions rather than workflow steps, and if a high-risk area is weakly guarded add the missing tests or other guardrails instead of stopping. If a file is too coupled or too central for direct cleanup, switch to staged unlock work and keep progressing. After validation, run a full-codebase stage-gate; if any known in-scope actionable issue remains or any in-scope module has not received a job-oriented deep-read iteration, go back to Step 1 immediately. Step 3: only when the latest full-codebase scan is clear and every in-scope module is deeply read through the available-job lenses, run $align-project-documents and $maintain-project-constraints to synchronize docs and AGENTS.md. Preserve intended business behavior and the system's macro architecture, keep the guarded test surface green, and do not write a completion report while actionable gaps or unvisited modules still exist."
|
|
@@ -6,6 +6,7 @@ Each iteration must have:
|
|
|
6
6
|
|
|
7
7
|
- a selected module or bounded module cluster,
|
|
8
8
|
- a concrete quality target,
|
|
9
|
+
- an explicit record of which job lenses were checked during the deep read,
|
|
9
10
|
- a bounded file/symbol scope,
|
|
10
11
|
- one or more selected execution directions,
|
|
11
12
|
- expected behavior-neutral outcome,
|
|
@@ -43,6 +44,7 @@ The final stopping condition also requires the relevant guarded test surface to
|
|
|
43
44
|
Inspect the full known quality backlog for:
|
|
44
45
|
|
|
45
46
|
- modules that are still unvisited or only shallowly read,
|
|
47
|
+
- modules that were read but not yet checked against every available job lens,
|
|
46
48
|
- new naming drift from moved or extracted concepts,
|
|
47
49
|
- duplicated logic that remains after extraction,
|
|
48
50
|
- module boundaries that are still mixed,
|
|
@@ -110,6 +112,7 @@ The final report should make the stopping point auditable:
|
|
|
110
112
|
- passes completed,
|
|
111
113
|
- execution directions selected per iteration,
|
|
112
114
|
- module or module cluster covered per iteration,
|
|
115
|
+
- job lenses checked per iteration,
|
|
113
116
|
- final module coverage ledger,
|
|
114
117
|
- stage-gate verdict after each full-codebase re-scan,
|
|
115
118
|
- validation commands and outcomes,
|
|
@@ -8,6 +8,8 @@ These are job-selection rules for Step 2 of the main skill loop. They are not wo
|
|
|
8
8
|
|
|
9
9
|
The goal is not to force one permanent order. The goal is to choose the next job that most safely improves the selected module or module cluster and unlocks later work.
|
|
10
10
|
|
|
11
|
+
Before choosing, the agent should first scan the selected module through every available job lens. Job selection happens after that scan; it is not a substitute for that scan.
|
|
12
|
+
|
|
11
13
|
## Available jobs
|
|
12
14
|
|
|
13
15
|
- naming cleanup
|
|
@@ -6,6 +6,8 @@ Prevent the agent from repeatedly improving only familiar or easy files while un
|
|
|
6
6
|
|
|
7
7
|
Use this reference in Step 1 to build the module inventory and in Step 2 to choose which module or module cluster receives the next deep-read iteration.
|
|
8
8
|
|
|
9
|
+
Deep-read here does not mean generic reading. It means scanning the module through each available job lens so the agent can identify whether naming cleanup, simplification, module-boundary cleanup, logging alignment, test addition, or staged unlock work is justified.
|
|
10
|
+
|
|
9
11
|
## Module inventory
|
|
10
12
|
|
|
11
13
|
List every meaningful in-scope module before completion. A module may be:
|
|
@@ -33,7 +35,7 @@ Exclude generated, vendored, lock, build-output, snapshot, fixture-only, or expl
|
|
|
33
35
|
Use simple statuses so stopping conditions are auditable:
|
|
34
36
|
|
|
35
37
|
- `unvisited`: inventoried but not deeply read yet.
|
|
36
|
-
- `deep-read`: callers, callees, tests, logs, contracts,
|
|
38
|
+
- `deep-read`: callers, callees, tests, logs, contracts, core files, and all available job lenses were inspected with enough context to judge quality.
|
|
37
39
|
- `refactored`: at least one behavior-neutral improvement landed for this module.
|
|
38
40
|
- `validated-clear`: deep read found no actionable in-scope quality issue worth changing now.
|
|
39
41
|
- `deferred`: an issue exists but is blocked, unsafe, speculative, approval-dependent, or requires macro-architecture/product scope.
|
|
@@ -68,7 +70,17 @@ A module iteration is not deep-read until the agent inspects:
|
|
|
68
70
|
- configuration, persistence, and external-service contracts when relevant,
|
|
69
71
|
- known TODOs, comments, or docs that describe current behavior.
|
|
70
72
|
|
|
73
|
+
It also must inspect the module through each available job lens:
|
|
74
|
+
|
|
75
|
+
- `naming cleanup`: are names hiding ownership, units, state, lifecycle, or intent?
|
|
76
|
+
- `function simplification / extraction`: are there duplicated flows, hard-coded orchestration paths, or overly mixed functions?
|
|
77
|
+
- `module-boundary cleanup`: are responsibilities mixed in ways that can be split safely?
|
|
78
|
+
- `logging alignment`: are logs stale, misleading, or missing at important branch/outcome points?
|
|
79
|
+
- `test addition`: are important behaviors, edges, or invariants weakly guarded?
|
|
80
|
+
- `staged unlock work`: if the module is too coupled for direct cleanup, what is the next smaller unlock step?
|
|
81
|
+
|
|
71
82
|
Do not mark a module `validated-clear` from a shallow file skim.
|
|
83
|
+
Do not mark a module `validated-clear` until every available job lens has been checked and classified as one of: actionable now, unlock-first, deferred, excluded, or no meaningful issue found.
|
|
72
84
|
|
|
73
85
|
## Choosing the next module
|
|
74
86
|
|
|
@@ -77,9 +89,10 @@ After every iteration:
|
|
|
77
89
|
1. Re-scan the module ledger.
|
|
78
90
|
2. Prefer an `unvisited` module unless a just-touched module must be stabilized before moving on.
|
|
79
91
|
3. Choose the easiest useful `unvisited` module that can be deeply read and improved or validated now.
|
|
80
|
-
4.
|
|
81
|
-
5. If the next unvisited module is
|
|
82
|
-
6.
|
|
92
|
+
4. Scan that module through every available job lens before deciding what "this round" means.
|
|
93
|
+
5. If the next unvisited module is high-risk and under-guarded, choose guardrail-building jobs first.
|
|
94
|
+
6. If the next unvisited module is too coupled for direct cleanup, choose staged unlock work rather than skipping it.
|
|
95
|
+
7. Return to the full-codebase scan after validation and update the ledger.
|
|
83
96
|
|
|
84
97
|
Revisiting a familiar module is valid only when:
|
|
85
98
|
|
|
@@ -104,7 +117,7 @@ Keep clusters bounded. Do not use clustering to claim full-repository coverage w
|
|
|
104
117
|
At the end of each iteration, answer:
|
|
105
118
|
|
|
106
119
|
- Which module or module cluster was deeply read?
|
|
107
|
-
- Which jobs were selected and why?
|
|
120
|
+
- Which job lenses were checked, and which jobs were selected and why?
|
|
108
121
|
- What quality issue was fixed, or why is the module validated-clear?
|
|
109
122
|
- Which guardrails prove behavior was preserved?
|
|
110
123
|
- Which modules remain `unvisited`?
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
-
Build a factual map before changing code, then choose the highest-value quality improvements while tracking module-by-module deep-read coverage.
|
|
5
|
+
Build a factual map before changing code, then choose the highest-value quality improvements while tracking module-by-module job-oriented deep-read coverage.
|
|
6
6
|
|
|
7
7
|
## Required scan
|
|
8
8
|
|
|
@@ -10,6 +10,7 @@ Build a factual map before changing code, then choose the highest-value quality
|
|
|
10
10
|
- List entrypoints: CLI commands, servers, workers, jobs, frontend routes, scripts, libraries, or public packages.
|
|
11
11
|
- Identify core domain modules, external integrations, persistence boundaries, logging utilities, and test helpers.
|
|
12
12
|
- Create a module inventory and coverage ledger using `references/module-coverage.md`.
|
|
13
|
+
- For each module, scan through the available job lenses instead of treating scan as generic code reading.
|
|
13
14
|
- Inspect current git state before editing so unrelated user changes are not overwritten.
|
|
14
15
|
- Identify generated, vendored, lock, snapshot, build-output, and fixture files; exclude them from refactoring unless they are human-maintained source.
|
|
15
16
|
|
|
@@ -31,6 +32,7 @@ For each candidate record:
|
|
|
31
32
|
|
|
32
33
|
- file path and symbol name,
|
|
33
34
|
- owning module or module cluster,
|
|
35
|
+
- job lens that exposed the issue,
|
|
34
36
|
- observed quality problem,
|
|
35
37
|
- why it matters to maintainability or correctness confidence,
|
|
36
38
|
- expected behavior-neutral change,
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|