MCP HubMCP Hub
스킬 목록으로 돌아가기

escalate-issues

pjt222
업데이트됨 2 days ago
1 조회
17
2
17
GitHub에서 보기
메타wordaiautomationdesign

정보

이 스킬은 자동 정리가 어려운 복잡한 유지보수 문제(예: 안전하지 않은 코드 삭제나 보안 취약점)를 심사하고 에스컬레이션합니다. 문제의 맥락을 기록하고 심각도를 평가한 후, 적절한 전문 에이전트나 담당자에게 전달합니다. 그 결과 추가 처리가 가능한 실행 가능한 이슈 보고서가 생성됩니다.

빠른 설치

Claude Code

추천
기본
npx skills add pjt222/agent-almanac -a claude-code
플러그인 명령대체
/plugin add https://github.com/pjt222/agent-almanac
Git 클론대체
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/escalate-issues

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

escalate-issues

Use When

Maintenance task hits problems beyond automated cleanup:

  • Uncertain if code safe to delete
  • Config changes need domain expertise (security, perf, arch)
  • Breaking changes detected during cleanup
  • Complex refactor needed (not cleanup)
  • Security-sensitive (secrets, vulns)

Do NOT use for simple clear fixes. Escalate only when risky/insufficient.

In

ParamTypeReqDesc
issue_descriptionstringYesClear description
severityenumYescritical, high, medium, low
context_filesarrayNoPaths to files
specialiststringNoTarget agent (auto-route if none)
blockingbooleanNoBlocks cleanup (default: false)

Do

Step 1: Severity

Classify via standard levels.

CRITICAL — Blocks prod:

  • Broken imports in active code
  • Security vulns (secrets, SQL injection)
  • Data loss risk
  • Prod outages

HIGH — Impacts maintainability/dev:

  • Significant dead code (>1000 lines)
  • Broken CI/CD
  • Major config drift
  • Unref modules maybe dynamically loaded

MEDIUM — Minor hygiene:

  • Unused helpers (<100 lines)
  • Stale docs
  • Deprecated configs
  • Lint warn non-critical

LOW — Style:

  • Mixed indent
  • Trailing whitespace
  • Inconsistent naming
  • Minor formatting

Decision Tree:

Does it break production? → CRITICAL
Does it block development? → HIGH
Does it impact code quality? → MEDIUM
Is it purely cosmetic? → LOW

→ Classified w/ clear label.

If err: uncertain → default HIGH, escalate human re-triage.

Step 2: Document

Capture context for specialist.

Report Template:

# Issue: [Brief Title]

**Severity**: CRITICAL | HIGH | MEDIUM | LOW
**Discovered During**: [Skill name, e.g., clean-codebase]
**Date**: YYYY-MM-DD
**Blocking**: Yes | No

## Description

Clear description of the problem in 2-3 sentences.

## Context

- **File(s)**: [List of affected files with line numbers]
- **Related**: [Related issues, commits, or previous attempts to fix]
- **Impact**: [What breaks if this isn't fixed, or what's wasted if not cleaned]

## Evidence

```language
# Code snippet or log excerpt showing the problem

Attempted Fixes

  • Tried X but failed because Y
  • Considered Z but uncertain due to W

Recommendation

  • Option 1: [Safe conservative approach]
  • Option 2: [More aggressive fix with risks]
  • Preferred: [Which option to pursue and why]

Specialist Routing

Suggested Agent: [agent-name] Reason: [Why this specialist is appropriate]

References

  • [Link to related documentation]
  • [Link to similar past issues]

→ Documented w/ full context → `ESCALATION_REPORTS/issue_YYYYMMDD_HHMM.md`.

If err: (N/A — always document, even incomplete)

### Step 3: Route

Match issue → specialist/human.

**Routing Table**:

| Issue Type | Specialist | Reason |
|------------|-----------|---------|
| Security vuln | security-analyst | Security expertise |
| GxP compliance | gxp-validator | Regulatory |
| Architecture | senior-software-developer | Design patterns |
| Config mgmt | devops-engineer | Infra |
| Dep conflicts | devops-engineer | Pkg mgmt |
| Perf bottleneck | senior-data-scientist | Optimization |
| Style dispute | code-reviewer | Style authority |
| Dead code uncertain | r-developer (lang-specific) | Lang knowledge |
| Broken test unclear | code-reviewer | Test design |
| Doc accuracy | senior-researcher | Domain |
| License compat | auditor | Legal/compliance |

**Auto Routing**:
```python
def route_issue(severity, issue_type):
    if severity == "CRITICAL":
        # Always escalate to human for critical issues
        return "human"

    if "security" in issue_type or "secret" in issue_type:
        return "security-analyst"

    if "gxp" in issue_type or "compliance" in issue_type:
        return "gxp-validator"

    if "architecture" in issue_type or "design" in issue_type:
        return "senior-software-developer"

    if "config" in issue_type or "deployment" in issue_type:
        return "devops-engineer"

    # Default: code-reviewer for general code issues
    return "code-reviewer"

→ Routed w/ justification.

If err: no clear specialist → human for manual route.

Step 4: Actionable Report

Formatted for target audience.

Specialist Agents (structured for MCP):

---
type: escalation
severity: high
from_agent: janitor
to_agent: security-analyst
blocking: false
---

# Security Concern: Hardcoded API Key in Config

**File**: config/production.yml:45
**Pattern**: API_KEY="sk_live_abc123..."

**Request**: Please review if this is a valid secret or a placeholder.
If valid, recommend secure credential management strategy.

**Context**: Discovered during config cleanup sweep.

Human (detailed md):

# Escalation Report: Uncertain Dead Code Removal

**From**: Janitor Agent
**Date**: 2026-02-16
**Severity**: HIGH

## Problem

File `src/legacy_payments.js` (450 lines) appears unused but contains
complex payment processing logic. Static analysis shows zero references,
but name suggests business-critical functionality.

## Why Escalated

- Uncertain if payment code is dynamically loaded at runtime
- Potential data loss risk if deleted incorrectly
- Requires domain knowledge to assess business impact

## Evidence

- No direct imports found
- Last modified 8 months ago
- Git history shows it was part of payment refactor

## Recommendation

Request human review before deletion. If confirmed dead:
1. Archive to archive/legacy/ directory
2. Document in ARCHIVE_LOG.md
3. Create ticket to verify payment flows still work

## Next Steps

Awaiting human confirmation before proceeding with cleanup.

→ Formatted for audience.

If err: (N/A — generic md if uncertain)

Step 5: Track

Log escalations → prevent duplicates.

# Escalation Log

| ID | Date | Severity | Issue | Specialist | Status |
|----|------|----------|-------|-----------|--------|
| ESC-001 | 2026-02-16 | CRITICAL | Broken prod import | human | Resolved |
| ESC-002 | 2026-02-16 | HIGH | Dead payment code | human | Pending |
| ESC-003 | 2026-02-16 | MEDIUM | Config drift | devops-engineer | In Progress |

ESCALATION_LOG.md updated w/ new entry.

If err: log DNE → create.

Step 6: Notify + Block (If Required)

Blocking → notify + pause cleanup.

Blocking Logic:

  • CRITICAL always blocks
  • HIGH blocks if critical path
  • MEDIUM/LOW no block

Notification:

⚠️ MAINTENANCE BLOCKED ⚠️

Issue ESC-002 (HIGH severity) requires human review before proceeding.

**Affected Operation**: clean-codebase (Step 5: Remove Dead Code)
**Reason**: Uncertain if src/legacy_payments.js is truly dead

**Action Required**: Review ESCALATION_REPORTS/ESC-002_2026-02-16.md

Once resolved, re-run maintenance from Step 5.

→ Maintenance paused, notification clear.

If err: notification unavailable → document in report.

Check

After escalation:

  • Severity correct
  • Full context (files, evidence, attempts)
  • Specialist identified
  • Report in ESCALATION_REPORTS/
  • LOG updated
  • Blocking communicated if applicable
  • No secrets exposed

Traps

  1. Over-Escalate: Simple issues waste specialist. Only when uncertain/risky.
  2. Under-Escalate: Delete code "to see if tests pass" no escalate → prod outage.
  3. Insufficient Context: No evidence → specialists re-investigate. Include paths, lines, errs.
  4. Vague: "Something wrong w/ config" not actionable. Specific: "Config drift: dev v1, prod v2".
  5. No Track: Re-escalating already-reviewed. Check LOG first.
  6. Expose Secrets: Real keys/passwords in reports. Redact sensitive.

GitHub 저장소

pjt222/agent-almanac
경로: i18n/caveman-ultra/skills/escalate-issues
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

연관 스킬

content-collections

메타

이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.

스킬 보기

polymarket

메타

이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.

스킬 보기

creating-opencode-plugins

메타

이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.

스킬 보기

sglang

메타

SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.

스킬 보기