LangBot Plugin Development
langbot-app/LangBot
Guides building, debugging and testing LangBot plugins: components, SDK calls, README and locale rules, SDK pitfalls and WebSocket-based testing.
Maintain, debug, and recover MTGA's Trae native custom-model route.
$ npx skills add BiFangKNT/mtga --skill trae-native-debug -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install BiFangKNT/mtga trae-native-debug --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/trae-native-debug .claude/skills/trae-native-debug && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "trae-native-debug" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/trae-native-debug into .claude/skills/trae-native-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-native-debug", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/trae-native-debugType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add BiFangKNT/mtga --skill trae-native-debug -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install BiFangKNT/mtga trae-native-debug --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/trae-native-debug .agents/skills/trae-native-debug && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "trae-native-debug" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/trae-native-debug into .agents/skills/trae-native-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-native-debug", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BiFangKNT/mtga --skill trae-native-debug -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install BiFangKNT/mtga trae-native-debug --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/trae-native-debug .cursor/skills/trae-native-debug && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "trae-native-debug" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/trae-native-debug into .cursor/skills/trae-native-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-native-debug", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/BiFangKNT/mtga.git --path .codex/skills/trae-native-debug--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add BiFangKNT/mtga --skill trae-native-debug -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install BiFangKNT/mtga trae-native-debug --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/trae-native-debug .gemini/skills/trae-native-debug && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "trae-native-debug" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/trae-native-debug into .gemini/skills/trae-native-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-native-debug", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install BiFangKNT/mtga trae-native-debugInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add BiFangKNT/mtga --skill trae-native-debug -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/trae-native-debug .github/skills/trae-native-debug && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "trae-native-debug" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/trae-native-debug into .github/skills/trae-native-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-native-debug", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BiFangKNT/mtga --skill trae-native-debug -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install BiFangKNT/mtga trae-native-debug --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BiFangKNT/mtga.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/trae-native-debug .opencode/skills/trae-native-debug && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "trae-native-debug" agent skill from https://github.com/BiFangKNT/mtga/tree/tauri/.codex/skills/trae-native-debug into .opencode/skills/trae-native-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-native-debug", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
trae-native-debugMaintain, debug, and recover MTGA's Trae native custom-model route.
Trae Native Debug is an agent skill from BiFangKNT/mtga. Maintain, debug, and recover MTGA's Trae native custom-model route. Use when Trae native integration fails, Trae updates shift aiagent.dll hook offsets, errors such as 4028/4054/429 appear, native rewriter or SseOpenPayload URL rewriting needs diagnosis, or Codex needs to avoid repeating prior renderer-JS/private-protocol dead ends.
Its SKILL.md is about 920 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `agents/openai.yaml`, `references/native-route-map.md` and `references/update-recovery.md`).
It sits in Development, covering Debugging. It works with Python. The repository describes itself as: 基于本地代理的方式,绕过 IDE 的固定模型服务商限制. The licence is AGPL-3.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 72669fb. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
uvFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Trae Native Debug loads about 920 tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 88 tokens; SKILL.md has 416 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from BiFangKNT/mtga at commit 72669fb, republished under its AGPL-3.0 licence (© BiFangKNT). 416 words, ~920 tokens.
.claude/skills/trae-native-debug/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.ai_agent.dll, not renderer JS.python-src/modules/trae_patch/ and service glue in python-src/modules/services/trae_native_route.py.python-src/scripts/trae_patch/ for repro, CDP triggering, and maintenance probes only. Do not move runtime-required code back into scripts.reqwest.Classify the failure before changing code.
4028: generic Trae custom-model failure. It can mean auth, unreachable local service, wrong URL, 4xx, or malformed response.4054: usually means Trae's native/custom-model tunnel path rejected or could not consume the stream; prior private protocol hand-roll attempts hit this.429: usually caused by repeated live upstream probes or duplicate requests; throttle and inspect request counts before blaming auth.Confirm which path is under test.
127.0.0.1:18083, and run the native rewriter.ProxyApp.apply_runtime_config().Reproduce with the smallest useful surface.
uv run python -m modules.trae_patch.trae_native_sse_open_url_rewriter --helpscripts/trae_patch/trae_native_byte_pattern.py with the known URL-copy pattern.scripts/trae_patch/trae_native_custom_model_session.py.scripts/trae_patch/trae_cdp_send_chat.py.If Trae updated or offsets moved, read references/update-recovery.md.
If unsure why a prior approach is rejected, read references/native-route-map.md before creating new probes.
CustomModelProxyManager -> official custom-model WebSocket tunnel -> SSE instruction -> reqwest -> user base_url.BootConfig, MNI channel interception, and hand-built JS/internal events were negative or higher-maintenance routes.48 8b 52 08 4d 8b 46 10 48 8d 8d 20 01 00 00; the call offset used by the rewriter is 0x0F.references/native-route-map.md: architecture, file map, and prior dead ends.references/update-recovery.md: procedure for recovering after Trae version changes or breakpoint drift.© BiFangKNT, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in .codex/skills/trae-native-debug of BiFangKNT/mtga.
Open the folder on GitHubat commit 72669fb
Trae Native Debug next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Trae Native Debug this skillBiFangKNT/mtga | 1.2k | — | ~920 | Automated safety check: Pass | AGPL-3.0 | |
| LangBot Plugin Developmentlangbot-app/LangBot | 18k | — | ~3.9k | Automated safety check: Pass | Apache-2.0 | |
| Python Performance Optimizationwshobson/agents | 40k | 13 repos | ~814 | Automated safety check: Pass | MIT | |
| Git History Bug Auditben-manes/caffeine | 18k | — | ~3.3k | Automated safety check: Pass | Apache-2.0 | |
| Keybase RPC Log Analysiskeybase/client | 9.3k | — | ~3k | Automated safety check: Pass | BSD-3-Clause | |
| The Art of Debuggingstas00/the-art-of-debugging | 1.7k | — | ~6.1k | Automated safety check: Notes | CC-BY-SA-4.0 |
langbot-app/LangBot
Guides building, debugging and testing LangBot plugins: components, SDK calls, README and locale rules, SDK pitfalls and WebSocket-based testing.
wshobson/agents
Profiles slow Python code with cProfile and memory profilers, then applies targeted fixes for CPU, memory, I/O and query bottlenecks.
ben-manes/caffeine
Audits a module by walking its git history commit by commit, tracking unresolved issues forward, and reporting the ones that survive to HEAD as findings.
keybase/client
Captures a clean Keybase service log and analyzes it for redundant, duplicated or looping RPCs, then checks whether a caching fix reduced the calls.
stas00/the-art-of-debugging
Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.
google/adk-python
Sets up a local ADK Python development environment in a git clone of the open-source adk-python repository: a uv virtual environment, all dependency extras, pre-commit hooks, and a first unit-test…
BiFangKNT/mtga
Write and debug ast-grep rules for structural code search and rewrite.
BiFangKNT/mtga
使用 GitHub CLI (gh) 执行非交互式 GitHub 协作与自动化任务(PR、Issue、Actions、Release、API 查询/修改)。当用户要求“用 gh 命令完成任务”、需要结构化 JSON 输出(--json/--jq)、批量处理 PR/Issue(如“批量 review 多个 PR”)、按策略合并(如“检查通过后自动 squash 合并”)时使用此 skill。
BiFangKNT/mtga
构建、调试与发布 Tauri v2 应用的工程化工作流。覆盖项目初始化(create-tauri-app)、前端与 Rust 命令通信([tauri::command] + invoke)、状态管理、Capabilities 权限建模、插件接入、跨平台构建与问题排查。当用户需求涉及“创建 Tauri 项目”“把 Web 前端接到 Rust…
BiFangKNT/mtga
在 Windows/macOS/Linux 上使用 uv 执行 Python 运行、依赖同步、锁文件管理、Python 版本管理与工具命令(uv run、uv sync、uv lock、uv python、uv tool)。当任务涉及“用 uv 运行脚本/命令”“临时依赖(--with)”“锁文件一致性(--locked/--frozen)”“跨平台…
BiFangKNT/mtga
在 Windows PowerShell 5.1 与 PowerShell 7 中编写和执行稳定命令,重点处理引号、管道符、原生命令参数传递与跨版本兼容。遇到 --jq/过滤表达式被 PowerShell 误解析、同一命令在 pwsh5 与 pwsh7 行为不一致、或需要为 pwsh7.3+ 增加参数传递适配时使用此 skill。
Works with
Categories
Maintain, debug, and recover MTGA's Trae native custom-model route. Trae Native Debug is an agent skill from BiFangKNT/mtga. Maintain, debug, and recover MTGA's Trae native custom-model route.
Trae Native Debug fits situations like: trae native integration fails; trae updates shift aiagent.dll hook offsets; errors such as 4028/4054/429 appear; native rewriter.
Run `npx skills add BiFangKNT/mtga --skill trae-native-debug -a claude-code`. Or copy the skill folder (.codex/skills/trae-native-debug in BiFangKNT/mtga) into .claude/skills/trae-native-debug in your project. Claude Code loads it when a task matches its description.
Run `npx skills add BiFangKNT/mtga --skill trae-native-debug -a codex`. Or copy the skill folder (.codex/skills/trae-native-debug in BiFangKNT/mtga) into .agents/skills/trae-native-debug in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BiFangKNT/mtga --skill trae-native-debug -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trae-native-debug, .gemini/skills/trae-native-debug, .github/skills/trae-native-debug and .opencode/skills/trae-native-debug in your project.
Going by SKILL.md and its folder, Trae Native Debug needs the command-line tools its instructions call (uv). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Trae Native Debug is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 920 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Trae Native Debug: LangBot Plugin Development (langbot-app/LangBot, 18k stars), Python Performance Optimization (wshobson/agents, 40k stars), Git History Bug Audit (ben-manes/caffeine, 18k stars) and Keybase RPC Log Analysis (keybase/client, 9.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
BiFangKNT (a GitHub user) maintains it in BiFangKNT/mtga, which has 1,169 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on June 18, 2026.
Source: BiFangKNT/mtga on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.