@reicek/neataptic-ts 0.1.26 → 0.1.28
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/.github/agents/boundary-mapper.agent.md +13 -8
- package/.github/agents/docs-scout.agent.md +14 -9
- package/.github/agents/plan-scout.agent.md +11 -6
- package/.github/agents/solid-split.agent.md +33 -17
- package/.github/copilot-instructions.md +100 -88
- package/.github/skills/educational-docs/SKILL.md +90 -40
- package/.github/skills/educational-docs/assets/mermaid-diagram-playbook.md +141 -141
- package/.github/skills/educational-docs/assets/visual-style-guide.md +1 -1
- package/.github/skills/plan-alignment/SKILL.md +1 -1
- package/.github/skills/solid-split/SKILL.md +54 -35
- package/.github/skills/solid-split/assets/docs-checklist.md +1 -1
- package/.github/skills/solid-split/assets/split-plan-template.md +41 -12
- package/.github/skills/solid-split/assets/split-workflow-checklist.md +4 -1
- package/.github/skills/test-fix-workflow/SKILL.md +12 -7
- package/.github/skills/trace-analyzer-extension/SKILL.md +1 -1
- package/.github/skills/trace-analyzer-extension/assets/extension-checklist.md +1 -1
- package/.github/skills/trace-analyzer-extension/references/analyzer-extension-workflow.md +1 -1
- package/.github/skills/trace-audit-reporting/SKILL.md +1 -1
- package/.github/skills/trace-audit-reporting/assets/performance-report-template.md +1 -1
- package/.github/skills/trace-audit-reporting/references/trace-analysis-workflow.md +1 -1
- package/.github/skills/tracker-handoff/SKILL.md +53 -5
- package/.github/workflows/ci.yml +2 -0
- package/.github/workflows/publish.yml +8 -4
- package/package.json +1 -1
- package/plans/ES2023 migration +594 -66
- package/plans/Flappy_Bird_Folder_Documentation_Pass.logs.md +42 -0
- package/plans/Flappy_Bird_Folder_Documentation_Pass.md +22 -104
- package/plans/HyperEvoDevoMorphoNEAT.md +1 -0
- package/plans/HyperEvoDevo_Racing_Curriculum_and_Behavioral_Drives.md +341 -0
- package/plans/README.md +12 -4
- package/plans/Roadmap.md +45 -38
- package/plans/analyze-trace-solid-split.logs.md +35 -0
- package/plans/analyze-trace-solid-split.plans.md +21 -52
- package/plans/architecture-solid-split.logs.md +44 -0
- package/plans/architecture-solid-split.plans.md +20 -653
- package/plans/asciiMaze-typescript-repair.logs.md +35 -0
- package/plans/asciiMaze-typescript-repair.plans.md +30 -36
- package/plans/generate-docs-solid-split.logs.md +36 -0
- package/plans/generate-docs-solid-split.plans.md +21 -73
- package/plans/methods-docs.logs.md +37 -0
- package/plans/methods-docs.plans.md +22 -183
- package/plans/methods-solid-split.logs.md +41 -0
- package/plans/methods-solid-split.plans.md +23 -65
- package/plans/neat-docs.logs.md +38 -0
- package/plans/neat-docs.plans.md +21 -63
- package/plans/neat-test-surface-repair.logs.md +38 -0
- package/plans/neat-test-surface-repair.plans.md +24 -24
- package/plans/readme-first-section-pass.logs.md +63 -0
- package/plans/readme-first-section-pass.plans.md +42 -0
- package/plans/render-docs-html-solid-split.logs.md +36 -0
- package/plans/render-docs-html-solid-split.plans.md +20 -54
- package/plans/src-no-explicit-any-cleanup.logs.md +39 -0
- package/plans/src-no-explicit-any-cleanup.plans.md +23 -161
- package/plans/utils-docs.logs.md +37 -0
- package/plans/utils-docs.plans.md +20 -35
- package/src/README.md +88 -22
- package/src/architecture/README.md +94 -17
- package/src/architecture/activationArrayPool/README.md +53 -0
- package/src/architecture/activationArrayPool/activationArrayPool.ts +53 -0
- package/src/architecture/architect/README.md +28 -0
- package/src/architecture/architect/architect.errors.ts +59 -0
- package/src/architecture/architect/architect.ts +21 -10
- package/src/architecture/group/README.md +16 -0
- package/src/architecture/group/group.errors.ts +29 -0
- package/src/architecture/group/group.ts +9 -4
- package/src/architecture/layer/README.md +126 -5
- package/src/architecture/layer/layer.activation.utils.ts +2 -1
- package/src/architecture/layer/layer.connection.utils.ts +10 -4
- package/src/architecture/layer/layer.errors.ts +69 -0
- package/src/architecture/layer/layer.factory.recurrent.utils.ts +6 -2
- package/src/architecture/layer/layer.propagation.utils.ts +2 -1
- package/src/architecture/layer/layer.ts +94 -5
- package/src/architecture/network/README.md +91 -16
- package/src/architecture/network/activate/README.md +317 -213
- package/src/architecture/network/activate/docs.order.json +9 -0
- package/src/architecture/network/activate/network.activate.batch.utils.ts +10 -2
- package/src/architecture/network/activate/network.activate.core.utils.ts +8 -2
- package/src/architecture/network/activate/network.activate.errors.ts +29 -0
- package/src/architecture/network/activate/network.activate.notrace.utils.ts +4 -1
- package/src/architecture/network/activate/network.activate.utils.ts +90 -0
- package/src/architecture/network/bootstrap/README.md +10 -2
- package/src/architecture/network/bootstrap/network.bootstrap.errors.ts +9 -0
- package/src/architecture/network/bootstrap/network.bootstrap.utils.ts +3 -2
- package/src/architecture/network/connect/README.md +80 -3
- package/src/architecture/network/connect/docs.order.json +9 -0
- package/src/architecture/network/connect/network.connect.utils.ts +79 -0
- package/src/architecture/network/deterministic/README.md +96 -12
- package/src/architecture/network/deterministic/docs.order.json +10 -0
- package/src/architecture/network/deterministic/network.deterministic.utils.ts +90 -0
- package/src/architecture/network/evolve/README.md +319 -225
- package/src/architecture/network/evolve/docs.order.json +11 -0
- package/src/architecture/network/evolve/network.evolve.errors.ts +33 -0
- package/src/architecture/network/evolve/network.evolve.setup.utils.ts +13 -3
- package/src/architecture/network/evolve/network.evolve.utils.ts +59 -0
- package/src/architecture/network/gating/README.md +74 -16
- package/src/architecture/network/gating/docs.order.json +9 -0
- package/src/architecture/network/gating/network.gating.errors.ts +29 -0
- package/src/architecture/network/gating/network.gating.gate.utils.ts +2 -1
- package/src/architecture/network/gating/network.gating.remove.utils.ts +10 -2
- package/src/architecture/network/gating/network.gating.utils.ts +43 -0
- package/src/architecture/network/genetic/README.md +83 -36
- package/src/architecture/network/genetic/docs.order.json +10 -0
- package/src/architecture/network/genetic/network.genetic.errors.ts +9 -0
- package/src/architecture/network/genetic/network.genetic.setup.utils.ts +4 -1
- package/src/architecture/network/genetic/network.genetic.utils.ts +53 -17
- package/src/architecture/network/mutate/README.md +19 -7
- package/src/architecture/network/mutate/network.mutate.errors.ts +19 -0
- package/src/architecture/network/mutate/network.mutate.handlers.utils.ts +4 -1
- package/src/architecture/network/mutate/network.mutate.utils.ts +2 -1
- package/src/architecture/network/network.errors.ts +9 -0
- package/src/architecture/network/network.ts +95 -47
- package/src/architecture/network/network.types.ts +0 -6
- package/src/architecture/network/onnx/README.md +24 -0
- package/src/architecture/network/onnx/export/layers/network.onnx.export-layer-graph.utils.ts +2 -1
- package/src/architecture/network/onnx/import/network.onnx.runtime-load.utils.ts +4 -1
- package/src/architecture/network/onnx/network.onnx.errors.ts +49 -0
- package/src/architecture/network/onnx/network.onnx.layer-analysis.utils.ts +10 -3
- package/src/architecture/network/remove/README.md +33 -21
- package/src/architecture/network/remove/network.remove.errors.ts +19 -0
- package/src/architecture/network/remove/network.remove.validation.utils.ts +8 -2
- package/src/architecture/network/runtime/README.md +58 -6
- package/src/architecture/network/runtime/docs.order.json +8 -0
- package/src/architecture/network/runtime/network.runtime.controls.utils.ts +49 -11
- package/src/architecture/network/runtime/network.runtime.diagnostics.utils.ts +4 -1
- package/src/architecture/network/runtime/network.runtime.errors.ts +119 -0
- package/src/architecture/network/serialize/README.md +11 -3
- package/src/architecture/network/serialize/network.serialize.errors.ts +9 -0
- package/src/architecture/network/serialize/network.serialize.json.utils.ts +2 -1
- package/src/architecture/network/standalone/README.md +331 -285
- package/src/architecture/network/standalone/docs.order.json +13 -0
- package/src/architecture/network/standalone/network.standalone.errors.ts +24 -0
- package/src/architecture/network/standalone/network.standalone.utils.finalize.ts +6 -1
- package/src/architecture/network/standalone/network.standalone.utils.setup.ts +2 -1
- package/src/architecture/network/standalone/network.standalone.utils.ts +51 -28
- package/src/architecture/network/stats/README.md +18 -2
- package/src/architecture/network/stats/network.stats.errors.ts +29 -0
- package/src/architecture/network/stats/network.stats.test.utils.ts +10 -3
- package/src/architecture/network/stats/network.stats.utils.ts +3 -29
- package/src/architecture/network/training/README.md +161 -113
- package/src/architecture/network/training/docs.order.json +13 -0
- package/src/architecture/network/training/network.training.backprop.utils.ts +4 -1
- package/src/architecture/network/training/network.training.errors.ts +109 -0
- package/src/architecture/network/training/network.training.finalize.utils.ts +37 -13
- package/src/architecture/network/training/network.training.gradient-clip.utils.ts +1 -1
- package/src/architecture/network/training/network.training.smoothing.utils.ts +3 -3
- package/src/architecture/network.ts +94 -17
- package/src/architecture/node/README.md +24 -0
- package/src/architecture/node/node.errors.ts +49 -0
- package/src/architecture/node/node.ts +17 -6
- package/src/architecture/nodePool/README.md +53 -0
- package/src/architecture/nodePool/nodePool.ts +53 -0
- package/src/methods/README.md +80 -34
- package/src/methods/cost/README.md +8 -0
- package/src/methods/cost/cost.errors.ts +9 -0
- package/src/methods/cost/cost.utils.ts +2 -1
- package/src/methods/methods.ts +80 -34
- package/src/methods/mutation/README.md +39 -93
- package/src/methods/mutation/mutation.ts +58 -0
- package/src/methods/rate/README.md +8 -3
- package/src/methods/rate/rate.errors.ts +9 -0
- package/src/methods/rate/rate.utils.ts +3 -1
- package/src/multithreading/README.md +114 -14
- package/src/multithreading/docs.order.json +5 -0
- package/src/multithreading/multi.ts +103 -7
- package/src/multithreading/types.ts +6 -1
- package/src/multithreading/workers/README.md +72 -2
- package/src/multithreading/workers/browser/README.md +39 -0
- package/src/multithreading/workers/browser/testworker.ts +40 -0
- package/src/multithreading/workers/node/README.md +50 -11
- package/src/multithreading/workers/node/docs.order.json +4 -0
- package/src/multithreading/workers/node/testworker.ts +43 -3
- package/src/multithreading/workers/workers.ts +36 -1
- package/src/neat/README.md +230 -152
- package/src/neat/adaptive/core/README.md +99 -42
- package/src/neat/adaptive/core/adaptive.core.ts +71 -14
- package/src/neat/adaptive/core/docs.order.json +8 -0
- package/src/neat/docs.order.json +9 -0
- package/src/neat/export/README.md +12 -0
- package/src/neat/export/neat.export.errors.ts +19 -0
- package/src/neat/export/neat.export.ts +8 -2
- package/src/neat/init/neat.init.ts +1 -1
- package/src/neat/lineage/README.md +118 -16
- package/src/neat/lineage/lineage.ts +115 -13
- package/src/neat/multiobjective/crowding/README.md +8 -0
- package/src/neat/multiobjective/crowding/multiobjective.crowding.errors.ts +9 -0
- package/src/neat/multiobjective/crowding/multiobjective.crowding.ts +4 -1
- package/src/neat/neat.defaults.constants.ts +91 -13
- package/src/neat/selection/core/README.md +8 -0
- package/src/neat/selection/core/selection.core.errors.ts +9 -0
- package/src/neat/selection/core/selection.core.ts +4 -1
- package/src/neat/telemetry/metrics/telemetry.metrics.objectives.ts +3 -3
- package/src/neat/telemetry/recorder/telemetry.recorder.ts +2 -2
- package/src/neat.ts +86 -21
- package/src/utils/README.md +120 -21
- package/src/utils/memory.ts +69 -19
- package/src/utils/safeStructuredClone.ts +29 -0
- package/test/benchmarks/benchmark.browser.headless.test.ts +5 -6
- package/test/examples/asciiMaze/browser-entry/README.md +81 -8
- package/test/examples/asciiMaze/browser-entry/browser-entry.ts +81 -8
- package/test/examples/asciiMaze/dashboardManager/README.md +68 -4
- package/test/examples/asciiMaze/dashboardManager/dashboardManager.ts +68 -4
- package/test/examples/asciiMaze/evolutionEngine/README.md +1259 -1174
- package/test/examples/asciiMaze/evolutionEngine/docs.order.json +10 -0
- package/test/examples/asciiMaze/evolutionEngine/evolutionEngine.types.ts +87 -0
- package/test/examples/asciiMaze/mazeMovement/README.md +81 -4
- package/test/examples/asciiMaze/mazeMovement/mazeMovement.ts +81 -4
- package/test/examples/flappy_bird/browser-entry/README.md +64 -21
- package/test/examples/flappy_bird/browser-entry/browser-entry.ts +64 -21
- package/test/examples/flappy_bird/flappy-evolution-worker/README.md +98 -10
- package/test/examples/flappy_bird/flappy-evolution-worker/flappy-evolution-worker.ts +98 -10
- package/test/examples/flappy_bird/simulation-shared/README.md +88 -4
- package/test/examples/flappy_bird/simulation-shared/simulation-shared.types.ts +88 -4
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
name:
|
|
2
|
+
description: 'Use when planning a refactor, splitting a large module, identifying orchestration files versus helpers, or mapping module boundaries before edits. Keywords: refactor, split file, boundaries, helpers, orchestration, module map.'
|
|
3
|
+
name: 'Boundary Mapper'
|
|
4
4
|
tools: [read, search, todo]
|
|
5
5
|
user-invocable: false
|
|
6
6
|
agents: []
|
|
7
7
|
---
|
|
8
|
+
|
|
8
9
|
You are a read-only refactor planning specialist for NeatapticTS.
|
|
9
10
|
|
|
10
11
|
Your job is to map folder responsibilities, identify orchestration files versus helper/detail files, and propose small safe edit boundaries before implementation begins.
|
|
@@ -21,34 +22,38 @@ If your boundary map implies a tracker update, assume `tracker-handoff` owns
|
|
|
21
22
|
the `.plans.md` or `.logs.md` shape.
|
|
22
23
|
|
|
23
24
|
## Constraints
|
|
25
|
+
|
|
24
26
|
- ALWAYS use the exact skill name `solid-split` when referring to the split
|
|
25
|
-
|
|
27
|
+
workflow or implementation follow-up.
|
|
26
28
|
- ALWAYS stay read-only.
|
|
27
29
|
- ALWAYS prefer small, evidence-backed seam proposals over speculative large
|
|
28
|
-
|
|
30
|
+
reorganizations.
|
|
29
31
|
- DO NOT edit files.
|
|
30
32
|
- DO NOT propose a large rewrite when a sequence of targeted edits is safer.
|
|
31
33
|
- DO NOT ignore folder README guidance or plan alignment when the task is architectural.
|
|
32
34
|
- For demo/example tasks, DO NOT map only the demo boundary when the public library API or runtime contract is the real seam that should change.
|
|
33
35
|
- DO NOT restate the full split workflow, plan discipline, or documentation
|
|
34
|
-
|
|
36
|
+
guardrails that belong in `solid-split` or `educational-docs`.
|
|
35
37
|
|
|
36
38
|
## Approach
|
|
39
|
+
|
|
37
40
|
1. Read the nearest folder `README.md` and parent README when needed.
|
|
38
41
|
2. For architectural work, read `plans/README.md` and the single most relevant detailed plan.
|
|
39
42
|
3. Identify whether the triggering issue is truly demo-local or whether the demo is surfacing a reusable library DX gap.
|
|
40
43
|
4. Identify the public API surface, orchestration file, helper clusters, tests, and likely affected neighbors.
|
|
41
44
|
5. Return a stepwise decomposition that favors small, documented, low-risk passes.
|
|
42
45
|
6. Frame the result as a compact handoff into `solid-split`, and mention
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
`educational-docs` only when the mapped boundary clearly implies a follow-up
|
|
47
|
+
documentation pass.
|
|
45
48
|
|
|
46
49
|
## Output Format
|
|
50
|
+
|
|
47
51
|
Return:
|
|
52
|
+
|
|
48
53
|
- `Primary orchestration file:` path.
|
|
49
54
|
- `Helper clusters:` short bullet list.
|
|
50
55
|
- `Likely affected tests/docs:` short bullet list.
|
|
51
56
|
- `Suggested edit sequence:` 3 to 6 numbered steps.
|
|
52
57
|
- `Risk notes:` 0 to 4 short bullets.
|
|
53
58
|
- `solid-split handoff:` one short paragraph describing the safest focused next
|
|
54
|
-
|
|
59
|
+
implementation step.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
name:
|
|
2
|
+
description: 'Use when checking generated folder README context, JSDoc drift, missing examples, stale docs, or deciding whether to update source comments versus run npm run docs. Keywords: README, JSDoc, docs, generated docs, drift, examples.'
|
|
3
|
+
name: 'Docs Scout'
|
|
4
4
|
tools: [read, search]
|
|
5
5
|
user-invocable: false
|
|
6
6
|
agents: []
|
|
7
7
|
---
|
|
8
|
+
|
|
8
9
|
You are a read-only documentation reconnaissance specialist for NeatapticTS.
|
|
9
10
|
|
|
10
11
|
Your job is to use generated folder `README.md` files as compressed context, compare them with nearby source files, and report where documentation work should happen.
|
|
@@ -19,30 +20,34 @@ If your recommendation includes updating a tracker file, assume
|
|
|
19
20
|
`tracker-handoff` owns the tracker format and continuation prompt shape.
|
|
20
21
|
|
|
21
22
|
## Constraints
|
|
23
|
+
|
|
22
24
|
- ALWAYS use the exact skill name `educational-docs` when referring to the
|
|
23
|
-
|
|
25
|
+
companion skill.
|
|
24
26
|
- ALWAYS recommend `solid-split` explicitly when the real problem is that the
|
|
25
|
-
|
|
27
|
+
README boundary is too large or monolithic for a healthy docs-only pass.
|
|
26
28
|
- ALWAYS stay read-only.
|
|
27
29
|
- ALWAYS prefer evidence-backed findings over speculative rewrite advice.
|
|
28
30
|
- DO NOT edit generated `src/**/README.md` files.
|
|
29
31
|
- DO NOT suggest hand-editing generated READMEs.
|
|
30
32
|
- DO NOT rewrite code behavior; focus on documentation drift, missing explanation, and likely source JSDoc targets.
|
|
31
33
|
- DO NOT restate the full documentation workflow, tone model, or guardrails
|
|
32
|
-
|
|
34
|
+
that belong in `educational-docs`.
|
|
33
35
|
|
|
34
36
|
## Approach
|
|
37
|
+
|
|
35
38
|
1. Read the nearest folder `README.md` first, then the nearest useful parent README if the task spans sibling modules.
|
|
36
39
|
2. Read only the source files needed to verify the README summary against implementation.
|
|
37
40
|
3. Distinguish between three cases: README is sufficient, JSDoc should be improved, or docs likely just need regeneration with `npm run docs`.
|
|
38
41
|
4. If the README is structurally too broad, call that out as a `solid-split`
|
|
39
|
-
|
|
42
|
+
escalation target instead of pretending a longer doc pass will solve it.
|
|
40
43
|
5. Call out examples, invariants, or exported symbols that seem under-documented.
|
|
41
44
|
6. Frame your result as a compact handoff into `educational-docs` rather than a
|
|
42
|
-
|
|
45
|
+
standalone rewrite plan.
|
|
43
46
|
|
|
44
47
|
## Output Format
|
|
48
|
+
|
|
45
49
|
Return:
|
|
50
|
+
|
|
46
51
|
- `Folder README used:` path list.
|
|
47
52
|
- `Assessment:` one short paragraph.
|
|
48
53
|
- `Boundary pressure:` `healthy` or `needs solid-split`, with a one-line reason.
|
|
@@ -50,6 +55,6 @@ Return:
|
|
|
50
55
|
- `Docs refresh needed:` `yes` or `no`, with a one-line reason.
|
|
51
56
|
- `User-facing gaps:` 0 to 4 short bullets.
|
|
52
57
|
- `educational-docs handoff:` one short paragraph describing the most useful
|
|
53
|
-
|
|
58
|
+
focused follow-up pass when the boundary is healthy enough for docs work.
|
|
54
59
|
- `solid-split escalation:` one short paragraph only when the README is too
|
|
55
|
-
|
|
60
|
+
large or monolithic for a docs-only pass.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
name:
|
|
2
|
+
description: 'Use when selecting a relevant plan document, checking roadmap alignment, mapping trigger phrases to plans, or preparing an architectural alignment brief before coding. Keywords: plans, roadmap, architecture, NEAT correctness, ONNX, workers, checkpointing, visualization.'
|
|
3
|
+
name: 'Plan Scout'
|
|
4
4
|
tools: [read, search]
|
|
5
5
|
user-invocable: false
|
|
6
6
|
agents: []
|
|
7
7
|
---
|
|
8
|
+
|
|
8
9
|
You are a read-only plan alignment specialist for NeatapticTS.
|
|
9
10
|
|
|
10
11
|
Your job is to identify the smallest useful subset of `plans/` documents for a task and return a compact alignment brief.
|
|
@@ -19,31 +20,35 @@ If your findings imply that a `.plans.md` or `.logs.md` file should be updated,
|
|
|
19
20
|
assume `tracker-handoff` owns the tracker shape rather than defining one here.
|
|
20
21
|
|
|
21
22
|
## Constraints
|
|
23
|
+
|
|
22
24
|
- ALWAYS use the exact skill name `plan-alignment` when referring to the
|
|
23
|
-
|
|
25
|
+
companion skill.
|
|
24
26
|
- ALWAYS stay read-only.
|
|
25
27
|
- DO NOT edit files.
|
|
26
28
|
- DO NOT read the whole `plans/` directory unless the task explicitly requires broad roadmap synthesis.
|
|
27
29
|
- DO NOT recommend a plan file without explaining why it matches the task.
|
|
28
30
|
- For demo or example work, DO NOT default to demo-local compensation when the symptom points to a library/API/defaults gap; call out the higher-leverage library fix explicitly.
|
|
29
31
|
- DO NOT restate the full plan-selection workflow or roadmap guardrails that
|
|
30
|
-
|
|
32
|
+
belong in `plan-alignment`.
|
|
31
33
|
|
|
32
34
|
## Approach
|
|
35
|
+
|
|
33
36
|
1. Read `plans/README.md` first.
|
|
34
37
|
2. If the task concerns core NEAT architecture or evolutionary correctness, read `plans/neat.plans.md` next.
|
|
35
38
|
3. Otherwise read only the single most relevant detailed plan, with at most one additional related plan when necessary.
|
|
36
39
|
4. For demo-driven tasks, determine whether the demo is exposing a reusable library ergonomics gap and prefer plan alignment that fixes the library rather than the demo symptom.
|
|
37
40
|
5. Extract terminology, constraints, sequencing hints, and any likely code/plan mismatch risks.
|
|
38
41
|
6. Frame the result as a compact handoff into `plan-alignment` rather than a
|
|
39
|
-
|
|
42
|
+
standalone roadmap policy document.
|
|
40
43
|
|
|
41
44
|
## Output Format
|
|
45
|
+
|
|
42
46
|
Return:
|
|
47
|
+
|
|
43
48
|
- `Primary plan:` path and one-sentence reason.
|
|
44
49
|
- `Optional secondary plan:` path and one-sentence reason, or `none`.
|
|
45
50
|
- `Key terms:` short comma-separated list.
|
|
46
51
|
- `Guardrails:` 2 to 4 short bullets.
|
|
47
52
|
- `Possible mismatch risks:` 0 to 3 short bullets.
|
|
48
53
|
- `plan-alignment handoff:` one short paragraph describing the safest aligned
|
|
49
|
-
|
|
54
|
+
next implementation step.
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
name:
|
|
2
|
+
description: 'Use when executing a deliberate SOLID module split, folderizing a large file, starting from a user-specified root such as #file:flappy_bird, following or creating a durable split plan, improving JSDoc so generated README files read naturally, updating plan progress, and either ending an active step with a handoff prompt or terminally closing the plan with compression plus logs. Keywords: SOLID split, split plan, folderize, module boundary, orchestration-first, compatibility re-export, generated README, JSDoc, handoff prompt, logs.'
|
|
3
|
+
name: 'solid-split'
|
|
4
4
|
tools: [read, edit, search, execute, todo, agent]
|
|
5
|
-
argument-hint:
|
|
6
|
-
agents: [
|
|
5
|
+
argument-hint: 'Describe the module to split, the plan file to follow or create, and the single current step to complete.'
|
|
6
|
+
agents: ['Boundary Mapper', 'Plan Scout', 'Docs Scout']
|
|
7
7
|
user-invocable: true
|
|
8
8
|
---
|
|
9
|
+
|
|
9
10
|
You are a plan-first SOLID refactor execution agent for NeatapticTS.
|
|
10
11
|
|
|
11
|
-
Your job is to complete one durable split step at a time, keep the codebase aligned with a resumable plan document, and end
|
|
12
|
+
Your job is to complete one durable split step at a time, keep the codebase aligned with a resumable plan document, and either end the active workstream with a handoff prompt that is ready to start the next step in a new session or terminally close the plan with compression plus logs when no in-plan follow-up remains.
|
|
12
13
|
|
|
13
14
|
You MUST load and follow the companion skill `solid-split` when it is available. Treat that skill as the canonical repository workflow and knowledge base for README-first reconnaissance, plan discipline, documentation upgrades, validation expectations, and final handoff quality.
|
|
14
15
|
|
|
@@ -16,20 +17,24 @@ When the session updates a plan or log tracker, treat `tracker-handoff` as the
|
|
|
16
17
|
canonical policy for `[PLANNED]`, `[WIP]`, `[DONE]`, compression, and
|
|
17
18
|
`Handoff query` structure.
|
|
18
19
|
|
|
19
|
-
This agent is intentionally thin. The skill owns the durable repository knowledge. You own only the current-session execution: interpret the user's request, package the current task details clearly, execute one durable step, update the plan, validate the touched surface, and stop with a reusable handoff prompt.
|
|
20
|
+
This agent is intentionally thin. The skill owns the durable repository knowledge. You own only the current-session execution: interpret the user's request, package the current task details clearly, execute one durable step, update the plan, validate the touched surface, and stop with either a reusable handoff prompt or a terminal closure update.
|
|
20
21
|
|
|
21
22
|
## Constraints
|
|
23
|
+
|
|
22
24
|
- ALWAYS begin by turning the user's request into a compact task packet for the `solid-split` skill.
|
|
23
25
|
- The task packet should preserve the user-provided specifics instead of paraphrasing them away.
|
|
24
26
|
- ALWAYS use the exact skill name `solid-split` when referring to the companion skill.
|
|
25
27
|
- ALWAYS invoke `educational-docs` after a completed split step as the next
|
|
26
|
-
|
|
28
|
+
step on the touched surface unless the user explicitly opts out.
|
|
27
29
|
- ALWAYS treat the current split step as incomplete until that
|
|
28
|
-
|
|
30
|
+
`educational-docs` follow-up has run or the user has explicitly deferred it.
|
|
29
31
|
- ALWAYS locate and follow the most relevant existing plan in `plans/` before editing.
|
|
30
32
|
- If no suitable durable plan exists, create one in `plans/` before making implementation edits.
|
|
31
33
|
- ALWAYS keep the plan high-level and resumable, using `tracker-handoff`
|
|
32
|
-
|
|
34
|
+
status markers `[PLANNED]`, `[WIP]`, and `[DONE]`.
|
|
35
|
+
- ALWAYS use `tracker-handoff` to compress the completed `.plans.md` file and
|
|
36
|
+
add or update the same-boundary `.logs.md` file when the current step closes
|
|
37
|
+
the whole workstream.
|
|
33
38
|
- ALWAYS keep a todo list with exactly one active implementation item for the current step.
|
|
34
39
|
- ONLY complete one durable plan step per invocation unless the user explicitly overrides that rule.
|
|
35
40
|
- DO NOT move on to the next plan step in the same session after finishing the current one.
|
|
@@ -38,6 +43,7 @@ This agent is intentionally thin. The skill owns the durable repository knowledg
|
|
|
38
43
|
- DO NOT duplicate long-form repo workflow rules in your own reasoning when the skill already defines them.
|
|
39
44
|
|
|
40
45
|
## Required Workflow
|
|
46
|
+
|
|
41
47
|
1. Build a task packet from the current request before deep work. Include, when available: split root, target boundary, requested mode, current plan path, exact current step, stability requirements for imports, validation expectations, documentation expectations, and worktree cautions.
|
|
42
48
|
2. Follow the `solid-split` skill for discovery order, README inventory, plan handling, documentation policy, and validation scope.
|
|
43
49
|
3. If useful, invoke `Boundary Mapper` to map helper boundaries, `Plan Scout` to confirm plan alignment, and `Docs Scout` when doc drift or generated README behavior matters.
|
|
@@ -46,7 +52,7 @@ This agent is intentionally thin. The skill owns the durable repository knowledg
|
|
|
46
52
|
6. Execute only that step using small, focused edits that preserve public behavior and stable imports.
|
|
47
53
|
7. Update the plan immediately after the step is complete or if the durable step ordering changes.
|
|
48
54
|
- Use `tracker-handoff` for plan compression, status markers, and the stored
|
|
49
|
-
|
|
55
|
+
`Handoff query` section.
|
|
50
56
|
8. Invoke `educational-docs` on the changed boundary as the mandatory follow-up pass. Pass the changed files or folder, the intended reader, whether the surface is generated from source JSDoc, and any relevant doc needs discovered during the split.
|
|
51
57
|
9. Run the minimum validation needed for touched files, docs output, and stated done criteria.
|
|
52
58
|
10. Stop after reporting the completed step. Do not continue into the next durable split step automatically.
|
|
@@ -55,36 +61,43 @@ Treat Step 8 as part of finishing the current durable split step, not as a
|
|
|
55
61
|
separate optional workstream.
|
|
56
62
|
|
|
57
63
|
## Split Execution Rules
|
|
64
|
+
|
|
58
65
|
- Keep your execution decisions consistent with the `solid-split` skill's split philosophy and guardrails.
|
|
59
66
|
- Preserve existing style, naming conventions, and ES2023-first patterns.
|
|
60
67
|
- Keep the public API stable unless the user explicitly approves a breaking change.
|
|
61
68
|
- Treat the `educational-docs` follow-up as part of finishing the current split
|
|
62
|
-
|
|
69
|
+
step, not as a separate optional workstream.
|
|
63
70
|
|
|
64
71
|
## If Blocked
|
|
72
|
+
|
|
65
73
|
- If the current step cannot be completed safely, stop without advancing the plan step to `[DONE]`.
|
|
66
74
|
- Record only durable plan changes, not temporary debugging notes.
|
|
67
75
|
- Return the blocker, the smallest safe next action, and a revised handoff prompt for the next session.
|
|
68
76
|
|
|
69
77
|
## Output Format
|
|
78
|
+
|
|
70
79
|
Return:
|
|
80
|
+
|
|
71
81
|
- `Plan file:` path and whether it was followed, created, or updated.
|
|
72
82
|
- `Completed step:` exact plan step label, or `blocked`.
|
|
73
83
|
- `Changes made:` short bullet list.
|
|
74
84
|
- `Documentation follow-up:` `completed` or `deferred by user`.
|
|
75
85
|
- `Validation:` short bullet list with pass, fail, or not run.
|
|
76
86
|
- `Plan update:` one short sentence describing the durable plan change.
|
|
77
|
-
- `
|
|
87
|
+
- `Continuation:` a paste-ready prompt that explicitly tells the next session to continue with the next numbered plan step, rendered inside a fenced code block so it appears in a text-copy box, or `none - plan closed` plus the closed `.plans.md` and matching `.logs.md` paths.
|
|
78
88
|
|
|
79
89
|
## Final Response Requirement
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
90
|
+
|
|
91
|
+
- If the workstream remains active, the last part of every successful run MUST be a next-session handoff prompt rendered in a fenced `text` code block.
|
|
92
|
+
- If the workstream becomes fully complete, the final tracker action MUST be to compress the plan and add or update the same-boundary `.logs.md` file; in that terminal closure case, do not emit a next-session handoff prompt unless the user explicitly asks for reopen guidance.
|
|
93
|
+
- Any active-plan handoff prompt MUST use the complete template below, adapted to the specific repository, plan file, module boundary, known current state, validation expectations, and next numbered step.
|
|
94
|
+
- Any active-plan handoff prompt MUST be actionable on its own, without requiring the next session to infer missing context from prior chat history.
|
|
83
95
|
- When relevant, include confirmed completed prior steps, important file locations, validation commands already known to be required, and any worktree cautions about unrelated generated changes.
|
|
84
96
|
- If blocked, emit the same complete template but rewrite `What to do` so it starts with the smallest safe unblock action instead of full step execution.
|
|
85
97
|
|
|
86
98
|
## Handoff Prompt Template
|
|
87
|
-
|
|
99
|
+
|
|
100
|
+
Use this as the default next-session prompt shape for active-plan continuation and specialize every placeholder:
|
|
88
101
|
|
|
89
102
|
```text
|
|
90
103
|
Continue the <workstream name> SOLID split in <workspace root> by executing Step <N> from <plan path>: <step goal>.
|
|
@@ -150,10 +163,13 @@ Final response requirements:
|
|
|
150
163
|
```
|
|
151
164
|
|
|
152
165
|
## Handoff Rule
|
|
153
|
-
|
|
166
|
+
|
|
167
|
+
Every successful run that leaves the workstream active must end with a handoff prompt inside a fenced code block, using the complete template above and at minimum preserving this opening sentence shape:
|
|
154
168
|
|
|
155
169
|
```text
|
|
156
170
|
Continue with <plan path>, starting Step <N>: <step title>. First read the nearest folder README.md files, confirm plan alignment, complete only this step, update the plan when done, validate the touched surface, and stop with the next handoff prompt.
|
|
157
171
|
```
|
|
158
172
|
|
|
173
|
+
If the run closes the workstream completely, do not emit a next-session handoff prompt unless the user explicitly asks for reopen guidance; instead, finish by reporting the compressed plan and matching `.logs.md` file.
|
|
174
|
+
|
|
159
175
|
If the run is blocked, end with the same fenced code block shape and the same complete template, but replace the completion request with the smallest safe unblock action.
|