Chuyển đến nội dung
Skillpedia
Agent7.8k · #12853

detect-zero-iteration-failure

Skill này làm gì

Skill này giúp AI và người bảo trì phân loại các lần chạy agent thất bại trước khi thực hiện bất kỳ bước nào. Dành cho người xem xét và gỡ lỗi nhật ký chạy agent, cần biết vấn đề bắt đầu từ đâu.

Khi nào nên dùng

  • ✓Khi một lần chạy agent báo cáo không có bước nào và không dùng công cụ hoặc tệp nào.
  • ✓Khi nhật ký chạy kết thúc ngay sau chỉ thị đầu tiên, không có lập luận nào.
  • ✓Khi tôi muốn gắn nhãn một lỗi là vấn đề thiết lập trước khi xem logic của agent.

Liên kết skill

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failure/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failure/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Lần chạy agent của tôi kết thúc với không có bước nào và không có tệp. Hãy kiểm tra xem nó có thất bại trước khi bắt đầu không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI kiểm tra lần chạy xem có không bước nào, không dùng công cụ và không có kết quả, rồi xem các mục thiết lập như môi trường, prompt và giới hạn tài nguyên thay vì lập luận của agent.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Detect Zero-Iteration Failure

This skill provides a workflow for identifying and classifying agent failures that occur prior to any task execution.

Identification Criteria

Flag a task execution as a Zero-Iteration Failure if all of the following conditions are met:

  1. Iteration Count: The agent reports 0 completed iterations.
  2. Tool Usage: No tools were invoked during the session.
  3. Artifacts: No documents, files, or code artifacts were created.
  4. Conversation Log: The log ends abruptly or contains only an initial error message without agent reasoning steps.

Diagnosis Strategy

When a Zero-Iteration Failure is detected, do not attempt standard agent-level debugging (e.g., analyzing reasoning chains or tool parameters). Instead, investigate system-level causes:

  1. Environment Health: Check if the runtime environment initialized correctly (e.g., dependencies installed, API keys loaded).
  2. Prompt Parsing: Verify if the initial user instruction was malformed or triggered safety filters immediately.
  3. Initialization Crash: Look for stack traces or panic logs occurring before the first agent step.
  4. Resource Limits: Check if memory or quota limits were hit before execution began.

Action Plan

  1. Tag the Failure: Label the incident as failure_mode: pre_execution rather than failure_mode: agent_logic.
  2. Escalate: Route to infrastructure or platform engineering rather than prompt engineering.
  3. Retry Strategy: If automating retries, reset the environment context before retrying, as the previous context may be poisoned.

Example Indicators

Status: Failed
Iterations: 0
Tools Called: []
Error: "Session initialization failed: Missing environment variable"
Câu hỏi thường gặp

Lỗi zero-iteration là gì?

Đó là lần chạy không hoàn thành bước nào, không có lệnh gọi công cụ, không có tệp được tạo và nhật ký dừng sớm.

Những nguyên nhân nào được kiểm tra?

Các vấn đề thiết lập như môi trường, phân tích prompt, sự cố khi khởi động hoặc giới hạn tài nguyên.

Có nên gỡ lỗi lập luận của agent trước không?

Không. Hướng dẫn nói phải bỏ qua gỡ lỗi ở mức agent cho đến khi đã loại trừ các vấn đề thiết lập.

Chi tiết

Mô tả gốc của tác giả

Identify and classify agent failures occurring before execution starts

repo: HKUDS/AgentPilot

Độ phổ biến

Sao GitHub
7.8k
Vị trí xếp hạng
#12853
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự