Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

debugging-agent调试 Agent

Agent Skill

debugging-agent 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

618

周安装

26

GitHub Stars

公开资料未说明

下载量

216
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:debugging-agent(调试 Agent)
来源仓库:https://github.com/psh355q-ui/szdi57465yt
仓库路径:skills/debugging-agent
安装命令:
npx skills add psh355q-ui/szdi57465yt --skill "debugging-agent"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add psh355q-ui/szdi57465yt --skill "debugging-agent"

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 适用于 Agent 调试相关的任务场景。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。
  • debugging-agent 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
debugging-agent
description
|
AUTO-TRIGGERS
allowed-tools
metadata
category
system
version
1.0
triggers
auto
manual
outputs
format
markdown
location
backend/ai/skills/logs/system/debugging-agent/proposals/
dependencies

Debugging Agent

Self-Improving Agent System의 핵심 컴포넌트

다른 모든 agent의 로그를 분석하여 문제를 발견하고 개선안을 제안합니다.


📋 Core Workflow

1. Log Collection (로그 수집)

python backend/ai/skills/system/debugging-agent/scripts/log_reader.py \
  --days 1 \
  --categories system,war-room,analysis

수집 대상:

  • backend/ai/skills/logs/*/*/execution-*.jsonl
  • backend/ai/skills/logs/*/*/errors-*.jsonl
  • backend/ai/skills/logs/*/*/performance-*.jsonl

Output:

{
  "agents": ["signal-consolidation", "war-room-debate", ...],
  "total_executions": 50,
  "total_errors": 3,
  "time_range": "2025-12-25 to 2025-12-26"
}

2. Pattern Detection (패턴 감지)

python backend/ai/skills/system/debugging-agent/scripts/pattern_detector.py \
  --input logs_summary.json \
  --output patterns.json

감지 패턴:

A. Recurring Errors (반복 에러)

  • 조건: 동일한 error type이 24시간 내 3회 이상
  • 예시: TypeError: missing required positional argument (3회)
  • 우선순위: HIGH

B. Performance Degradation (성능 저하)

  • 조건: duration_ms가 baseline 대비 2배 이상
  • 예시: 평균 1000ms → 최근 2500ms
  • 우선순위: MEDIUM

C. High Error Rate (높은 에러율)

  • 조건: error rate > 5%
  • 예시: 50 executions, 4 errors = 8%
  • 우선순위: CRITICAL

D. API Rate Limits (API 제한)

  • 조건: "rate limit" 관련 에러 5회 이상
  • 우선순위: HIGH

Output:

{
  "patterns": [
    {
      "type": "recurring_error",
      "agent": "war-room-debate",
      "error_type": "TypeError",
      "count": 3,
      "impact": "CRITICAL",
      "first_seen": "2025-12-25T18:30:00",
      "last_seen": "2025-12-26T09:15:00"
    }
  ]
}

3. Context Synthesis (맥락 통합)

관련 agent의 SKILL.md를 읽어서 컨텍스트 파악:

# Read related skills
cat backend/ai/skills/war-room/war-room-debate/SKILL.md
cat backend/api/war_room_router.py

파악 내용:

  • Agent의 역할과 책임
  • 입력/출력 형식
  • 의존성 (DB, APIs, etc.)
  • 최근 변경사항

4. Improvement Proposal (개선안 생성)

python backend/ai/skills/system/debugging-agent/scripts/improvement_proposer.py \
  --patterns patterns.json \
  --output proposals/proposal-20251226-100822.md

Proposal 포맷:

# Improvement Proposal: Fix War Room TypeError

**Generated**: 2025-12-26 10:08:22  
**Agent**: war-room-debate  
**Priority**: CRITICAL  
**Confidence**: 87%

---

## 🔍 Issue Summary

**Pattern Detected**: Recurring Error (3 occurrences in 24h)

**Error**:

TypeError: missing required positional argument for AIDebateSession


**Impact**: 
- War Room debates failing
- No trading signals generated
- User experience degraded

---

## 📊 Root Cause Analysis

**Evidence**:
1. Error occurs in `war_room_router.py:L622`
2. `AIDebateSession.__init__()` called with missing argument
3. Recent code change added new required field

**Root Cause**: 
Schema mismatch between `AIDebateSession` model and router code.

---

## 💡 Proposed Solution

### Option 1: Add Missing Argument (Recommended)

**File**: `backend/api/war_room_router.py`

Line 622 - Add missing argument

session = AIDebateSession( ticker=ticker, consensus_action=pm_decision["consensus_action"], # ... existing fields ... dividend_risk_vote=next((v["action"] for v in votes if v["agent"] == "dividend_risk"), None), # ← ADD THIS created_at=datetime.now() )


**Confidence**: 90% (high evidence)

### Option 2: Make Field Optional

Alternatively, update the model to make the field optional.

**Confidence**: 70% (lower impact but safer)

---

## 🎯 Expected Impact

- ✅ Eliminates TypeError
- ✅ War Room debates resume
- ✅ Trading signals restored
- ⚠️ Requires testing with all agents

---

## 🧪 Verification Plan

1. Apply fix to `war_room_router.py`
2. Run War Room debate: `POST /api/war-room/debate {"ticker": "AAPL"}`
3. Verify no TypeError
4. Check logs for successful execution

---

## 📝 Risk Assessment

**Risk Level**: LOW

**Potential Issues**:
- May need to update other agent votes similarly
- Database migration if schema changed

**Rollback Plan**:
- Revert commit if issues arise
- Monitor error logs for 24h

---

**Confidence Breakdown**:
- Error Reproducibility: 100% (3/3 occurrences)
- Historical Success: 80% (similar fixes worked)
- Impact Clarity: 90% (clear user impact)
- Root Cause Evidence: 85% (stack trace clear)
- Solution Simplicity: 85% (1-line fix)

**Overall Confidence**: 87%

🎯 Confidence Scoring (5 Metrics)

Proposal confidence는 5가지 메트릭의 가중 평균:

  1. Error Reproducibility (30%)

- 100% if error occurs every time - 0% if random/sporadic

  1. Historical Success (25%)

- Similar fixes worked before? - Based on past proposals

  1. Impact Clarity (20%)

- Clear user/system impact? - Measurable consequences?

  1. Root Cause Evidence (15%)

- Stack trace available? - Clear error message?

  1. Solution Simplicity (10%)

- Simple 1-line fix vs complex refactor - Lower risk = higher confidence

Formula:

confidence = (
    reproducibility * 0.30 +
    historical_success * 0.25 +
    impact_clarity * 0.20 +
    root_cause_evidence * 0.15 +
    solution_simplicity * 0.10
)

🔄 Usage Examples

Manual Trigger

# Analyze recent logs
python backend/ai/skills/system/debugging-agent/scripts/log_reader.py --days 1

# Detect patterns
python backend/ai/skills/system/debugging-agent/scripts/pattern_detector.py

# Generate proposals
python backend/ai/skills/system/debugging-agent/scripts/improvement_proposer.py

Scheduled Execution (via orchestrator)

# scripts/run_debugging_agent.py
import schedule

def run_debugging_agent():
    subprocess.run(["python", "backend/ai/skills/system/debugging-agent/scripts/log_reader.py"])
    subprocess.run(["python", "backend/ai/skills/system/debugging-agent/scripts/pattern_detector.py"])
    subprocess.run(["python", "backend/ai/skills/system/debugging-agent/scripts/improvement_proposer.py"])

schedule.every(30).minutes.do(run_debugging_agent)

📁 Output Structure

backend/ai/skills/logs/system/debugging-agent/
├── execution-2025-12-26.jsonl    # Debugging agent's own logs
├── errors-2025-12-26.jsonl
└── proposals/
    ├── proposal-20251226-100822.md  # Improvement proposal
    ├── proposal-20251226-103045.md
    └── accepted/
        └── proposal-20251226-100822.md  # User accepted

⚠️ Important Notes

  1. Read-Only Access: Debugging Agent는 로그만 읽고 코드는 수정하지 않음
  2. User Approval Required: 모든 제안은 사용자 승인 필요
  3. Audit Trail: 모든 제안과 결과는 proposals/ 디렉토리에 보관
  4. Safety First: Confidence < 70%인 제안은 경고 표시

🚀 Next Steps

After Phase 2 complete:

  • Phase 3: Skill Orchestrator (scheduling, notifications)
  • (Optional) Phase 4: CI/CD Integration (auto-apply patches)

Created: 2025-12-26 Version: 1.0 Status: In Development

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

trae

28.79%
按下载量换算62

Claude Code

23.88%
按下载量换算52

windsurf

17.65%
按下载量换算38

OpenCode

10.95%
按下载量换算24

Cursor

7.67%
按下载量换算17

Codex

3.43%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add psh355q-ui/szdi57465yt --skill "debugging-agent" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills