E2e
Use when the user says /e2e, 'take this end to end', 'run the e2e flow', or gives a ticket/prompt to fully implement hands-off. Runs the plan→approve-once→implement→review→ship pipeline where Fable plans, Sol (codex) writes all code headlessly, and both review.From its SKILL.md
npx -y skills add jjholmes927/jjholmes927-claude-skills --skill e2eAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
11.6 KB, as published. Nobody here has run it
e2e — Fable plans, Sol implements, both review
Wrapper script: ${CLAUDE_PLUGIN_ROOT}/skills/e2e/scripts/e2e-codex.sh
(run <workdir> <effort> <prompt-file> → prints codex thread id; resume <workdir> <thread-id> <effort> <prompt-file>; review <workdir> [--commit <sha>|--base <branch>|--uncommitted]; audit <workdir> <prompt-file> → read-only sandbox, prints Sol's verdict)
Iron Laws
Violating the letter of a law is violating the law — there is no spirit-of-the-law exception.
- Fable never writes production code — no exception for one-line fixes. All code goes through the wrapper to Sol.
- The plan gate is the only human gate — never add or skip gates.
- Two failures at any stage = hard-stop and report (worktree path, task, thread ids, last error) — never delete the worktree.
Red Flags — STOP
- Writing code yourself → STOP, route it through
e2e-codex.shto Sol. - Adding a confirmation stop after plan approval → STOP, proceed; the plan gate was the only gate.
- Running a loop past its cap (implement: 1 retry; Fable fix loop: 3; CI fix: 2; plan audit: 2) → STOP, hard-stop and carry findings to PR comments.
- Deleting/recreating the worktree after failure → STOP, leave it and report its path.
- Shipping with unresolved findings → STOP, post each as a
[e2e unresolved]PR comment first.
Rationalizations
| Excuse | Reality |
|---|---|
| It's a one-line fix, faster myself | All code goes through Sol — no line-count threshold |
| Sol failed twice, I'll finish it | Two failures = hard-stop and report, not takeover |
| I'll just add one more check-in with the user | The plan gate is the ONLY gate |
| Findings are minor, ship clean | Every unresolved finding becomes a PR comment |
When NOT to use
Trivial single-file changes, or when the user wants per-task involvement.
Dependencies
codex CLI (authenticated), gh CLI, superpowers plugin, this plugin's ship + pick-up-linear-ticket commands.
Arguments
/e2e INT-123— Linear ticket: first invoke joel-workflow pick-up-linear-ticket for context and status moves./e2e "<task description>"— ad-hoc prompt.--dry-runanywhere in the args: run stages 1–2 normally, then print every wrapper/gh/ship command verbatim instead of executing it, write nothing outside.e2e/, and stop before ship. Recommended on first use in a new repo.
Stage 1 — Plan (Fable)
-
If the argument is a Linear ticket id, invoke the pick-up-linear-ticket command from this plugin first.
-
Invoke superpowers:brainstorming (keep it brief for small, well-specified tasks), then superpowers:writing-plans.
-
The plan MUST give each task: exact file paths, test expectations, and an effort grade by task complexity (not project importance):
Task shape Grade Touches 1–2 files, fully specified, mechanical low Routine feature code, clear pattern to follow medium Cross-cutting or multi-file integration high Algorithmic, subtle correctness, or tricky domain logic xhigh -
Sol plan audit (cross-model, before the human sees the plan): write the plan plus "Audit this plan for correctness, security, and completeness against the repo. Verdict: READY, or REVISE with concrete issues." to a temp file; run
e2e-codex.sh audit <repo-root> <file>(read-only sandbox — safe on the main checkout). On REVISE, fix the issues and re-audit. Max 2 audit rounds; if still REVISE, present the plan with the unresolved audit notes attached. -
Present the plan at the gate:
- If the plan touches anything user-facing (UI, copy, notifications end users see), has 3+ tasks, or has any task graded high/xhigh: publish a plan-review Artifact rendered FROM the plan file (load the
artifact-designskill first). Decisions-first layout: TL;DR stats (tasks, effort grades, migrations, test counts), a small UI mockup when the change is user-facing, the locked decisions, one card per task (files, effort grade, tests), the full Sol audit trail (each round's verdict and what was fixed, unresolved notes flagged), and an on-approve pipeline strip. The plan.mdstays canonical — the artifact is a rendering; regenerate it from the file after any plan change, never edit it independently. - If none of those hold (small, internal-only plan): no artifact. The gate message is a short chat summary — TL;DR stats, locked decisions, audit trail one-liners — plus the raw plan path.
- Send the artifact URL (when one was published) plus the raw plan path, then ONE Approve/Revise question (AskUserQuestion). Invite task-anchored notes ("T2: …") via the Other option.
- WAIT for explicit approval. This is the gate — do not start Stage 2 without it, and do not add further approval stops after it.
- If the plan touches anything user-facing (UI, copy, notifications end users see), has 3+ tasks, or has any task graded high/xhigh: publish a plan-review Artifact rendered FROM the plan file (load the
Stage 2 — Workspace
Branch: jjholmes927-<slug>[-TICKET]. Resolve the workspace in this order:
- Already isolated? If
[ -n "$CLAUDE_JOB_DIR" ]ANDgit rev-parse --git-common-dirdiffers from.git/, this session is a background job that has already been moved into its own worktree — use the CURRENT worktree as the workspace and create the branch in place. Never create a worktree inside it. - Project provisioning next. Else, if the repo ships
bin/create_worktree, runbin/create_worktree <branch>and cd into the worktree it creates — it provisions env, database, credentials and agent memory fail-closed, which the generic skill cannot. - Fallback. Only when neither applies, invoke superpowers:using-git-worktrees.
Record the worktree path. Create .e2e/ inside it and append .e2e/ to the file at git -C <worktree> rev-parse --git-path info/exclude (in a worktree .git is a file, so the literal .git/info/exclude path does not exist; this resolves the real exclude file). This MUST happen before Stage 3 writes anything, else the no-diff check misreads .e2e/ noise.
Stage 3 — Implement each task (Sol)
For each plan task, in order:
- Write the task prompt to
.e2e/task-N-prompt.mdcontaining: the plan task verbatim; relevant constraints from neighbouring tasks; "Read AGENTS.md (or CLAUDE.md if no AGENTS.md) in the repo root and follow its conventions"; "HARD RULE — NEVER add code comments: no explanatory, doc, or rationale comments, not even for non-obvious workarounds. Only exceptions: machine-required directives (rubocop:disable, eslint-disable, frozen_string_literal, shebangs) and updating an EXISTING comment your change makes factually stale. If something needs explaining, say it in your final message instead."; "Run the project's tests for the code you changed and make them pass before finishing"; "Do not commit". - Run:
e2e-codex.sh run <worktree> <effort> .e2e/task-N-prompt.md→ capture thread id. - Append
task-N<TAB><thread-id><TAB><effort><TAB>implementedto.e2e/sessions.tsv. Track every attempt's status by updating this file — never count retries from memory. - Failure policy (implement: 1 retry then stop): non-zero exit or no diff (
git -C <worktree> status --porcelainempty) → retry ONCE with the error/.e2e/last-message.txttail appended to the prompt, recording the retry in.e2e/sessions.tsv. Second failure → hard-stop per the Iron Laws.- Sandbox network is enabled via the wrapper, but on macOS codex's seatbelt has historically ignored it. If a failure looks like network/dependency-install denial rather than a code problem, do NOT burn the retry — surface it and suggest pre-installing deps in the worktree first.
- If the wrapper prints no thread id, or the JSONL log is empty/malformed, treat it as a stage failure: inspect
.e2e/codex-*.jsonlbefore retrying.
- Checkpoint commit:
git -C <worktree> add -A && git -C <worktree> commit -m "wip: task N — <task title>". Record the sha.
Stage 4 — Sol self-review
e2e-codex.sh review <worktree> --commit <task-sha>→ capture output.- If it reports findings: write them to
.e2e/task-N-selffix.mdwith "Fix these findings from your own review", thene2e-codex.sh resume <worktree> <thread-id> <effort> .e2e/task-N-selffix.md, and amend:git -C <worktree> add -A && git -C <worktree> commit --amend --no-edit. Amending rewrites the sha: re-capture it withgit -C <worktree> rev-parse HEADand use that fresh sha for all later reviews; never reuse a pre-amend sha. One self-review pass only.
Stage 5 — Fable review + fix loop (per-task Fable fix loop: 3 max)
- Dispatch a code-reviewer subagent (superpowers:requesting-code-review conventions) on
git -C <worktree> show <task-sha>with the plan task as context, instructed to try to REFUTE its own findings before reporting — only findings that survive refutation are returned. Findings must be concrete: file, line, defect, why it matters. - Arbitrate and label each surviving finding by agreement:
[both](Sol's Stage 4 self-review also flagged it),[claude-only], or[codex-only](from Stage 4 but unfixed). Drop refuted findings and nits; keep real defects —[both]findings are highest-confidence, never drop them without re-verification. - If real defects remain: write them to
.e2e/task-N-fix-<loop>.mdas a fix brief,e2e-codex.sh resumewith the task's effort, amend the checkpoint commit, then re-capture the sha withgit -C <worktree> rev-parse HEADand use that fresh sha for all later reviews (never reuse a pre-amend sha), and re-verify each finding yourself (read the diff — do not re-run the full review). Record each loop's status in.e2e/sessions.tsv— count loops from the file, never from memory. - After 3 loops, carry unresolved findings forward to Stage 7's PR-comment list, keeping their agreement labels.
Stage 6 — Final branch review (Fable)
Whole-branch check against the approved plan: every task present, no plan drift, cross-task coherence (naming, duplication, dead code). Real defects → one fix loop via e2e-codex.sh resume against the most relevant task session (effort high); still-unresolved → PR-comment list.
Stage 7 — Ship
-
The plan file never enters the branch — docs/plans/ is a local working document; the PR carries implementation only. Invoke the ship command from this plugin inside the worktree. Let it format, commit leftovers, push, open the PR (What/Why), and watch CI. Before ship commits leftovers, confirm
git statusshows no plan file staged (it should be gitignored; if not, leave it untracked).Red flag — hand-rolling Stage 7 is a violation. Running
git push/gh pr create/ a CI watch directly instead of invoking ship skips ship's verify gate, and transcript audits show this is the main path by which unverified changes reach PRs. Stacked PRs, multi-repo pushes, and "it's just a small branch" are not exemptions: invoke ship per branch. If ship genuinely cannot run (e.g. its skill is unavailable in this session), say so in the Stage 7 report and run /verify manually before any push. -
Post each carried-forward finding as a PR comment:
gh pr comment <num> --body "..."prefixed with[e2e unresolved]. -
CI failures (CI fix: 2 max): hand the failure log to
e2e-codex.sh resume(efforthigh, most relevant task session), push, re-watch. Record each round in.e2e/sessions.tsvand count from the file, never from memory. After 2 rounds, hard-stop and report. -
Report: PR URL, tasks completed, fix-loop counts, unresolved findings, total codex sessions.