schub 0.1.22 → 0.1.24

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 CHANGED
@@ -64,11 +64,13 @@ Project-scoped DB commands use the project id from `.schub/config.json`.
64
64
 
65
65
  #### Proposals
66
66
 
67
- - `schub proposals create` - Create a new proposal locally and in the database.
67
+ - `schub proposals write` - Write a new proposal locally from the template (allocates a DB shorthand but does not upload).
68
+ - `schub proposals create` - Create a proposal directly in the database with `--content` (programmatic/API use).
68
69
  - `schub proposals save` - Save all files in one proposal folder to DB/storage (`--proposal-id`) or save all local proposals (`--all`).
69
70
  - `schub proposals pull` - Pull a proposal from the database into the local `.schub` folder (requires local `.schub/config.json`).
70
- - `schub proposals update` - Update a proposal status in frontmatter.
71
+ - `schub proposals update` - Update a proposal status in frontmatter and sync to DB.
71
72
  - `schub proposals list` - List proposals (`--show-all` includes archived/rejected).
73
+ - `schub proposals files` - List local and DB files for a proposal (`--id`).
72
74
  - `schub proposals archive` - Archive a proposal (use `--skip-tickets` to keep tickets active).
73
75
  - `schub proposals delete` - Delete a proposal and clear linked tickets.
74
76
 
@@ -96,13 +98,20 @@ schub proposals pull --proposal-id P0003
96
98
 
97
99
  #### Ticket Management
98
100
 
99
- - `schub tickets create` - Create a ticket from the ticket template.
101
+ - `schub tickets write` - Write a new ticket locally from the template (allocates a DB shorthand but does not upload).
102
+ - `schub tickets create` - Create a ticket directly in the database with `--content` (programmatic/API use).
100
103
  - `schub tickets list` - List all tickets in the current project context.
101
104
  - `schub tickets check` - Toggle a checklist item in a ticket.
102
105
  - `schub tickets update` - Move backlog tickets to any ticket status configured for the project in DB.
103
106
  - `schub tickets implement` - Move a ticket to `wip` and launch Opencode.
104
107
  - `schub tickets save` - Validate and save one ticket (`--id`) or all local tickets (`--all`) to DB/storage.
105
108
  - `schub tickets pull` - Pull tickets from the database into the local `.schub/tickets` folder (requires local `.schub/config.json`).
109
+ - `schub tickets refine` - Refine a ticket using an LLM prompt (`--id`).
110
+ - `schub tickets files` - List local and DB files for a ticket (`--id`).
111
+ - `schub tickets swap --id <ticket> [--attempt <attempt>]` - Swap the repo to a ticket attempt's worktree state.
112
+ - `schub tickets swap --back` - Restore the original repo state after a swap.
113
+ - `schub tickets swap --status` - Show current swap state.
114
+ - `schub tickets merge --id <ticket> [--attempt <attempt>]` - Squash-merge a ticket attempt into the current branch.
106
115
 
107
116
  ##### Ticket implementation
108
117
 
@@ -131,17 +140,54 @@ schub tickets update --id T0004 --id T0005 --status reviewed
131
140
  - `--id` (repeatable) selects backlog ticket IDs to move.
132
141
  - `--status` sets the target status and must match a project ticket status in DB.
133
142
 
143
+ ##### Swap, merge, and worktree cleanup
144
+
145
+ ```bash
146
+ # Preview an agent's work
147
+ schub tickets swap --id TK0084 --attempt A0022
148
+
149
+ # Return to your original branch
150
+ schub tickets swap --back
151
+
152
+ # Squash-merge an attempt into the current branch
153
+ schub tickets merge --id TK0084 --attempt A0022
154
+
155
+ # Remove the attempt's worktree after merging
156
+ schub worktree delete --ticket-id TK0084 --attempt A0022
157
+ ```
158
+
134
159
  ##### Overview view shortcut
135
160
 
136
161
  In Overview view, press `s` on a selected backlog or reviewed ticket to open the status modal.
137
162
  For backlog tickets choose `Reviewed` or `Archive`. For reviewed tickets choose `Backlog` or `Archive`, then press enter to confirm or esc to cancel.
138
163
 
139
- #### Reviews & Documentation
164
+ #### Worktree
165
+
166
+ - `schub worktree delete --ticket-id <ticket> [--attempt <attempt>]` - Remove a ticket attempt's worktree from disk and git tracking.
167
+
168
+ #### Setup
169
+
170
+ - `schub setup --agent <agent>` - Install all skill templates for a coding agent. Supported agents: `opencode`, `claude`, `codex`.
140
171
 
172
+ ```bash
173
+ schub setup --agent opencode --agent claude --agent codex
174
+ ```
175
+
176
+ Install paths per agent:
177
+
178
+ - `opencode` → `~/.opencode/skills/<name>/SKILL.md`
179
+ - `claude` → `~/.claude/skills/<name>.md`
180
+ - `codex` → `~/.codex/skills/<name>.md`
181
+
182
+ #### Templates & Reviews
183
+
184
+ - `schub templates create --name adr` - Create a new Architectural Decision Record file.
185
+ - `schub templates create --name cookbook` - Create a new cookbook file.
186
+ - `schub templates create --name review` - Create a `REVIEW_ME.md` file.
187
+ - `schub templates list` - List all templates in the database.
188
+ - `schub templates save` - Save local `.schub/templates/*.md` files to the database (`--name` for one, or all).
189
+ - `schub templates pull` - Pull templates from the database to local `.schub/templates/` (`--name` for one, or all).
141
190
  - `schub review complete` - Finalize a review, converting questions into a Q&A section.
142
- - `schub template create --name adr` - Create a new Architectural Decision Record file.
143
- - `schub template create --name cookbook` - Create a new cookbook file.
144
- - `schub template create --name review` - Create a `REVIEW_ME.md` file.
145
191
 
146
192
  ## LLM Skills
147
193
 
@@ -150,6 +196,16 @@ For backlog tickets choose `Reviewed` or `Archive`. For reviewed tickets choose
150
196
  - `create-tickets-for-proposal` - Generate actionable ticket files under `.schub/tickets/` from a proposal id.
151
197
  - `implement-ticket` - Implement a single ticket end-to-end and move it across ticket status folders.
152
198
  - `review-proposal` - Run a proposal review session with open questions and Q&A updates.
199
+ - `refine-ticket` - Refine an existing ticket into the ticket template.
200
+
201
+ ### LLM Workflow
202
+
203
+ LLMs should **write** locally, then **update/save**:
204
+
205
+ 1. `proposals write` / `tickets write` — scaffold a local file from a template
206
+ 2. Edit the local file with concrete details
207
+ 3. `proposals update` / `tickets update` — update status (syncs to DB)
208
+ 4. `proposals save` / `tickets save` — persist all local files to DB storage
153
209
 
154
210
  ## Contributing
155
211