claude-plugin-viban 1.3.1 → 1.3.3
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/commands/add.md
CHANGED
|
@@ -6,6 +6,8 @@ description: "Register a problem as a viban issue"
|
|
|
6
6
|
|
|
7
7
|
Register a problem as a viban issue. No codebase exploration, no solutions — symptoms only.
|
|
8
8
|
|
|
9
|
+
> **CLI only** (no direct viban.json access)
|
|
10
|
+
|
|
9
11
|
**Input**: `$ARGUMENTS`
|
|
10
12
|
|
|
11
13
|
## Step 1: Clarify (only if vague)
|
|
@@ -101,6 +103,7 @@ Report: `Plan saved to .viban/plans/{issue-id}.md — /viban:assign will auto-lo
|
|
|
101
103
|
|
|
102
104
|
## Rules
|
|
103
105
|
|
|
106
|
+
- **NEVER read or write `viban.json` directly** — always use `viban` CLI commands (`viban add`, `viban list`, etc.)
|
|
104
107
|
- **NEVER edit, create, or modify any source code files** — this skill registers issues only
|
|
105
108
|
- **NEVER start implementation** — even after plan mode, just save the plan and stop
|
|
106
109
|
- No codebase exploration — assignee does that in `/viban:assign`
|
package/commands/assign.md
CHANGED
|
@@ -12,3 +12,5 @@ What it does:
|
|
|
12
12
|
3. That's it — no implementation, no branch creation
|
|
13
13
|
|
|
14
14
|
This command is for **assignment and clarification only**. Use other tools to start working on the assigned issue.
|
|
15
|
+
|
|
16
|
+
**IMPORTANT:** Never read or write `viban.json` directly — always use `viban` CLI commands.
|
|
@@ -16,6 +16,8 @@ Examples:
|
|
|
16
16
|
|
|
17
17
|
How it works:
|
|
18
18
|
1. Assigns N backlog issues and creates isolated git worktrees (`.viban/worktrees/{id}`)
|
|
19
|
-
2. Spawns one opus agent per issue — each agent
|
|
20
|
-
3.
|
|
21
|
-
4. Coordinator
|
|
19
|
+
2. Spawns one opus agent per issue — each agent only analyzes, implements, and commits
|
|
20
|
+
3. Coordinator removes worktrees, verifies local branches, pushes, and creates PRs
|
|
21
|
+
4. Coordinator runs tests, moves issues to review, and reports results
|
|
22
|
+
|
|
23
|
+
**IMPORTANT:** Never read or write `viban.json` directly — always use `viban` CLI commands. Direct JSON access causes race conditions.
|
package/package.json
CHANGED
package/skills/add/SKILL.md
CHANGED
|
@@ -7,6 +7,8 @@ description: "Register a problem as a viban issue"
|
|
|
7
7
|
|
|
8
8
|
Register a problem as a viban issue. No codebase exploration, no solutions — symptoms only.
|
|
9
9
|
|
|
10
|
+
> **CLI only** (no direct viban.json access)
|
|
11
|
+
|
|
10
12
|
**Input**: `$ARGUMENTS`
|
|
11
13
|
|
|
12
14
|
## Step 1: Clarify (only if vague)
|
|
@@ -102,6 +104,7 @@ Report: `Plan saved to .viban/plans/{issue-id}.md — /viban:assign will auto-lo
|
|
|
102
104
|
|
|
103
105
|
## Rules
|
|
104
106
|
|
|
107
|
+
- **NEVER read or write `viban.json` directly** — always use `viban` CLI commands (`viban add`, `viban list`, etc.)
|
|
105
108
|
- **NEVER edit, create, or modify any source code files** — this skill registers issues only
|
|
106
109
|
- **NEVER start implementation** — even after plan mode, just save the plan and stop
|
|
107
110
|
- No codebase exploration — assignee does that in `/viban:assign`
|
package/skills/assign/SKILL.md
CHANGED
|
@@ -101,8 +101,10 @@ Clarification added to issue description.
|
|
|
101
101
|
|
|
102
102
|
## CRITICAL
|
|
103
103
|
|
|
104
|
+
> - **NEVER read or write `viban.json` directly** — always use `viban` CLI commands (`viban assign`, `viban get`, `viban list`, etc.)
|
|
105
|
+
> - **FORBIDDEN: `viban done`** — this DELETES the card permanently. NEVER run it.
|
|
106
|
+
> - **FORBIDDEN: `viban review`** — the issue stays in `in_progress` for the next work session.
|
|
104
107
|
> - This command **assigns only**. Do NOT create branches, write code, or start implementation.
|
|
105
|
-
> - Do NOT run `viban review` — the issue stays in `in_progress` for the next work session.
|
|
106
108
|
> - If the issue is clear, just report and finish immediately.
|
|
107
109
|
|
|
108
110
|
## CLI Reference
|
|
@@ -139,21 +139,15 @@ You are one of {N} parallel agents working in isolated git worktrees.
|
|
|
139
139
|
Resolves: #{ID}"
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
4.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
viban review {ID}
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
CRITICAL:
|
|
155
|
-
- Always run `viban review {ID}` before finishing, even on errors.
|
|
156
|
-
- Do NOT run `viban done` — the coordinator handles post-merge cleanup.
|
|
142
|
+
4. That's it. Stop after committing.
|
|
143
|
+
|
|
144
|
+
ABSOLUTE RULES:
|
|
145
|
+
- **Your job ends after committing.** The coordinator handles push, PR creation, and issue status.
|
|
146
|
+
- **FORBIDDEN: `git push`** — the coordinator pushes from the main repo after verifying.
|
|
147
|
+
- **FORBIDDEN: `gh pr create`** — the coordinator creates PRs after transplanting branches.
|
|
148
|
+
- **FORBIDDEN: `viban done`** — this DELETES the card permanently.
|
|
149
|
+
- **FORBIDDEN: `viban review`** — the coordinator handles issue status.
|
|
150
|
+
- **FORBIDDEN: reading or writing `viban.json`** — use CLI commands only.
|
|
157
151
|
- Do NOT run the full test suite — the coordinator handles that.
|
|
158
152
|
- Do NOT remove the worktree — the coordinator handles cleanup.
|
|
159
153
|
```
|
|
@@ -177,44 +171,66 @@ for each (ID, BRANCH) in ISSUES:
|
|
|
177
171
|
|
|
178
172
|
1. Wait for all background agents to complete (poll via `TaskOutput`)
|
|
179
173
|
2. Collect results — note successes and failures
|
|
180
|
-
3. For any issue where `viban review` was not called, run it now as safety net:
|
|
181
|
-
```bash
|
|
182
|
-
viban review $ID
|
|
183
|
-
```
|
|
184
174
|
|
|
185
175
|
---
|
|
186
176
|
|
|
187
177
|
## Phase 3: TRANSPLANT & CLEANUP
|
|
188
178
|
|
|
189
|
-
After all agents finish,
|
|
190
|
-
|
|
191
|
-
### 3.1 Verify Local Branches
|
|
192
|
-
|
|
193
|
-
The local branch already exists (created by `git worktree add -b`). After worktree removal, the branch and its commits remain in the local repo.
|
|
179
|
+
After all agents finish, the coordinator handles everything from the main repo root.
|
|
194
180
|
|
|
195
181
|
```bash
|
|
196
182
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
197
183
|
cd "$REPO_ROOT"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### 3.1 Remove Worktrees (branches survive)
|
|
198
187
|
|
|
188
|
+
Worktree removal does NOT delete the branch or its commits — they remain in the local repo.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
for entry in "${ISSUES[@]}"; do
|
|
192
|
+
ID="${entry%%|*}"
|
|
193
|
+
WT_DIR="$REPO_ROOT/.viban/worktrees/$ID"
|
|
194
|
+
git worktree remove "$WT_DIR" --force
|
|
195
|
+
done
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### 3.2 Verify Local Branches
|
|
199
|
+
|
|
200
|
+
Confirm each branch has commits from the agent:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
199
203
|
for entry in "${ISSUES[@]}"; do
|
|
200
204
|
BRANCH="${entry##*|}"
|
|
201
205
|
git log --oneline -3 "$BRANCH"
|
|
202
206
|
done
|
|
203
207
|
```
|
|
204
208
|
|
|
205
|
-
|
|
209
|
+
If a branch has no new commits (agent failed), skip it and report.
|
|
206
210
|
|
|
207
|
-
|
|
211
|
+
### 3.3 Push Branches & Create PRs
|
|
212
|
+
|
|
213
|
+
For each branch with commits, push from the main repo and create a PR:
|
|
208
214
|
|
|
209
215
|
```bash
|
|
210
216
|
for entry in "${ISSUES[@]}"; do
|
|
211
217
|
ID="${entry%%|*}"
|
|
212
|
-
|
|
213
|
-
|
|
218
|
+
BRANCH="${entry##*|}"
|
|
219
|
+
|
|
220
|
+
# Push the local branch to remote
|
|
221
|
+
git push -u origin "$BRANCH"
|
|
222
|
+
|
|
223
|
+
# Create PR
|
|
224
|
+
gh pr create --head "$BRANCH" --base main \
|
|
225
|
+
--title "type: title" \
|
|
226
|
+
--body "Resolves: #${ID}"
|
|
227
|
+
|
|
228
|
+
# Move issue to review
|
|
229
|
+
viban review "$ID"
|
|
214
230
|
done
|
|
215
231
|
```
|
|
216
232
|
|
|
217
|
-
### 3.
|
|
233
|
+
### 3.4 Verify PRs Exist
|
|
218
234
|
|
|
219
235
|
```bash
|
|
220
236
|
for entry in "${ISSUES[@]}"; do
|
|
@@ -268,17 +284,19 @@ Worktrees cleaned up. All PRs ready for human review.
|
|
|
268
284
|
|
|
269
285
|
## Error Handling
|
|
270
286
|
|
|
271
|
-
- **Agent fails mid-work**: coordinator
|
|
287
|
+
- **Agent fails mid-work**: coordinator still attempts push + PR for any commits on the branch. If no commits, skip and call `viban review {ID}` to unblock the card.
|
|
272
288
|
- **Worktree creation fails**: skip that issue, log error, continue with others
|
|
273
|
-
- **
|
|
289
|
+
- **Push fails**: report it; local branch still available for manual push
|
|
290
|
+
- **PR creation fails**: report it; branch is already pushed, user can create PR manually
|
|
274
291
|
- **Test failures**: report which branch likely caused the failure
|
|
275
292
|
|
|
276
293
|
---
|
|
277
294
|
|
|
278
295
|
## CRITICAL RULES
|
|
279
296
|
|
|
280
|
-
> 1. **NEVER
|
|
281
|
-
> 2. **
|
|
297
|
+
> 1. **NEVER read or write `viban.json` directly** — always use `viban` CLI commands. Direct JSON access causes race conditions and data corruption.
|
|
298
|
+
> 2. **NEVER exit with any issue still in `in_progress`.** For every assigned issue, ensure `viban review {ID}` has been called.
|
|
299
|
+
> 3. **ALWAYS clean up worktrees** after PRs are created. Worktree dirs must not linger in `.viban/worktrees/`.
|
|
282
300
|
|
|
283
301
|
## CLI Reference
|
|
284
302
|
|