Working example for Executor issue #2198. These source files come from a local plugin running in OpenCode V2.2.5. The manifest records the dependency versions used for the example.
Save the four files in a directory, then build:
bun installWorking example for Executor issue #2198. These source files come from a local plugin running in OpenCode V2.2.5. The manifest records the dependency versions used for the example.
Save the four files in a directory, then build:
bun install| name | youtube-transcript |
|---|---|
| description | Load when user asks to fetch, extract, or summarize a YouTube video transcript. Contains yt-dlp workflow, subtitle parsing, and summarization patterns. |
Reliable workflow for fetching and processing YouTube video transcripts using yt-dlp.
| import type { Hooks, PluginInput } from "@opencode-ai/plugin"; | |
| // Use VS Code's OAuth client ID - it has more scope permissions required for /copilot_internal/v2/token | |
| const CLIENT_ID = "01ab8ac9400c4e429b23"; | |
| const PROVIDER_ID = "github-copilot"; | |
| const PROVIDER_NAME = "GitHub Copilot"; | |
| // TODO: Set this to your GitHub Enterprise domain | |
| const DEFAULT_ENTERPRISE_DOMAIN = "your-company.ghe.com"; | |
| // Add a small safety buffer when polling to avoid hitting the server |
| name | humanize |
|---|---|
| description | Use when writing or editing prose that should not sound like an LLM wrote it. Covers Confluence pages, docs, READMEs, longer comments, emails, release notes, and any other text that ships somewhere a human will read it. |
Remove AI-generated writing patterns from text so it reads like a sharp human wrote it. Based on Wikipedia's "Signs of AI writing" page (maintained by WikiProject AI Cleanup), the pattern catalog of the unsloppify project, and Cursor's unslop skill.
| // import type { Plugin } from "@opencode-ai/plugin" | |
| // // AI writing patterns detection and humanization | |
| // const AI_PATTERNS = { | |
| // content: { | |
| // significance: /\b(stands|serves) as\b|\btestament\b|\bpivotal (moment|role)\b|\bevolving landscape\b|\bindelible mark\b/gi, | |
| // notability: /\bcited in\b.*\b(NYT|BBC|Times|Post)\b|\bactive social media presence\b/gi, | |
| // superficial: /\b(highlighting|underscoring|emphasizing|ensuring|reflecting|symbolizing|showcasing)\b[^.]{0,50}\.\s*$/gim, | |
| // promotional: /\b(nestled|breathtaking|vibrant|stunning|must-visit|renowned|boasts)\b/gi, | |
| // vague: /\b(Experts|Industry reports|Observers|Some critics)\s+(believe|argue|suggest)\b/gi, |
test
| import "@johnlindquist/kit" | |
| import { startSpinner } from "@josxa/kit-utils" | |
| metadata = { | |
| name: "Update Script Kit", | |
| description: "Download and install latest Script Kit release", | |
| author: "JosXa", | |
| } | |
| /** |
| import "@johnlindquist/kit"; | |
| metadata = { | |
| name: "MCP Proxy Background Service", | |
| background: true, | |
| longRunning: true, | |
| }; | |
| const MCP_PROXY_EXECUTABLE = "C:/Users/josch/go/bin/mcp-proxy.exe"; | |
| const CONFIG_PATH = home("mcp-proxy.json"); |
| import "@johnlindquist/kit"; | |
| metadata = { | |
| name: "MCP Proxy Background Service", | |
| background: true, | |
| longRunning: true, | |
| }; | |
| const MCP_PROXY_EXECUTABLE = "C:/Users/josch/go/bin/mcp-proxy.exe"; | |
| const CONFIG_PATH = home("mcp-proxy.json"); |
| import "@johnlindquist/kit" | |
| export const metadata: Metadata = { | |
| name: "Temporarily gitignore a file", | |
| } | |
| let p = await path({ | |
| hint: "Choose a file or repository path", | |
| startPath: "D:\\projects", | |
| }) |