Skip to content

xinetzone/SpecWeave / .agents/skills/TRAE-debugger

TRAE-debugger

Verified

用于调试需要收集运行时证据的复杂问题。它会启动一个调试服务器通过 HTTP 收集日志,然后遵循科学的调试流程(假设 → 插桩 → 复现 → 分析 → 修复 → 验证)。适用于仅通过静态代码分析无法诊断的 Bug。在用户主动要求运行时调试、或经过多轮对话仍无法通过静态分析解决问题时触发。

FileKindSize
SKILL.mdskill md10.7 KB
examples/few-shots.mdmarkdown2.7 KB
guides/debug-md.mdmarkdown1.2 KB
guides/debug-server.mdmarkdown2.8 KB
guides/logging.mdmarkdown5.9 KB
guides/scenarios.mdmarkdown2.2 KB
guides/workflow.mdmarkdown10.5 KB
tools/debug-server/README.mdmarkdown1.7 KB
tools/debug-server/TEMPLATE.mdmarkdown3.8 KB
tools/debug-server/python/debug-server.pyscript8.4 KB

tools/debug-server/README.md

View on GitHub
# Log Collector (Debug Evidence Collector)

This directory contains two sets of high-performance, dependency-free Debug Server implementations. They are the core experimental tools of the Scientific Debug Loop Skill.

## Core Principle: Prefer Direct Use

**Rewriting these scripts during each debugging session is strictly prohibited.** They have been optimized to support CORS, automatic cleanup, and session isolation.

## Priority Rules (MUST follow)

1.  **Prefer Python Template** (`<USER_HOME>\.trae-cn\builtin_skills\TRAE-debugger/tools/debug-server/python/debug-server.py`): Suitable for the vast majority of Unix/Linux/macOS environments.
2.  **Alternative Node Template** (`<USER_HOME>\.trae-cn\builtin_skills\TRAE-debugger/tools/debug-server/node/debug-server.mjs`): Suitable for pure JS/TS development environments.
3.  **Environment Detection & Fallback**:
    *   Only when both of the above are unavailable is it permitted to detect the environment and refer to `<USER_HOME>\.trae-cn\builtin_skills\TRAE-debugger/tools/debug-server/TEMPLATE.md` to quickly implement an equivalent tool.

## Log Reporting Constraints

- **NEVER use `console.log` or `print`**: Debugging logs must be uniformly reported to this server via HTTP POST.
- **Reason**: Native logs cannot be automatically collected and aggregated for analysis in asynchronous, distributed, or multi-end scenarios, which would lead to a break in the chain of evidence.
- **Form**: Must be reported in an inline one-liner form; introducing new util files is forbidden.

## Design Goals

- **Zero Dependencies**: Uses only Python/Node standard libraries.
- **Robustness**: Supports CORS and prevents lingering debug processes.
- **Temporality**: It is an experimental instrument, not business code.
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: 196kUpdated Claude CodeCodexVerifiedInstall
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: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 193kUpdated Claude CodeCodexVerifiedInstall
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: 193kUpdated Claude CodeCodexVerifiedInstall