AI Self-Reflection & Gap Analysis

0•

Automates session self-correction by analyzing discrepancies between user instructions and AI actions to ensure project alignment.

The zreflect skill is a specialized diagnostic tool for Claude Code that triggers when follow-up instructions indicate a misunderstanding or missed requirement. It forces the agent to pause and conduct a structured gap analysis, comparing the user's literal instructions against the work performed. By generating a formal reflection report and submitting it for evaluation, this skill identifies root causes of errors—such as skipped steps or incorrect assumptions—and establishes a corrective path forward, ensuring the agent remains strictly aligned with the user's goals throughout the session.

主要功能

01Literal instruction quoting to ensure precise requirement tracking
02Automated gap analysis for follow-up and repeated instructions
03Detailed session activity summarization and audit trails
04Integrated feedback loops using external LLM evaluation for quality assurance
05Markdown-based reflection reports documenting root causes and fixes
060 GitHub stars

使用场景

01Identifying why specific constraints were ignored in previous iterations
02Correcting an agent that has veered off-track during complex refactoring tasks
03Ensuring session continuity and alignment after multiple rounds of feedback