Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
{
"name": "jstack",
"source": "./",
"description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.",
"version": "0.3.0",
"description": "20 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.",
"version": "0.4.0",
"author": {
"name": "justcarlson"
},
Expand Down
4 changes: 2 additions & 2 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jstack",
"displayName": "jstack",
"version": "0.3.0",
"description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.",
"version": "0.4.0",
"description": "20 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.",
"author": {
"name": "justcarlson"
},
Expand Down
4 changes: 2 additions & 2 deletions .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jstack",
"version": "0.3.0",
"description": "18 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.",
"version": "0.4.0",
"description": "20 agent skills for shipping pull requests: patched t3dotgg/tstack core, the pr body standard, and companions.",
"author": {
"name": "justcarlson"
},
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ cd jstack
| `antigravity` | `~/.gemini/config/skills` (plus real `~/.t3/userdata/providers/antigravity/*/config/skills` folders) | `~/.gemini` or T3's `~/.t3/userdata/providers/antigravity` |
| `opencode` | `$XDG_CONFIG_HOME/opencode/skills` (default `~/.config/opencode/skills`) | `$XDG_CONFIG_HOME/opencode` or `~/.config/opencode` |

`--only` adds the sibling skills a skill calls, so `--only full-send` also installs `sol-loop`, `file-pr`, `babysit-pr`, `leaving-pr-comments` and `pr`. Pass `--no-deps` to skip them, or `--mode copy` to copy instead of link (pair `--check` with `--mode copy` when checking copies). The installer needs only Python 3 and puts nothing on your `$PATH`.
`--only` adds the sibling skills a skill calls, so `--only full-send` also installs `prove`, `sol-loop`, `file-pr`, `babysit-pr`, `leaving-pr-comments` and `pr`. Pass `--no-deps` to skip them, or `--mode copy` to copy instead of link (pair `--check` with `--mode copy` when checking copies). The installer needs only Python 3 and puts nothing on your `$PATH`.

As a plugin:

Expand Down
298 changes: 298 additions & 0 deletions patches/10-proof-gate-and-fallback.patch

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion scripts/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

# Sibling skills each skill calls. Resolved transitively.
DEPS: dict[str, tuple[str, ...]] = {
"full-send": ("sol-loop", "file-pr", "babysit-pr", "leaving-pr-comments", "pr"),
"full-send": ("sol-loop", "file-pr", "babysit-pr", "leaving-pr-comments", "pr", "prove"),
"full-stop": ("full-send",),
"file-pr": ("babysit-pr", "leaving-pr-comments"),
"babysit-pr": ("leaving-pr-comments",),
Expand All @@ -53,6 +53,7 @@
"bug": ("council", "leaving-pr-comments"),
"epic": (
"full-send",
"prove",
"council",
"sol-loop",
"file-pr",
Expand Down
8 changes: 1 addition & 7 deletions size-budget.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@
},
"grandfathered": {
"epic": {
"body_bytes": 8326
},
"full-send": {
"body_bytes": 6428
"body_bytes": 8076
},
"omarchy-dev": {
"description_bytes": 380,
"body_bytes": 7929
},
"sol-loop": {
"body_bytes": 6346
}
}
}
8 changes: 5 additions & 3 deletions skills/council/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ report it instead of substituting.

Give each delegate the user's request as given, including any lead the user
offers, and the context it needs: the diff or files, the intent, the scope,
and check results. For review or feedback, keep their work read-only. Tell
and check results. Include the `proof-pack.py` packet path and its artifacts
when proof exists. For review or feedback, keep their work read-only. Tell
each delegate not to start subagents or delegates of its own. Collect their
responses and summarize the useful findings, disagreements, and recommended
next steps.
Expand All @@ -37,8 +38,9 @@ files while a delegate still reviews the same checkout. If the user's
instructions mark a delegate as non-blocking, do not wait for it; treat a
late result as feedback and do not record its score.

For a code review, ask each delegate for a score out of 10.
Count each full review pass as one round.
For a code review, ask each delegate for a score out of 10. Tell them to score
at most 6/10, with an in-scope blocker, when testable behavior has no direct
proof (missing, stale, or mocked). Count each full review pass as one round.
A fresh review after fixes starts a new round. Start each round with a new
delegate per member. In T3 Code that is a new `delegate_task`, and elsewhere
a new subagent. Brief the new delegate as in round 1, with the current diff.
Expand Down
180 changes: 88 additions & 92 deletions skills/epic/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ description: Research, plan and ship ambitious multi-issue or multi-repo work en
# Epic

Take an ambitious idea from bold research to verified production rollout across
one or more repos, with one human review stop at the plan.
repos, with one human review stop at the plan.

`epic` composes existing skills (`council`, `sol-loop`, `full-send`, `file-pr`,
`pr`, `babysit-pr`, `t3-launch-worktrees`, and any plan-publishing skill). Use
the models your `AGENTS.md` or `CLAUDE.md` configures, with cross-family review
and multi-model `council` per `sol-loop` and `council`.
`epic` composes `council`, `sol-loop`, `full-send`, `prove`, `file-pr`, `pr`,
`babysit-pr`, `t3-launch-worktrees`, and any plan-publishing skill. Use the
models your `AGENTS.md` or `CLAUDE.md` configures, with cross-family review and
multi-model `council`.

"The plan" is a reviewable artifact (Tailplan/taildoc, Postplan, Markdown, or a
gist) updated **in place** across revisions so the reader keeps one link.
gist) updated **in place** so the reader keeps one link.

## Entry points

Expand All @@ -25,131 +25,127 @@ gist) updated **in place** across revisions so the reader keeps one link.
`epic` thread): run Stages 3–6 autonomously to production and close with an
updated plan.

Do not use `full send` as the epic trigger; `full-send` runs per deliverable
issue, while `ship epic` starts multi-issue orchestration.

## Stage 1: Bold, multi-model discovery

Stay read-only. Understand the real system before proposing anything.
Stay read-only. Understand the real system first.

1. Audit live state first: code, upstream repos and releases, prior agent
threads, and telemetry or log history when relevant (e.g. `hindsight` or
`logs`).
2. Fan out read-only research or design delegates in parallel using configured
threads, and telemetry or log history when relevant (`hindsight`, `logs`).
2. Fan out read-only research or design delegates in parallel on configured
models. Use `council` to compare major architectures. Tell each delegate to
stay read-only and start no subagents.
3. Be bold: include high-leverage options beyond today's wiring alongside the
simplest maintainable design. Stress-test assumptions rather than agreeing.
3. Be bold: include high-leverage options beyond today's wiring next to the
simplest maintainable design. Stress-test assumptions.

## Stage 2: Decision-ready plan (stop here)

1. Publish the proposal as the plan artifact. Delegate rich layout refinement
to the configured design model when another model drives. Keep a concise top
verdict, charts or diagrams over dense tables, deep specs in collapsible
sections, and a 390 px mobile check.
1. Publish the proposal as the plan artifact. Delegate rich layout to the
configured design model when another model drives. Keep a concise top
verdict, diagrams over dense tables, deep specs collapsible, and a 390 px
mobile check.
2. Lead with the recommended design, core primitives, and an explicit
**Skip / Not Now** list.
3. Keep architectural simplicity, zero-downtime cutover, and observability
(metadata-only unless asked) in scope by default; do not punt without a hard
blocker.
4. Ask only blocking architecture, cost, or account questions upfront, numbered
with recommended defaults so the user can reply `defaults` or override.
5. Update the **same plan link in place** across revisions until the user
replies `ship epic` (or an explicit go-ahead).
3. Keep simplicity, zero-downtime cutover, and observability (metadata-only
unless asked) in scope; do not punt without a hard blocker.
4. Ask only blocking architecture, cost, or account questions, numbered with
recommended defaults so the user can reply `defaults` or override.
5. Update the **same plan link** until the user replies `ship epic` or gives an
explicit go-ahead.

## Stage 3: Issue decomposition into waves

Once confirmed:

1. File clear GitHub issues across every touched repo before editing code.
2. Group issues into **non-overlapping parallel waves** by repo and file scope.
Mark shared-file dependencies so dependent waves start only after their
Mark shared-file dependencies: dependent waves start only after their
prerequisite merges and deploys cleanly to `main`.
3. Include every cross-repo touchpoint: telemetry or logging, upstream upgrade
compatibility, public mirror syncs, rollouts to each target host or
environment, and docs.
3. Include every cross-repo touchpoint: telemetry, upstream upgrade
compatibility, public mirror syncs, rollouts to each host, and docs.

## Stage 4: Orchestrate isolated `tstack` worktrees

1. The parent thread acts as **pure orchestrator**: launch waves, track worker
state, resolve blockers, and own merge order. Keep direct feature edits out
of the coordinator checkout during parallel fan-out.
1. The parent thread is the **pure orchestrator**: launch waves, track workers,
resolve blockers, own merge order. No feature edits in its checkout.
2. When `ship epic` starts, check `t3_thread_list` (`currentThreadId`,
`pinned`). If unpinned, pin it (`t3_thread_organize`, `action: "pin"`, no
`threadId`) so no T3 sweep settles it between waves or post-merge proof.
Follow T3's PR linking and watching rules for PRs the orchestrator owns; do
not link PRs a `t3_thread_launch` worker owns.
3. Run each non-overlapping issue in its own worktree: use `delegate_task`
(`isolation: "worktree"`) so workers stay out of the top-level sidebar, or
`t3_thread_launch` (`t3-launch-worktrees`) only when top-level issue threads
are requested. Use the configured default worker model, or a stronger design
model when the user asks or the issue is design-heavy.
4. Give each worker an explicit file scope, issue link, proof bar, and the rule
that the orchestrator owns final merge order when waves depend on each other.
`threadId`) so no sweep settles it between waves or post-merge proof. Follow
T3's PR linking and watching rules for PRs you own; do not link PRs a
`t3_thread_launch` worker owns.
3. Run each non-overlapping issue in its own worktree: `delegate_task`
(`isolation: "worktree"`) keeps workers out of the sidebar;
`t3_thread_launch` (`t3-launch-worktrees`) only for requested top-level issue
threads. Use the configured worker model, or a stronger design model when
asked or the issue is design-heavy.
4. Give each worker a file scope, issue link, proof bar, and the rule that the
orchestrator owns merge order across dependent waves.
5. Every deliverable PR follows `tstack`:
- `full-send` execution per deliverable (implement, prove, review, file PR,
babysit CI and bot findings).
- `sol-loop` (cross-family review) for routine feature and issue PRs.
- `council` (multi-model, per your configured roster) for architectural,
security, multi-repo, or high-risk PRs, or whenever a worker is blocked or
uncertain.
- `pr` body format, `file-pr`, and `babysit-pr`. When your repository uses
them, add a `## Review ledger` table to the PR body and host screenshots
with a `pr-image` helper.
6. Keep execution unattended using `full-send`'s four-gate rule: interrupt the
user only for (1) irreversible data deletion, (2) money, accounts, signing,
or external publishing, (3) unsanctioned production changes, or (4) a secret
or login via `request_secret`. Default everything else and record each call.
- `full-send` per deliverable (implement, prove, review, file PR, babysit).
- `sol-loop` (cross-family review) for routine PRs.
- `council` for architectural, security, multi-repo, or high-risk PRs, or
when a worker is blocked or uncertain.
- `pr` body, `file-pr`, `babysit-pr`. Where the repo uses them, add a
`## Review ledger` table and host screenshots with `pr-image`.
6. Worker output is a claim ([prove](../prove/SKILL.md)). Before a PR merges
or counts as done, run `proof-pack.py verify` on its head and open the
attached screenshots, video, or audio yourself. If a worker punts or refuses
a user-authorized task or proof step, dispatch `prove`'s configured fallback
worker with a neutral brief (goal, authorization, packet path) minus prior
refusal text, one at a time for single-slot limits. Never escalate an
unapproved `full-send` user gate, a CAPTCHA, anti-bot or 2FA challenge, or an
access or approval denial: stop and ask.
7. Stay unattended under `full-send`'s four-gate rule: interrupt the user only
for (1) irreversible data deletion, (2) money, accounts, signing, or
external publishing, (3) unsanctioned production changes, or (4) a secret or
login via `request_secret`. Default the rest and record each call.

## Stage 5: Zero-downtime sequential merge and live proof

1. Merge **one PR or non-overlapping wave at a time**, owned by the
orchestrator, only after required CI checks, preview deploys, and automated
reviews pass. After merging a PR from a `t3_thread_launch` worker you
launched, check `t3_thread_read`: if `status` is not `running`/`preparing`/
`starting`/`queued`, `pinned` is `false`, `openPullRequestCount` and
`pendingRequestCount` are `0`, and `pendingBackgroundTasks` is empty, settle
it (`t3_thread_organize`, `action: "settle"`, `threadId`).
orchestrator, only after required CI, preview deploys, automated reviews,
and the Stage 4 proof gate pass. After merging a PR from a `t3_thread_launch`
worker you launched, check `t3_thread_read`: if `status` is not `running`/
`preparing`/`starting`/`queued`, `pinned` is `false`, `openPullRequestCount`
and `pendingRequestCount` are `0`, and `pendingBackgroundTasks` is empty,
settle it (`t3_thread_organize`, `action: "settle"`, `threadId`).
2. Wait for production deploy health before rebasing and launching dependent
waves.
3. Protect uptime: additive-first migrations, backwards-compatible cutovers,
and rollback or dead-man guards for infra or network changes. Clean up after
merge: prune stale deploy snapshots if storage is tight, remove temporary
worktrees, and fast-forward local `main`.
rollback or dead-man guards for infra or network changes. After merge, prune
stale deploy snapshots if storage is tight, remove temporary worktrees, and
fast-forward local `main`.
4. Prove every deliverable live before calling it done: production health, real
tool or UI execution, telemetry rows arriving when telemetry changed, PR
screenshots, and clean drift checks (`--check` or equivalent) across online
targets. Green unit tests or mocks alone do not close an epic.
tool or UI execution, telemetry rows when telemetry changed, PR screenshots,
and clean drift checks (`--check` or equivalent) on online targets. Run
`proof-pack.py verify` on the merged head and inspect the artifacts. Mocks
and green unit tests alone do not close an epic.

## Stage 6: Close the loop

1. Update the original **plan in place** with shipped status, PR links, deploy
URLs, live proof, decisions made, and any remaining manual user step.
2. Settle any remaining `t3_thread_launch` workers you launched whose PRs
merged (passing the Stage 5 `t3_thread_read` check). On clean Stage 6
completion with no open PRs or user steps left, settle this thread last if
Stage 4 added the pin (keep any user pin; `t3_thread_organize`,
`action: "settle"`, no `threadId`). On a blocker, abort, or user step, do
not settle this thread; `unpin` only if Stage 4 added the pin.
3. Send a brief report: lead with any blocker, link the updated plan and key
PRs or deploys, confirm zero open PRs or issues remain (or list what stayed
open and why), and end with one or two plain sentences on what is live and
what, if anything, still needs the user.
1. Update the **plan in place** with shipped status, PR links, deploy URLs,
live proof, decisions made, and any remaining manual user step.
2. Settle remaining `t3_thread_launch` workers you launched whose PRs merged
(after the Stage 5 `t3_thread_read` check). On clean completion with no open
PRs or user steps, settle this thread last if Stage 4 added the pin (keep
any user pin; `t3_thread_organize`, `action: "settle"`, no `threadId`). On a
blocker, abort, or user step, do not settle it; `unpin` only if Stage 4
added the pin.
3. Send a brief report: lead with any blocker, link the plan and key PRs or
deploys, confirm zero open PRs or issues (or list what stayed open and why),
and end with one or two plain sentences on what is live and what still needs
the user.

## Traps

- Do not treat `full send` as the epic confirmation trigger; `full-send` belongs
to each deliverable PR.
- Do not run `ship epic` unpinned: T3's merge, close, and inactivity sweeps
settle unpinned threads (closed PRs settle even with
- `full send` is not the epic trigger; `full-send` belongs to each deliverable.
- Never run `ship epic` unpinned: T3's merge, close, and inactivity sweeps
settle unpinned threads (even closed PRs with
`sidebarAutoSettleOnMerge: false`), clearing watches and cutting off waves.
- Never settle another thread blindly: settling by `threadId` acts at once,
even mid-run, clearing pins, watches, and pending questions. Settle only
`t3_thread_launch` workers you launched whose PRs merged, after the Stage 5
`t3_thread_read` check passes.
- Do not merge overlapping PRs together; serialize merges across shared files
and live deploys to preserve zero downtime.
- Do not stop at "PR opened" while CI, deploys, or later waves are still active.
clearing pins, watches, and pending questions. Settle only workers you
launched whose PRs merged, after the Stage 5 `t3_thread_read` check.
- Never merge overlapping PRs together; serialize across shared files and deploys.
- Never stop at "PR opened" while CI, deploys, or waves are active.
- Behind a chat bridge (such as `t3-slack`), chat posts only the final text of
the turn answering a user message. If background turns continue, state what
is running and what finishes next before ending the turn.
the turn answering a user message. If background turns continue, say what
runs and what finishes next before ending the turn.
Loading