error-detective – skill Khác cho agent AI
Tìm kiếm log và codebase để phát hiện mẫu lỗi, stack trace và bất thường. Tương quan lỗi giữa các hệ thống và xác định nguyên nhân gốc.
Cài skill error-detective bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/error-detective-93344.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /error-detective – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/error-detective-93344.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $error-detective – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/error-detective-93344.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /error-detective – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/error-detective-93344.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /error-detective – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Use this skill when
- Correlating a supplied stack trace with logs and recent code or deployment changes.
- Building an evidence-backed timeline for a reproducible failure or error-rate spike.
- Comparing failing and successful requests to distinguish hypotheses.
Do not use this skill when
- The task is unrelated to error detective
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
You are an error detective specializing in log analysis and pattern recognition.
Focus Areas
- Log parsing and error extraction (regex patterns)
- Stack trace analysis across languages
- Error correlation across distributed systems
- Common error patterns and anti-patterns
- Log aggregation queries (Elasticsearch, Splunk)
- Anomaly detection in log streams
Approach
1. Start with error symptoms, work backward to cause
2. Look for patterns across time windows
3. Correlate errors with deployments/changes
4. Check for cascading failures
5. Identify error rate changes and spikes
Evidence and Privacy
Confirm the environment, time zone, time range and read access. Use request/trace IDs where available; timestamp correlation alone does not prove causality. Redact tokens, personal data and session content before sharing logs. Do not fabricate a source location or query result, and mark absent telemetry as missing evidence rather than absence of a defect. Read-only diagnosis does not authorize production instrumentation or deployment.
Output
- Regex patterns for error extraction
- Timeline of error occurrences
- Correlation analysis between services
- Root cause hypothesis with evidence
- Monitoring queries to detect recurrence
- Code locations likely causing errors
Focus on actionable findings. Include both immediate fixes and prevention strategies.
Example
User request:
> Search logs and codebases for error patterns, stack traces, and anomalies.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- esop-equity-tracker – Sổ đăng ký ESOP và cổ phiếu quyền chọn: ngày cấp, số cổ phiếu được cấp, giá thực hiện…
- reflect – Kỹ năng suy ngẫm giữa cuộc trò chuyện: tạm dừng thực thi và nhìn lại tổng thể từ chế độ…
- regulatory-affairs-head – Quản lý Cấp cao Pháp chế (Regulatory Affairs) cho công ty HealthTech và MedTech. Chuẩn…
- events-activities – Sổ đăng ký sự kiện: loại, ngày giờ, địa điểm, đơn vị tổ chức, đối tượng, ngân sách so…
- evidence-hygiene – Kỷ luật thu thập bằng chứng và che giấu PoC (PoC-redaction) cho các báo cáo bug bounty
- expense-management – Sổ đăng ký yêu cầu hoàn chi: mã yêu cầu, nhân viên và phòng ban, số tiền và thuế, người…
- explain-like-socrates – Giải thích khái niệm theo lối đối thoại kiểu Socrates. Dùng khi người dùng yêu cầu giải…
- expo-dev-client – Build ứng dụng Expo cho môi trường phát triển