clikit-plugin 0.2.47 → 0.3.1
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/AGENTS.md +8 -5
- package/README.md +11 -9
- package/command/pr.md +20 -10
- package/command/ship.md +24 -16
- package/command/status.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/tilth-reading.d.ts +68 -0
- package/dist/hooks/tilth-reading.d.ts.map +1 -0
- package/dist/hooks/tilth-reading.test.d.ts +2 -0
- package/dist/hooks/tilth-reading.test.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +128 -0
- package/memory/_templates/plan.md +3 -2
- package/package.json +2 -2
- package/skill/finishing-a-development-branch/SKILL.md +29 -27
- package/skill/ritual-workflow/SKILL.md +1 -1
- package/skill/tilth-reading/SKILL.md +127 -0
- package/skill/tilth-reading/references/fallback-flow.md +123 -0
- package/skill/using-git-worktrees/SKILL.md +32 -30
- package/src/agents/AGENTS.md +14 -0
- package/src/agents/build.md +47 -41
- package/src/agents/explore.md +31 -3
- package/src/agents/oracle.md +20 -5
package/AGENTS.md
CHANGED
|
@@ -10,16 +10,16 @@ The plugin (`src/index.ts`) loads agents from `src/agents/*.md`, commands from `
|
|
|
10
10
|
|
|
11
11
|
**Quick mode** (simple features):
|
|
12
12
|
```
|
|
13
|
-
/create → /start → /
|
|
13
|
+
/create → /start → /verify → /ship
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
**Deep mode** (complex features, research, UI):
|
|
17
17
|
```
|
|
18
|
-
/create → /research → /design → /start → /
|
|
18
|
+
/create → /research → /design → /start → /verify → /ship
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
- `/create` produces both spec and plan — `/start` works directly from this output
|
|
22
|
-
- `/verify` is the pre-ship gate — run before `/ship` finalizes
|
|
22
|
+
- `/verify` is the pre-ship gate — run before `/ship` finalizes and lands shared-checkout changes
|
|
23
23
|
- `/research` = external docs, API comparison, library research
|
|
24
24
|
- `/design` = UI/UX design and implementation (uses Vision agent)
|
|
25
25
|
|
|
@@ -68,7 +68,7 @@ bun run dev # watch mode
|
|
|
68
68
|
### Agent Core Cycle
|
|
69
69
|
|
|
70
70
|
```
|
|
71
|
-
beads-village_init → beads-village_add → beads-village_claim → reserve → work → done
|
|
71
|
+
beads-village_init → inspect shared git state → beads-village_add → beads-village_claim → reserve → work → done
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
In compressed workflow, the execution unit is a **Task Packet**:
|
|
@@ -106,5 +106,8 @@ In compressed workflow, the execution unit is a **Task Packet**:
|
|
|
106
106
|
- Trivial (< 2 min, 1-line fix): skip Beads, just do it
|
|
107
107
|
- Non-trivial: create issue first → claim → work → done
|
|
108
108
|
- `todowrite` = in-session UI display only — Beads is the persistent and authoritative execution state
|
|
109
|
+
- Work in the shared checkout on the repo default branch — no git worktrees or per-task branches unless the user explicitly requests them
|
|
110
|
+
- Check `git status --short --branch` before editing; if overlapping local changes already exist in your scope, stop and coordinate instead of isolating the work
|
|
111
|
+
- Use `beads-village_reserve` to surface conflicts early in the shared workspace
|
|
109
112
|
- Always `reserve` files before editing in multi-agent contexts
|
|
110
|
-
-
|
|
113
|
+
- Call `done` before ending a completed session; for mid-task handoff, leave the issue open and hand off without `done`
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Curated agents, commands, skills, and memory system for OpenCode.
|
|
|
8
8
|
- **15 Slash Commands**: /create, /start, /ship, /verify, /debug, /design, /research, /commit, /pr, and more
|
|
9
9
|
- **22 Workflow Skills**: TDD, debugging, research, integrations, ritual-workflow, and more
|
|
10
10
|
- **7 Internal Utilities**: memory (read/search/get/timeline/update/admin), observation, context-summary, cass-memory (used by hooks, not directly registered as agent tools)
|
|
11
|
-
- **10 Runtime Hooks**: todo enforcer, empty output sanitizer, git guard, security check, subagent blocker, truncator, memory digest, todo→beads sync, beads-context, and cass-memory
|
|
11
|
+
- **10 Runtime Hooks/Modules**: todo enforcer, empty output sanitizer, git guard, security check, subagent blocker, truncator, memory digest, todo→beads sync, beads-context, and cass-memory
|
|
12
12
|
- **Memory System**: Templates, specs, plans, research artifacts with FTS5 search
|
|
13
13
|
- **Extended Permissions**: doom_loop, external_directory controls
|
|
14
14
|
- **Configurable**: Enable/disable agents, override models, customize behavior
|
|
@@ -84,12 +84,12 @@ After installation, use these commands:
|
|
|
84
84
|
|
|
85
85
|
**Quick mode** (simple features):
|
|
86
86
|
```
|
|
87
|
-
/create → /start → /
|
|
87
|
+
/create → /start → /verify → /ship
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
**Deep mode** (complex features, research, UI):
|
|
91
91
|
```
|
|
92
|
-
/create → /research → /design → /start → /
|
|
92
|
+
/create → /research → /design → /start → /verify → /ship
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
Workflow notes:
|
|
@@ -97,7 +97,7 @@ Workflow notes:
|
|
|
97
97
|
- `/create` explores codebase first, then produces both spec and plan
|
|
98
98
|
- `/start` executes the plan, one Task Packet at a time — creates a minimal inline plan if none exists
|
|
99
99
|
- `/verify` runs all 4 gates (typecheck, tests, lint, build) + deep review — use anytime, not just pre-ship
|
|
100
|
-
- `/ship`
|
|
100
|
+
- `/ship` finalizes work in the shared checkout — commit, sync, and land on the repo default branch; `/pr` is optional and only for explicit PR-based exceptions
|
|
101
101
|
- `/research` conducts external research — use standalone before any complex implementation
|
|
102
102
|
- `/design` implements UI/UX with variant exploration and a11y — uses Vision agent
|
|
103
103
|
- Beads is the live execution source of truth
|
|
@@ -220,7 +220,7 @@ Run with `/command-name` in OpenCode. **All 15 commands work standalone** — th
|
|
|
220
220
|
| `/research` | ✅ | Deep-dive any library, API, or pattern with saved report |
|
|
221
221
|
| `/design` | ✅ | UI/UX design + implementation — variant exploration, a11y, responsive (Vision agent) |
|
|
222
222
|
| `/start` | ✅ | Execute plan packets — creates minimal inline plan if none exists |
|
|
223
|
-
| `/ship` | ✅ | Commit +
|
|
223
|
+
| `/ship` | ✅ | Commit + land shared-checkout changes on the default branch — self-review built in, `/verify` recommended |
|
|
224
224
|
| `/verify` | ✅ | Full 4-gate check (typecheck, tests, lint, build) + deep code review |
|
|
225
225
|
|
|
226
226
|
### Utilities (all standalone)
|
|
@@ -233,13 +233,15 @@ Run with `/command-name` in OpenCode. **All 15 commands work standalone** — th
|
|
|
233
233
|
| `/handoff` | Auto-capture session state for graceful pause |
|
|
234
234
|
| `/resume` | Pick up cold from latest handoff, no warm-up questions |
|
|
235
235
|
| `/commit` | Auto-detect type/scope → perfect Conventional Commit message |
|
|
236
|
-
| `/pr` |
|
|
236
|
+
| `/pr` | Optional PR flow for explicit branch-based review exceptions |
|
|
237
237
|
| `/import-plan` | Import Jira/Notion/Linear tasks → Beads issues + plan |
|
|
238
238
|
|
|
239
239
|
## Skills
|
|
240
240
|
|
|
241
241
|
22 workflow skills organized into 5 categories:
|
|
242
242
|
|
|
243
|
+
> `using-git-worktrees` and `finishing-a-development-branch` are legacy skill names kept for compatibility. Their current guidance follows the shared-workspace, direct-to-default-branch workflow.
|
|
244
|
+
|
|
243
245
|
### Planning & Workflow (4)
|
|
244
246
|
| Skill | Use When |
|
|
245
247
|
|-------|----------|
|
|
@@ -253,8 +255,8 @@ Run with `/command-name` in OpenCode. **All 15 commands work standalone** — th
|
|
|
253
255
|
|-------|----------|
|
|
254
256
|
| `deep-research` | Exploring unfamiliar code or complex features |
|
|
255
257
|
| `source-code-research` | API docs insufficient, need library internals |
|
|
256
|
-
| `using-git-worktrees` |
|
|
257
|
-
| `finishing-a-development-branch` |
|
|
258
|
+
| `using-git-worktrees` | Legacy alias — shared checkout on the default branch, no worktrees |
|
|
259
|
+
| `finishing-a-development-branch` | Legacy alias — finish and land from the shared default-branch workspace |
|
|
258
260
|
|
|
259
261
|
### Testing & Quality (5)
|
|
260
262
|
| Skill | Use When |
|
|
@@ -315,7 +317,7 @@ bun run dev
|
|
|
315
317
|
│ ├── agents/ # Agent loaders
|
|
316
318
|
│ ├── skills/ # Skill loaders
|
|
317
319
|
│ ├── tools/ # Internal utilities (memory, context-summary, cass-memory)
|
|
318
|
-
│ └── hooks/ # Runtime hooks (
|
|
320
|
+
│ └── hooks/ # Runtime hooks (10 modules)
|
|
319
321
|
├── skill/ # Skill definitions (*.md)
|
|
320
322
|
├── command/ # Command definitions (*.md)
|
|
321
323
|
├── memory/ # Memory system
|
package/command/pr.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Generate a complete PR description from git diff — summary, file changes, test evidence, linked spec/plan — then create it via gh.
|
|
2
|
+
description: Optional branch-based utility. Generate a complete PR description from git diff — summary, file changes, test evidence, linked spec/plan — then create it via gh when the user or repo policy explicitly requires a PR.
|
|
3
3
|
agent: build
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
You are creating a **pull request** with comprehensive description.
|
|
7
7
|
|
|
8
|
+
This is an **exception flow**. The default shared-workspace policy lands changes directly on the repo default branch without creating a PR.
|
|
9
|
+
|
|
8
10
|
## Your Task
|
|
9
11
|
|
|
10
|
-
Generate a well-structured PR with context, changes, and testing info.
|
|
12
|
+
Generate a well-structured PR with context, changes, and testing info — but only when the user explicitly asks for a PR or the repo policy requires one.
|
|
11
13
|
|
|
12
14
|
## Process
|
|
13
15
|
|
|
@@ -17,16 +19,22 @@ Generate a well-structured PR with context, changes, and testing info.
|
|
|
17
19
|
# Current branch
|
|
18
20
|
git branch --show-current
|
|
19
21
|
|
|
20
|
-
#
|
|
21
|
-
git
|
|
22
|
+
# Shared workspace state
|
|
23
|
+
git status --short --branch
|
|
24
|
+
|
|
25
|
+
# Remote / default branch info (if configured)
|
|
26
|
+
git remote show origin
|
|
22
27
|
|
|
23
|
-
#
|
|
24
|
-
git
|
|
28
|
+
# Commits to include (replace <default-branch> after detection)
|
|
29
|
+
git log <default-branch>..HEAD --oneline
|
|
30
|
+
|
|
31
|
+
# Files changed against default branch
|
|
32
|
+
git diff <default-branch> --stat
|
|
25
33
|
|
|
26
|
-
# Target branch
|
|
27
|
-
git remote show origin | grep "HEAD branch"
|
|
28
34
|
```
|
|
29
35
|
|
|
36
|
+
If you are still on the shared default branch, stop and ask before proceeding — PR flow requires a dedicated branch and explicit user approval.
|
|
37
|
+
|
|
30
38
|
### 2. Load Artifacts
|
|
31
39
|
|
|
32
40
|
- `spec.md` — Link requirements
|
|
@@ -42,7 +50,7 @@ git remote show origin | grep "HEAD branch"
|
|
|
42
50
|
gh pr create \
|
|
43
51
|
--title "[type]: [description]" \
|
|
44
52
|
--body "[generated body]" \
|
|
45
|
-
--base
|
|
53
|
+
--base <default-branch> \
|
|
46
54
|
--head [current-branch]
|
|
47
55
|
```
|
|
48
56
|
|
|
@@ -154,7 +162,7 @@ pnpm lint
|
|
|
154
162
|
### Next Steps
|
|
155
163
|
1. Request review from team
|
|
156
164
|
2. Address feedback
|
|
157
|
-
3. Merge
|
|
165
|
+
3. Merge only after approval and successful checks
|
|
158
166
|
|
|
159
167
|
### Commands
|
|
160
168
|
- View: `gh pr view`
|
|
@@ -168,7 +176,9 @@ pnpm lint
|
|
|
168
176
|
- ✅ ALWAYS include testing info
|
|
169
177
|
- ✅ ALWAYS run checks before PR
|
|
170
178
|
- ✅ ALWAYS self-review first
|
|
179
|
+
- ✅ ALWAYS confirm the repo/user explicitly wants PR flow before creating one
|
|
171
180
|
- ❌ NEVER create PR with failing tests
|
|
181
|
+
- ❌ NEVER run `/pr` from the shared default branch
|
|
172
182
|
- ❌ NEVER skip description
|
|
173
183
|
|
|
174
184
|
Now gathering info for PR...
|
package/command/ship.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Finalize work — commit,
|
|
2
|
+
description: Finalize work — commit, sync, and land verified shared-checkout changes on the repo default branch. Run standalone after any implementation or as the final step in /start → /verify → /ship.
|
|
3
3
|
agent: build
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -7,9 +7,9 @@ You are the **Build Agent**. Execute the `/ship` command.
|
|
|
7
7
|
|
|
8
8
|
## Your Task
|
|
9
9
|
|
|
10
|
-
Close and ship completed work. Run `/verify` first for full quality assurance — or skip it
|
|
10
|
+
Close and ship completed work. Run `/verify` first for full quality assurance — or skip it only for quick/obvious fixes when self-review is sufficient.
|
|
11
11
|
|
|
12
|
-
**Standalone use:** Run `/ship` at any time to commit and
|
|
12
|
+
**Standalone use:** Run `/ship` at any time to commit and land current shared-checkout changes.
|
|
13
13
|
**In workflow:** After `/start` finishes all packets, run `/verify` then `/ship`.
|
|
14
14
|
|
|
15
15
|
## Process
|
|
@@ -28,15 +28,15 @@ Run `/verify` for full quality assurance before shipping.
|
|
|
28
28
|
|
|
29
29
|
- Ensure active packets are verified and closed in Beads
|
|
30
30
|
|
|
31
|
-
###
|
|
31
|
+
### 3. Final Self-Review
|
|
32
32
|
|
|
33
|
-
Before
|
|
33
|
+
Before landing changes:
|
|
34
34
|
- Review changed files (`git diff --name-only` and `git diff`)
|
|
35
35
|
- Confirm acceptance criteria from spec/plan are satisfied
|
|
36
36
|
- Confirm no debug artifacts (`console.log`, `TODO`, temporary hacks)
|
|
37
37
|
- Confirm changes stay within planned file impact
|
|
38
38
|
|
|
39
|
-
###
|
|
39
|
+
### 4. Git Preparation
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
42
|
# Ensure clean understanding of local state
|
|
@@ -49,18 +49,23 @@ git add <explicit-file-list>
|
|
|
49
49
|
git commit -m "type(scope): description"
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
###
|
|
52
|
+
### 5. Land on the shared default branch
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
```bash
|
|
55
|
+
# Rebase local commit(s) onto the latest shared branch state
|
|
56
|
+
git pull --rebase
|
|
57
|
+
|
|
58
|
+
# Publish the landed change
|
|
59
|
+
git push
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
If your repo or user explicitly requires PR-based review, stop here and use `/pr` as an exception flow from a non-default branch.
|
|
58
63
|
|
|
59
|
-
###
|
|
64
|
+
### 6. Post-Ship Cleanup
|
|
60
65
|
|
|
61
66
|
- Update bead/task status
|
|
62
67
|
- Create handoff note if needed
|
|
63
|
-
- Report
|
|
68
|
+
- Report commit/branch summary to user
|
|
64
69
|
|
|
65
70
|
## Ship Checklist
|
|
66
71
|
|
|
@@ -72,7 +77,7 @@ Execution State:
|
|
|
72
77
|
- [ ] Active packets verified
|
|
73
78
|
- [ ] Beads task state updated
|
|
74
79
|
|
|
75
|
-
Pre-
|
|
80
|
+
Pre-Ship:
|
|
76
81
|
- [ ] Self-review completed
|
|
77
82
|
- [ ] Acceptance criteria verified
|
|
78
83
|
- [ ] No debug/temporary code
|
|
@@ -80,11 +85,12 @@ Pre-PR:
|
|
|
80
85
|
Ship:
|
|
81
86
|
- [ ] Relevant files staged explicitly
|
|
82
87
|
- [ ] Commit created
|
|
83
|
-
- [ ]
|
|
88
|
+
- [ ] Rebased onto latest shared branch state
|
|
89
|
+
- [ ] Changes pushed
|
|
84
90
|
|
|
85
91
|
Post-Ship:
|
|
86
92
|
- [ ] Status updated
|
|
87
|
-
- [ ]
|
|
93
|
+
- [ ] Final landing summary reported
|
|
88
94
|
```
|
|
89
95
|
|
|
90
96
|
## Rules
|
|
@@ -92,7 +98,9 @@ Post-Ship:
|
|
|
92
98
|
- ✅ ALWAYS stage explicit files only
|
|
93
99
|
- ✅ ALWAYS do self-review before shipping
|
|
94
100
|
- ✅ STRONGLY RECOMMENDED: run `/verify` before `/ship` for non-trivial changes
|
|
101
|
+
- ✅ Use `/pr` only when the user or repo policy explicitly requires a PR workflow
|
|
95
102
|
- ❌ NEVER ship with known failing gates
|
|
96
103
|
- ❌ NEVER use `git add -A` or `git add .`
|
|
104
|
+
- ❌ NEVER create a PR or task branch as part of the default shared-workspace ship flow
|
|
97
105
|
|
|
98
106
|
Now, closing completed work...
|
package/command/status.md
CHANGED