You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,9 @@ bun run check
53
53
54
54
## Claude Code
55
55
56
-
1.**Build the project**:
56
+
1.**Build and link the project**:
57
57
```bash
58
-
bun run build
58
+
bun run build&& bun link
59
59
```
60
60
61
61
2.**Disable the safety-net plugin** in Claude Code (if installed) and exit Claude Code completely.
@@ -74,14 +74,19 @@ bun run check
74
74
git checkout -b test-branch
75
75
```
76
76
77
+
5.**Unlink the project** when you're done:
78
+
```bash
79
+
bun unlink
80
+
```
81
+
77
82
> [!NOTE]
78
83
> See the [official documentation](https://docs.anthropic.com/en/docs/claude-code/plugins#test-your-plugins-locally) for more details on testing plugins locally.
79
84
80
85
## OpenCode
81
86
82
-
1.**Build the project**:
87
+
1.**Build and link the project**:
83
88
```bash
84
-
bun run build
89
+
bun run build&& bun link
85
90
```
86
91
87
92
2.**Update your OpenCode config** (`~/.config/opencode/opencode.json` or `opencode.jsonc`):
@@ -102,7 +107,8 @@ bun run check
102
107
}
103
108
```
104
109
105
-
> **Note**: Remove `"cc-safety-net"` from the plugin array if it exists, to avoid conflicts with the npm version.
110
+
> [!NOTE]
111
+
> Remove `"cc-safety-net"` from the plugin array if it exists, to avoid conflicts with the npm version.
106
112
107
113
3.**Restart OpenCode** to load the changes.
108
114
@@ -117,6 +123,13 @@ bun run check
117
123
git checkout -b test-branch
118
124
```
119
125
126
+
6.**Manually copy or add commands** to `~/.config/opencode/command` or `.opencode/command` if you modified or added any new commands.
127
+
128
+
7.**Unlink the project** when you're done:
129
+
```bash
130
+
bun unlink
131
+
```
132
+
120
133
> [!NOTE]
121
134
> See the [official documentation](https://opencode.ai/docs/plugins/) for more details on OpenCode plugins.
0 commit comments