clikit-plugin 0.1.0
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 +46 -0
- package/README.md +282 -0
- package/command/commit.md +137 -0
- package/command/create.md +150 -0
- package/command/debug.md +185 -0
- package/command/design.md +82 -0
- package/command/handoff.md +95 -0
- package/command/import-plan.md +175 -0
- package/command/init.md +112 -0
- package/command/issue.md +110 -0
- package/command/plan.md +205 -0
- package/command/pr.md +174 -0
- package/command/research.md +103 -0
- package/command/resume.md +80 -0
- package/command/review-codebase.md +228 -0
- package/command/review.md +135 -0
- package/command/ship.md +109 -0
- package/command/start.md +77 -0
- package/command/status.md +123 -0
- package/command/verify.md +79 -0
- package/command/vision.md +142 -0
- package/dist/agents/index.d.ts +4 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +103 -0
- package/dist/clikit.schema.json +423 -0
- package/dist/commands/index.d.ts +4 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/config.d.ts +118 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/hooks/auto-format.d.ts +30 -0
- package/dist/hooks/auto-format.d.ts.map +1 -0
- package/dist/hooks/comment-checker.d.ts +17 -0
- package/dist/hooks/comment-checker.d.ts.map +1 -0
- package/dist/hooks/compaction.d.ts +60 -0
- package/dist/hooks/compaction.d.ts.map +1 -0
- package/dist/hooks/empty-message-sanitizer.d.ts +9 -0
- package/dist/hooks/empty-message-sanitizer.d.ts.map +1 -0
- package/dist/hooks/env-context.d.ts +43 -0
- package/dist/hooks/env-context.d.ts.map +1 -0
- package/dist/hooks/git-guard.d.ts +14 -0
- package/dist/hooks/git-guard.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +35 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/ritual-enforcer.d.ts +29 -0
- package/dist/hooks/ritual-enforcer.d.ts.map +1 -0
- package/dist/hooks/security-check.d.ts +20 -0
- package/dist/hooks/security-check.d.ts.map +1 -0
- package/dist/hooks/session-notification.d.ts +23 -0
- package/dist/hooks/session-notification.d.ts.map +1 -0
- package/dist/hooks/subagent-question-blocker.d.ts +11 -0
- package/dist/hooks/subagent-question-blocker.d.ts.map +1 -0
- package/dist/hooks/swarm-enforcer.d.ts +31 -0
- package/dist/hooks/swarm-enforcer.d.ts.map +1 -0
- package/dist/hooks/todo-enforcer.d.ts +19 -0
- package/dist/hooks/todo-enforcer.d.ts.map +1 -0
- package/dist/hooks/truncator.d.ts +28 -0
- package/dist/hooks/truncator.d.ts.map +1 -0
- package/dist/hooks/typecheck-gate.d.ts +31 -0
- package/dist/hooks/typecheck-gate.d.ts.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5785 -0
- package/dist/skills/index.d.ts +9 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/tools/beads-memory-sync.d.ts +17 -0
- package/dist/tools/beads-memory-sync.d.ts.map +1 -0
- package/dist/tools/context-summary.d.ts +21 -0
- package/dist/tools/context-summary.d.ts.map +1 -0
- package/dist/tools/index.d.ts +7 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/memory.d.ts +56 -0
- package/dist/tools/memory.d.ts.map +1 -0
- package/dist/tools/observation.d.ts +28 -0
- package/dist/tools/observation.d.ts.map +1 -0
- package/dist/tools/quick-research.d.ts +16 -0
- package/dist/tools/quick-research.d.ts.map +1 -0
- package/dist/tools/swarm.d.ts +57 -0
- package/dist/tools/swarm.d.ts.map +1 -0
- package/dist/types.d.ts +32 -0
- package/dist/types.d.ts.map +1 -0
- package/memory/_templates/handoff.md +114 -0
- package/memory/_templates/plan.md +135 -0
- package/memory/_templates/prd.md +147 -0
- package/memory/_templates/research.md +108 -0
- package/memory/_templates/review.md +117 -0
- package/memory/_templates/spec.md +116 -0
- package/memory/beads/.gitkeep +0 -0
- package/memory/handoffs/.gitkeep +0 -0
- package/memory/plans/.gitkeep +0 -0
- package/memory/prds/.gitkeep +0 -0
- package/memory/research/.gitkeep +0 -0
- package/memory/reviews/.gitkeep +0 -0
- package/memory/specs/.gitkeep +0 -0
- package/package.json +64 -0
- package/skill/accessibility-audit/SKILL.md +115 -0
- package/skill/beads/SKILL.md +56 -0
- package/skill/beads-bridge/SKILL.md +45 -0
- package/skill/brainstorming/SKILL.md +41 -0
- package/skill/chrome-devtools/SKILL.md +36 -0
- package/skill/cloudflare/SKILL.md +96 -0
- package/skill/condition-based-waiting/SKILL.md +92 -0
- package/skill/deep-research/SKILL.md +130 -0
- package/skill/defense-in-depth/SKILL.md +89 -0
- package/skill/design-system-audit/SKILL.md +136 -0
- package/skill/development-lifecycle/SKILL.md +58 -0
- package/skill/dispatching-parallel-agents/SKILL.md +94 -0
- package/skill/executing-plans/SKILL.md +54 -0
- package/skill/figma/SKILL.md +34 -0
- package/skill/finishing-a-development-branch/SKILL.md +127 -0
- package/skill/frontend-aesthetics/SKILL.md +63 -0
- package/skill/gemini-large-context/SKILL.md +80 -0
- package/skill/mockup-to-code/SKILL.md +98 -0
- package/skill/mqdh/SKILL.md +54 -0
- package/skill/notebooklm/SKILL.md +71 -0
- package/skill/playwright/SKILL.md +37 -0
- package/skill/playwriter/SKILL.md +56 -0
- package/skill/polar/SKILL.md +39 -0
- package/skill/receiving-code-review/SKILL.md +47 -0
- package/skill/requesting-code-review/SKILL.md +47 -0
- package/skill/resend/SKILL.md +85 -0
- package/skill/ritual-workflow/SKILL.md +101 -0
- package/skill/root-cause-tracing/SKILL.md +73 -0
- package/skill/session-management/SKILL.md +53 -0
- package/skill/sharing-skills/SKILL.md +50 -0
- package/skill/source-code-research/SKILL.md +138 -0
- package/skill/subagent-driven-development/SKILL.md +69 -0
- package/skill/supabase/SKILL.md +80 -0
- package/skill/supabase-postgres-best-practices/SKILL.md +168 -0
- package/skill/swarm-coordination/SKILL.md +54 -0
- package/skill/systematic-debugging/SKILL.md +58 -0
- package/skill/test-driven-development/SKILL.md +53 -0
- package/skill/testing-anti-patterns/SKILL.md +100 -0
- package/skill/testing-skills-with-subagents/SKILL.md +102 -0
- package/skill/ui-ux-research/SKILL.md +93 -0
- package/skill/using-git-worktrees/SKILL.md +129 -0
- package/skill/v0/SKILL.md +67 -0
- package/skill/v1-run/SKILL.md +85 -0
- package/skill/vercel-react-best-practices/SKILL.md +174 -0
- package/skill/verification-before-completion/SKILL.md +55 -0
- package/skill/visual-analysis/SKILL.md +113 -0
- package/skill/writing-plans/SKILL.md +55 -0
- package/skill/writing-skills/SKILL.md +68 -0
- package/src/agents/AGENTS.md +46 -0
- package/src/agents/build.md +170 -0
- package/src/agents/explore.md +113 -0
- package/src/agents/general.md +92 -0
- package/src/agents/index.ts +64 -0
- package/src/agents/librarian.md +116 -0
- package/src/agents/looker.md +107 -0
- package/src/agents/oracle.md +138 -0
- package/src/agents/plan.md +78 -0
- package/src/agents/review.md +98 -0
- package/src/agents/scout.md +84 -0
- package/src/agents/vision.md +159 -0
package/command/issue.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Quick issue creation in beads village.
|
|
3
|
+
agent: build
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are creating a **quick issue** in beads village.
|
|
7
|
+
|
|
8
|
+
## Your Task
|
|
9
|
+
|
|
10
|
+
Rapidly create an issue/task without full spec process.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
/issue [title]
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Or just `/issue` and I'll ask for details.
|
|
19
|
+
|
|
20
|
+
## Process
|
|
21
|
+
|
|
22
|
+
### 1. Gather Minimal Info
|
|
23
|
+
|
|
24
|
+
- **Title:** What needs to be done? (required)
|
|
25
|
+
- **Type:** task | bug | feature | chore (default: task)
|
|
26
|
+
- **Priority:** P0=critical, P1=high, P2=normal (default: P2)
|
|
27
|
+
- **Description:** Brief context (optional)
|
|
28
|
+
- **Tags:** fe, be, mobile, devops, qa (optional)
|
|
29
|
+
|
|
30
|
+
### 2. Create in Beads
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
mcp__beads_village__add(
|
|
34
|
+
title: "[title]",
|
|
35
|
+
typ: "[type]",
|
|
36
|
+
pri: [priority],
|
|
37
|
+
desc: "[description]",
|
|
38
|
+
tags: ["tag1", "tag2"]
|
|
39
|
+
)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 3. Confirm Creation
|
|
43
|
+
|
|
44
|
+
## Quick Templates
|
|
45
|
+
|
|
46
|
+
### Bug Report
|
|
47
|
+
```
|
|
48
|
+
/issue Bug: [what's broken]
|
|
49
|
+
```
|
|
50
|
+
→ Creates with `typ: "bug"`, `pri: 1`
|
|
51
|
+
|
|
52
|
+
### Feature Request
|
|
53
|
+
```
|
|
54
|
+
/issue Feature: [what to add]
|
|
55
|
+
```
|
|
56
|
+
→ Creates with `typ: "feature"`, `pri: 2`
|
|
57
|
+
|
|
58
|
+
### Quick Task
|
|
59
|
+
```
|
|
60
|
+
/issue [action verb] [thing]
|
|
61
|
+
```
|
|
62
|
+
→ Creates with `typ: "task"`, `pri: 2`
|
|
63
|
+
|
|
64
|
+
### Chore
|
|
65
|
+
```
|
|
66
|
+
/issue Chore: [maintenance task]
|
|
67
|
+
```
|
|
68
|
+
→ Creates with `typ: "chore"`, `pri: 2`
|
|
69
|
+
|
|
70
|
+
## Examples
|
|
71
|
+
|
|
72
|
+
| Input | Result |
|
|
73
|
+
|-------|--------|
|
|
74
|
+
| `/issue Fix login button not working` | Bug, P1 |
|
|
75
|
+
| `/issue Add dark mode support` | Feature, P2 |
|
|
76
|
+
| `/issue Update dependencies` | Chore, P2 |
|
|
77
|
+
| `/issue Refactor auth module` | Task, P2 |
|
|
78
|
+
|
|
79
|
+
## Output Format
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
## ✅ Issue Created
|
|
83
|
+
|
|
84
|
+
**ID:** [bead-id]
|
|
85
|
+
**Title:** [title]
|
|
86
|
+
**Type:** [type]
|
|
87
|
+
**Priority:** P0 | P1 | P2
|
|
88
|
+
**Tags:** [tags]
|
|
89
|
+
|
|
90
|
+
### Next Steps
|
|
91
|
+
- Claim with `/implement`
|
|
92
|
+
- Add to plan with `/plan`
|
|
93
|
+
- View all with `/status`
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Advanced Options
|
|
97
|
+
|
|
98
|
+
For complex issues, use full form:
|
|
99
|
+
```
|
|
100
|
+
/issue
|
|
101
|
+
Title: [required]
|
|
102
|
+
Type: bug | task | feature | chore
|
|
103
|
+
Priority: P0 | P1 | P2
|
|
104
|
+
Description: [context]
|
|
105
|
+
Tags: fe, be, mobile, devops, qa
|
|
106
|
+
Parent: [parent-id for subtasks]
|
|
107
|
+
Deps: [blocking-issue-ids]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
What issue do you want to create?
|
package/command/plan.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Convert specs and research into execution plan.
|
|
3
|
+
agent: plan
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are the **Plan Agent**. Execute the `/plan` command.
|
|
7
|
+
|
|
8
|
+
## Template
|
|
9
|
+
|
|
10
|
+
Use template at: `@.opencode/memory/_templates/plan.md`
|
|
11
|
+
|
|
12
|
+
## Prerequisites
|
|
13
|
+
- `spec.md` MUST exist
|
|
14
|
+
- `research.md` recommended if external knowledge needed
|
|
15
|
+
|
|
16
|
+
## Your Task
|
|
17
|
+
|
|
18
|
+
Create a detailed implementation plan from the specification.
|
|
19
|
+
|
|
20
|
+
## Process
|
|
21
|
+
|
|
22
|
+
1. **Load artifacts**: spec.md, research.md (if exists)
|
|
23
|
+
|
|
24
|
+
2. **Understand codebase** using:
|
|
25
|
+
- `finder` for semantic search
|
|
26
|
+
- Delegate to Explore Agent for file discovery
|
|
27
|
+
|
|
28
|
+
3. **Consult Oracle** for non-trivial architecture decisions
|
|
29
|
+
|
|
30
|
+
4. **Decompose into tasks** following Task Schema (see `.opencode/schemas.md` §1)
|
|
31
|
+
|
|
32
|
+
5. **Generate File Impact section** (REQUIRED)
|
|
33
|
+
|
|
34
|
+
6. **Create `plan.md`** at `.opencode/memory/plans/YYYY-MM-DD-<feature>.md`
|
|
35
|
+
|
|
36
|
+
7. **Update bead** with plan reference
|
|
37
|
+
|
|
38
|
+
8. **Get user approval**
|
|
39
|
+
|
|
40
|
+
## Plan Structure (follows `_templates/plan.md`)
|
|
41
|
+
|
|
42
|
+
The plan MUST include:
|
|
43
|
+
|
|
44
|
+
```markdown
|
|
45
|
+
# Implementation Plan: [Feature]
|
|
46
|
+
|
|
47
|
+
**Date:** YYYY-MM-DD
|
|
48
|
+
**Author:** [Name]
|
|
49
|
+
**Status:** Draft | Approved
|
|
50
|
+
**bead_id:** [ID]
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Overview
|
|
55
|
+
|
|
56
|
+
[Brief description of what will be built]
|
|
57
|
+
|
|
58
|
+
## References
|
|
59
|
+
|
|
60
|
+
- **Spec:** `.opencode/memory/specs/YYYY-MM-DD-descriptor.md`
|
|
61
|
+
- **PRD:** `.opencode/memory/prds/YYYY-MM-DD-feature.md` (if applicable)
|
|
62
|
+
- **Research:** `.opencode/memory/research/YYYY-MM-DD-topic.md` (if applicable)
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Tasks
|
|
67
|
+
|
|
68
|
+
### Task 1: [Title]
|
|
69
|
+
|
|
70
|
+
| Field | Value |
|
|
71
|
+
|-------|-------|
|
|
72
|
+
| **task_id** | T-001 |
|
|
73
|
+
| **type** | task \| bug \| feature \| chore |
|
|
74
|
+
| **assignee** | build \| fe \| be \| mobile \| devops |
|
|
75
|
+
| **effort** | S \| M \| L \| XL |
|
|
76
|
+
| **priority** | P0 \| P1 \| P2 |
|
|
77
|
+
| **status** | not_started \| in_progress \| blocked \| done |
|
|
78
|
+
| **dependencies** | [T-xxx] or none |
|
|
79
|
+
|
|
80
|
+
**Description:**
|
|
81
|
+
[What needs to be done]
|
|
82
|
+
|
|
83
|
+
**Input:**
|
|
84
|
+
- [Required artifacts/context]
|
|
85
|
+
|
|
86
|
+
**Output:**
|
|
87
|
+
- [Expected deliverables]
|
|
88
|
+
- [Files to create/modify]
|
|
89
|
+
|
|
90
|
+
**Acceptance Criteria:**
|
|
91
|
+
- [ ] AC-01: [Criteria]
|
|
92
|
+
- [ ] AC-02: [Criteria]
|
|
93
|
+
|
|
94
|
+
**Boundaries:**
|
|
95
|
+
- [What NOT to do]
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### Task 2: [Title]
|
|
100
|
+
|
|
101
|
+
[Repeat structure]
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## File Impact
|
|
106
|
+
|
|
107
|
+
**Files to CREATE:**
|
|
108
|
+
- `path/to/new-file.ts` — [Purpose]
|
|
109
|
+
|
|
110
|
+
**Files to MODIFY:**
|
|
111
|
+
- `path/to/existing.ts` — [Reason]
|
|
112
|
+
|
|
113
|
+
**Files to DELETE:**
|
|
114
|
+
- (none)
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Dependencies
|
|
119
|
+
|
|
120
|
+
```mermaid
|
|
121
|
+
graph TD
|
|
122
|
+
T001[T-001: Title] --> T002[T-002: Title]
|
|
123
|
+
T002 --> T003[T-003: Title]
|
|
124
|
+
T001 --> T003
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Effort Summary
|
|
130
|
+
|
|
131
|
+
| Task | Effort | Priority |
|
|
132
|
+
|------|--------|----------|
|
|
133
|
+
| T-001 | S | P0 |
|
|
134
|
+
| T-002 | M | P0 |
|
|
135
|
+
| T-003 | S | P1 |
|
|
136
|
+
|
|
137
|
+
**Total Estimated Effort:** [X days/weeks]
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Risk Assessment
|
|
142
|
+
|
|
143
|
+
| Risk | Probability | Impact | Mitigation |
|
|
144
|
+
|------|-------------|--------|------------|
|
|
145
|
+
| [Risk 1] | L/M/H | L/M/H | [Mitigation] |
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Quick Mode Eligibility
|
|
150
|
+
|
|
151
|
+
Tasks eligible for Quick Mode (no full plan needed):
|
|
152
|
+
- [ ] T-001 (S, ≤3 files, no security/db/api)
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Rollout Plan
|
|
157
|
+
|
|
158
|
+
| Phase | Tasks | Milestone |
|
|
159
|
+
|-------|-------|-----------|
|
|
160
|
+
| Phase 1 | T-001, T-002 | [Milestone] |
|
|
161
|
+
| Phase 2 | T-003 | [Milestone] |
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Approval
|
|
166
|
+
|
|
167
|
+
- [ ] Plan reviewed
|
|
168
|
+
- [ ] User approved
|
|
169
|
+
- [ ] Ready for implementation
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Task Schema Requirements
|
|
173
|
+
|
|
174
|
+
Every task MUST include these fields (per `.opencode/schemas.md` §1):
|
|
175
|
+
- `task_id` (T-XXX format)
|
|
176
|
+
- `title`
|
|
177
|
+
- `type` (task | bug | feature | chore)
|
|
178
|
+
- `status` (not_started | in_progress | blocked | done)
|
|
179
|
+
- `assignee` (build | fe | be | mobile | devops)
|
|
180
|
+
- `priority` (P0 | P1 | P2)
|
|
181
|
+
- `effort` (S | M | L | XL)
|
|
182
|
+
- `dependencies` (list or none)
|
|
183
|
+
- `description`, `input`, `output`, `boundaries`
|
|
184
|
+
- `acceptance_criteria` (list)
|
|
185
|
+
|
|
186
|
+
## Quick Mode Eligibility
|
|
187
|
+
|
|
188
|
+
Task qualifies for Quick Mode (Build Agent) if:
|
|
189
|
+
- `effort: "S"`
|
|
190
|
+
- 3 files or fewer affected
|
|
191
|
+
- No security/auth/db in boundaries
|
|
192
|
+
- No new API endpoints
|
|
193
|
+
|
|
194
|
+
## Rules
|
|
195
|
+
|
|
196
|
+
- ✅ ALWAYS use the full template structure from `_templates/plan.md`
|
|
197
|
+
- ✅ ALWAYS include frontmatter (Date, Author, Status, bead_id)
|
|
198
|
+
- ✅ ALWAYS use `task_id` field (not `ID`)
|
|
199
|
+
- ✅ ALWAYS include all Task Schema fields
|
|
200
|
+
- ✅ File Impact is the BUILD BOUNDARY — only listed files allowed
|
|
201
|
+
- ✅ Stable IDs: Deprecate tasks, don't delete
|
|
202
|
+
- ✅ Confirm with user before proceeding to build
|
|
203
|
+
- ❌ NEVER omit required Task Schema fields
|
|
204
|
+
|
|
205
|
+
Now, load the spec and create the implementation plan.
|
package/command/pr.md
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create pull request with comprehensive description.
|
|
3
|
+
agent: build
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are creating a **pull request** with comprehensive description.
|
|
7
|
+
|
|
8
|
+
## Your Task
|
|
9
|
+
|
|
10
|
+
Generate a well-structured PR with context, changes, and testing info.
|
|
11
|
+
|
|
12
|
+
## Process
|
|
13
|
+
|
|
14
|
+
### 1. Gather Context
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Current branch
|
|
18
|
+
git branch --show-current
|
|
19
|
+
|
|
20
|
+
# Commits to include
|
|
21
|
+
git log main..HEAD --oneline
|
|
22
|
+
|
|
23
|
+
# Files changed
|
|
24
|
+
git diff main --stat
|
|
25
|
+
|
|
26
|
+
# Target branch
|
|
27
|
+
git remote show origin | grep "HEAD branch"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### 2. Load Artifacts
|
|
31
|
+
|
|
32
|
+
- `spec.md` — Link requirements
|
|
33
|
+
- `plan.md` — Link implementation plan
|
|
34
|
+
- `review.md` — Link review results (if exists)
|
|
35
|
+
- Bead info — Get from beads village
|
|
36
|
+
|
|
37
|
+
### 3. Generate PR Description
|
|
38
|
+
|
|
39
|
+
### 4. Create PR
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
gh pr create \
|
|
43
|
+
--title "[type]: [description]" \
|
|
44
|
+
--body "[generated body]" \
|
|
45
|
+
--base main \
|
|
46
|
+
--head [current-branch]
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## PR Template
|
|
50
|
+
|
|
51
|
+
```markdown
|
|
52
|
+
## 🚀 Pull Request
|
|
53
|
+
|
|
54
|
+
### Title
|
|
55
|
+
`[type](scope): [description]`
|
|
56
|
+
|
|
57
|
+
### Description
|
|
58
|
+
[2-3 sentences explaining WHAT and WHY]
|
|
59
|
+
|
|
60
|
+
### Related
|
|
61
|
+
- **Bead:** [ID]
|
|
62
|
+
- **Spec:** `.opencode/memory/specs/YYYY-MM-DD-feature.md`
|
|
63
|
+
- **Plan:** `.opencode/memory/plans/YYYY-MM-DD-feature.md`
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Changes
|
|
68
|
+
|
|
69
|
+
### Summary
|
|
70
|
+
[Brief overview of changes]
|
|
71
|
+
|
|
72
|
+
### Files Changed
|
|
73
|
+
| File | Change |
|
|
74
|
+
|------|--------|
|
|
75
|
+
| `path/to/file.ts` | [What changed] |
|
|
76
|
+
|
|
77
|
+
### Key Changes
|
|
78
|
+
- ✨ [New feature/change 1]
|
|
79
|
+
- 🐛 [Bug fix]
|
|
80
|
+
- ♻️ [Refactor]
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Testing
|
|
85
|
+
|
|
86
|
+
### Automated
|
|
87
|
+
- [x] Unit tests pass
|
|
88
|
+
- [x] Integration tests pass
|
|
89
|
+
- [x] Type check passes
|
|
90
|
+
- [x] Lint passes
|
|
91
|
+
|
|
92
|
+
### Manual Testing
|
|
93
|
+
- [ ] [Test scenario 1]
|
|
94
|
+
- [ ] [Test scenario 2]
|
|
95
|
+
|
|
96
|
+
### Test Commands
|
|
97
|
+
```bash
|
|
98
|
+
pnpm test
|
|
99
|
+
pnpm typecheck
|
|
100
|
+
pnpm lint
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Checklist
|
|
106
|
+
|
|
107
|
+
- [x] Code follows project conventions
|
|
108
|
+
- [x] Tests added/updated
|
|
109
|
+
- [x] Documentation updated (if needed)
|
|
110
|
+
- [x] No console.log or debug code
|
|
111
|
+
- [x] Self-review completed
|
|
112
|
+
- [ ] Ready for review
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Screenshots (if UI changes)
|
|
117
|
+
[Add screenshots here]
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Reviewer Notes
|
|
122
|
+
[Any specific areas to focus on]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## PR Types
|
|
126
|
+
|
|
127
|
+
| Type | Prefix | Example |
|
|
128
|
+
|------|--------|---------|
|
|
129
|
+
| Feature | `feat:` | `feat(auth): add SSO login` |
|
|
130
|
+
| Bug Fix | `fix:` | `fix(api): handle null response` |
|
|
131
|
+
| Refactor | `refactor:` | `refactor(core): simplify logic` |
|
|
132
|
+
| Docs | `docs:` | `docs: update API guide` |
|
|
133
|
+
| Chore | `chore:` | `chore(deps): update packages` |
|
|
134
|
+
|
|
135
|
+
## Options
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
/pr # Auto-generate full PR
|
|
139
|
+
/pr --draft # Create as draft
|
|
140
|
+
/pr --title "..." # Custom title
|
|
141
|
+
/pr --reviewer @user # Request reviewer
|
|
142
|
+
/pr --label bug # Add labels
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## After Creation
|
|
146
|
+
|
|
147
|
+
```markdown
|
|
148
|
+
## ✅ PR Created
|
|
149
|
+
|
|
150
|
+
**URL:** https://github.com/[repo]/pull/[number]
|
|
151
|
+
**Title:** [title]
|
|
152
|
+
**Branch:** [head] → [base]
|
|
153
|
+
|
|
154
|
+
### Next Steps
|
|
155
|
+
1. Request review from team
|
|
156
|
+
2. Address feedback
|
|
157
|
+
3. Merge when approved
|
|
158
|
+
|
|
159
|
+
### Commands
|
|
160
|
+
- View: `gh pr view`
|
|
161
|
+
- Check status: `gh pr checks`
|
|
162
|
+
- Merge: `gh pr merge`
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Rules
|
|
166
|
+
|
|
167
|
+
- ✅ ALWAYS link to spec/plan/bead
|
|
168
|
+
- ✅ ALWAYS include testing info
|
|
169
|
+
- ✅ ALWAYS run checks before PR
|
|
170
|
+
- ✅ ALWAYS self-review first
|
|
171
|
+
- ❌ NEVER create PR with failing tests
|
|
172
|
+
- ❌ NEVER skip description
|
|
173
|
+
|
|
174
|
+
Now gathering info for PR...
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Deep exploration and research before planning.
|
|
3
|
+
agent: plan
|
|
4
|
+
subtask: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are the **Plan Agent** delegating to **Scout Agent**. Execute the `/research` command.
|
|
8
|
+
|
|
9
|
+
## Template
|
|
10
|
+
|
|
11
|
+
Use template at: `@.opencode/memory/_templates/research.md`
|
|
12
|
+
|
|
13
|
+
## Your Task
|
|
14
|
+
|
|
15
|
+
Conduct deep research on a topic before planning implementation.
|
|
16
|
+
|
|
17
|
+
## Process
|
|
18
|
+
|
|
19
|
+
1. **Identify research questions** from spec or user request
|
|
20
|
+
|
|
21
|
+
2. **Delegate to Scout Agent** with:
|
|
22
|
+
- Question to research
|
|
23
|
+
- Constraints (language, framework, versions)
|
|
24
|
+
- Format: summary | comparison | deep-dive
|
|
25
|
+
- Depth: quick | standard | deep
|
|
26
|
+
|
|
27
|
+
3. **Document findings** at `.opencode/memory/research/YYYY-MM-DD-<topic>.md`
|
|
28
|
+
|
|
29
|
+
4. **Summarize key insights** for planning
|
|
30
|
+
|
|
31
|
+
## Research Request Format
|
|
32
|
+
|
|
33
|
+
When delegating, use:
|
|
34
|
+
```yaml
|
|
35
|
+
type: "research"
|
|
36
|
+
question: "[Research question]"
|
|
37
|
+
constraints:
|
|
38
|
+
language: "[Language]"
|
|
39
|
+
framework: "[Framework]"
|
|
40
|
+
format: "comparison" # summary | comparison | deep-dive
|
|
41
|
+
depth: "standard" # quick | standard | deep
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Research Report Template
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
---
|
|
48
|
+
topic: [Topic]
|
|
49
|
+
date: YYYY-MM-DD
|
|
50
|
+
confidence: high | medium | low
|
|
51
|
+
depth: quick | standard | deep
|
|
52
|
+
versions:
|
|
53
|
+
- library: "[name]"
|
|
54
|
+
version: "[version]"
|
|
55
|
+
bead_id: [optional]
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
# Research: [Topic]
|
|
59
|
+
|
|
60
|
+
**Question:** [Original research question]
|
|
61
|
+
|
|
62
|
+
## Summary
|
|
63
|
+
[2-3 sentence answer]
|
|
64
|
+
|
|
65
|
+
## Key Findings
|
|
66
|
+
1. [Finding 1]
|
|
67
|
+
2. [Finding 2]
|
|
68
|
+
|
|
69
|
+
## Comparison (if applicable)
|
|
70
|
+
| Option | Pros | Cons | Best For |
|
|
71
|
+
|--------|------|------|----------|
|
|
72
|
+
| A | | | |
|
|
73
|
+
| B | | | |
|
|
74
|
+
|
|
75
|
+
## Code Examples (if applicable)
|
|
76
|
+
```[language]
|
|
77
|
+
// Code example
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Recommendation
|
|
81
|
+
[Recommended approach]
|
|
82
|
+
|
|
83
|
+
## Verification Steps
|
|
84
|
+
- [ ] [Item to verify in implementation]
|
|
85
|
+
|
|
86
|
+
## Open Questions
|
|
87
|
+
- [Question needing verification]
|
|
88
|
+
|
|
89
|
+
## Sources
|
|
90
|
+
| Source | Type | Reliability |
|
|
91
|
+
|--------|------|-------------|
|
|
92
|
+
| [URL/Title] | Official Docs | High |
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Tools to Use
|
|
96
|
+
- `web_search` — General web search
|
|
97
|
+
- `read_web_page` — Read specific URLs
|
|
98
|
+
- `mcp__context7__*` — Library documentation
|
|
99
|
+
- `mcp__exa__*` — Code examples, recent content
|
|
100
|
+
- `mcp__gh_grep__searchGitHub` — Real-world code patterns
|
|
101
|
+
- `librarian` — Deep repository analysis
|
|
102
|
+
|
|
103
|
+
Now, what topic do you need to research?
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Continue from handoff. Restore state and resume work.
|
|
3
|
+
agent: plan
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are the **Plan Agent** (or **Build Agent**). Execute the `/resume` command.
|
|
7
|
+
|
|
8
|
+
## Your Task
|
|
9
|
+
|
|
10
|
+
Resume work from a previous session using the handoff document.
|
|
11
|
+
|
|
12
|
+
## Process
|
|
13
|
+
|
|
14
|
+
1. **Load latest handoff** from `.opencode/memory/handoffs/`
|
|
15
|
+
|
|
16
|
+
2. **Load related artifacts**:
|
|
17
|
+
- spec.md
|
|
18
|
+
- plan.md
|
|
19
|
+
- research.md (if exists)
|
|
20
|
+
|
|
21
|
+
3. **Detect drift** — Check if code changed outside the session:
|
|
22
|
+
- Run `git status` and `git diff`
|
|
23
|
+
- Compare with handoff's file list
|
|
24
|
+
|
|
25
|
+
4. **Summarize current state**: "We are here; these are next steps"
|
|
26
|
+
|
|
27
|
+
5. **Propose next action**
|
|
28
|
+
|
|
29
|
+
## Resume Workflow
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
1. Find latest handoff.md
|
|
33
|
+
2. Load spec.md, plan.md
|
|
34
|
+
3. Check git status for drift
|
|
35
|
+
4. If drift detected:
|
|
36
|
+
- Summarize changes
|
|
37
|
+
- Mark affected tasks for re-evaluation
|
|
38
|
+
- Ask user to reconcile
|
|
39
|
+
5. If no drift:
|
|
40
|
+
- Present status summary
|
|
41
|
+
- Propose next task
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Output Format
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
## Session Resumed
|
|
48
|
+
|
|
49
|
+
**Previous Session:** YYYY-MM-DD
|
|
50
|
+
**Phase:** [current phase]
|
|
51
|
+
**Branch:** [branch name]
|
|
52
|
+
|
|
53
|
+
### Where We Left Off
|
|
54
|
+
[Summary from handoff]
|
|
55
|
+
|
|
56
|
+
### Drift Detection
|
|
57
|
+
- [ ] No changes detected outside session
|
|
58
|
+
- [ ] Changes detected: [list files]
|
|
59
|
+
|
|
60
|
+
### Current Status
|
|
61
|
+
- **Completed:** X tasks
|
|
62
|
+
- **In Progress:** Y tasks
|
|
63
|
+
- **Remaining:** Z tasks
|
|
64
|
+
|
|
65
|
+
### Proposed Next Action
|
|
66
|
+
[Specific next step to take]
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
Ready to continue? [Y/n]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Drift Handling
|
|
73
|
+
|
|
74
|
+
If drift is detected:
|
|
75
|
+
1. List changed files
|
|
76
|
+
2. Identify which tasks are affected
|
|
77
|
+
3. Mark those tasks for re-evaluation
|
|
78
|
+
4. Ask user: "Code changed outside session. Should I re-evaluate affected tasks?"
|
|
79
|
+
|
|
80
|
+
Now, let me find and load the latest handoff to resume your work.
|