diff options
Diffstat (limited to '.opencode')
| -rw-r--r-- | .opencode/.gitignore | 3 | ||||
| -rw-r--r-- | .opencode/skills/effect/SKILL.md | 21 | ||||
| -rw-r--r-- | .opencode/themes/mytheme.json | 4 | ||||
| -rw-r--r-- | .opencode/tool/github-pr-search.ts | 2 | ||||
| -rw-r--r-- | .opencode/tool/github-triage.ts | 2 |
5 files changed, 27 insertions, 5 deletions
diff --git a/.opencode/.gitignore b/.opencode/.gitignore index d3bf7f8d3..c072cfe07 100644 --- a/.opencode/.gitignore +++ b/.opencode/.gitignore @@ -3,4 +3,5 @@ plans package.json bun.lock .gitignore -package-lock.json
\ No newline at end of file +package-lock.json +references/ diff --git a/.opencode/skills/effect/SKILL.md b/.opencode/skills/effect/SKILL.md new file mode 100644 index 000000000..475814637 --- /dev/null +++ b/.opencode/skills/effect/SKILL.md @@ -0,0 +1,21 @@ +--- +name: effect +description: Answer questions about the Effect framework +--- + +# Effect + +This codebase uses Effect, a framework for writing typescript. + +## How to Answer Effect Questions + +1. Clone the Effect repository: `https://github.com/Effect-TS/effect-smol` to + `.opencode/references/effect-smol` in this project NOT the skill folder. +2. Use the explore agent to search the codebase for answers about Effect patterns, APIs, and concepts +3. Provide responses based on the actual Effect source code and documentation + +## Guidelines + +- Always use the explore agent with the cloned repository when answering Effect-related questions +- Reference specific files and patterns found in the Effect codebase +- Do not answer from memory - always verify against the source diff --git a/.opencode/themes/mytheme.json b/.opencode/themes/mytheme.json index e444de807..0e6b94800 100644 --- a/.opencode/themes/mytheme.json +++ b/.opencode/themes/mytheme.json @@ -116,8 +116,8 @@ "light": "nord5" }, "diffLineNumber": { - "dark": "nord2", - "light": "nord4" + "dark": "#abafb7", + "light": "textMuted" }, "diffAddedLineNumberBg": { "dark": "#3B4252", diff --git a/.opencode/tool/github-pr-search.ts b/.opencode/tool/github-pr-search.ts index 927e68fd7..8bc8c554a 100644 --- a/.opencode/tool/github-pr-search.ts +++ b/.opencode/tool/github-pr-search.ts @@ -7,7 +7,7 @@ async function githubFetch(endpoint: string, options: RequestInit = {}) { Authorization: `Bearer ${process.env.GITHUB_TOKEN}`, Accept: "application/vnd.github+json", "Content-Type": "application/json", - ...options.headers, + ...(options.headers instanceof Headers ? Object.fromEntries(options.headers.entries()) : options.headers), }, }) if (!response.ok) { diff --git a/.opencode/tool/github-triage.ts b/.opencode/tool/github-triage.ts index c06d2407f..dcbfc8d05 100644 --- a/.opencode/tool/github-triage.ts +++ b/.opencode/tool/github-triage.ts @@ -28,7 +28,7 @@ async function githubFetch(endpoint: string, options: RequestInit = {}) { Authorization: `Bearer ${process.env.GITHUB_TOKEN}`, Accept: "application/vnd.github+json", "Content-Type": "application/json", - ...options.headers, + ...(options.headers instanceof Headers ? Object.fromEntries(options.headers.entries()) : options.headers), }, }) if (!response.ok) { |
