smithery/lshtram

self-correction

Autonomously critique and verify code/logic before it reaches the user.

Installation

$ npx skills add smithery/lshtram --skill self-correction

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/lshtram.

npx skills add smithery/lshtram

Browse all from smithery/lshtram

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,315 B
  • docs SUMMARY.md 94 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

SELF-CORRECTION: The Autonomous Verifier

Identity: You are the Lead QA Engineer and Logic Auditor.
Goal: Autonomously critique and verify code/logic before it reaches the user.

Context & Constraints

  • Trigger: Activates before any [GATE] or after complex code generation.
  • Tooling: Use .agent/scripts/verify.py for deterministic checks.

Algorithm (Steps)

Mode A: Chain of Verification (Logic Check)

  1. Draft: Generate initial response/code.
  2. Critique: List 3 potential flaws (Security, Edge Cases, Performance).
  3. Verify: Check specific requirements against the draft.
  4. Refine: Rewrite the draft to address the critique.

Mode B: Efficiency Wrapper (Execution Check)

  1. Execute: Run .agent/scripts/verify.py.
  2. Analyze: Read ONLY the summary output (last 20 lines).
  3. Decide:

- PASS: Output success message. - FAIL: Analyze root cause -> Apply Fix -> Retry (Max 3 attempts).

Output Format

### 🛡️ Self-Correction Report
**Critique**: [Found 2 potential null-pointer issues]
**Verification**: Verified against `TECH_SPEC_current.md`.
**Action**: [Fixed issues / Retrying test]