self-feedback-loop

Iterates review-fix-verify-commit cycles against a plan until no material findings remain.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/psw7205/skills --skill self-feedback-loop-psw7205
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: self-feedback-loop
Source: https://github.com/psw7205/skills/tree/main/skills/self-feedback-loop
Command: npx skills add https://github.com/psw7205/skills --skill self-feedback-loop-psw7205

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? After implementing a plan, code often contains logic defects, scope drift, and missed edge cases that a single review pass misses. This Skill runs a bounded review-fix-verify-commit loop that repeatedly checks implementation against the plan until quality converges, without scope creep. ## Core Features & Use Cases - Multi-persona review dispatch: First cycle fans out parallel reviewer personas (correctness, scope-guardian, security, adversarial, coherence) via subagents, with a local sequential fallback when subagent tools are unavailable. - Plan-bounded fixing: Findings are deduplicated, severity-classified (critical/high/medium/low), and fixed surgically; out-of-scope improvements are accumulated as Notes instead of being auto-fixed. - Convergence-based termination: The loop stops after two consecutive cycles with no material findings, runs a full test suite before finishing, and reports residual risks plus accumulated Notes. - Use Case: After finishing a feature branch, ask the AI to run the feedback loop; it reviews the diff against the plan, fixes a race condition and an async contract mismatch, verifies with targeted tests, commits each cycle, and stops when two clean reviews pass. ## Quick Start Run the self-feedback loop on my current implementation against the latest plan in docs/plans, fixing and committing any findings until the review comes back clean.

Frequently Asked Questions about self-feedback-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run an automated review and fix loop on my code?▼

Invoke the loop after implementation with a request like "review and fix against the plan". It reads AGENTS.md and the latest plan, reviews the diff with multiple personas, fixes findings, verifies with targeted tests, commits each cycle, and repeats until two consecutive reviews are clean.

How does the review loop prevent scope creep during fixes?▼

Fixes are limited to the exact finding being addressed, and plan-excluded items are never treated as findings. Out-of-scope improvements, design smells, and nice-to-haves are accumulated as Notes and only reported in the final output, never auto-fixed.

What happens if subagent or Agent tools are not available?▼

The loop falls back to a local sequential review using three core personas: correctness, scope-guardian, and adversarial. Security and coherence personas are added only when relevant signals appear, and the cycle output is marked as a local fallback review.

When does the review-fix loop stop iterating?▼

It stops after two consecutive review cycles produce no material findings (critical, high, or medium). Before finishing it runs the full test suite when possible, and low-severity findings may be batched into one final fix.

Can I use this for a read-only code review without changes?▼

No. Read-only requests like "review" or "check this" explicitly do not trigger the loop; the Skill switches to a read-only review without fixes or commits. The loop only runs when the intent to review, fix, and commit is clear.