waypoint-codex 1.0.6 → 1.0.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/README.md +4 -0
- package/dist/src/core.js +4 -0
- package/package.json +1 -1
- package/templates/.agents/skills/execution-reset/SKILL.md +55 -0
- package/templates/.agents/skills/execution-reset/agents/openai.yaml +4 -0
- package/templates/.agents/skills/foundational-redesign/SKILL.md +38 -0
- package/templates/.agents/skills/foundational-redesign/agents/openai.yaml +4 -0
- package/templates/.agents/skills/plan-start/SKILL.md +42 -0
- package/templates/.agents/skills/plan-start/agents/openai.yaml +0 -0
- package/templates/.agents/skills/planning/SKILL.md +1 -1
- package/templates/.agents/skills/replace-dont-layer/SKILL.md +32 -0
- package/templates/.agents/skills/replace-dont-layer/agents/openai.yaml +0 -0
- package/templates/.agents/skills/verify-completeness/SKILL.md +49 -0
- package/templates/.agents/skills/verify-completeness/agents/openai.yaml +4 -0
- package/templates/.gitignore.snippet +2 -0
- package/templates/managed-agents-block.md +12 -9
package/README.md
CHANGED
|
@@ -255,6 +255,8 @@ docs_dirs = [
|
|
|
255
255
|
Waypoint ships a strong default skill pack for real coding work:
|
|
256
256
|
|
|
257
257
|
- `planning`
|
|
258
|
+
- `foundational-redesign`
|
|
259
|
+
- `verify-completeness`
|
|
258
260
|
- `code-guide-audit`
|
|
259
261
|
- `adversarial-review`
|
|
260
262
|
- `frontend-ship-audit`
|
|
@@ -280,6 +282,8 @@ be used deliberately when the moment calls for them.
|
|
|
280
282
|
|
|
281
283
|
The most important ones are:
|
|
282
284
|
|
|
285
|
+
- `foundational-redesign` when the right move is a cleaner replacement that deletes legacy seams instead of patching around them
|
|
286
|
+
- `verify-completeness` when you think implementation is done and need a strict final pass against approved scope, planned file changes, and completion gates
|
|
283
287
|
- `code-guide-audit` when you want a code quality pass against your repo's
|
|
284
288
|
standards and working rules
|
|
285
289
|
- `backend-ship-audit` when backend work needs a deeper production-readiness
|
package/dist/src/core.js
CHANGED
|
@@ -22,6 +22,8 @@ const LEGACY_WAYPOINT_GITIGNORE_RULES = new Set([
|
|
|
22
22
|
".agents/",
|
|
23
23
|
".agents/skills/",
|
|
24
24
|
".agents/skills/planning/",
|
|
25
|
+
".agents/skills/foundational-redesign/",
|
|
26
|
+
".agents/skills/verify-completeness/",
|
|
25
27
|
".agents/skills/code-guide-audit/",
|
|
26
28
|
".agents/skills/adversarial-review/",
|
|
27
29
|
".agents/skills/visual-explanations/",
|
|
@@ -49,6 +51,8 @@ const LEGACY_WAYPOINT_GITIGNORE_RULES = new Set([
|
|
|
49
51
|
]);
|
|
50
52
|
const SHIPPED_SKILL_NAMES = [
|
|
51
53
|
"planning",
|
|
54
|
+
"foundational-redesign",
|
|
55
|
+
"verify-completeness",
|
|
52
56
|
"code-guide-audit",
|
|
53
57
|
"adversarial-review",
|
|
54
58
|
"pr-review",
|
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: execution-reset
|
|
3
|
+
description: Recover momentum in long-running implementation plans when progress degrades into tiny local edits, repeated patching, or phase drift. Use when working from a referenced plan or roadmap and the current session is stalled, compacted, or no longer completing meaningful milestones. Reconstruct actual progress from the codebase, detect whether the current phase is stuck, and choose the next substantial work package that advances or completes the phase.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Rebuild state from the current codebase and the referenced plan, not from memory.
|
|
7
|
+
|
|
8
|
+
1. Identify the active phase and its intended outcome.
|
|
9
|
+
2. Inspect the current implementation and determine:
|
|
10
|
+
- complete
|
|
11
|
+
- partial
|
|
12
|
+
- missing
|
|
13
|
+
- broken or stale
|
|
14
|
+
3. Decide whether execution is stalled.
|
|
15
|
+
4. If stalled, restate the current phase as concrete system behavior.
|
|
16
|
+
5. Pick exactly one substantial work package that will:
|
|
17
|
+
- complete a sub-milestone
|
|
18
|
+
- unblock the main dependency
|
|
19
|
+
- or finish the end-to-end path
|
|
20
|
+
6. Execute that package.
|
|
21
|
+
7. Re-check whether system capability materially increased.
|
|
22
|
+
|
|
23
|
+
Use this output shape:
|
|
24
|
+
|
|
25
|
+
## Execution Reset
|
|
26
|
+
### Active Phase
|
|
27
|
+
[phase]
|
|
28
|
+
|
|
29
|
+
### Objective
|
|
30
|
+
[what this phase must accomplish]
|
|
31
|
+
|
|
32
|
+
### Actual Status
|
|
33
|
+
- Complete: [...]
|
|
34
|
+
- Partial: [...]
|
|
35
|
+
- Missing: [...]
|
|
36
|
+
- Broken/stale: [...]
|
|
37
|
+
|
|
38
|
+
### Stall Diagnosis
|
|
39
|
+
[why progress is not advancing]
|
|
40
|
+
|
|
41
|
+
### Next Work Package
|
|
42
|
+
[one substantial chunk]
|
|
43
|
+
|
|
44
|
+
### Definition of Done
|
|
45
|
+
[concrete completion conditions]
|
|
46
|
+
|
|
47
|
+
### Plan Correction
|
|
48
|
+
[only if the plan is locally stale]
|
|
49
|
+
|
|
50
|
+
Rules:
|
|
51
|
+
- Do not continue with micro-edits unless they directly unblock the chosen work package.
|
|
52
|
+
- Do not polish incomplete phases.
|
|
53
|
+
- Do not trust prior session context over the codebase.
|
|
54
|
+
- Prefer end-to-end completion over local cleanup.
|
|
55
|
+
- Revise the current phase if the original plan no longer matches reality, but do not rewrite the whole roadmap unless necessary.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Execution Reset"
|
|
3
|
+
short_description: "Reset stalled plan execution and restore phase progress"
|
|
4
|
+
default_prompt: "Use $execution-reset with the active plan path and current phase to reset execution momentum and drive meaningful checklist progress."
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: foundational-redesign
|
|
3
|
+
description: Use for code changes, refactors, and migrations when quality matters. Treat the request as if it had been a foundational assumption from day one: inspect the current system, choose the clean target shape, implement direct replacement, and aggressively delete obsolete legacy code unless coexistence is explicitly required.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Foundational Redesign
|
|
7
|
+
|
|
8
|
+
Apply this skill when the change should leave the system cleaner, not just patched.
|
|
9
|
+
|
|
10
|
+
## Core rule
|
|
11
|
+
|
|
12
|
+
For each change, examine the existing system and redesign it into the most elegant solution that would have emerged if the change had been a foundational assumption from the start.
|
|
13
|
+
|
|
14
|
+
## Execution loop
|
|
15
|
+
|
|
16
|
+
1. Inspect the real current shape first: code paths, constraints, routed docs, and approved scope.
|
|
17
|
+
2. Define the clean target shape that would exist if this requirement had always been true.
|
|
18
|
+
3. Pick the smallest coherent redesign that reaches that target.
|
|
19
|
+
4. If the redesign is non-trivial (architecture/interface/data-model impact), explain the redesign decision to the user and get agreement before executing it.
|
|
20
|
+
5. Implement with direct replacement and aggressively delete legacy seams or compatibility scaffolding unless coexistence is explicitly required.
|
|
21
|
+
6. Before stopping, re-read every changed file (mandatory), compare against the current plan and agreed scope, and continue working if any gap remains.
|
|
22
|
+
|
|
23
|
+
## Output contract for non-trivial changes
|
|
24
|
+
|
|
25
|
+
Summarize:
|
|
26
|
+
|
|
27
|
+
- current shape
|
|
28
|
+
- target shape
|
|
29
|
+
- redesign decision confirmed with user (for non-trivial redesign)
|
|
30
|
+
- what legacy code was deleted
|
|
31
|
+
- what verification was run
|
|
32
|
+
- any remaining gap to close
|
|
33
|
+
|
|
34
|
+
## Gotchas
|
|
35
|
+
|
|
36
|
+
- Do not preserve legacy branches by default "just in case".
|
|
37
|
+
- Do not call work complete before the mandatory final file re-read.
|
|
38
|
+
- Do not stop at partial scope; continue until approved scope is actually satisfied.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Foundational Redesign"
|
|
3
|
+
short_description: "Redesign from first principles and delete legacy seams"
|
|
4
|
+
default_prompt: "Use $foundational-redesign for this change: inspect the existing system, design the clean target shape as if this requirement were foundational from the start, replace directly, and aggressively remove obsolete legacy code unless coexistence is explicitly required."
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-start
|
|
3
|
+
description: Start execution on an existing implementation plan in a fresh session. Use when a plan, roadmap, or phase list already exists and Codex needs to begin work on it without re-deriving everything from scratch. Rebuild context from the plan and current codebase, identify the active phase, choose the first meaningful work package, and begin execution.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Start from the plan and the current codebase, not from assumptions.
|
|
7
|
+
|
|
8
|
+
1. Read the referenced plan.
|
|
9
|
+
2. Inspect the current repository state relevant to that plan.
|
|
10
|
+
3. Determine:
|
|
11
|
+
- which phases are already complete
|
|
12
|
+
- which phase is active
|
|
13
|
+
- what remains in the active phase
|
|
14
|
+
4. Restate the active phase as concrete system behavior.
|
|
15
|
+
5. Select the first substantial work package.
|
|
16
|
+
6. Begin executing it immediately.
|
|
17
|
+
|
|
18
|
+
Use this output shape:
|
|
19
|
+
|
|
20
|
+
## Plan Start
|
|
21
|
+
### Active Phase
|
|
22
|
+
[phase]
|
|
23
|
+
|
|
24
|
+
### Goal
|
|
25
|
+
[what this phase must accomplish]
|
|
26
|
+
|
|
27
|
+
### Current State
|
|
28
|
+
- Complete: [...]
|
|
29
|
+
- In progress: [...]
|
|
30
|
+
- Missing: [...]
|
|
31
|
+
|
|
32
|
+
### First Work Package
|
|
33
|
+
[one substantial chunk]
|
|
34
|
+
|
|
35
|
+
### Definition of Done
|
|
36
|
+
[what makes this chunk complete]
|
|
37
|
+
|
|
38
|
+
Rules:
|
|
39
|
+
- Do not re-plan the whole project unless the plan is clearly stale.
|
|
40
|
+
- Do not spend the session on broad summaries when execution can begin.
|
|
41
|
+
- Do not start with cosmetic cleanup.
|
|
42
|
+
- Prefer the work package that most directly advances the active phase.
|
|
File without changes
|
|
@@ -105,7 +105,7 @@ Plans document your understanding. Include what matters for this task:
|
|
|
105
105
|
- **Phase breakdown**: Distinct execution phases in the order they should happen
|
|
106
106
|
- **Scope checklist**: Concrete implementation items that can be marked done or not done
|
|
107
107
|
- **Acceptance criteria**: What must be true when each phase is "done"
|
|
108
|
-
- **Phase checkpoints**: What verification, reviewer passes, tests, typechecks, builds, or manual QA must pass before moving to the next phase
|
|
108
|
+
- **Phase checkpoints**: What verification, reviewer passes, tests, typechecks, builds, or manual QA must pass before moving to the next phase, with explicit cadence (targeted checks during implementation, full sweeps at phase-complete or pre-commit checkpoints unless the user asks otherwise)
|
|
109
109
|
- **Grep gates**: Exact searches that must return clean before a phase is review-ready or complete
|
|
110
110
|
- **Cleanup expectations**: What legacy or replaced paths must be removed before the work can be called complete
|
|
111
111
|
- **Test cases**: For behavioral changes, include input -> expected output examples
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: replace-dont-layer
|
|
3
|
+
description: Prevent layering a new implementation path on top of an older one when the change should replace it. Use when modifying an existing flow, interface, abstraction, migration, or behavior and there is a risk of leaving both old and new paths alive. Determine whether the new path is additive, replacing, or transitional, and remove, redirect, or explicitly deprecate the old path as part of the same work.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Determine whether the requested change is additive, replacing, or transitional.
|
|
7
|
+
|
|
8
|
+
Identify the old path, the new path, and where each is used.
|
|
9
|
+
|
|
10
|
+
If the change is additive, keep both paths only if they serve clearly different intended roles.
|
|
11
|
+
|
|
12
|
+
If the change is replacing, do not just add the new path. In the same work:
|
|
13
|
+
- redirect callers to the new path
|
|
14
|
+
- remove or deprecate the old path
|
|
15
|
+
- delete obsolete conditionals, adapters, and compatibility glue
|
|
16
|
+
- update tests to reflect the intended single path
|
|
17
|
+
|
|
18
|
+
If the change is transitional:
|
|
19
|
+
- keep duplication to the minimum necessary
|
|
20
|
+
- make the temporary path explicit
|
|
21
|
+
- attach a concrete removal condition
|
|
22
|
+
- add a brief in-code comment only if it materially helps future cleanup, and make it specific rather than a vague TODO
|
|
23
|
+
|
|
24
|
+
Before considering the work complete, check whether both old and new paths still exist without a clear reason. If they do, keep cleaning up.
|
|
25
|
+
|
|
26
|
+
Rules:
|
|
27
|
+
- Do not keep both paths alive by default.
|
|
28
|
+
- Do not leave old logic in place just because removal feels riskier.
|
|
29
|
+
- Do not call the work complete if the new path exists but the old one still silently handles traffic.
|
|
30
|
+
- Prefer one clear path over split behavior.
|
|
31
|
+
- If temporary coexistence is necessary, make the exit condition explicit.
|
|
32
|
+
- Do not rely on vague TODO comments as the cleanup plan.
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-completeness
|
|
3
|
+
description: Use when implementation appears done and before reporting completion. Re-read the original plan and agreed scope, re-read files that were supposed to be created or changed, verify no approved scope was reduced or skipped, and continue working until the scope is truly complete.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Verify Completeness
|
|
7
|
+
|
|
8
|
+
Use this skill at final closeout, right before you would report the work complete.
|
|
9
|
+
|
|
10
|
+
## Required verification loop
|
|
11
|
+
|
|
12
|
+
1. Re-read the original plan and the latest agreed scope before deciding status.
|
|
13
|
+
2. Re-read `ACTIVE_PLANS.md` and `WORKSPACE.md` for current checklist, phase, blockers, and verification state.
|
|
14
|
+
3. Build the expected file set from plan/scope: files that were supposed to be created, modified, or deleted.
|
|
15
|
+
4. Re-read those files directly. This final re-read is mandatory even if they were read earlier in the session.
|
|
16
|
+
5. Compare expected scope vs actual outcome and list any missing or partially completed items.
|
|
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
|
+
7. Run a cleanup pass on changed files: remove duplicated logic, unnecessary abstractions/files, and low-value comments that create maintenance bloat.
|
|
19
|
+
8. 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.
|
|
20
|
+
9. 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.
|
|
21
|
+
|
|
22
|
+
## Completion gate
|
|
23
|
+
|
|
24
|
+
You can report complete only when all are true:
|
|
25
|
+
|
|
26
|
+
- approved scope items are done
|
|
27
|
+
- planned file changes match reality
|
|
28
|
+
- verification/checkpoints required by the plan were run at the required cadence, including full pre-commit checks when required (or explicitly called out as blocked)
|
|
29
|
+
- no hidden scope reduction occurred
|
|
30
|
+
- no unapproved scope expansion remains
|
|
31
|
+
- no obvious duplication or avoidable bloat remains in touched files
|
|
32
|
+
|
|
33
|
+
## Output contract
|
|
34
|
+
|
|
35
|
+
Before final status, summarize briefly:
|
|
36
|
+
|
|
37
|
+
- scope reviewed
|
|
38
|
+
- files re-read for final verification
|
|
39
|
+
- completed items
|
|
40
|
+
- removed unapproved extras or bloat cleanup applied
|
|
41
|
+
- remaining gaps (if any)
|
|
42
|
+
- next action (continue execution or complete)
|
|
43
|
+
|
|
44
|
+
## Gotchas
|
|
45
|
+
|
|
46
|
+
- Do not mark complete from memory; verify by re-reading files.
|
|
47
|
+
- Do not treat partial completion as done.
|
|
48
|
+
- Do not skip plan checkpoints just because code compiles.
|
|
49
|
+
- Do not keep speculative extras "for future-proofing" unless the user approved them.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
interface:
|
|
2
|
+
display_name: "Verify Completeness"
|
|
3
|
+
short_description: "Run a strict final scope and file verification pass"
|
|
4
|
+
default_prompt: "Use $verify-completeness now: re-read the approved plan and scope, re-read all files that were supposed to change, remove unapproved extras and obvious bloat, verify nothing was dropped, and keep working if any approved scope item is still incomplete."
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
.codex/agents/code-health-reviewer.toml
|
|
5
5
|
.codex/agents/plan-reviewer.toml
|
|
6
6
|
.agents/skills/planning/
|
|
7
|
+
.agents/skills/foundational-redesign/
|
|
8
|
+
.agents/skills/verify-completeness/
|
|
7
9
|
.agents/skills/work-tracker/
|
|
8
10
|
.agents/skills/docs-sync/
|
|
9
11
|
.agents/skills/code-guide-audit/
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
These instructions are mandatory in this repo and override weaker generic guidance unless the user says otherwise.
|
|
5
5
|
|
|
6
|
+
The most important rule: For each change, examine the existing system and redesign it into the most elegant solution that would have emerged if the change had been a foundational assumption from the start.
|
|
7
|
+
|
|
6
8
|
Waypoint owns only the text inside these `waypoint:start/end` markers.
|
|
7
9
|
If you need repo-specific AGENTS instructions, write them outside this managed block.
|
|
8
10
|
Do not put durable repo guidance inside the managed block, because `waypoint init` may replace it during upgrades.
|
|
@@ -19,13 +21,12 @@ This repo's default artifact flow is:
|
|
|
19
21
|
|
|
20
22
|
Run the Waypoint bootstrap only at session start, after compaction, or when the user explicitly asks for it:
|
|
21
23
|
1. Run `node .waypoint/scripts/prepare-context.mjs`
|
|
22
|
-
2. Read
|
|
23
|
-
3. Read `.waypoint/
|
|
24
|
-
4. Read `.waypoint/
|
|
25
|
-
5. Read `.waypoint/
|
|
26
|
-
6. Read `.waypoint/
|
|
27
|
-
7. Read `.waypoint/context/
|
|
28
|
-
8. Read `.waypoint/context/RECENT_THREAD.md`
|
|
24
|
+
2. Read `.waypoint/WORKSPACE.md`
|
|
25
|
+
3. Read `.waypoint/ACTIVE_PLANS.md`
|
|
26
|
+
4. Read `.waypoint/docs/code-guide.md`
|
|
27
|
+
5. Read `.waypoint/DOCS_INDEX.md`
|
|
28
|
+
6. Read `.waypoint/context/SNAPSHOT.md`
|
|
29
|
+
7. Read `.waypoint/context/RECENT_THREAD.md`
|
|
29
30
|
|
|
30
31
|
Investigate the actual code, docs, and routed context before you answer detailed questions or start implementation.
|
|
31
32
|
Prefer visible repo state over hidden assumptions or chat-only memory.
|
|
@@ -37,12 +38,14 @@ Once the user approves a plan or tells you to proceed, that approved scope is th
|
|
|
37
38
|
`WORKSPACE.md` is the live state file. `ACTIVE_PLANS.md` is the active execution checklist. Keep them current when state, blockers, or verification materially change.
|
|
38
39
|
When durable behavior changes, update the relevant docs during the work. When live execution state changes, update `WORKSPACE.md` or `ACTIVE_PLANS.md` during the work, not only at the end.
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
When changing code, do not hesitate to aggressively delete legacy code and rebuild the system when that is the clearest path to accomplishing the goal. Prefer clean replacement over compatibility scaffolding unless the user or project docs explicitly require coexistence.
|
|
41
42
|
|
|
42
43
|
Use reviewer passes when the work is non-trivial or risky, before PR-ready handoff, and before final closeout when helpful.
|
|
43
44
|
|
|
44
45
|
Keep communication concise. Lead with the answer, diagnosis, decision, or next step. Explain the diagnosis before implementation when the cause, tradeoffs, or solution shape are not already obvious.
|
|
45
46
|
|
|
46
47
|
Verification should match the real risk surface. Inspect real UI for UI work when practical, and run code or inspect real output for backend or script work when practical.
|
|
47
|
-
|
|
48
|
+
Do not run full repo typecheck/test/build loops after every small edit by default. Use targeted checks during implementation and run full checks before commit or when the user explicitly asks.
|
|
49
|
+
Before stopping, check the current plan and agreed scope, then re-read the files you changed to confirm they match the intended result. This final file re-read is mandatory even if you already read them earlier in the session. If the goal is not achieved, continue working.
|
|
50
|
+
When work is non-trivial and you are about to report completion, run `verify-completeness` for a final scope-and-files closeout pass, including unapproved-scope and bloat cleanup checks.
|
|
48
51
|
<!-- waypoint:end -->
|