MinLeeV5/devkeel / .harness/skills/systematic-debugging
systematic-debugging
Verified系统化诊断和修复 Bug、测试或构建失败、异常行为、集成故障与性能回归。先建立可判定的反馈信号、追踪根因并逐一验证可证伪假设;仅在现有错误、测试、日志、diff、debugger 或 profiler 无法区分假设,且临时写入已获授权时使用定向 HTTP 插桩。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.0 KB |
| agents/openai.yaml | config | 236 B |
| assets/Hdbg.java | other | 3.6 KB |
| assets/hdbg-node.cjs | script | 1.2 KB |
| assets/hdbg-web.js | script | 1.3 KB |
| references/diagnosis.md | markdown | 3.7 KB |
| references/instrumentation.md | markdown | 2.6 KB |
| references/java8-http.md | markdown | 1.3 KB |
| references/javascript-http.md | markdown | 2.3 KB |
| scripts/bootstrap.js | script | 1.1 KB |
| scripts/cleanup.js | script | 12.0 KB |
| scripts/debug-server.js | script | 10.9 KB |
references/java8-http.md
View on GitHub# Java 8+ HTTP emitter
仅在插桩升级门禁通过且目标为 Java 时读取。
复制 `assets/Hdbg.java` 到目标代码的相同 package,按项目需要在 BEGIN/END 标识之间补 package 声明,替换
`__HDBG_SESSION__`,并在 manifest 中把该文件登记为 helper。模板只使用 Java 8 语法和标准库:
- `HttpURLConnection` 发送 `text/plain`;
- 有界单线程 daemon executor 避免阻塞业务线程和阻止 JVM 退出;
- 短连接/读取超时与丢弃策略限制调试开销;
- 所有发送异常在 helper 内收敛。
调用保持单行:
```java
/*HDBG:7kx2*/ Hdbg.log("save:before", "id=" + id + ",state=" + state);
```
通过 system property 或环境变量覆盖配置:
| 配置 | System property | Environment |
|---|---|---|
| Collector endpoint | `hdbg.endpoint` | `HDBG_ENDPOINT` |
| Session | `hdbg.session` | `HDBG_SESSION` |
| Runtime | `hdbg.runtime` | `HDBG_RUNTIME` |
项目已有 Jackson/Gson 时可以自行把 data 序列化成 JSON 字符串,但不得为了临时调试增加生产依赖。
测试或进程受控退出前可以调用 `Hdbg.flush(timeoutMillis)`;正常业务探针不调用、不等待。
兼容验证:
```bash
javac -source 8 -target 8 Hdbg.java
```
在 JDK 9+ 上使用 `javac --release 8`,并至少用 JDK 8 与一个现代 LTS JVM 运行 smoke 事件。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |