Commit Graph

547 Commits

Author SHA1 Message Date
Kieran Klaassen 3b0ab86f46 docs(ce-replan-beta): u7 — refresh README Beta Skills wording
Updates the Beta Skills row to reflect the v2 two-phase shape
(re-brainstorm + re-plan, R-IDs carried forward, full redo from
main) and clarifies that all three original artifacts (PR, plan,
brainstorm) are preserved as superseded by reference.

bun test green (1340 pass / 0 fail). bun run release:validate clean.
2026-05-06 10:57:07 -07:00
Kieran Klaassen 69d80d8b69 feat(ce-replan-beta): u6 — wire two-phase flow into SKILL.md
Replaces v1's six-phase delta-shaped body with the v2 two-phase
flow:

- Phase 0: mode detection (PR# / blank / no-PR routing).
- Phase 1: discovery via four scripts + plan-merge-state probe.
  Uses ${CLAUDE_SKILL_DIR}/scripts/X.sh paths so the runtime Bash
  tool resolves them correctly (bare relative paths fail
  empirically per AGENTS.md). The allowed-tools frontmatter pins
  per-script entries so users skip the per-call permission prompt.
- Phase 2a/3a/4a: re-brainstorm phase, loaded from
  references/rebrainstorm-workflow.md and written via
  references/rebrainstorm-template.md. Skipped entirely when no
  upstream brainstorm exists (R3 from the brainstorm) — re-plan
  runs against the original plan + PR + learnings instead.
- Phase 2b/3b/4b: re-plan phase, loaded via
  references/replan-template.md. Always-from-main baseline; plan
  units cite R-IDs from origin:.
- Phase 5: handoff with explicit hard rule against unsolicited
  "what is not in this plan" summaries (R19 from the brainstorm,
  matching the cora-session friction). Branch base committed to
  main; ce-work invocation passes both the plan path and the
  branch base so ce-work doesn't re-ask the user.

Synthesis checkpoints stay prose, not menus — option sets bias
the answer at the synthesis layer. Pipeline mode skips both
synthesis prompts and the handoff menu; Inferred bets land in
## Assumptions in each artifact.
2026-05-06 10:56:35 -07:00
Kieran Klaassen f9bf54162d feat(ce-replan-beta): u5 — replan output template
Replaces v1's doc-template.md (deleted) with replan-template.md
that:

- Drops the per-requirement [unchanged]/[revised]/[discarded]
  block (now in the forked brainstorm; plan only references
  R-IDs from origin:).
- Hoists the always-from-main rule to the top so the load-bearing
  discipline is unmissable. Plan units' Files:, Approach:, and
  Test scenarios: are written for the main baseline; code on the
  original PR's branch must be named in Cherry-Pick Guidance.
- Adds explicit cherry-pick reference idiom: "Reuses path/... from
  original PR commit <sha> — see Cherry-Pick Guidance."
- Documents type: replan in frontmatter (distinguishes from
  feat/fix/refactor for downstream tooling) plus original_pr
  and the origin: pointer to the forked brainstorm.

Discipline checks: no silent assumption that PR-branch code is on
main; Discarded Approaches each name a specific learning, not
generic rationale.
2026-05-06 10:54:45 -07:00
Kieran Klaassen 0d2b805d59 feat(ce-replan-beta): u4 — forked brainstorm output template
Loaded by Phase 4a. Documents the filename pattern
(<topic>-rebrainstorm-requirements.md), frontmatter contract
(supersedes + revision), full section order, and the new
## Discarded Requirements section unique to forks.

Discipline checks: every original R-ID must be accounted for
(active list with [unchanged]/[revised] marker, or discarded
section with [discarded] marker — never silent drop). New R-IDs
continue from max+1; no ID reuse. Frontmatter supersedes: names
the immediately-prior brainstorm; chain walks to root.
2026-05-06 10:53:31 -07:00
Kieran Klaassen bf6900cacb feat(ce-replan-beta): u3 — re-brainstorm workflow reference
Replaces v1's regrounding-workflow.md (deleted) with a re-brainstorm
reference at the requirements scope. Documents the four-step pattern
(read artifacts in order with brainstorm last; re-derive problem
frame from user discussion language; walk every requirement assigning
[unchanged]/[revised]/[discarded] with R-ID stability; compose
three-bucket synthesis), the load-bearing R-ID stability rule, the
anti-patterns (diff-against-original, framing inheritance, critique
mode, brainstorm-from-zero, renumbering), the legacy fallback for
brainstorms without R-IDs, and a worked example based on the cora
brief-view scenario.

124 lines.
2026-05-06 10:52:36 -07:00
Kieran Klaassen 179faf5c3a feat(ce-replan-beta): u2 — surface jq failures + add brainstorm finder
fetch-pr-context.sh: add // [] defaults on every collection
traversal so missing keys produce structured empty arrays rather
than triggering jq exit code 5 (which the cora run silently
absorbed three times). Same defense for nullable .author.login on
deleted accounts.

find-original-brainstorm.sh: new script. Given a plan path, prefer
the plan frontmatter's origin: field; fall back to scoring
docs/brainstorms/*-requirements.md by topic-fragment match against
the plan's filename topic. Same scoring shape as
find-original-plan.sh (with '-' first in the tr SET so it is
literal, not a range).
2026-05-06 10:50:41 -07:00
Kieran Klaassen 64447d1444 feat(ce-replan-beta): u1 — scaffold v2 frontmatter and intro
Updates the skill description to reflect the two-phase
re-brainstorm + re-plan output. Adds allowed-tools frontmatter
pinned per script filename so the runtime Bash invocations in the
forthcoming Phase 1 (U6) skip the per-call permission prompt.
Rewrites the intro paragraph; phase content is intentionally
empty here and lands in U6.
2026-05-06 10:49:30 -07:00
Kieran Klaassen 3f6b835788 fix(review): apply autofix feedback
ce-code-review autofix pass (run 20260506-075859-f3ee7ae0):

- find-original-plan.sh: '-' moved to the front of the tr SET so it is
  literal. Previously written as '/-_+.', tr interpreted the '-' between
  '/' and '_' as a range, sweeping in uppercase letters and digits.
  Branches like JIRA-123-bug had their fragments silently destroyed by
  the unintended range translation; lowercase-only branch names happened
  to survive. Verified the fix produces correct fragment splits for both
  cases.
2026-05-06 07:59:30 -07:00
Kieran Klaassen 332e46f9f3 docs(ce-replan-beta): list the new skill in README Beta / Experimental
Surfaces ce-replan-beta in the Beta / Experimental table next to
ce-polish-beta. release:validate updates plugin counts automatically
during release-please runs; no manual count edits needed.
2026-05-06 07:55:42 -07:00
Kieran Klaassen a285ce1ed2 feat(ce-replan-beta): wire phase content into SKILL.md
Adds the full phase content: mode detection (PR# / blank / no-PR
routing), discovery via the three scripts, re-grounding (loads
references/regrounding-workflow.md), synthesis checkpoint, doc
write (loads references/doc-template.md), and handoff menu with
inline routing. Documents pipeline-mode behavior — skip synthesis
prompt, route Inferred bets to ## Assumptions, skip handoff menu.
Cross-platform interaction via AskUserQuestion plus equivalents.
2026-05-06 07:54:48 -07:00
Kieran Klaassen b3f0bfdf0a feat(ce-replan-beta): add output plan doc template
Defines the single canonical output template: frontmatter (with
original_pr/original_plan/supersedes), summary, re-grounded problem
frame, requirements with [unchanged]/[revise]/[discard] annotations,
discarded approaches, cherry-pick guidance table, supersedes block
with diff narrative, new learnings inventory, then standard ce-plan
body sections, then a suggested fresh branch name. Filename uses
the beta-skills framework's -beta-plan.md suffix to avoid colliding
with stable ce-plan output.
2026-05-06 07:53:31 -07:00
Kieran Klaassen 27ddf0499d feat(ce-replan-beta): add re-grounding workflow reference
Documents the four-step pattern: read artifacts (PR first, plan
last), re-derive the problem frame from user discussion language,
mark every original requirement [unchanged]/[revise]/[discard], and
compose a three-bucket synthesis. Includes anti-pattern callouts
(diff-against-plan, critique-mode, brainstorm-from-zero) and a
worked example based on the brief-view scenario.
2026-05-06 07:52:34 -07:00
Kieran Klaassen 8bba1cd6e6 feat(ce-replan-beta): add PR and original-plan discovery scripts
- detect-pr.sh: targets explicit PR or auto-detects current branch's,
  emits PR metadata JSON; exit code 2 sentinel for no-PR routing.
- fetch-pr-context.sh: GraphQL bundle of PR metadata, review threads,
  review bodies, top-level comments, and commits; minimal filtering so
  the agent decides what's signal.
- find-original-plan.sh: scores docs/plans/ filenames by branch-name
  fragment matches; prefers explicit PR-body link when given. Emits
  the top candidate so the synthesis checkpoint can confirm/correct.
2026-05-06 07:51:33 -07:00
Kieran Klaassen 9c1d439624 feat(ce-replan-beta): add skill scaffold and frontmatter
Creates the skill directory and SKILL.md with the beta-skills
framework frontmatter (name, [BETA] description, disable-model-
invocation, argument-hint) plus the phase outline. Phase content
is wired in U5 once references and scripts exist.
2026-05-06 07:49:52 -07:00
Kieran Klaassen e6746adcc4 feat(ce-demo-reel): add R2 upload + headless auto-upload + auto-start dev server
Upload changes:
- Add R2 (Cloudflare R2) as a permanent upload destination using AWS CLI
- In headless/background mode, auto-upload to R2 when env vars are set
  (R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET, R2_ENDPOINT, R2_PUBLIC_URL)
  without any user confirmation step
- In interactive mode, offer R2 as the first option in the destination menu
- Fall back to catbox if R2 upload fails

Browser reel tier:
- In headless mode, auto-start the dev server in background and poll for
  readiness (30s timeout) instead of asking the user to start it
- Track server PID for cleanup in Step 4

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 15:48:13 -07:00
github-actions[bot] 62170315ba chore: release main (#767)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-04 11:55:42 -05:00
Kieran Klaassen dde9256362 feat(riffrec-feedback-analysis): add Riffrec feedback skill with three-path routing (#747)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 11:12:56 -05:00
github-actions[bot] 06a7cee0ad chore: release main (#753)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-03 19:58:28 -07:00
hnshah e8567566b7 fix(ce-code-review): keep finding numbers stable (#754) 2026-05-03 18:59:03 -07:00
Trevin Chow a84cb759d0 fix(ce-commit-push-pr): use body-file for PR descriptions (#757) 2026-05-03 18:58:17 -07:00
hnshah caf5e1251c fix(ce-polish-beta): support Bash 3.2 project detection (#755) 2026-05-03 00:36:25 -07:00
David Gerő 9539bf045d fix(ce-compound, ce-sessions): remove bash parameter expansion from ! backtick (#752)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 10:44:09 -07:00
Trevin Chow 74624f8e7f refactor(ce-simplify-code): scope tests by ripple risk, not full suite (#749) 2026-05-01 16:18:12 -07:00
Trevin Chow 607c52ab7d refactor(code-review): move resolve-base.sh to scripts/ directory (#744)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 13:34:56 -07:00
github-actions[bot] d685f07948 chore: release main (#740)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-01 10:39:23 -07:00
Trevin Chow 520a9ebea0 fix(code-review): grant Write to JSON-pipeline reviewer agents (#741)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 10:24:40 -07:00
Trevin Chow 887db6b2ad fix(ce-setup): detect codex global skills (#739) 2026-05-01 09:22:48 -07:00
github-actions[bot] e12afb1e43 chore: release main (#728)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-01 07:23:44 -07:00
Trevin Chow ae408721cd chore(code-review): remove cli-readiness reviewer agents (#734) 2026-05-01 01:21:44 -07:00
Trevin Chow 2d20757412 feat(ce-simplify-code): add skill for simplifying recent code changes (#735) 2026-05-01 01:14:27 -07:00
Dan Dombrowski 3873b9e9de fix(ce-commit-push-pr): URL-encode parens in badge model-slug examples (#725) 2026-04-30 23:00:29 -07:00
Trevin Chow 5e04534137 fix(ce-compound,ce-sessions): handle non-git CWD in pre-resolved git branch (#731)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 22:59:15 -07:00
Trevin Chow 265cb4280f feat(ce-strategy): move strategy doc to root and add frontmatter (#732)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 22:07:12 -07:00
imwm cb8f9b3483 feat(ce-strategy,ce-product-pulse): add PM skills for upstream anchor and outcome pulse (#614) 2026-04-30 17:49:35 -07:00
David Gerő 8f804669b1 fix(ce-sessions): 722 ce-compound and ce-sessions permission error (#723)
Co-authored-by: davidpgero <davidpgero@kor-group.com>
2026-04-30 16:32:22 -07:00
Trevin Chow 15c1cde7b3 fix(ce-plan): close synthesis drift in rich-context invocations (#729) 2026-04-30 16:30:07 -07:00
Trevin Chow d217660b3d fix(review): default to harness-native code review, escalate on risk (#721)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 16:08:31 -07:00
github-actions[bot] e5b397c9d1 chore: release main (#719)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-28 21:53:53 -07:00
Trevin Chow 09fa18bcc1 fix(ce-code-review): comment-gate previous-comments persona to skip empty PRs (#720)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 21:53:03 -07:00
Trevin Chow 5ac1a063a9 fix(ce-code-review): mandate walkthrough.md load on walk-through entry (#718) 2026-04-28 20:39:20 -07:00
github-actions[bot] 3803e8ab3d chore: release main (#717)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-28 13:11:22 -07:00
Trevin Chow d69a772bb8 fix(review): queue reviewers when subagent slots fill (#716) 2026-04-28 13:01:10 -07:00
github-actions[bot] 48e83d9340 chore: release main (#703)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-28 12:44:22 -07:00
Matt Van Horn 0c515c06fe fix(ce-plan): inline post-generation menu routing so option 1 actually starts /ce-work (#715)
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
2026-04-28 10:33:11 -07:00
Trevin Chow 9751d1a30a fix(ce-code-review): restate model override at dispatch point (#681) 2026-04-28 01:11:29 -07:00
Trevin Chow e806522caa fix(ce-compound-refresh): check inbound links before deletion (#713) 2026-04-28 01:08:06 -07:00
Trevin Chow 1f0a77bcc1 fix(skills): replace shell antipatterns blocked by permission check (#711)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 00:14:27 -07:00
Trevin Chow 41e7f72ab6 feat(ce-brainstorm,ce-plan): surface agent's scope synthesis before doc-write (#705)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 20:34:30 -07:00
Trevin Chow cd2fc67c3f fix(commit-push-pr): branch from fresh remote base to prevent stale-base contamination (#708)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 16:39:17 -07:00
Trevin Chow 4b5f28da97 fix(ce-work-beta): defer model and reasoning effort to Codex config (#704)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 21:32:13 -07:00