원클릭으로
cpp-debug
C++ 运行时故障排查(崩溃、死锁、内存泄漏)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
C++ 运行时故障排查(崩溃、死锁、内存泄漏)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Implements Manus-style file-based planning to organize and track progress on complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when asked to plan out, break down, or organize a multi-step project, research task, or any work requiring >5 tool calls. Supports automatic session recovery after /clear.
多智能体委员会工作流 - 增强版 PRD/ADR 创建与审查。采用文档驱动状态机,确保任何中断后可从断点恢复。核心改进:DevMate 主动与用户讨论决策点,而非仅发送列表。
Browser automation for AI agents via inference.sh. Navigate web pages, interact with elements using @e refs, take screenshots, record video. Capabilities: web scraping, form filling, clicking, typing, drag-drop, file upload, JavaScript execution. Use for: web automation, data extraction, testing, agent browsing, research. Triggers: browser, web automation, scrape, navigate, click, fill form, screenshot, browse web, playwright, headless browser, web agent, surf internet, record video
Web search and content extraction with Tavily and Exa via inference.sh CLI. Apps: Tavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract. Capabilities: AI-powered search, content extraction, direct answers, research. Use for: research, RAG pipelines, fact-checking, content aggregation, agents. Triggers: web search, tavily, exa, search api, content extraction, research, internet search, ai search, search assistant, web scraping, rag, perplexity alternative
重构后测试回归的系统调试方法论 — git bisect 定位 + 新旧代码语义对比 + 状态修改交叉引用
对指定状态变量执行全项目读写交叉引用审计,识别并发/非预期的修改路径
SOC 직업 분류 기준
| name | cpp-debug |
| description | C++ 运行时故障排查(崩溃、死锁、内存泄漏) |
| when_to_use | 当用户遇到以下问题时触发: - "segmentation fault", "segfault", "崩溃了" - "死锁", "卡住不动", "hang" - "内存泄漏", "valgrind", "asan" - "core dumped", "SIGSEGV" - 编译成功但运行失败 |
| skills_required | ["cpp-modernize"] |
请求用户提供(若未提供):
bt 或 addr2line 输出)本地分析:
build/ 目录是否存在 compile_commands.jsonCase A: 段错误 (SIGSEGV)
Case B: 死锁
std::lock_guard 顺序是否一致std::recursive_mutex 需求)Case C: 内存泄漏
valgrind --leak-check=full ./program-fsanitize=addressCppHDL ch_module 生命周期错误
若遇到以下错误或现象,可能是 ch_module 使用不当:
"Child component has been destroyed unexpectedly in io()!""Error: No active parent Component found when creating ch_module!"sim.tick() 挂起或 SIGSEGV诊断步骤:
ch_module 是否在 Component::describe() 内部调用正确模式:
// ✅ ch_device 用于测试
TEST_CASE("test", "[unit]") {
ch::ch_device<MyTop> top;
Simulator sim(top.context());
sim.tick();
}
// ✅ ch_module 用于组件内部
class MyTop : public ch::Component {
void describe() override {
ch::ch_module<Child> child{"child"};
}
};
-fsanitize=thread)