Skip to content

Commit f1dadb0

Browse files
committed
chore: add community templates and MIT license
Add issue/discussion templates and community links to improve onboarding and feedback flow for plugin adoption.
1 parent 5294b48 commit f1dadb0

6 files changed

Lines changed: 193 additions & 1 deletion

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
title: "Share your cache hit rate"
2+
labels:
3+
- showcase
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for sharing your results.
9+
Real-world numbers help others evaluate this plugin.
10+
11+
- type: input
12+
id: provider
13+
attributes:
14+
label: Provider/model
15+
description: Which provider and model were used?
16+
placeholder: eg. rightcode / gpt-5.3-codex
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: before
22+
attributes:
23+
label: Before enabling plugin
24+
description: Share baseline metrics if available
25+
placeholder: eg. cached_tokens nearly 0 across repeated sessions
26+
validations:
27+
required: false
28+
29+
- type: textarea
30+
id: after
31+
attributes:
32+
label: After enabling plugin
33+
description: Share token stats and calculated hit rate
34+
placeholder: |
35+
input_tokens: ...
36+
cached_tokens: ...
37+
hit_rate: ...
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: setup
43+
attributes:
44+
label: Setup details
45+
description: Relevant env vars and plugin loading method
46+
placeholder: |
47+
OPENCODE_PROMPT_CACHE_KEY=...
48+
OPENCODE_CONTEXT_CACHE_DEBUG=1
49+
loaded from ~/.config/opencode/plugins/
50+
validations:
51+
required: false
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Bug report
2+
description: Report a reproducible issue with the plugin
3+
title: "bug: "
4+
labels:
5+
- bug
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for reporting this issue.
11+
Please provide enough detail so we can reproduce it quickly.
12+
13+
- type: input
14+
id: opencode-version
15+
attributes:
16+
label: OpenCode version
17+
description: Output of `opencode --version` (if available)
18+
placeholder: eg. 0.6.2
19+
validations:
20+
required: false
21+
22+
- type: input
23+
id: plugin-file
24+
attributes:
25+
label: Plugin path
26+
description: Which plugin file are you loading?
27+
placeholder: ~/.config/opencode/plugins/opencode-context-cache.mjs
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: expected
33+
attributes:
34+
label: Expected behavior
35+
description: What should have happened?
36+
validations:
37+
required: true
38+
39+
- type: textarea
40+
id: actual
41+
attributes:
42+
label: Actual behavior
43+
description: What happened instead?
44+
validations:
45+
required: true
46+
47+
- type: textarea
48+
id: reproduction
49+
attributes:
50+
label: Reproduction steps
51+
description: Share exact steps to reproduce
52+
placeholder: |
53+
1. Set env var...
54+
2. Start OpenCode...
55+
3. Run prompt...
56+
validations:
57+
required: true
58+
59+
- type: textarea
60+
id: logs
61+
attributes:
62+
label: Relevant logs
63+
description: Include lines from `context-cache.log` if possible
64+
render: shell
65+
validations:
66+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Discussions
4+
url: https://github.com/JackDrogon/opencode-context-cache/discussions
5+
about: Ask questions or share usage results in Discussions.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Feature request
2+
description: Propose an enhancement for opencode-context-cache
3+
title: "feat: "
4+
labels:
5+
- enhancement
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for sharing an idea.
11+
Feature requests with clear use-cases are prioritized faster.
12+
13+
- type: textarea
14+
id: problem
15+
attributes:
16+
label: Problem statement
17+
description: What pain point are you trying to solve?
18+
validations:
19+
required: true
20+
21+
- type: textarea
22+
id: proposal
23+
attributes:
24+
label: Proposed solution
25+
description: Describe your ideal API/behavior
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: alternatives
31+
attributes:
32+
label: Alternatives considered
33+
description: Workarounds or other options you considered
34+
validations:
35+
required: false
36+
37+
- type: input
38+
id: impact
39+
attributes:
40+
label: Expected impact
41+
description: Example metrics (cache hit rate, latency, cost)
42+
placeholder: eg. increase input cache hit from 20% to 80%
43+
validations:
44+
required: false

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 JackDrogon
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ This project provides an OpenCode plugin that generates a stable, privacy-preser
99

1010
Observed result from a real run: input cache hit rate improved from a near-zero baseline to `97.99%` (`164736 / 168112`).
1111

12+
## Community
13+
14+
- Discussions: https://github.com/JackDrogon/opencode-context-cache/discussions
15+
- Issues: https://github.com/JackDrogon/opencode-context-cache/issues
16+
1217
## Installation
1318

1419
### Recommended: directory-based auto-loading
@@ -219,4 +224,4 @@ If these lines appear, the plugin is loaded and processing requests.
219224

220225
## License
221226

222-
No license file is currently included in this repository.
227+
MIT. See `LICENSE`.

0 commit comments

Comments
 (0)