self-correction

Verify code drafts against requirements with up to three retry attempts.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/lshtram/core_dev --skill self-correction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-correction
Source: https://github.com/lshtram/core_dev/tree/main/.agent/skills/self-correction
Command: npx skills add https://github.com/lshtram/core_dev --skill self-correction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps ensure code or logic is thoroughly reviewed before it reaches the user, reducing bugs and unsafe behavior.

Core Features & Use Cases

  • Autonomous critique of security, edge cases, and performance.
  • Verification against explicit requirements and iterative refinement.
  • Use Case: Before deploying code, the verifier analyzes drafts and returns a structured self-correction report.

Quick Start

Provide an initial draft and a critique, then run the verification script to confirm correctness.

Frequently Asked Questions about self-correction

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

FAQPage Schema
How do I autonomously critique and verify code before deployment?

To autonomously critique code, provide an initial draft and critique, then run a verification tool to execute deterministic checks and return a structured self-correction report. This verifies security, edge cases, and performance before code reaches end users.

What is automated code self-correction and how does it work?

Automated code self-correction is the process of identifying and preventing flaws in logic pre-release. It works by running a verification script on draft code, returning a structured report, and supporting iterative refinements with a maximum of three retry attempts.

Can I use automated verification for AI-assisted development drafts?

Yes, automated verification is applicable across AI-assisted development. You provide an initial draft and critique, then the verifier analyzes it against explicit requirements to prevent unsafe behavior and bugs before release.

How many retry attempts does iterative code refinement support?

Iterative code refinement supports a maximum of three retry attempts. During each attempt, the verifier runs deterministic checks on your draft and provides a structured self-correction report for the next iteration.

What do I need to start automated code review and self-correction?

You need an initial code draft, a critique, and a verification tool to run checks. The verifier executes these deterministic checks on the draft and returns a structured report to guide iterative refinements.

Does autonomous code verification check for security and edge cases?

Yes, autonomous code verification critiques security, edge cases, and performance. It analyzes your draft against explicit requirements and returns a structured self-correction report to prevent flaws before the code reaches end users.