Skip to content
Back to skills

Self Correction

ASecurity

Reading compilation errors and repairing AST surgically.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 10, 2026
ai-agentsgorefactoringci/cd

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add Rahulchaube1/Rahul-Chaube-Skills --skill self-correction --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Self Correction?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Self Correction
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rahulchaube1-self-correction/badge)](https://www.skillsdirectory.com/skills/rahulchaube1-self-correction)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: self-correction
description: Reading compilation errors and repairing AST surgically.
category: agentic-cognition
level: advanced
---

# Self Correction

## Overview

Reading compilation errors and repairing AST surgically. This deep-dive module provides advanced prompt engineering and systemic context rules.

## When to Use

- When building production-ready cognitive loops requiring high logical alignment.
- When standard models drift or ignore simple constraints.

## When NOT to Use

- For simple one-off tasks where speed and low latency are prioritized.

## Best Practices

- **Define Explicit Goals**: Structure success boundaries before generating inputs.
- **Negative Enclosures**: Wrap forbidden patterns inside `<not_allowed>` tags.
- **AST Checks**: Validate code formatting prior to test execution.

## Common Mistakes

- **Premature Execution**: Letting the model edit files without creating an implementation plan.
- **Over-Abstraction**: Creating abstract interfaces where single functions would suffice.

## Advanced Techniques

- **Dynamic Context Injection**: Injecting variables dynamically based on prompt length constraints.
- **Self-Healing AST**: Interfacing compiler stack traces directly to model correction prompts.

## Prompt Template

```markdown
<instructions>
You are executing the SELF-CORRECTION skill. 
Analyze the task below, write an implementation plan, and verify all constraints.
</instructions>
<task>
{{task_description}}
</task>
```

## Production Use Case

- Automated local refactoring pipelines correcting linter errors autonomously in CI/CD cycles.

## Evaluation Checklist

- [ ] Model states assumptions explicitly.
- [ ] No speculative helper functions are written.
- [ ] Output formatting passes lint validation check.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…