Skip to content

Instantly share code, notes, and snippets.

View JosXa's full-sized avatar
💙

Joscha Götzer JosXa

💙
View GitHub Profile
@JosXa
JosXa / README.md
Created November 5, 2026 02:38
Executor app tools in OpenCode native Code Mode: working V2 bridge and setup

Executor app tools in OpenCode Code Mode

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.

Setup

Save the four files in a directory, then build:

bun install
@JosXa
JosXa / SKILL.md
Created July 19, 2026 23:45
Agent skill for extracting and summarizing YouTube transcripts with yt-dlp
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.

YouTube Transcript Extraction & Summarization

Reliable workflow for fetching and processing YouTube video transcripts using yt-dlp.

Prerequisites

@JosXa
JosXa / copilot-ghe-enterprise.ts
Created February 27, 2026 01:40
OpenCode plugin: GitHub Copilot with GHE enterprise auth, GPT-5.3 support, and models.dev integration
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
@JosXa
JosXa / humanize.md
Last active September 22, 2026 14:24
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.

Humanize

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.

When to use

// 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,
@JosXa
JosXa / Test Markdown Example.md
Created July 15, 2025 17:19
A simple markdown example to demonstrate basic formatting and syntax.

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",
})