In short.
Agent Introspection Debugging is a skill for developers whose AI agents stall or fail repeatedly, with recovery limited by what their agent can observe and change. It provides four phases for recording failures, checking causes, attempting a small corrective action and documenting the result. The supplied files contain instructions and interface metadata; recovery effectiveness, compatibility and operating costs are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected folder .agents/skills/agent-introspection-debugging: SKILL.md and agents/openai.yaml, together with the root LICENSE notice at commit d2ef2680594f9a17526a6e1a2e18b3d242c5d17b. Other ECC skills, repository code, host implementations and later revisions are outside scope. Installation, invocation, recovery behavior, compatibility, costs and performance were not tested; nothing was executed.
The overview
Identity
Agent Introspection Debugging is an instruction skill in the affaan-m/ECC repository. Its selected folder contains SKILL.md and agents/openai.yaml. The repository location is [https://github.com/affaan-m/ECC/tree/main/.agents/skills/agent-introspection-debugging].
SKILL.md defines the debugging procedure. The YAML file supplies its display name, a default invocation prompt and permission for implicit invocation in a host that supports that setting.
Assessment
The skill is a useful candidate when an agent keeps retrying, loses track of its task or acts on incorrect environment assumptions. Its practical strength is the requirement to capture the failure and check a hypothesis before another retry.
It supplies a procedure and reusable templates, but no observed recovery results. Whether it improves a particular agent's reliability or reduces wasted calls remains unassessed.
Users
The intended users are developers and operators supervising AI agents that use tools, commands or a development workspace. Beginners receive a sequence for describing a failure; experienced developers get prompts to distinguish logic, state, environment and policy failures.
It is most applicable when error messages, recent tool calls and relevant environment state are available. Framework-specific debugging and verification after code changes require additional guidance.
Capabilities
The workflow covers repeated tool calls, excessive context growth, connection failures, timeouts, rate limits, quota exhaustion, missing files, stale changes and tests that continue failing after an attempted fix.
It provides templates for recording the task, error, last successful step, environment assumptions, chosen diagnosis, corrective action and evidence of improvement. Its final report includes success, partial or blocked status, token and time risk, follow-up work and a preventive lesson.
Using it
Requirements
A host agent must be able to read and follow the skill instructions. Diagnosing actual failures also requires access to relevant observations, such as error output, tool history, working directory, branch, files or service status. The skill does not supply those observation tools.
No model requirement, supported-host list, software version, hardware requirement or dependency installation is specified. The YAML invocation settings alone do not establish compatibility with a particular host.
Mechanism
The first phase records the failure before recovery. The second matches observations to possible causes and asks which small, reversible check could distinguish them. The third applies a limited action supported by that diagnosis. The fourth records the cause, action, result and remaining work.
Suggested interventions include restating the real objective, checking actual environment state, reducing the failing scope and performing one discriminating check before retrying. These steps depend on the agent following the instructions and using its existing tools.
Setup
The supplied files do not give an installation command. Use a compatible host's skill-loading mechanism and retain the SKILL.md and agents/openai.yaml folder structure; exact installation steps are unknown from this material.
The metadata provides the default prompt: Use $agent-introspection-debugging to diagnose and recover from an AI agent failure. It sets allow_implicit_invocation to true, although actual automatic activation depends on host support.
Example
Illustrative scenario, not an observed run: an agent repeatedly receives ECONNREFUSED while trying to contact a local service. Following the skill would mean recording the exact failed request, recent calls and expected service address before retrying.
The agent would then check service availability and the host and port assumptions using permitted tools. A confirmed address error could justify correcting the request; an unavailable service could leave the task blocked. The report would state the evidence and outcome without claiming recovery from a proposed action alone.
Assessment & evidence
Limitations
The two skill files contain no recovery runtime, automatic retry limiter, backoff implementation or agent-state reset mechanism. Instructions cannot establish that a host will stop looping or make the necessary observations.
The diagnosis table supplies hypotheses rather than definitive causes. For example, a rate-limit response requires investigation before attributing it to repeated retries. Recovery involving code changes also requires separate verification. Nothing was executed, and no compatibility or recovery tests were assessed.
Reasoning
The procedure has a clear rationale: preserving the error and recent actions can expose repetition or incorrect assumptions, while a narrow check can distinguish competing explanations before another change.
Its reporting fields also make partial and blocked outcomes easier to hand over. These are judgments about the workflow's design; the supplied material does not demonstrate improved success rates or reduced token use.
Alternatives
The source directs users to verification-loop for checking code changes and to narrower ECC skills for framework-specific debugging. It references council for decision ambiguity and workspace-surface-audit for conflicting local state or repository drift.
It also names continuous-learning-v2 for turning recurring failures into reusable lessons. These referenced resources are outside the supplied scope, so their contents, compatibility and comparative effectiveness are not assessed.
Evidence
The available material contains the complete selected SKILL.md and agents/openai.yaml files, plus the repository's root LICENSE. It establishes the documented procedure, interface settings and licence terms. It includes no execution logs, observed recoveries or performance measurements.
The original skill text is available at [https://raw.githubusercontent.com/affaan-m/ECC/d2ef2680594f9a17526a6e1a2e18b3d242c5d17b/.agents/skills/agent-introspection-debugging/SKILL.md]. Its companion metadata is at [https://raw.githubusercontent.com/affaan-m/ECC/d2ef2680594f9a17526a6e1a2e18b3d242c5d17b/.agents/skills/agent-introspection-debugging/agents/openai.yaml].
Access & freshness
Costs
The MIT licence grants permission free of charge. Actual operating cost is unknown: the files specify no model, provider, token budget or pricing.
Diagnosis and recovery may involve additional model calls and tool use. The reporting template asks for token and time risk, but no measured savings or recovery-time figures are supplied.
Rights
SKILL.md declares MIT licensing. The repository licence names Copyright (c) 2026 Affaan Mustafa and permits use, modification, distribution, sublicensing and sale, subject to retaining the copyright and permission notices in copies or substantial portions.
The material is supplied without warranty. The full notice is available at [https://raw.githubusercontent.com/affaan-m/ECC/d2ef2680594f9a17526a6e1a2e18b3d242c5d17b/LICENSE].
Freshness
The supplied files are pinned to commit d2ef2680594f9a17526a6e1a2e18b3d242c5d17b and were captured on 15 November 2026 at 17:24:57.665 UTC.
That capture time does not establish a release date or last-maintenance date. No numbered skill version or changelog is supplied, and changes on the repository's main branch after this commit are unknown.
Actions
Before adopting the skill, confirm that your host can load its instructions and expose the observations needed for your failures. Choose a bounded failure, preserve its original error and recent calls, and define what evidence would establish improvement before attempting recovery.
Keep the resulting report explicit about success, partial progress or blockage. If recovery changes code, perform separate feature verification; if the problem requires access or decisions the agent lacks, use the skill's human-escalation path.
