code-quality/skills/reflection/SKILL.md
Self-improving meta-skill that learns from user corrections and updates the TARGET PROJECT's skill files. Only runs when user explicitly says "reflect". Commits all skill updates to Git.
npx skillsauth add richardhowes/self-improvement-code-quality-plugin reflectionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Improve future Claude Code sessions by learning from mistakes and user corrections.
Updates skill files in the target project's .claude/skills/ directory.
This is a meta-skill - it modifies other skills based on session learnings.
Only activate when the user explicitly requests reflection:
Never run automatically - always wait for explicit user trigger.
Rules are written to the target project's skill files (NOT the plugin repository):
| Rule Type | Target File |
|-----------|-------------|
| General conventions | .claude/skills/conventions.md |
| VILT patterns | .claude/skills/vilt-patterns.md |
| Project-specific | .claude/skills/project-rules.md |
| Unclear/mixed | .claude/skills/lessons-learned.md |
If the target project doesn't have .claude/skills/, create it with a starter structure.
Analyse the completed session
Extract atomic, durable rules
Check for contradictions
Update appropriate skill file(s)
## Learned Rules sectionCommit changes separately from code
A rule must be:
- [YYYY-MM-DD] RULE_TEXT (source: BRIEF_CORRECTION_CONTEXT)
Examples:
- [2025-01-09] Always eager load relationships in service methods that return collections (source: booking service review)
- [2025-01-09] Never use axios - use Inertia router instead (source: corrected 3x in dashboard component)
- [2025-01-10] Use FloatingLabelInput for all form fields (source: user preference stated)
When creating .claude/skills/ in a new project:
# Lessons Learned
## Purpose
Project-specific rules learned from Claude Code sessions.
## Learned Rules
<!-- Reflection appends here -->
chore(skills): reflect session learnings
- Added: [rule summary]
- Source: [correction context]
- File: .claude/skills/[filename].md
Do not create rules for:
Only learn patterns that should always apply.
development
Apply VILT stack coding standards when writing Vue, Laravel, or TypeScript code. Automatically enforces patterns for Composition API, Form Requests, Inertia navigation, and component hierarchy. Activates when creating or modifying Vue components, Laravel controllers, services, or models.
documentation
Enforce Inertia.js patterns in Vue components. Prevents axios usage, ensures proper form handling, and guides navigation patterns. Activates when working with data fetching, form submissions, or page navigation in Vue components.
documentation
Guide component selection in ResRequest Vue projects. Ensures correct usage of ShadCN-Vue vs custom components, proper imports, and design system compliance. Activates when creating or modifying Vue components.
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".