agent-introspection-debugging
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
Skill by leecyno1
Chalk Labs
Need help deploying agent-introspection-debugging?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leecyno1-agent-introspection-debugging
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
agent-introspection-debugging- Description
- Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.
- License
- MIT
- Metadata
- origin: ECC
- Instructions
- 149 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- SOURCE.txt
SKILL.md (first lines)
# Agent Introspection Debugging Use this skill when an agent run is failing repeatedly, consuming tokens without progress, looping on the same tools, or drifting away from the intended task. This is a workflow skill, not a hidden runtime. It teaches the agent to debug itself systematically before escalating to a human. ## When to Activate - Maximum tool call / loop-limit failures - Repeated retries with no forward progress - Context growth or prompt drift that starts degrading output quality - File-system or environment state mismatch between expectation and reality - Tool failures that are likely recoverable with diagnosis and a smaller corrective action ## Scope Boundaries Activate this skill for: - capturing failure state before retrying blindly - diagnosing common agent-specific failure patterns - applying contained recovery actions - producing a structured human-readable debug report Do not use this skill as the primary source for: - feature verification after code changes; use `verification-loop` - framework-specific debugging when a narrower ECC skill already exists - runtime promises the current harness cannot enforce automatically ## Four-Phase Loop ### Phase 1: Failure Capture Before trying to recover, record the failure precisely. Capture: - error type, message, and stack trace when available - last meaningful tool call sequence - what the agent was trying to do - current context pressure: repeated prompts, oversized pasted logs, duplicated plans, or runaway notes - current environment assumptions: cwd, branch, relevant service state, expected files Minimum capture template: ```markdown ## Failure Capture - Session / task: - Goal in progress: - Error: - Last successful step: - Last failed tool / command: - Repeated pattern seen: - Environment assumptions to verify: ``` ### Phase 2: Root-Cause Diagnosis Match the failure to a known pattern before changing anything. | Pattern | Likely Cause | Check | | --- | --- | --- | | Maximum tool calls / repeated same command | loop or no-exit observer path | inspect the last N tool calls for repetition | | Context overflow / degraded reasoning | unbounded notes, repeated plans, oversized logs | inspect recent context for duplication and low-signal bulk | | `ECONNREFUSED` / timeout | service unavailable or wrong port | verify service health, URL, and port assumptions | | `429` / quota exhaustion | retry storm or missing backoff | count repeated calls and inspect retry spacing | | file missing after write / stale diff | race, wrong cwd, or branch drift | re-check path, cwd, git status, and actual file existence | | tests still failing after “fix” | wrong hypothesis | isolate the exact failing test and re-derive the bug | Diagnosis questions: - is this a logic failure, state failure, environment failure, or policy failure? - did the agent lose the real objective and start optimizing the wrong subtask? - is the failure deterministic or transient? - what is the smallest reversible action that would validate the diagnosis? ### Phase 3: Contained Recovery Recover with the smallest action that changes the diagnosis surface. Safe recovery actions: - stop repeated retries and restate the hypothesis - trim low-signal context and keep only the active goal, blockers, and evidence - re-check the actual filesystem / branch / process state - narrow the task to one failing command, one file, or one test - switch from speculative reasoning to direct observation - escalate to a human when the failure is high-risk or externally blocked Do not claim unsupported auto-healing actions like “reset agent state” or “update harness config” unless you are actually doing them through real tools in the current environment. Contained recovery checklist: ```markdown ## Recovery Action - Diagnosis chosen: - Smallest action taken: - Why this is safe: - What evidence would prove the fix worked: ``` ### Phase 4: Introspection Report End with a report that makes the recovery legible to the next agent or human. ```markdown ## Agent Self-Debug Report - Session / task: - Failure: - Root cause: - Recovery action: - Result: success | partial | blocked - Token / time burn risk: - Follow-up needed: - Preventive change to encode later: ``` ## Recovery Heuristics Prefer these interventions in order: 1. Restate the real objective in one sentence. 2. Verify the world state instead of trusting memory. 3. Shrink the failing scope.
From leecyno1/boutique-skills, MIT.
More from leecyno1/boutique-skills
- 0.587score
agent-reach
leecyno1
MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g.
SkillBFreshness: B★ 6Claude Code +9 - 0.573score
a-stock-data
leecyno1
当任务需要写代码实际获取A股数据时使用——拉取行情/K线(mootdx+腾讯+百度)、研报(东财+同花顺+iwencai)、信号(热点/北向/龙虎榜/解禁/行业)、资金面(融资融券/大宗/股东户数/分红/资金流)、新闻、财务三表/F10、公告(巨潮)、打板(涨停池/连板/炸板率/重点监控池/日内异动)、ETF期权(T…
SkillBFreshness: B★ 6Claude Code +9 - 0.537score
agentmail
leecyno1
Give AI agents their own email inboxes using the AgentMail API.
SkillCFreshness: C★ 6Claude Code +9 - 0.537score
agent-browser
leecyno1
Headless browser automation CLI for AI agents.
SkillCFreshness: C★ 6Claude Code +9 - 0.537score
agent-builder
leecyno1
Build high-performing OpenClaw agents end-to-end.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
agentmail-mcp
leecyno1
AgentMail MCP server for email tools in AI assistants.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
agentmail-toolkit
leecyno1
Add email capabilities to AI agents using popular frameworks.
SkillCFreshness: C★ 6Claude Code +9 - 0.527score
agentmail
leecyno1
Send and receive emails programmatically using the AgentMail API via CLI
SkillCFreshness: C★ 6Claude Code +9
Signals
- Stars
- 6
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 19, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/leecyno1/boutique-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.578score
agent-introspection-debugging
nguyentrunghieutcu
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillBFreshness: B★ 19Claude Code +9 - 0.342score
agent-introspection-debugging
unrealandychan
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillBFreshness: B★ 12Claude Code +9 - 0.337score
agent-introspection-debugging
wasdqwerty81972
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillAFreshness: A★ 1Claude Code +9 - 0.334score
agent-introspection-debugging
JameMy0001
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillAFreshness: A★ 1Claude Code +9 - 0.324score
agent-introspection-debugging
ronaldwindwaai
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillAFreshness: AClaude Code +9 - 0.324score
agent-introspection-debugging
mdnaimul22
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillBFreshness: B★ 3Claude Code +9 - 0.321score
agent-introspection-debugging
devadathdev
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillAFreshness: AClaude Code +9 - 0.321score
agent-introspection-debugging
albertstarfield
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillAFreshness: AClaude Code +9 - 0.316score
agent-introspection-debugging
JunMystery
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillAFreshness: AClaude Code +9 - 0.313score
agent-introspection-debugging
sara-dev12
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
SkillBFreshness: B★ 1Claude Code +9
More from leecyno1
- 0.587score
agent-reach
leecyno1
MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g.
SkillBFreshness: B★ 6Claude Code +9 - 0.584score
dasheng-stage-publish-video
leecyno1
Use when entering publish stage and needing the mandatory pre-publish video supplement, including interactive chart videos and motion narrative videos with…
SkillBFreshness: B★ 5Claude Code +9 - 0.584score
dasheng-sop-orchestrator
leecyno1
Use when running, resuming, or auditing the full Dasheng 8-stage media workflow with strict stage contracts and delivery outputs.
SkillBFreshness: B★ 5Claude Code +9 - 0.584score
dasheng-account-illustrations
leecyno1
Use when a WeChat article or video needs account-bound concept illustrations.
SkillBFreshness: B★ 5Claude Code +9 - 0.584score
dasheng-stage-distribute
leecyno1
Use when entering the distribute stage to publish rewritten content and videos across WeChat, Xiaohongshu, Douyin, Weibo, and X platforms using existing…
SkillBFreshness: B★ 5Claude Code +9 - 0.584score
dasheng-stage-rewrite
leecyno1
Use when generating the 4-variant rewrite set per topic with hard word-count validation, final-structure inheritance, and optional personal style DNA injection.
SkillBFreshness: B★ 5Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get agent-introspection-debugging running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
agent-introspection-debugging skill. Agent Mart. https://agentmart.dev/skills/leecyno1-agent-introspection-debugging (last updated 2026-10-24)