waypoint-codex 1.0.11 → 1.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waypoint-codex",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Make Codex better by default with stronger planning, code quality, reviews, tracking, and repo guidance.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: legibility-pass
3
+ description: Improve code legibility within a defined scope without changing intended behavior. Use when code is correct but hard to read, reason about, or safely modify. Focus on making intent, control flow, state, boundaries, and important behavior easier to see through better naming, clearer structure, reduced indirection, and simpler local reasoning.
4
+ ---
5
+
6
+ Refactor the given scope to make the current truth easier to see.
7
+
8
+ Preserve behavior unless the user asked for functional change.
9
+
10
+ Focus on:
11
+ - clearer names for modules, functions, variables, and states
12
+ - making the main flow easy to follow
13
+ - making failure paths and edge conditions explicit
14
+ - reducing indirection that hides important behavior
15
+ - making state, contracts, and boundaries easier to understand
16
+ - collapsing unnecessary wrappers or pass-through helpers
17
+ - improving local reasoning so a reader needs less cross-referencing
18
+
19
+ Within the requested scope:
20
+ 1. Identify the parts that are hardest to understand or easiest to misread.
21
+ 2. Improve naming so intent is obvious.
22
+ 3. Restructure code so the main path is visible and important branches are easy to spot.
23
+ 4. Make hidden assumptions, state transitions, and invariants more explicit.
24
+ 5. Remove low-value indirection that makes behavior harder to trace.
25
+ 6. Keep comments rare; prefer making the code itself explain the behavior.
26
+ 7. Add a brief clarifying comment only when the underlying rule or constraint is not obvious from the code alone.
27
+
28
+ Rules:
29
+ - Do not preserve confusing structure just because it already exists.
30
+ - Do not add abstractions that make reading harder.
31
+ - Do not replace clear code with clever code.
32
+ - Do not rely on comments to explain code that should be rewritten instead.
33
+ - Prefer fewer mental hops.
34
+ - Prefer one obvious reading of the code over multiple plausible interpretations.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Legibility Pass"
3
+ short_description: "Improve readability without changing behavior"
4
+ default_prompt: "Use $legibility-pass on the current scope to improve naming, control-flow clarity, and local reasoning while preserving intended behavior."
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: test-writing
3
+ description: Write a small, high-signal test set that protects important behavior without overfitting to implementation details. Use whenever adding or modifying automated tests for a feature, bug fix, refactor, or behavior change. Prefer durable tests that verify user-visible behavior, important business rules, and meaningful failure modes. Avoid redundant, brittle, or low-value tests that increase maintenance cost without materially increasing confidence.
4
+ ---
5
+
6
+ Write tests for confidence, not volume.
7
+
8
+ Start with the smallest test set that gives strong confidence in the requested change.
9
+
10
+ Default test budget for a normal feature or bug fix:
11
+ - one main-path test
12
+ - one key edge case or failure-path test
13
+ - unit tests only for non-trivial pure logic
14
+
15
+ Test at the highest level that gives strong confidence at reasonable cost.
16
+
17
+ Prefer tests that:
18
+ - verify observable behavior
19
+ - protect important business rules and invariants
20
+ - cover meaningful boundaries and failure modes
21
+ - survive refactors
22
+ - exercise public interfaces rather than private helpers
23
+
24
+ Avoid tests that:
25
+ - duplicate confidence across layers without a distinct risk
26
+ - assert implementation choreography instead of outcomes
27
+ - test trivial helpers, thin wrappers, pass-through glue, or obvious mappings
28
+ - encode fragile structure such as incidental DOM shape, exact class strings, private function calls, or unstable snapshots
29
+ - expand a feature into a large matrix of low-value cases unless the risk truly requires it
30
+
31
+ When choosing between many narrow tests and one stronger test, prefer the smaller set that better protects real behavior.
32
+
33
+ For frontend work:
34
+ - prefer stable user-visible behavior over structural assertions
35
+ - add automated regression tests only when the behavior is worth protecting and likely to remain stable
36
+ - do not add large numbers of UI tests for cosmetic or refactor-sensitive details
37
+
38
+ For backend or domain logic:
39
+ - prefer behavior-focused tests around contracts, invariants, validation, permissions, state transitions, and real regressions
40
+ - add targeted unit tests for tricky pure logic only when they materially improve confidence
41
+
42
+ If an integration-style test already proves the important flow, do not add multiple lower-level tests that mostly restate the same confidence.
43
+
44
+ Before finishing, remove or avoid any test whose main effect is to make future refactors harder without protecting an important contract.
45
+
46
+ Rules:
47
+ - Do not optimize for test count.
48
+ - Do not mirror the implementation structure in the test structure.
49
+ - Do not create one test per helper by default.
50
+ - Do not add redundant tests across layers unless a distinct risk justifies them.
51
+ - Do not test trivial code just because it exists.
52
+ - Prefer the smallest durable set that gives high confidence.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Test Writing"
3
+ short_description: "Write high-signal tests with minimal bloat"
4
+ default_prompt: "Use $test-writing to design and add the smallest durable test set that gives strong confidence for this change."
@@ -16,10 +16,11 @@ Use this skill at final closeout, right before you would report the work complet
16
16
  5. Compare expected scope vs actual outcome and list any missing or partially completed items.
17
17
  6. Run a scope-discipline pass: identify additions that were not requested or approved. Remove/simplify them before completion, or explicitly ask the user to approve keeping them.
18
18
  7. Run a cleanup pass on changed files: remove duplicated logic, unnecessary abstractions/files, and low-value comments that create maintenance bloat.
19
- 8. Run a file-footprint sanity pass: collapse avoidable tiny-file fragmentation and keep code that changes together in the same place when boundary/reuse/size reasons are weak.
20
- 9. Run a test-signal sanity pass: remove redundant or brittle tests and keep the smallest high-signal set that still protects the contract.
21
- 10. Before commit/final handoff, run the full checks required by the plan (for example full typecheck/test/build sweep) once, unless explicitly blocked or the user asks for a different cadence.
22
- 11. If any approved item is missing, incomplete, or silently deferred, do not report completion. Continue working until the agreed scope is fully satisfied or discuss a scope change explicitly.
19
+ 8. If changed code is still hard to read or reason about, run `legibility-pass` before completion and apply the resulting readability cleanup.
20
+ 9. Run a file-footprint sanity pass: collapse avoidable tiny-file fragmentation and keep code that changes together in the same place when boundary/reuse/size reasons are weak.
21
+ 10. Run a test-signal sanity pass: remove redundant or brittle tests and keep the smallest high-signal set that still protects the contract.
22
+ 11. Before commit/final handoff, run the full checks required by the plan (for example full typecheck/test/build sweep) once, unless explicitly blocked or the user asks for a different cadence.
23
+ 12. If any approved item is missing, incomplete, or silently deferred, do not report completion. Continue working until the agreed scope is fully satisfied or discuss a scope change explicitly.
23
24
 
24
25
  ## Completion gate
25
26
 
@@ -42,6 +43,7 @@ Before final status, summarize briefly:
42
43
  - files re-read for final verification
43
44
  - completed items
44
45
  - removed unapproved extras or bloat cleanup applied
46
+ - legibility cleanup applied (if run)
45
47
  - file-collapsing or test-pruning done during sanity passes
46
48
  - remaining gaps (if any)
47
49
  - next action (continue execution or complete)