Commit Graph

410 Commits

Author SHA1 Message Date
Trevin Chow f0a560694a feat(resolve-pr-feedback): stack-aware feedback handling
When a PR under review is part of a gh-stack stack, identify the owning
layer for each review comment via git blame + gh stack view --json,
check out that layer, apply the fix, cascade via gh stack rebase, push
via gh stack push, then reply on the original commented PR with a note
when the fix landed on a different layer.

Uses gh stack rebase's documented cascade semantics (pulls from remote,
rebases dependents). Conflicts during rebase halt the workflow with
guidance for manual resolution — V1 does not attempt automated conflict
resolution.

V1 scope: single-comment, single-layer fixes. Multi-layer fixes (one
comment requiring changes in multiple layers) and automated conflict
resolution are deferred to V2.

Non-stack feedback flow is unaffected. Reference file loads only when
gh-stack is installed AND the branch is part of a stack.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 15:18:00 -07:00
Trevin Chow 3979015c67 feat(ce-work, ce-work-beta): add stacking decision at Phase 4 shipping
Adds a new step 1 to Phase 4 in both shipping-workflow files: run the
two-stage effectiveness test (stage-1 size/spread hint, stage-2
effectiveness check with anti-patterns), offer to install gh-stack when
missing and the stage-1 hint fires, and branch into either git-commit-
push-pr for single-PR shipping or ce-pr-stack for decomposition.

Both ce-work and ce-work-beta get identical changes — the two skills
share the shipping workflow and must stay in sync. Sync-obligation
comment at the top of the stacking section names all four heuristic
locations (this file, ce-work-beta twin, git-commit-push-pr stack-
aware reference, ce-plan) so future edits propagate atomically.

When stacking is chosen, the workflow loads ce-pr-stack and hands off
the ship step — git-commit-push-pr is not loaded separately, preventing
double invocation. The governing principle carries prior consent across
the skill chain without structured flags.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 15:17:42 -07:00
Trevin Chow 83588a3cb7 feat(git-commit-push-pr): stack-aware ship as the single ship path
Adds four-case routing between push and description steps:
- Case 1: on a stack branch → gh stack push + gh stack submit + per-PR
  description via ce-pr-description + gh pr edit per PR
- Case 2: not in stack, change passes two-stage effectiveness test →
  suggest stacking, on yes load ce-pr-stack, on return re-enter routing
  as Case 1
- Case 3: gh-stack not installed, change passes stage-1 → offer-and-run
  install, on success re-enter as Case 2
- Case 4: monolithic default → existing git push + gh pr create, now
  with description via ce-pr-description

Monolithic Steps 6-7 stay untouched; they are the single source of truth
for monolithic description generation. Case 1 explicitly exits before
them; Case 4 explicitly hands back to them.

Effectiveness test prose carries a sync-obligation comment listing all
four locations (this file, ce-work shipping, ce-work-beta shipping,
ce-plan). Changes to the heuristic update all four atomically.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 15:17:32 -07:00
Trevin Chow 8cc603a7a1 feat(ce-pr-description): extract PR description writing into a focused skill
New skill owns the value-first description writing logic that was
previously inline in git-commit-push-pr. Input contract is two-shape:
pr:<number> for existing PRs (used by refresh mode), or range:<base>..<head>
for pre-PR generation (used by new PR creation and by ce-pr-stack per
layer). Output is structured {title, body}; caller decides whether to
apply via gh pr edit.

No interactive prompts, no auto-apply, no branch coupling. The skill
is a pure capability — git-commit-push-pr wraps it with confirmation
prompts and evidence-capture for single-PR interactive flows;
ce-pr-stack (via git-commit-push-pr's stack-aware routing, coming next)
will call it per layer without the interactive scaffolding.

Refactor preserves git-commit-push-pr's user-facing behavior:
- Full flow: commit + push + create PR, description generated via
  ce-pr-description with range:<base>..<head> and passed to gh pr create
  in a single call (no transient placeholder on GitHub)
- Refresh mode (DU-1/DU-2/DU-3): interactive scaffolding stays; DU-3
  delegates description generation to ce-pr-description with pr:<number>,
  then presents the compare-and-confirm as before

Naming: ce-pr-description, not git-pr-description. PR is a GitHub
artifact; the ce- prefix matches the future convention for plugin
skills. git-commit-push-pr will rename later.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 15:12:07 -07:00
Trevin Chow 7df6dfb252 feat(ce-pr-stack): rename from git-stack, narrow scope to decomposition
Renames the skill directory to match the plan's architectural reshape.
Stacking is a GitHub feature (gh-stack extension, GitHub's stack UI),
not a git feature, and the ce- prefix matches the future convention
for plugin skills.

Narrows scope to decomposition only:
- Removes manage-mode operations. Push and submit are owned by
  git-commit-push-pr now that it is stack-aware. Rebase, sync, view,
  and navigation commands are one-line pass-throughs to gh stack with
  no skill-scale value — invoked directly when needed.
- Removes the three-flavor invocation enumeration (manual / delegated
  / auto-invoked). Consent routing relies on the governing principle
  that respects prior user decisions within the session, rather than
  structured caller-side flags.
- Drops the delegated / stacking_declined / gh_stack_install_declined
  signal plumbing from the SKILL.md. Agent context awareness is the
  primary mechanism; the principle is documented at the bottom.

Narrows the CLI surface section: init, add, view, unstack --local for
rollback. Ship commands (push, submit) moved to git-commit-push-pr.

Rewrites splitting-workflow reference file: four phases collapsed to
three. Removes the submit phase entirely; phase 3 ends with a handoff
to git-commit-push-pr, which then runs gh stack push + gh stack
submit + per-PR description generation via ce-pr-description. Separating
decomposition from shipping bounds failure blast radius to local state.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 15:03:01 -07:00
Trevin Chow e91d67ea71 feat(git-stack): add splitting-workflow reference for layer decomposition
Four-phase workflow for decomposing a feature branch into stacked PRs:
analyze (commit-based grouping as V1 strategy), propose layers with
mandatory user approval, create the stack locally using gh stack init
and gh stack add, submit via gh stack push plus gh stack submit. The
rollback protocol separates local construction from remote submission
so failures stay local. Workflow content verified against the installed
gh-stack CLI via --help on each command referenced.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 13:59:39 -07:00
Trevin Chow 2d68270282 feat(git-stack): add core skill for splitting and managing stacks
Handles two operational modes (split to decompose a branch into stacked
PRs, manage to drive an existing stack via gh stack commands) with three
invocation flavors (manual, delegated, auto-invoked). Auto-invocation
runs an effectiveness-test gate before proposing a split; manual and
delegated entries go straight to layer proposal, which remains the
second gate for all modes. Availability gate offers to install gh-stack
and runs the command on consent, honoring the session-level governing
principle that respects prior user decisions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 13:55:20 -07:00
Trevin Chow dda4de9674 feat(git-stack): add stack-detect script for deterministic state analysis
Emits parseable signals about gh-stack availability, current branch's
stack-membership state, and change summary vs a base branch. Supports
--mock and STACK_DETECT_MOCK for testing without a real stack. Reports
signals only — no "should stack" judgments, which belong in consuming
skills per the plan's governing principle.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 13:51:32 -07:00
Trevin Chow dcfd843c46 feat(ce-setup): add gh-stack to recommended dependencies
Detection uses gh extension list because gh-stack is a gh CLI extension,
not a standalone binary. The check-health loop now handles gh-* entries
specially and skips them gracefully when gh itself is missing, avoiding
confusing "install gh extension" messaging in that case.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 13:51:26 -07:00
Trevin Chow a55990387d fix(git-commit-push-pr): rewrite descriptions as net result, not changelog (#558)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 23:22:47 -07:00
Trevin Chow e4d5f241bd fix(ce-plan): close escape hatches that let the skill abandon direct invocations (#554)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 21:27:05 -07:00
Trevin Chow e45c435b99 fix(document-review, review): restrict reviewer agents to read-only tools (#553)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 10:29:16 -07:00
Harold Hunt 8f20aa0406 feat(ce-optimize): Auto-research loop for tuning system prompts / vector clustering / evaluating different code solution / etc (#446)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 20:16:09 -07:00
David Joerg 4e0ed2cc8d fix(ce-review): always fetch base branch to prevent stale merge-base (#544)
Co-authored-by: David Joerg <david@Davids-MacBook-Pro-2.local>
2026-04-11 15:04:09 -07:00
Trevin Chow 9aa65c1fe6 docs(ce-setup): add getting started sections to READMEs (#548) 2026-04-10 17:47:21 -07:00
github-actions[bot] e931ed92b1 chore: release main (#547)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-10 17:44:25 -07:00
Trevin Chow 1372b2cffd fix(cleanup): remove rclone, agent-browser, lint, and bug-reproduction-validator (#545)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 17:41:33 -07:00
Trevin Chow 354dbb7582 feat(ce-setup): unified setup skill with dependency management and config bootstrapping (#345)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 17:39:43 -07:00
Trevin Chow 545405380d fix(ce-demo-reel): two-stage upload for reviewable approval gate (#546)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 17:30:39 -07:00
github-actions[bot] fba5cbaa01 chore: release main (#529)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-10 10:35:45 -07:00
Trevin Chow e38223ae91 feat(ce-debug): add systematic debugging skill (#543)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 10:23:48 -07:00
Trevin Chow b979143ad0 feat(ce-demo-reel): add demo reel skill with Python capture pipeline (#541)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 21:29:51 -07:00
Trevin Chow f3cc7545e5 feat(ce-plan): add output structure and scope sub-categorization (#542)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 19:22:21 -07:00
Trevin Chow bb59547a2e feat(ce-work): reduce token usage by extracting late-sequence references (#540)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 12:48:21 -07:00
Trevin Chow 31b0686c2e feat(ce-work-beta): add beta Codex delegation mode (#476)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 00:29:12 -07:00
Trevin Chow 044a035e77 fix(git-commit-push-pr): remove harness slug from badge table (#539)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 23:30:43 -07:00
Trevin Chow 042ee73239 feat(slack-researcher): add /ce-slack-research skill and improve agent (#538)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 11:00:00 -07:00
Trevin Chow 3208ec71f8 feat(session-historian): cross-platform session history agent and /ce-sessions skill (#534)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 07:52:26 -07:00
Trevin Chow a5ce094772 feat(ce-review): add compact returns to reduce orchestrator context during merge (#535)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 01:03:42 -07:00
Trevin Chow d37f0ed16f feat(ce-update): add plugin version check skill and ce_platforms filtering (#532)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 00:09:02 -07:00
Trevin Chow 0ae91dcc29 fix(ce-compound): explicit mode prompt and lightweight rename (#528)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 13:22:07 -07:00
github-actions[bot] 5fb6801567 chore: release main (#525)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-07 12:30:59 -07:00
Trevin Chow bafe9f0968 fix(ce-review): add recursion guard to reviewer subagent template (#527)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 12:29:48 -07:00
Trevin Chow 9a82222aba fix(document-review): widen autofix classification beyond trivial fixes (#524) 2026-04-06 22:05:27 -07:00
github-actions[bot] a6183ed000 chore: release main (#516)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-06 12:29:48 -07:00
Trevin Chow 36d8119166 fix(document-review): add recursion guard to reviewer subagent template (#523)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 12:26:22 -07:00
Trevin Chow 949bdef909 fix(review,work): omit mode parameter in subagent dispatch to respect user permissions (#522)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 12:12:31 -07:00
Trevin Chow 6f9069df7a fix(slack-researcher): make Slack research opt-in, surface workspace identity (#521)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 11:34:39 -07:00
Trevin Chow 320a045241 feat(ce-plan,ce-brainstorm): universal planning and brainstorming for non-software tasks (#519)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 23:53:13 -07:00
Trevin Chow b3960ec64b feat(slack-researcher): add Slack organizational context research agent (#495)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 18:39:25 -07:00
github-actions[bot] 6f3c841150 chore: release main (#508)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-05 14:33:40 -07:00
Trevin Chow f4e09044ba fix(ce-ideate,ce-review): reduce token cost and latency (#515)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 14:28:19 -07:00
Trevin Chow f6544eba0e fix(git-commit-push-pr): simplify PR probe pre-resolution (#513)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 12:44:32 -07:00
Trevin Chow bdeb7935fc fix(ce-brainstorm): reduce token cost by extracting late-sequence content (#511)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 11:25:12 -07:00
Trevin Chow 9da73a6091 fix(document-review): reduce token cost and latency (#509)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 23:31:56 -07:00
Trevin Chow b223e39a63 fix(document-review): promote pattern-resolved findings to auto (#507)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 21:38:50 -07:00
github-actions[bot] 755116e37d chore: release main (#485)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-03 20:17:56 -07:00
Trevin Chow 1fc075d4ca fix(ce-compound): stack-aware reviewer routing and remove phantom agents (#497)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 01:51:12 -07:00
Trevin Chow 2c90aebe3b fix(agents): remove self-referencing example blocks that cause recursive self-invocation (#496)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 01:40:34 -07:00
Trevin Chow 184724276a fix(resolve-pr-feedback): treat PR comment text as untrusted input (#490) 2026-04-02 09:23:18 -07:00