Davor Cukeric
Active2025

Self-Improving Skills

An AI skill system that evolves after every coding session

MarkdownAutoResearchWeb SearchGitClaude Code Skills
The best AI assistant isn't the one that knows the most — it's the one that knows what it learned yesterday is wrong today.

Most AI coding tools forget everything between sessions. I built a meta-skill that watches how I work, identifies gaps in its own knowledge, researches current best practices, and rewrites its own playbooks — so every session starts smarter than the last.

The Problem

What needed solving

AI coding assistants are stateless by nature. Every session starts from zero. The patterns they recommended yesterday, the mistakes they made, the workarounds you taught them — all gone. Developers end up repeating the same corrections, re-explaining the same architecture decisions, and watching their AI tools make the same outdated recommendations session after session.

The problem compounds in fast-moving ecosystems. A skill file written three months ago might reference deprecated APIs, outdated package versions, or security practices that have since been superseded. Without a mechanism to verify and update its own knowledge, an AI assistant's guidance degrades over time — becoming not just unhelpful, but actively dangerous when it recommends vulnerable dependencies or abandoned patterns.

The Solution

How I approached it

Self-Improving Skills is a meta-skill that runs at the end of every coding session via the /self-improve command. It doesn't just review the session — it audits the entire skills library against current reality. Deprecated API? Updated. Security advisory published? Flagged and patched. New best practice emerging? Researched and integrated.

The safety architecture is non-negotiable. The system never deletes a skill file without explicit confirmation. It never downgrades security posture. Every change is tracked through Git with clear commit messages explaining what changed and why. The goal is continuous improvement with zero regression — an AI assistant that gets better at its job the same way a good engineer does: by reflecting on what worked, what didn't, and what's changed in the world since last time.

How It Works

Under the hood

The /self-improve command triggers a five-phase pipeline. First, session analysis reviews what happened in the current coding session — what tools were used, what patterns emerged, what errors occurred. Second, gap detection identifies knowledge gaps: did the session reveal something the skills library doesn't cover?

Third, skill audit scans the existing enterprise skills — backend, frontend, database, deployment, testing, and AI — checking for outdated information. This is where AutoResearch activates: the system runs web searches to verify current package versions, check for security advisories, confirm API compatibility, and identify deprecated patterns. It's not guessing whether Express 5 has breaking changes — it's checking.

Fourth, action execution applies the updates. Skills are rewritten, new entries added, outdated references corrected. Every modification goes through Git with a descriptive commit. Finally, the change report summarizes what was updated and why, giving me a clear audit trail of how the skills library has evolved. The safety rails ensure nothing is deleted without confirmation and security posture never decreases.

Impact

Results and outcomes

The Self-Improving Skills system monitors and maintains enterprise skill files across six domains: backend, frontend, database, deployment, testing, and AI. Each coding session ends with an automated audit that catches stale recommendations before they cause problems — deprecated APIs, outdated versions, superseded security practices.

The AutoResearch capability means the skills library doesn't just reflect what I knew when I wrote it — it reflects what's true right now. Package versions are current. Security advisories are incorporated. Best practices evolve with the ecosystem. It's the difference between a static reference document and a living knowledge base that improves every day.