nguyenhungtran18/skill-and-tool-tracker/qwen-self-improve

Claude Code and agent skill by nguyenhungtran18/skill-and-tool-tracker

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Specialized skill protocol enabling Qwen2.5-Coder to autonomously perform Counter-Example Guided Inductive Synthesis (CEGIS), reflect on Python AST/sandbox errors, perform surgical single-block code repairs, and persist episodic lessons into persistent memory.

Install

npx vskill@latest install nguyenhungtran18/skill-and-tool-tracker/qwen-self-improve

SKILL.md

The same SKILL.md was published earlier as nguyenhungtran18/skill-and-tool-tracker/qwen-self-improve.

Qwen2.5-Coder Autonomous Self-Improvement & Surgical Repair Protocol

1. Objective

Equip Qwen2.5-Coder 7B Fine-Tuned with an autonomous loop to:

  1. Never repeat `<think>` on repair rounds: Once initial architecture is reasoned, all repair attempts directly output Python diffs/patches.
  2. Anchor & Preserve Framework: Lock all valid imports (import asyncio, from dataclasses import dataclass, field) and valid classes (class Task, class Worker), only surgically modifying the specific function/line that triggered a runtime or syntax error.
  3. Multi-stage AST validation: Perform fast AST syntax verification before executing subprocesses.
  4. Episodic Memory Accumulation: Deduce general rules from error tracebacks and record them permanently in lessons_learned.json.

2. Core Operational Workflow

mermaid
sequenceDiagram
participant User as Examiner (Antigravity / User)
participant Qwen as Qwen2.5-Coder (Local GGUF)
participant AST as Fast AST Validator
participant Sand as Python 3.14 Sandbox
participant Mem as Episodic Memory Engine
User->>Qwen: Issue Challenge + Inject Historical Lessons
Qwen->>Qwen: Round 1: <think> (Architecture) + Write Code
Qwen->>AST: Fast Syntax Check (<10ms)
alt AST Syntax Error
AST-->>Qwen: Fast-Fail Traceback (Immediate Surgical Fix)
else AST Valid
AST->>Sand: Execute in Isolated Subprocess
Sand-->>Qwen: Execution Report (stdout, stderr, exit code)
alt Execution Failed
Sand->>Mem: Deduce General Rule -> Save Lesson
Mem-->>Qwen: Inject Previous Code Anchor + Surgical Prompt (No Think)
Qwen->>Qwen: Round 2..5: Direct Surgical Code Repair
else 100% Passed
Sand-->>User: 100% PASSED Verdict & Score
end
end

3. Surgical Repair Rules for Qwen2.5-Coder

  1. Rule 1 (Zero-rethink): On repair rounds (Attempts 2 to 5), do not generate <think>...</think>. Emit the corrected Python code block immediately.
  2. Rule 2 (Import Preservation): Never drop top-level imports when revising helper functions or classes.
  3. Rule 3 (Episodic Reflection): Consult the [EPISODIC LESSONS LEARNED] section of the system prompt to prevent repeating historical mistakes (such as @dataclass(order=True) with custom __lt__ or asyncio.Pool).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nguyenhungtran18/skill-and-tool-tracker/qwen-self-improve/badge)](https://verified-skill.com/skills/nguyenhungtran18/skill-and-tool-tracker/qwen-self-improve)

Something wrong with this skill or its page? Tell us.