Trellis Debug Systematic Zh logo

Trellis Debug Systematic Zh

Community
coldwateryi
trellis-debug-systematic-zh

当 Trellis 子任务实现/验证过程中测试该绿不绿、或自检命令失败时,用一段不可偏离的刚性脚本做系统化根因定位与最小修复。用于 Codex / Claude Code 等驱动 qwen3.6 35b 这类小参数模型调试时——小模型一旦自由发挥就会到处乱改,本技能用"一次只改一处、改完必重跑、禁止猜"的铁律把它锁在窄路径上,并带防御性回归检查。

Overview

Publishercoldwateryi
Repositorytrellis-skills
Skill nametrellis-debug-systematic-zh
Stars
44
Forks
1
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by coldwateryi on GitHub. Read the source before you install it.

Installation

Install the Trellis Debug Systematic Zh AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/coldwateryi/trellis-skills/tree/main/trellis-debug-systematic-zh
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coldwateryi/trellis-skills.git /tmp/trellis-skills
mkdir -p .claude/skills
cp -r /tmp/trellis-skills/trellis-debug-systematic-zh .claude/skills/trellis-debug-systematic-zh
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Trellis Debug Systematic Zh in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Trellis Debug Systematic Zh on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Trellis Debug Systematic Zh is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Trellis 系统化调试(刚性脚本)

概览

接管一次失败的测试或自检命令,按固定的 4 步把它修绿:固定失败信号 → 定位 → 单一假设验证 → 最小修复 + 回归。本技能存在的意义是防止(尤其是小模型)在调试时乱改、越改越坏——所以它是一段编号脚本 + 铁律,不是建议。

触发:trellis-implement-tdd-zh 的红绿循环里某测试该绿不绿,或 prd.md 自检命令失败,且原因不显然。

调试轨迹固定写入任务目录下的 <task-dir>/debug-report.md。第一次进入调试时从 references/debug-report-template.md 创建,后续每次新的调试事件在同一个文件里追加一个 session 块;不要改 skill 目录里的模板文件。

约束(铁律)

  • 一次只改一处。改完立刻重跑那个失败命令,再决定下一步。
  • 改完必重跑原失败命令。不重跑就不算验证。
  • 禁止猜。定位只用"读栈 / 二分注释 / 加一行日志"三招缩小范围,不靠想象改代码。
  • 不动文件清单 / 禁止事项之外的文件。怀疑根因在范围外时,停下来报告,不擅自扩散修改。
  • 修不对就回滚。一处修改重跑仍失败,先回滚这次改动再换假设,不要在错误改动上叠加。
  • 不 commit / push / merge。
  • 超过 3 轮"假设→修复→重跑"仍未绿 → 停止,升级给强模型或回报人工,不无限烧 token。

工作流

1. 固定失败信号(不复现不动手)

  • 把失败的原文贴出:报错堆栈 / 失败断言 / 命令非零退出码及输出。
  • 确认能稳定复现:记下复现命令(取自 prd.md 自检命令或测试命令)。
  • 复现不了就先解决"不稳定复现",不要对着偶发现象瞎修。
  • 把复现命令、失败原文和是否稳定复现写入 <task-dir>/debug-report.md。

2. 定位(只用三招,缩小到具体行)

按代价从低到高,命中即停:

  1. 读栈:报错堆栈/断言指向的文件与行,直接看那一处。
  2. 二分注释:对可疑代码段二分注释/短路,看失败是否消失,缩小范围。
  3. 加一行日志:在缩小后的范围打印关键变量的实际值,对比期望值。

输出:把范围缩小到"具体文件 + 具体行/变量",不再泛泛说"哪里有问题"。

3. 单一假设(先验证真假,再谈修)

  • 写一句话假设:我认为根因是 X(具体到变量/分支/契约)。
  • 先用最小手段验证假设真假(看变量实际值、查契约、跑一个更小的探针),确认了再修。
  • 假设被证伪 → 回到步骤 2 换一处,不要带着错假设去改。

4. 最小修复 + 回归

  • 只针对已验证的根因改一处。
  • 重跑原失败命令 → 绿则继续;仍红则回滚本次改动,回步骤 3 换假设。
  • 绿之后跑 prd.md 自检命令全集,确认没引入新的红(无回归)。
  • 防御性收尾:回答一句"这个 bug 还能从别的入口再发生吗?"
    • 能 → 在 check.jsonl 记一条回归点({"file":"<回归测试或风险点>","reason":"<它保护的行为>"}),并考虑补一个回归测试。
    • 不能 → 在调试记录里写明"已局部封闭"。

5. 退出

  • 绿了:回到 trellis-implement-tdd-zh 失败的那一步继续。
  • 已回滚且换不出有效假设:记录已排除的假设,升级。
  • 超 3 轮仍红:停止,升级给强模型 / 人工,附上失败信号、已试假设、已排除项。

小模型适配要点

  • 调试是小模型最容易失控的环节——本技能用编号步骤 + 一次一处 + 改完必重跑把它变成机械流程。
  • "禁止猜、先验证假设"避免小模型把"看起来相关"的代码乱改一通。
  • 明确的退出与升级条件,避免小模型陷在调试里反复烧 token。
  • 角色分层:调试默认小模型执行;超 3 轮升级强模型。

参考文件

  • references/debug-protocol.md —— 4 步脚本的判据细节、三招定位法与反模式,开始调试前读取。
  • references/debug-report-template.md —— <task-dir>/debug-report.md 的只读模板;调试过程中全程更新任务目录下的固定文件。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Trellis Debug Systematic Zh AI skill do?

当 Trellis 子任务实现/验证过程中测试该绿不绿、或自检命令失败时,用一段不可偏离的刚性脚本做系统化根因定位与最小修复。用于 Codex / Claude Code 等驱动 qwen3.6 35b 这类小参数模型调试时——小模型一旦自由发挥就会到处乱改,本技能用"一次只改一处、改完必重跑、禁止猜"的铁律把它锁在窄路径上,并带防御性回归检查。

Why use Trellis Debug Systematic Zh on TypingMind?

Because you install it once and use it with any model. Trellis Debug Systematic Zh is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Trellis Debug Systematic Zh in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/coldwateryi/trellis-skills/tree/main/trellis-debug-systematic-zh. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Trellis Debug Systematic Zh?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Trellis Debug Systematic Zh?

As many as you like. As long as a model supports skills, you can use Trellis Debug Systematic Zh with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Trellis Debug Systematic Zh AI skill free?

Yes. It is published on GitHub by coldwateryi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇